From patchwork Tue Apr 4 10:18:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sricharan Ramabadhran X-Patchwork-Id: 9661301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3264A602B9 for ; Tue, 4 Apr 2017 10:38:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1E1B2846D for ; Tue, 4 Apr 2017 10:38:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6466284D5; Tue, 4 Apr 2017 10:38:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 900682846D for ; Tue, 4 Apr 2017 10:38:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=NostLQ1zEezmFdVbfK61KsYacsDw/zyUVcP3iI85ysE=; b=G4yjgTUnj3WIA2uG7BsiCgadkO sR9fTnZnCyFSedLnfbsOUb+qrv5FftGqX7vxJ+1jGVqKrHOlawno0C9wqt1xmluE2+jM3+yLCKFod uoGo+wrRNuRJO/WG3o/B0uaoc0g+BUsiNcXA91BX5X9jEmmyzNyArmmKiS63T6XajgXEViytWDoFF gvW/ZCa3tL0ykUngnWqncVr4s/wFvlXyyKb0muo+HjPOSQrZiGwMzSTC28TDDPXsdzXCRfPRuYzXD K8T0ojXSmWK7V2iCP6zULdX+g9LlN+Jq8MgZ+iLoHczUdBhSh6+p3Eb/uKw1E/BaECVRHH9tBEhcV v2M7nw3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cvLqZ-0001F6-G6; Tue, 04 Apr 2017 10:37:59 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvLqO-00013n-UJ for linux-arm-kernel@bombadil.infradead.org; Tue, 04 Apr 2017 10:37:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jQLng8StlSIWUEEu3CVZREsMk5ejqfbt7PbEixGgTN4=; b=0TUG178VDrEFyjLzJV8WzFyTr wbXWyxGqpIK5TVewKjj7Z3LODPcDTBgCrJJmsG1lab5nb8APBNworVNpl0UEFDRvUWR9Ph4Cb4Kkg Rfc9lpURew+MX8ErckpPxLLoRxu0VDQcEAIdLoL4BHPMOxSiDq+4cv51hhmqbh18HXoto8RRttJbY D6z/oXfIJvge7eSsMcYer+0+bURYXiP5+pBDQ+HA08oUQsusFBwf4RoEOlqYWiMMh3na1uptEqeD/ ny/Uzc5whGUNpGYIPqvZaCf/iPFm/XnN6tkC3lyQ+3E07qUhOCL//ZMP+2f4ZSY9UE+8GvaBTm6gX 2t8PFyeeg==; Received: from smtp.codeaurora.org ([198.145.29.96]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvLaC-0000um-E0 for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2017 10:21:05 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A866060E08; Tue, 4 Apr 2017 10:20:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1491301247; bh=gvE2YI1cyrib5OLpprfC8etf0/YytYGL2ivzvIjlkgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kzNKoBI7aRxTnvZlR/7kwDLvt9nO4N0PSuYHzRbCY/n5LzEUFutI503GZKCSPtqP2 LW+VL8dmCZU7X85ByfHkxrEm0p/+HGk3KjvyG+MJn6hqxcr1ie59jma1xfeKA0vB4P RBqB9PjzPKOGs4ouYQNUrEYDFQLbcBVpevv5YJtQ= Received: from srichara-linux.qualcomm.com (unknown [202.46.23.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2D94760ECE; Tue, 4 Apr 2017 10:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1491301246; bh=gvE2YI1cyrib5OLpprfC8etf0/YytYGL2ivzvIjlkgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nOTI9/x8XoaBNYt9sKSNpMnyIM0P3JbC5ytxJLgwPKi0lAW5AxEwcWQ0Ax4znTMGF UmCq8TVDZfxJy5/G93Sp+bjP4iKSbzd9GUamOGcIL+L8JUFm/4B8fXdiAmcOfbc4I6 MBQV7trmo0exE9+ywo5kg/1BnAY+8OLsvNGzaxc8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2D94760ECE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sricharan@codeaurora.org From: Sricharan R To: robin.murphy@arm.com, will.deacon@arm.com, joro@8bytes.org, lorenzo.pieralisi@arm.com, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, m.szyprowski@samsung.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, tn@semihalf.com, hanjun.guo@linaro.org, okaya@codeaurora.org, robh+dt@kernel.org, frowand.list@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com, rjw@rjwysocki.net, lenb@kernel.org, catalin.marinas@arm.com, arnd@arndb.de, linux-arch@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH V10 12/12] ACPI/IORT: Remove linker section for IORT entries probing Date: Tue, 4 Apr 2017 15:48:25 +0530 Message-Id: <1491301105-5274-13-git-send-email-sricharan@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491301105-5274-1-git-send-email-sricharan@codeaurora.org> References: <1489086061-9356-1-git-send-email-sricharan@codeaurora.org> <1491301105-5274-1-git-send-email-sricharan@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170404_062104_637750_3330CD34 X-CRM114-Status: GOOD ( 14.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sricharan@codeaurora.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Lorenzo Pieralisi The IORT linker section introduced by commit 34ceea275f62 ("ACPI/IORT: Introduce linker section for IORT entries probing") was needed to make sure SMMU drivers are registered (and therefore probed) in the kernel before devices using the SMMU have a chance to probe in turn. Through the introduction of deferred IOMMU configuration the linker section based IORT probing infrastructure is not needed any longer, in that device/SMMU probe dependencies are managed through the probe deferral mechanism, making the IORT linker section infrastructure unused, so that it can be removed. Remove the unused IORT linker section probing infrastructure from the kernel to complete the ACPI IORT IOMMU configure probe deferral mechanism implementation. Tested-by: Hanjun Guo Signed-off-by: Lorenzo Pieralisi Cc: Robin Murphy Cc: Sricharan R Reviewed-by: Robin Murphy --- drivers/acpi/arm64/iort.c | 2 -- include/asm-generic/vmlinux.lds.h | 1 - include/linux/acpi_iort.h | 3 --- 3 files changed, 6 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index e323ece..e7b1940 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -1000,6 +1000,4 @@ void __init acpi_iort_init(void) } iort_init_platform_devices(); - - acpi_probe_device_table(iort); } diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 0968d13..9faa26c 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -566,7 +566,6 @@ IRQCHIP_OF_MATCH_TABLE() \ ACPI_PROBE_TABLE(irqchip) \ ACPI_PROBE_TABLE(clksrc) \ - ACPI_PROBE_TABLE(iort) \ EARLYCON_TABLE() #define INIT_TEXT \ diff --git a/include/linux/acpi_iort.h b/include/linux/acpi_iort.h index 77e0809..f167e1d04 100644 --- a/include/linux/acpi_iort.h +++ b/include/linux/acpi_iort.h @@ -52,7 +52,4 @@ const struct iommu_ops *iort_iommu_configure(struct device *dev) { return NULL; } #endif -#define IORT_ACPI_DECLARE(name, table_id, fn) \ - ACPI_DECLARE_PROBE_ENTRY(iort, name, table_id, 0, NULL, 0, fn) - #endif /* __ACPI_IORT_H__ */