Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp270827rwd; Tue, 16 May 2023 00:24:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74MTjl38hR9UqCMoXscJI4rNW5anVAPG1F4taQaTU/bzv8XCVkv1C2PZt2y0Kz6Op6OWrv X-Received: by 2002:a17:902:d2cb:b0:1ac:7ea7:6ccd with SMTP id n11-20020a170902d2cb00b001ac7ea76ccdmr35336131plc.34.1684221874237; Tue, 16 May 2023 00:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684221874; cv=none; d=google.com; s=arc-20160816; b=oF+C5JlG42HOu2VzBP06In7XM34wjhJxt6gsRPlWGp91jLLq3PpMohtwUZnkGGzXXH Z8mn6of1XOK5+Aws8Jr4B4ziOM3ise2qw7WokpHBycT7DnIoDUBUypIzGDz6Qu0AYBA0 1GVeV0x2OVPmOlpTv3OIusCqp90bZrblO8nPujY3F2yjBaRkOrsDH/44v2dam+hvGN4o prDyrknh0DhsIDNtv4mv/QL/b2gtHl7l0uoGxg7JH9ZGnneT1Rn50QcLkLFAveF8HdBB yjhO+7VHMqzK35KEA7R3fnoeN0EXsER4e5z2UPFPkwazBGI4t/axA7ZHYrN+Apa4mGlI og8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ul/potYWZuEYRYKfDE1YnxaZnjlIbysAqtnmtge62Ok=; b=rHWNMLmhOdY+Q6Olj9r53+gyhxkCJoo8p3aRYJ+dhJpMTZ4d5i8V0oDBj4K0vMqavb zf+OLnpsRDCV04IxxbK99csxg4Ium2xQFHwjuWjiJofPyWRJeZFraFCjkVZgpdAc5oR5 aaOIgrwH+3X1EHgsAZexjnNoTGKPRtqMP/xvOScW/6WLTj4jGGrdvpnDQ3tvIxKm1dOI b94e8+Yedqt6w8XJ2dmcp5Vex6KXshq3V5X1NAa/iJcdZDeDLWMPjG0/CIEerc/mMALs E7ESKy59iI7CEZn2UMO7gJzhPH9jY2EpstjtTr2FxpWWdazmPm3VDxqbSz5H1niJ0Um2 1qjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=BLhvoyvs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb14-20020a170903338e00b001aafda896b3si16431867plb.626.2023.05.16.00.24.19; Tue, 16 May 2023 00:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=BLhvoyvs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231182AbjEPHPt (ORCPT + 99 others); Tue, 16 May 2023 03:15:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbjEPHP3 (ORCPT ); Tue, 16 May 2023 03:15:29 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F5C4215 for ; Tue, 16 May 2023 00:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1684221318; x=1715757318; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lPE3+Tms4P+v+2cQbjBpM5WKXZt6mkEp7SjRlCCo7xg=; b=BLhvoyvs/HOlIr88MdOkJstX5gUJytEAypDZMgLZhxd6dCcm96/6Sx3h jSd60oLy/ILDd/kZqLJBKPidy4dx4O9cE+H+P/T0ABLV3WoppaDDTOeEW UytInNgVHSvWPwqz9dyh9hV/03timN/XFzIEWSUeo9k64rTESWiLH74Dl NoXmnuK48nF9cCUIFWwlv0tBe/sVeNXWDo4fpDW7EWpYtn0jBJWhNQGqb J9kbjVAPXkWWgBbXMXTJZdXJGcshXjz94S+vTYdTyLsR2Kir+QHPbrW12 EUqCJTDGUu7yah3fb5YdrWpRBLUHjFJsicLr+gLCIsZv4gc5czZpFapiU w==; X-IronPort-AV: E=Sophos;i="5.99,278,1677567600"; d="asc'?scan'208";a="211461672" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 May 2023 00:15:17 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 16 May 2023 00:15:15 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 16 May 2023 00:15:14 -0700 Date: Tue, 16 May 2023 08:14:53 +0100 From: Conor Dooley To: Randy Dunlap CC: , Geert Uytterhoeven , Joerg Roedel , Will Deacon , Robin Murphy , , Conor Dooley , Lad Prabhakar Subject: Re: [PATCH v2] iommu: make IPMMU_VMSA dependencies more strict Message-ID: <20230516-viable-resent-1fbeed2cfb90@wendy> References: <20230330165817.21920-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q/A5eQxJmg5Xxvfz" Content-Disposition: inline In-Reply-To: <20230330165817.21920-1-rdunlap@infradead.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --q/A5eQxJmg5Xxvfz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 30, 2023 at 09:58:17AM -0700, Randy Dunlap wrote: > On riscv64, linux-next-20233030 (and for several days earlier), > there is a kconfig warning: >=20 > WARNING: unmet direct dependencies detected for IOMMU_IO_PGTABLE_LPAE > Depends on [n]: IOMMU_SUPPORT [=3Dy] && (ARM || ARM64 || COMPILE_TEST [= =3Dn]) && !GENERIC_ATOMIC64 [=3Dn] > Selected by [y]: > - IPMMU_VMSA [=3Dy] && IOMMU_SUPPORT [=3Dy] && (ARCH_RENESAS [=3Dy] || = COMPILE_TEST [=3Dn]) && !GENERIC_ATOMIC64 [=3Dn] >=20 > and build errors: >=20 > riscv64-linux-ld: drivers/iommu/io-pgtable-arm.o: in function `.L140': > io-pgtable-arm.c:(.init.text+0x1e8): undefined reference to `alloc_io_pgt= able_ops' > riscv64-linux-ld: drivers/iommu/io-pgtable-arm.o: in function `.L168': > io-pgtable-arm.c:(.init.text+0xab0): undefined reference to `free_io_pgta= ble_ops' > riscv64-linux-ld: drivers/iommu/ipmmu-vmsa.o: in function `.L140': > ipmmu-vmsa.c:(.text+0xbc4): undefined reference to `free_io_pgtable_ops' > riscv64-linux-ld: drivers/iommu/ipmmu-vmsa.o: in function `.L0 ': > ipmmu-vmsa.c:(.text+0x145e): undefined reference to `alloc_io_pgtable_ops' >=20 > Add ARM || ARM64 || COMPILE_TEST dependencies to IPMMU_VMSA to prevent > these issues, i.e., so that ARCH_RENESAS on RISC-V is not allowed. >=20 > This makes the ARCH dependencies become: > depends on (ARCH_RENESAS && (ARM || ARM64)) || COMPILE_TEST > but that can be a bit hard to read. >=20 > Fixes: 8292493c22c8 ("riscv: Kconfig.socs: Add ARCH_RENESAS kconfig optio= n") > Signed-off-by: Randy Dunlap > Suggested-by: Geert Uytterhoeven > Cc: Joerg Roedel > Cc: Will Deacon > Cc: Robin Murphy > Cc: iommu@lists.linux.dev > Cc: Conor Dooley > Cc: Lad Prabhakar This is still presenting as a problem for randconfig builds: https://lore.kernel.org/all/54244db6-ff69-4cf8-894c-c3dd2f12df9c@infradead.= org/ Could it get picked up please? Thanks, Conor. > --- > drivers/iommu/Kconfig | 1 + > 1 file changed, 1 insertion(+) >=20 > diff -- a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig > --- a/drivers/iommu/Kconfig > +++ b/drivers/iommu/Kconfig > @@ -287,6 +287,7 @@ config EXYNOS_IOMMU_DEBUG > config IPMMU_VMSA > bool "Renesas VMSA-compatible IPMMU" > depends on ARCH_RENESAS || COMPILE_TEST > + depends on ARM || ARM64 || COMPILE_TEST > depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE > select IOMMU_API > select IOMMU_IO_PGTABLE_LPAE --q/A5eQxJmg5Xxvfz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZGMtbQAKCRB4tDGHoIJi 0kMBAPwJGwl7WtTrpfXREf+3HDlL3dwdmjgApdWJepBttrCpGQEAgiaoWm139YqG vRlkBlnZuHOBgoVpyTEOiTS9TdB38Qs= =wO76 -----END PGP SIGNATURE----- --q/A5eQxJmg5Xxvfz--