From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33B14370AD4 for ; Mon, 31 Aug 2026 06:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788157299; cv=none; b=pP3OUIZqqkdyhI4izvTK6SjmQHwSH6YIMpfOF0WbC/U6PfU3wmD92QS35T6ThbBGSwf1PZLYMPuNpHWG3W87/fGnf4XNIGWXbEDQ8KDhS1HJ9i9QjqEJtDpC6BJ6BWfYL9YMQOldTLvu/mzoGzXhYMPFZLnK7FbBAxFhevbWsFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788157299; c=relaxed/simple; bh=eUvsAfzz+e5aNY/TsIfJgNeqShM5YG+g4j1nbqEC5lU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J6bK18Rh8Q2rVkHVvOAT5+p2PsXcgzUStP8W9y/pwo4sncedBmBIfkB1+CmTOA0KcO4vpvqq1PnvtW3DDATyGagHMh+wC3B1Zqfdqt7zFxTNhT7hxylg2wx8sQTISXyay8V+8P8+z1sZO+ZXLWWwCRCPeLkQMpf8gs/4xR7XMFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=Bi/lSzJU; arc=none smtp.client-ip=115.124.30.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Bi/lSzJU" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1788157287; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=dHNppGEbHFmiYLlqOhoL9xC65y2QF19Ima5W5LWEsiI=; b=Bi/lSzJUMHuT3ydgkKgi8rn+za1bC+N7KN0T7tbj95p5OeNsOLBxC8fqHIkx+eF9434E6gEhnlX1Q9R18Oe/qPbgQ42G0iy4xpxdedSoY/TXmMDgwj3ao8cyhECCh45qmZgIkS/Qgnk6ZfWfPIrWVhYDlwr76gX2n8FGv+gRnrU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=xiangzao@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0X9tzDsa_1788157277; Received: from banye.tbsite.net(mailfrom:xiangzao@linux.alibaba.com fp:SMTPD_---0X9tzDsa_1788157277 cluster:ay36) by smtp.aliyun-inc.com; Mon, 31 Aug 2026 14:21:26 +0800 From: Yuanhe Shu To: Jason Gunthorpe Cc: Yuanhe Shu , smostafa@google.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, baolu.lu@linux.intel.com, kevin.tian@intel.com, praan@google.com, skhawaja@google.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] iommu: Add __iommu_debug_unmap_phys() to drop refs by physical address Date: Mon, 31 Aug 2026 14:21:14 +0800 Message-ID: <20260831062116.2173451-1-xiangzao@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260827162148.GB3769797@ziepe.ca> References: <20260827145855.1616223-1-xiangzao@linux.alibaba.com> <20260827145855.1616223-2-xiangzao@linux.alibaba.com> <20260827162148.GB3769797@ziepe.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Thu, Aug 27, 2026 at 01:21:48PM -0300, Jason Gunthorpe wrote: > Every pts has the iova of its current iteration location. Call > pt_index_to_va() and then pts->range->va is the current spot. You're right, and pt_next_entry() already keeps it current, so there was never a need for a phys based helper. Both patches dropped, see my reply on 2/2. Thanks, Yuanhe