From patchwork Fri Jul 7 13:58:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13304904 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB999EB64DA for ; Fri, 7 Jul 2023 13:59:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 58E638E0001; Fri, 7 Jul 2023 09:59:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 53DF68D0001; Fri, 7 Jul 2023 09:59:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42CED8E0001; Fri, 7 Jul 2023 09:59:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 32F188D0001 for ; Fri, 7 Jul 2023 09:59:35 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 17F3D160D90 for ; Fri, 7 Jul 2023 13:59:34 +0000 (UTC) X-FDA: 80984973468.25.F367AF6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf10.hostedemail.com (Postfix) with ESMTP id DE0F8C0013 for ; Fri, 7 Jul 2023 13:59:31 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=aRL5AxlB; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf10.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688738371; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=MGtpw5Ijohgjr845woqe5tjbTFDfrclnX+uXDY4qJTo=; b=dKWxXmkdQWCR0YOKEb93Rr40QO6j1TrNMxaI8UzMeXLakFFB004Y5BAgcASerweBde6kpO rkVCAOhgXZzvgeDraz+tu7QmLVqortKJ4F19BLkkKX0aQnWNy/+7/Xoc7i4AFOrzDnh32x Rh0bfr4Je2ibMEzM20LF+ZcUyuMYBnQ= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=aRL5AxlB; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf10.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688738372; a=rsa-sha256; cv=none; b=bzor9R1gUBZytcnJsqteVr4Q9WDf0/I93AtbDv0e5CsFCrueKro4D2VAKe7Jw+WEHYsDuW 3RjzKABa4wdvtVABCH3IuJxIosibW8PMsZTh+XtsjH3y76Zb7WRJFrgHuBqDdvh539++Hc 8H37XbugA4kNcj2Y0Vs7nj5AVXEq+f4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688738371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MGtpw5Ijohgjr845woqe5tjbTFDfrclnX+uXDY4qJTo=; b=aRL5AxlBSb4PaUD34NiwlMu4GApcFNtukh3LtU6OZdLF1waYQury/HkFRiqXxNsZyVNfai 7sCc9GEWg+HpBVsV3W5Cxkvo3ABtCkE1ZB7L+Lk3WKqmWhZbNodkxCnrIxUzaOW/FS/VHS bMy2M8YCvK5jJxWHDr9f9knd5H2Feag= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-91-jdBeycFfMpWPcS0WdIfb0g-1; Fri, 07 Jul 2023 09:59:27 -0400 X-MC-Unique: jdBeycFfMpWPcS0WdIfb0g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7A140185A791; Fri, 7 Jul 2023 13:59:26 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3BEDF2166B25; Fri, 7 Jul 2023 13:59:10 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, schnelle@linux.ibm.com, vkoul@kernel.org, eli.billauer@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org, derek.kiernan@amd.com, dragan.cvetic@amd.com, linux@dominikbrodowski.net, Jonathan.Cameron@huawei.com, linus.walleij@linaro.org, tsbogend@alpha.franken.de, joyce.ooi@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, tglx@linutronix.de, maz@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, frowand.list@gmail.com, Baoquan He , kernel test robot , dmaengine@vger.kernel.org Subject: [PATCH 1/8] idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM Date: Fri, 7 Jul 2023 21:58:45 +0800 Message-Id: <20230707135852.24292-2-bhe@redhat.com> In-Reply-To: <20230707135852.24292-1-bhe@redhat.com> References: <20230707135852.24292-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Rspamd-Queue-Id: DE0F8C0013 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: q1qtxzir5d5s1ymxiihmiwa3hburwgh7 X-HE-Tag: 1688738371-356345 X-HE-Meta: U2FsdGVkX18/tw5b5x0IMVCan2gMvqAl0gX0AhiFHVTljObfLo8ZW/GVIfAKb3LT/ALN3evKyiHSJLoR09X8Ekvl2o0Swd6MOp3adQ0hKwIjRlrBK0mGprHYakYZxlKnTnvaLRVlrFVjdFqZC6n5pB362hKpgw8iRGbVe1Pxnwaz3SYurSRam1ca6ElXM0vHgIAxVq2hrfzz3GzhBsyKlG/6b0IED/7H8TiRsVBG1cB+Cxsul2Ok7pJPjv5+xfXaL4LnkVfng0bJ4l7wVOQ5qeJAVLYpSMO8ZJPI7hogNPgHhn3Z0FrstBS1iqAuVCQzvz1/cBmfxSrm4NrzOyTXtGN+8e5qRtZyyhxJb1CCxxuq3j2fk3aC06f3vRRoHyj1iuftxdn+FxCiNG5m5WPFMGpTZqXmjKdTyB4E3dlbXL7cc3ds0Kccq2/5mn62WVVfgyvtoiGRbNl5dtrGiM+IwsOLy+EAbOmSF1IUQfLKsqr9pjKznfU4iDDeQZMedAz+uniUO7PGgENcJ7NMvtMu6Z5V24GaA36WsM2fkpTu6qG8Vgua6VytjyoT2O131rU5LGzwR6BXGHJc2v1JiTQG30XzO0ON68oQkaqu2WG8JjPiODC2KtJFUsqVjCn6aOfo2unSisWsHNgdoCE+IGaZGfHnsW1NDrnVr7JZnBOnm3HQaL3ETILxHgYBxSrVbf+jaa8Hoo50vY8BbqWL/F5ekpxRQPFZzTTxrI/S9kGIlOv9pxPBvH+X0orYND8UHCYEaxLFOUESk/qdX4l2aHmmaPrskyuRFKVyYaf3yNXNY6PhcBm+Q5GcMzTItQIneVtVlQ2ocpeQsxisQP9KWV+v2jyAR6K8CccYMt93YfCBk8hLjlCZ4/K2Q4PlRI4hvyCGz8fraF7kWmYWUI22mVb6crsEaV2J6FKqfqm4pZ6fmzLCB5uR8fbAxHqkX9Rcl2AfgJSmPIKCCz+zzS3fSwD kNVOLwFq cpoLvHpItNxLDWrg7JMM9soeUPo+3kGUG2yCo+njMOz8dCM6rxTt1s8VO8uKuJy8fQaQVDalGUgBEOx+QmOV4+S1WrX0ZiRvkJvaynu9mpymJxQb3cGe9nQZdyUX7BYGuku2qRKlqowKpLVE4D6w89px3Ux0w0jqBOjPh/GilG6T8HDHrsQXVK9iEBeiEtOotfmCwY3nnsNsZ1ikxZH9C09u0SglaKSBXskJCPffz77hSwEqdg9jJ8ZELlfLAH2wGOFwKCqbjVjgHw9IADXYBVMUJj+ZqA1ZTJNVJ9pAF72uRnF4s2ouB7pmt5hFgiuIqxc+yhBcbMcJzbyeGT+4bIo8MHDPfXFm2KuVJcZjNzrpc9pYDOGO9oP5QHA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On s390 systems (aka mainframes), it has classic channel devices for networking and permanent storage that are currently even more common than PCI devices. Hence it could have a fully functional s390 kernel with CONFIG_PCI=n, then the relevant iomem mapping functions [including ioremap(), devm_ioremap(), etc.] are not available. Here let FSL_EDMA and INTEL_IDMA64 depend on HAS_IOMEM so that it won't be built to cause below compiling error if PCI is unset. -------- ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] undefined! ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] undefined! -------- Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/ Signed-off-by: Baoquan He Cc: Vinod Koul Cc: dmaengine@vger.kernel.org --- drivers/dma/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 644c188d6a11..08fdd0e2ed1b 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -211,6 +211,7 @@ config FSL_DMA config FSL_EDMA tristate "Freescale eDMA engine support" depends on OF + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help @@ -280,6 +281,7 @@ config IMX_SDMA config INTEL_IDMA64 tristate "Intel integrated DMA 64-bit support" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help