From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220065; b=DGz0C31G+ulvlOVW+svMwuxNa/ZgrEa0LwINSCqCLxmpCUl3pX+Lz09eshWMYVv/BkX6 rxTPukTWN1PAt3enY7M2LTulo5bW5Go4NbtkSOEo8LXk8cIDksdxrWo7J55GMZQkW+rh1 tKgME7vPJd7fJ7Ags8QyZYFNJijtTZqjgBRyh0jQ8JLOdK4DNh1b/PfVKfrSeKTutG+vn y1U0K6ihBzy79YBPOAkLafWkwnnnyrpMvHQR0x7jlQSPJI6QNVvFhh7IhswuOwKmxM2IO XnrD0ZY4r9rmnf2xZm/UV0rS5ddoFJRS2o4QdigJ44NNlJZutszQlgkYIv+/CarW1lQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220065; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=eLw0yBXGBIB1iDsTbIelmsoUF05VZSqFZMkfxX44WoU=; b=YsIizX9qjVawC5TfOwKklcbCCnFob6RU/cDSFbA112WWXvlezHEoLb/ncF1ztRxek5sv VBLPcbZyihBlF9MMOiY4ETZLCiMNIkzzZ67Os9ZS7s2qnNZ66uK/h3vUXpHUFjeG15bm2 //ipe6RCaBFZUuEouX4a7oGKd7NhdRpsVzuvoaTkHIVxZ5lMXqzEQdh+Iy2I5xiqJNT8S j5FRjqYzrN4PP3qzo+38KPle3I3PYptfgsz3uBNb0NhozzfNxecObQmN5t6dIJFGqk25R Ycr3UqnjTRKtuiLlhVUCG+faR0w57ytkxYhPfQIxnRATTvJZSgJfNRJBU7AMHFocA7Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b="o5NLle/M"; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4250C606A31A; Wed, 2 Dec 2026 14:01:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4250C606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=o5NLle/M Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C55411570; Wed, 2 Dec 2026 06:00:58 -0800 (PST) Received: from [10.2.212.23] (e121345-lin.cambridge.arm.com [10.2.212.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1A44C3F7D8; Wed, 2 Dec 2026 06:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796220061; bh=5+pev01pM+1VzPLyOyEVSN6Vc5JoSakPW9eGmB3DmdE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=o5NLle/M3qoUtP2y9BglU15y7nKUSJF2L7jNfNojJnKsPcZRSymOS287QXxUyiKKF Tw60KpP2VJ66iK9kQHeHYDlJSLFNoZmv+ZuQp+SX1PjCfEgvo3iy9XinAnng+KE7v4 HAKnlIuMCweZzMFIzjbjbz1RTg1Ks1yJZY4wg3I0= Message-ID: <6ffb6f55-c224-4c1f-941d-48b518a19c0b@arm.com> Date: Wed, 2 Dec 2026 14:00:49 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/2] iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use To: Koichiro Den , "Joerg Roedel (AMD)" Cc: Will Deacon , Magnus Damm , Jason Gunthorpe , Lu Baolu , Geert Uytterhoeven , Marek Vasut , Yoshihiro Shimoda , iommu@lists.linux.dev, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261105024910.1879230-1-den@valinux.co.jp> From: Robin Murphy Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 02/12/2026 1:24 pm, Koichiro Den wrote: > On Thu, Nov 05, 2026 at 11:49:08AM +0900, Koichiro Den wrote: >> Hi, >> >> Removing one PCI function can disable the micro-TLB still used by other >> functions, causing their DMA to bypass the IOMMU. This series leaves >> shared micro-TLBs unchanged on device release and cleans them up when >> their domain's context is destroyed. >> >> v2 was retested in the same manner as v1 (with the Linux PCI endpoint >> framework exposing two functions to an R-Car S4 Spider host, by removing >> an unused function that shares a micro-TLB with the remaining function.) > > Hi Joerg, Robin, > > If it looks fine, could you please queue this on renesas/ipmmu for 7.5-rc1? Ah, indeed I had looked and thought "yeah, that looks pretty neat now", but it probably helps if I transmit that thought beyond the inside of my head... Reviewed-by: Robin Murphy > > Best regards, > Koichiro Den > >> >> Best regards, >> Koichiro Den >> --- >> v1->v2 changes: >> - Move micro-TLB cleanup from device release to context destruction, >> drop per-device reference counting. (Robin) >> - Drop v1 patch 2, as it is no longer needed. >> >> v1: https://lore.kernel.org/r/20261104162251.1749998-1-den@valinux.co.jp/ >> >> >> Koichiro Den (2): >> iommu/ipmmu-vmsa: Propagate errors from iommu_fwspec_add_ids() >> iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use >> >> drivers/iommu/ipmmu-vmsa.c | 42 ++++++++++++++++---------------------- >> 1 file changed, 18 insertions(+), 24 deletions(-) >> >> >> base-commit: 528280c12a26c9da2449c42c5ab4a5c4fe6dbb9c >> -- >> 2.54.0 >>