From patchwork Fri Nov 22 10:49:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 180038 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp66855ilf; Fri, 22 Nov 2019 03:16:19 -0800 (PST) X-Google-Smtp-Source: APXvYqz2+5a8ZwkfV+/SfcIniWuxnh0DKce48pGFd7tPQ9zCfSYKjh1ffebwOu6ooEQiya4C12Q4 X-Received: by 2002:a50:f403:: with SMTP id r3mr366966edm.275.1574421379272; Fri, 22 Nov 2019 03:16:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574421379; cv=none; d=google.com; s=arc-20160816; b=nFxC/1GEwS0CxY0F+64/IL6vcFbR/TrLPOobXFr1BHPE6gBQHkh4StgdVnVfo1g/e9 J+c+D1YcpxnQaNi2R9tg0Yzbm0Mev+5cEVQHhU6cUivj83w4xMusjHcGLsioLjCvdRII fZYvrdjRBo8M/ksaP1nuHDPBCs0ZkW8ElWm8IZVEP2cMAdG3qYBivCpsqPggTFaRG318 KutIDWYu4CC3qPMUtaIUkVL3mjo5O2pq0EWLvmN8jpTbBAUKzlqCUxlMzG9K0hh1Om8q TE3BWQ+Yj7hBxzuwXKRA0F/O4d+TXZ12fs2l8Ttgs+cqj63JlhxiYpflOq/K/D/8ktfu TrMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GnM7tdmIuTsFG/gPDSUiRJmc1F37mgdxvtHO3FtFylE=; b=rV7RuNd42kYF5VYihVpAPmkMsweKXqiPNhVUqk7mPo3UUI4pcGfxVIXys+8Udlxp25 w/gPobQytrXklfVNXeXBXBOhvA1skaK6QCe7l6ibw7NzU25t+ahbcs+rI4M+5z6vlpeg MmjxtxQvY4Ubrgu6wAKOM+HW4p5vVE7Z1owpjRoQMgP6UrIhBry4O0z7mQMu+QQstM1A Fx80AL31kvqStNPLBILiOPkgOl3j2XJtl1/FQtFgAVVAT5IIQl0ap1TVSQVB+LJTUvc1 XlyXPegVMcun8hSOcOgFmILe4HIAPrNdainlymYGEw60hzvc6jrQ5/uQ3Ctorz8ngQvL 456A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Bn+Nr/yt"; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si3801343ejb.419.2019.11.22.03.16.19; Fri, 22 Nov 2019 03:16:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Bn+Nr/yt"; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727499AbfKVKuz (ORCPT + 7 others); Fri, 22 Nov 2019 05:50:55 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35470 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbfKVKuy (ORCPT ); Fri, 22 Nov 2019 05:50:54 -0500 Received: by mail-wr1-f67.google.com with SMTP id s5so8071065wrw.2 for ; Fri, 22 Nov 2019 02:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GnM7tdmIuTsFG/gPDSUiRJmc1F37mgdxvtHO3FtFylE=; b=Bn+Nr/ytUk5YMVm1sQH/UVWhb/mMA2dE72H0//SsVqGsJ9g8ztbjNMl03n+vqtDgX1 BVKT3vkBXC/ScqOu1f0iF7XkX6lsqaoR5LUZxq0mZatIZOz7WNO1g8raGl67VngxgyW9 Zn2kqX9vdxYlDvCmxLBCm2xmeGhSiwiljE+9lmgXsFsgUPRpHuMCsvvuNYY6NigcTHtB 6RIo/Qb2nm8M3urPlnZCBvaTaniwiuU4Ty9DcH8MlFxUi10bX7AZqP19/YZ8ro/tJBja iDFhce9IQReQ91LQ4rr7HwA94Ofb7+RxgCw7sMyVwzrXEjrM0k5Wqz6UJ8AMXLdvEArk /QLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GnM7tdmIuTsFG/gPDSUiRJmc1F37mgdxvtHO3FtFylE=; b=i3oKFgy0EN34Kk04dvzV/3AAM3KEbSiFeJcluHmCNs1vYc+rhyyvZTfxcTy5DEgaGe dAeo14EUH0Zi9IZ6/vg8r+Z9xSZUgds1m70Sj1CNlIjAVhxdH0oJne4Cz6741loYm7gW BIXXDGZmGbdqzxN5GA58FHNwDDSCyJCNTihmKY8GjPpYFdGVA2SNfk4gtvie930M6n4J sVZlyyFNbxqXrkgAFUUdTBie/GuygZab1uTivqUlS3+/WPyVKjSQ7JsqfkA2/P5qG8Br pzgNtHGotFL2GtXMisaa6dzFYzDK+iyVgw4+LziP5aluKQ6WWdMM1D8gNCru7Fv6nqtr RZhw== X-Gm-Message-State: APjAAAXGvpL4l/e7Rs36n0fLXymLiIzynR9jWnrlX9uxZYw80KXwwv4Y Wuf+I6qBRBLLZfnn/Gy/cwTnVGPSpdw= X-Received: by 2002:adf:c611:: with SMTP id n17mr17357418wrg.317.1574419852465; Fri, 22 Nov 2019 02:50:52 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-204-106.adslplus.ch. [188.155.204.106]) by smtp.gmail.com with ESMTPSA id o133sm2088197wmb.4.2019.11.22.02.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 02:50:52 -0800 (PST) From: Jean-Philippe Brucker To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, virtio-dev@lists.oasis-open.org Cc: rjw@rjwysocki.net, lenb@kernel.org, lorenzo.pieralisi@arm.com, guohanjun@huawei.com, sudeep.holla@arm.com, gregkh@linuxfoundation.org, joro@8bytes.org, bhelgaas@google.com, mst@redhat.com, jasowang@redhat.com, jacob.jun.pan@intel.com, eric.auger@redhat.com, sebastien.boeuf@intel.com, kevin.tian@intel.com Subject: [RFC 01/13] ACPI/IORT: Move IORT to the ACPI folder Date: Fri, 22 Nov 2019 11:49:48 +0100 Message-Id: <20191122105000.800410-2-jean-philippe@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122105000.800410-1-jean-philippe@linaro.org> References: <20191122105000.800410-1-jean-philippe@linaro.org> MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org IORT can be used (by QEMU) to describe a virtual topology containing an architecture-agnostic paravirtualized device. In order to build IORT for x86 systems, the driver has to be moved outside of arm64/. Since there is nothing specific to arm64 in the driver, it simply requires moving Makefile and Kconfig entries. Signed-off-by: Jean-Philippe Brucker --- MAINTAINERS | 9 +++++++++ drivers/acpi/Kconfig | 3 +++ drivers/acpi/Makefile | 1 + drivers/acpi/arm64/Kconfig | 3 --- drivers/acpi/arm64/Makefile | 1 - drivers/acpi/{arm64 => }/iort.c | 0 6 files changed, 13 insertions(+), 4 deletions(-) rename drivers/acpi/{arm64 => }/iort.c (100%) -- 2.24.0 diff --git a/MAINTAINERS b/MAINTAINERS index eb19fad370d7..9153d278f67e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -377,6 +377,15 @@ L: platform-driver-x86@vger.kernel.org S: Maintained F: drivers/platform/x86/i2c-multi-instantiate.c +ACPI IORT DRIVER +M: Lorenzo Pieralisi +M: Hanjun Guo +M: Sudeep Holla +L: linux-acpi@vger.kernel.org +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: drivers/acpi/iort.c + ACPI PMIC DRIVERS M: "Rafael J. Wysocki" M: Len Brown diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index ebe1e9e5fd81..548976c8b2b0 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -576,6 +576,9 @@ config TPS68470_PMIC_OPREGION region, which must be available before any of the devices using this, are probed. +config ACPI_IORT + bool + endif # ACPI config X86_PM_TIMER diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile index 5d361e4e3405..9d1792165713 100644 --- a/drivers/acpi/Makefile +++ b/drivers/acpi/Makefile @@ -123,3 +123,4 @@ video-objs += acpi_video.o video_detect.o obj-y += dptf/ obj-$(CONFIG_ARM64) += arm64/ +obj-$(CONFIG_ACPI_IORT) += iort.o diff --git a/drivers/acpi/arm64/Kconfig b/drivers/acpi/arm64/Kconfig index 6dba187f4f2e..d0902c85d46e 100644 --- a/drivers/acpi/arm64/Kconfig +++ b/drivers/acpi/arm64/Kconfig @@ -3,8 +3,5 @@ # ACPI Configuration for ARM64 # -config ACPI_IORT - bool - config ACPI_GTDT bool diff --git a/drivers/acpi/arm64/Makefile b/drivers/acpi/arm64/Makefile index 6ff50f4ed947..38771a816caf 100644 --- a/drivers/acpi/arm64/Makefile +++ b/drivers/acpi/arm64/Makefile @@ -1,3 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_ACPI_IORT) += iort.o obj-$(CONFIG_ACPI_GTDT) += gtdt.o diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/iort.c similarity index 100% rename from drivers/acpi/arm64/iort.c rename to drivers/acpi/iort.c