Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp266629rwd; Tue, 16 May 2023 00:19:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RHJoJjTs7EZIcOY3b1DArCyx19iN+i2aAp33AQ3QdOtwUATfo3FAzyJkwbgUGcmPN7NSt X-Received: by 2002:a17:902:c40a:b0:1a5:f9b:27bd with SMTP id k10-20020a170902c40a00b001a50f9b27bdmr50957006plk.34.1684221588240; Tue, 16 May 2023 00:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684221588; cv=none; d=google.com; s=arc-20160816; b=m2k0P1tXX5Dzu5OkI366kOAUKEDsqeZWX32PWvgNi6p19sTh0IflCIbExOmAnJDTRk 35GROQcXpxBoSO2bgdUjN7ZxuNmem5T0N6cASpAkkFHVyGGOwImhvKqmWO8HZaeVYZBg uYV9j1LZXDs2PIL7Wn8PRAv2yKtxmz73kjx5VSihhmhiG43S6SLcdmyDOpXa3L2lcqXE H4uWeaPn1GD4bWKk75y7uSoZSm5kDLPPyTRqm4CzUjRqV61IMDBaKwD9De/qS4NLwjhv qoY+S+XTAbcgKFd6PLG98PuZ0YBHp41W85oJLKZwMiX09qqxcooQIlCBrGLkSqTH4DXZ /qZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=pkt9RFqIxQStwnq/XEZBzGArtXBx+/Ivg50d3vQ2408=; b=NmFAsicoDuwaa8lnnQyr+9qyiEglEZTrq/4AW/BZwsSbk6/do2NuhE1cksyL4krhh5 i3XvVBzN0iFPdj5e7sK5z1H7C5uM44ic8ZZNNNr5XcCtjKYPAbdu0Nn4NEXTC7DGNTah Qf1viunDCs10SOML4b5pX0doEyM0AgqFFEX8gNfvZX7PkotTyBUUmY6Qtql0StGwJKP3 Xe33e7ppUjKVi72wzmggAwMvK/xLnp+MUb7MH4C5164r+XKlWLMzUCsT538zwQ3ka9wL rjXXmOQ2Vfu0yujP6OyTYPKkWStF6p5Ovdga+qQd4C+wIorh4pwUAwcWKW2wopMqd1k3 Bcug== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a170902c94b00b001a637615a89si19109224pla.561.2023.05.16.00.19.36; Tue, 16 May 2023 00:19:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230424AbjEPHDI (ORCPT + 99 others); Tue, 16 May 2023 03:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjEPHDF (ORCPT ); Tue, 16 May 2023 03:03:05 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24DC93C32 for ; Tue, 16 May 2023 00:02:53 -0700 (PDT) Received: (Authenticated sender: alex@ghiti.fr) by mail.gandi.net (Postfix) with ESMTPSA id 39B5D240003; Tue, 16 May 2023 07:02:50 +0000 (UTC) Message-ID: <280c0994-f7cd-bb0e-8c68-62f72a4a38ca@ghiti.fr> Date: Tue, 16 May 2023 09:02:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] iommu: PGTABLE_LPAE is also for RISCV Content-Language: en-US To: Randy Dunlap , Robin Murphy , linux-kernel@vger.kernel.org Cc: Joerg Roedel , Will Deacon , iommu@lists.linux.dev, Conor Dooley , linux-riscv@lists.infradead.org References: <20230330060105.29460-1-rdunlap@infradead.org> <2529dd93-2cb2-6ed8-20c0-c424e6613717@arm.com> <833203b0-aee5-eb23-afb4-ff71a3024258@infradead.org> From: Alexandre Ghiti In-Reply-To: <833203b0-aee5-eb23-afb4-ff71a3024258@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Randy, On 3/30/23 18:49, Randy Dunlap wrote: > > On 3/30/23 09:34, Robin Murphy wrote: >> On 2023-03-30 07:01, Randy Dunlap wrote: >>> On riscv64, linux-next-20233030 (and for several days earlier), >>> there is a kconfig warning: >>> >>> WARNING: unmet direct dependencies detected for IOMMU_IO_PGTABLE_LPAE >>>    Depends on [n]: IOMMU_SUPPORT [=y] && (ARM || ARM64 || COMPILE_TEST [=n]) && !GENERIC_ATOMIC64 [=n] >>>    Selected by [y]: >>>    - IPMMU_VMSA [=y] && IOMMU_SUPPORT [=y] && (ARCH_RENESAS [=y] || COMPILE_TEST [=n]) && !GENERIC_ATOMIC64 [=n] >>> >>> and build errors: >>> >>> riscv64-linux-ld: drivers/iommu/io-pgtable-arm.o: in function `.L140': >>> io-pgtable-arm.c:(.init.text+0x1e8): undefined reference to `alloc_io_pgtable_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_pgtable_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' >>> >>> Add RISCV as an allowed ARCH dependency to fix these problems. >>> >>> Fixes: d286a58bc8f4 ("iommu: Tidy up io-pgtable dependencies") >> BTW that doesn't look like the right fix target - this presumably dates back as far as when ARCH_RENESAS was added to RISCV, such that it was possible to start selecting IPMMU_VMSA without COMPILE_TEST? > OK, I can go with that. Thanks for your help. > Any updates on this fix? Thanks, Alex