From patchwork Fri Feb 28 15:46:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 869297 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 818DB270EA9; Fri, 28 Feb 2025 15:46:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740757608; cv=none; b=cc2wkubdfUiE3BX0N7iaCSMdnWeUgpUh94yDIv2z8igKDJewsawuwkDHH9VEzxy9BeuGNJRuwCqM/4So+nXFiZq5WZuYY6e/JBpkFIkAA6z7RJrJuX8ifGSxxnjAB4AmHtNde1c1tN3Teo9PMqgQN2H0tMSKTpoOc7+KLhcKSKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740757608; c=relaxed/simple; bh=Co92DQrOkxarOUPPnw+47Twq9u95xJbT1q0NnKciIpI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kiDscLZqspgA0aPVSxIXVrdyJ3FL+s3E5WINoskNRx9DQCHBVRwtykixJekmH7YRtLNNoS/SDr53fUOdFrU8R5KIZllZHbIJDa1Ztn3zVEA2FikjgG298mIbCaIT70W40MjW5ZfajArX0i1DInoTmj5lW8sDGxykesuDBGjN0VE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 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 CF239150C; Fri, 28 Feb 2025 07:46:59 -0800 (PST) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 64CB43F5A1; Fri, 28 Feb 2025 07:46:41 -0800 (PST) From: Robin Murphy To: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "Rafael J. Wysocki" , Len Brown , Russell King , Greg Kroah-Hartman , Danilo Krummrich , Stuart Yoder , Laurentiu Tudor , Nipun Gupta , Nikhil Agarwal , Joerg Roedel , Will Deacon , Rob Herring , Saravana Kannan , Bjorn Helgaas Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, Charan Teja Kalla Subject: [PATCH v2 0/4] iommu: Fix the longstanding probe issues Date: Fri, 28 Feb 2025 15:46:29 +0000 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 v1: https://lore.kernel.org/linux-iommu/cover.1739486121.git.robin.murphy@arm.com/ Hi all, This spin irons out a couple of issues which v1 had. Firstly there should now be no change in behaviour for the weird of_dma_configure() calls, other than possibly getting the warning if they deserve it. Secondly I think there was still a possibility for probe to run via the replay path while its "real" probe was waiting to reacquire the lock; this is now solved by making dev->iommu a reliable indicator of the probe lifecycle, with a couple more prep patches. Thanks, Robin. Robin Murphy (4): iommu: Handle race with default domain setup iommu: Resolve ops in iommu_init_device() iommu: Keep dev->iommu state consistent iommu: Get DT/ACPI parsing into the proper probe path drivers/acpi/arm64/dma.c | 5 +++ drivers/acpi/scan.c | 7 ----- drivers/amba/bus.c | 3 +- drivers/base/platform.c | 3 +- drivers/bus/fsl-mc/fsl-mc-bus.c | 3 +- drivers/cdx/cdx.c | 3 +- drivers/iommu/iommu-priv.h | 2 ++ drivers/iommu/iommu.c | 55 ++++++++++++++++++++++++--------- drivers/iommu/of_iommu.c | 13 ++++++-- drivers/of/device.c | 7 ++++- drivers/pci/pci-driver.c | 3 +- 11 files changed, 74 insertions(+), 30 deletions(-)