From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36537C48BC3 for ; Wed, 21 Feb 2024 13:09:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WmjKu7AL3Qwk5rwOf4OphwI4jT1v8GUUWwTORCxyZoA=; b=SoTiXfhxFwwL2U yS493RCMm+SiqD7i/KUBOxahxs9OqUifAVNCLdv4q8bPkck1N0quTQ2E1i4qIaOWvMUECSMOPao1t TIbNW7StPUje6JojzKjlCMYp6akgD3Pa23r2Obfie5Wz5HPJipVpr6HcEAzutE25WoZ6/rFFpEByx E62XdK4JvCknAoGusDbGnKE5jGed7RFlaVTEy+q2IMtSyPSfmayTzpZTP0IHy2/ae5KB8x8c3Bnc3 mump+tCdjentZ1nhJ5touj/LBHFwcPXWd2AHQlXUhPj4VN6OzErrp7M0oC0+yguy7GdzGtDc5hDig 6EnZVstA0BJv79G/3KiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcmLB-00000000yOR-3JP9; Wed, 21 Feb 2024 13:08:49 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcmL8-00000000yLY-29PC for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 13:08:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 38F55CE1D79; Wed, 21 Feb 2024 13:08:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB203C433C7; Wed, 21 Feb 2024 13:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708520923; bh=jWoOg1V3ZThyRBKOVb7CEjqeK+QlKbeiCOerKjWohKA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VR6VtHUZRBrkF7H32n3NJFdlo8JZZu4fgycdTWNsmSldCRCPzGCarxAnpX/beNQGi uEqMf7thFW8ScsFPy6xuVZ8pc1fuqsi6S6Yf+kMKWpI3QI5d51XhRXSllSXLhP2K4V bUePi69dWiy57uMwbvI6Uwfz8KK+IjWURHL/lkc9xdWH9ho9FO1JqeTO2G0gy4f/1b pePso22REMFeyFbId+mdXi+Qe6LIpb6Pg5YUtk6TzPZwuDF9wTXxKqYHwGNPt06m+z uTQuiwvxm8mr6o9ZFJ/fXQJIi+h7hoMm/u+Y+lKCA381OzW8t5wWNyFDgqeMavvEwO 4sJ1ZwOe1evyw== Date: Wed, 21 Feb 2024 13:08:37 +0000 From: Will Deacon To: Jason Gunthorpe Cc: Michael Shavit , iommu@lists.linux.dev, Joerg Roedel , linux-arm-kernel@lists.infradead.org, Robin Murphy , Dan Carpenter , Nicolin Chen , patches@lists.linux.dev Subject: Re: [PATCH rc v2] iommu/arm-smmu-v3: Do not use GFP_KERNEL under as spinlock Message-ID: <20240221130837.GA7273@willie-the-truck> References: <0-v2-7988c2682634+261-smmu_cd_atomic_jgg@nvidia.com> <20240216120512.GA1841@willie-the-truck> <20240216123606.GA13330@nvidia.com> <20240217132446.GJ13330@nvidia.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240217132446.GJ13330@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_050846_783768_30453BB7 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Feb 17, 2024 at 09:24:46AM -0400, Jason Gunthorpe wrote: > On Sat, Feb 17, 2024 at 08:25:36PM +0800, Michael Shavit wrote: > > > Calling arm_smmu_write_ctx_desc requires the CD which we get from the > > mmu_notifiers list...which makes it a bit more complicated than > > that. > > @@ -404,9 +384,15 @@ static int __arm_smmu_sva_bind(struct device *dev, struct mm_struct *mm) > goto err_free_bond; > } > > + ret = arm_smmu_write_ctx_desc(master, pasid, bond->smmu_mn->cd); > + if (ret) > + goto err_put_notifier; > + Please can you spin a v3 with this folded in? Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel