Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1131455rwb; Tue, 27 Sep 2022 08:49:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6H45YdbWzB7DgyY/urEuQpbpynFvaw9ImgEnZ/CAlMuI4JsvT58aTUwAPhlnb+DoIvTf4q X-Received: by 2002:a05:6a00:bea:b0:53e:d0c0:faed with SMTP id x42-20020a056a000bea00b0053ed0c0faedmr29776741pfu.30.1664293750994; Tue, 27 Sep 2022 08:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664293750; cv=none; d=google.com; s=arc-20160816; b=by/plj1GjWPJzq9M40/8lY0FtWLm3yYwBkMGnIHRabgm+/KUTCKMYhnClPwBjOT0+Q JV7eOAqFIW1nJ54+UlvY+QQ5AqEVtCpjEz5BojU/TTRc/XwaADlQgDHiCO87jm1K2Y7h li1PPvEN7QKTGzLHX6uEOUBQg2pcfLlo6RdJxeSFs/PhgT2rvNgN0DvOECpzjFl6tPTN B0uvz0l1yfsp9Ba8B+NrtC665oHcse0/Zpl1tR16VqOdAXNdFEvGCcANU/nhQJR/GnT2 5t15JH7cgwC2cdrReFSgkq6GDu0KtZGNdc6m+62FMv7jOR4SBXdS7jTRRT9UkujBARz7 0JNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Wv/hl+O47KbBKhsHuHGT+af8ji5KfNfvypidSDA5LSc=; b=Aw5HcrjQ8m6rQyc4bPD2n05JPMMK0RHhpyuraMizV65h6wSRyO36mnMYTzQAQ1XNth 0FhFDYKd+Nfyw6FNQ6YALfOmrIBkPSGXi51IpBQbSwX89UfQwhCslyaU1Couay5tg5/7 2xWSvt2Y/T6apr2qTQyTiiPVhrB2+MLv9EUgToneZoUY4cBFtpnI2A0elSXw/Kw5degl QB6uiHjaVkVRLtYTTz4cAirFUuiNq4virj2Uppz7I4j0eIheYWmrGGWXB4lgoEXyeiwE eMOdxKTNOJuV0ZOVNULcCxv7ZRPTOzq5f+u6jSf/YxY0uiydy2V7SFGFTJtTOyjR/ROR AXNA== 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 17-20020a631851000000b004344ef377a6si2067028pgy.660.2022.09.27.08.48.58; Tue, 27 Sep 2022 08:49:10 -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 S229890AbiI0PaA (ORCPT + 99 others); Tue, 27 Sep 2022 11:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiI0P3x (ORCPT ); Tue, 27 Sep 2022 11:29:53 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC56D1057F for ; Tue, 27 Sep 2022 08:29:51 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id i17so3249622qkk.12 for ; Tue, 27 Sep 2022 08:29:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=Wv/hl+O47KbBKhsHuHGT+af8ji5KfNfvypidSDA5LSc=; b=DsyBR68Wu/S0VVba+qv6CVMCZqho0zQmVavZf/at76t36etIAfhSqDIcdEfmG4tFRQ W0Bxq6SLFRwquDDPh5X9w4qqDqrYEOHY5md2HDrYc0oBxt0nStO8aSQAkkPHpS2temCA 4uBYwwmoODXKir/dBRM2cfW6ESDSxFFKikdDBxsPeNCJhrb7B/6RYGEgS50mZ2r/FqvU 5XGxS6dZl5iUFeW+mJ259IMDkmoB2oQUXhz7ifAhi0EmKbWYK5+w3ZbgqasWM9L8cBqu qMAjIcDmgxbRzellNS25YCDeYPGkFVm4E/1nv2VPNT9t//85sLt0eojr4gUgXv7vyG+h op6A== X-Gm-Message-State: ACrzQf0ld8GIKmPL8kcZukOP1kc7dFcyN1CSJBFp8s8ZIB4Am9Pthl/l KzJo7ywjW7fGNbE9dnwh83KwZMMHuP1obg== X-Received: by 2002:a05:620a:254f:b0:6cf:9b54:11dd with SMTP id s15-20020a05620a254f00b006cf9b5411ddmr7608729qko.55.1664292590715; Tue, 27 Sep 2022 08:29:50 -0700 (PDT) Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com. [209.85.219.181]) by smtp.gmail.com with ESMTPSA id z80-20020a376553000000b006b953a7929csm1159329qkb.73.2022.09.27.08.29.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Sep 2022 08:29:50 -0700 (PDT) Received: by mail-yb1-f181.google.com with SMTP id 4so4502708ybe.2 for ; Tue, 27 Sep 2022 08:29:50 -0700 (PDT) X-Received: by 2002:a25:3851:0:b0:6ad:9cba:9708 with SMTP id f78-20020a253851000000b006ad9cba9708mr26843654yba.36.1664292589905; Tue, 27 Sep 2022 08:29:49 -0700 (PDT) MIME-Version: 1.0 References: <9db42ab0-da49-95fd-3fea-eb505af0867e@arm.com> In-Reply-To: <9db42ab0-da49-95fd-3fea-eb505af0867e@arm.com> From: Geert Uytterhoeven Date: Tue, 27 Sep 2022 17:29:38 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] iommu/io-pgtable: Make IOMMU_IO_PGTABLE_DART invisible To: Robin Murphy Cc: Joerg Roedel , Will Deacon , Sven Peter , Janne Grunau , Hector Martin , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Robin, On Tue, Sep 27, 2022 at 5:09 PM Robin Murphy wrote: > On 2022-09-27 15:48, Geert Uytterhoeven wrote: > > On Tue, Sep 27, 2022 at 4:15 PM Robin Murphy wrote: > >> On 2022-09-27 14:36, Geert Uytterhoeven wrote: > >>> There is no point in asking the user about both "Apple DART Formats" and > >>> "Apple DART IOMMU Support", as the former is useless without the latter, > >>> and the latter auto-selects the former. > >>> > >>> Fixes: 745ef1092bcfcf3b ("iommu/io-pgtable: Move Apple DART support to its own file") > >>> Signed-off-by: Geert Uytterhoeven > >>> --- > >>> Should IOMMU_IO_PGTABLE_LPAE and IOMMU_IO_PGTABLE_ARMV7S be made > >>> invisible, too? > >>> Are there users that do not select them? > >> > >> The aim was for formats to be independently selectable for COMPILE_TEST > >> coverage. The Arm formats are manually selectable for the sake of their > >> runtime self-tests, which are self-contained, but since DART format > >> doesn't do anything by itself I'd agree there's no need to prompt when > >> !COMPILE_TEST here. > > > > IOMMU_IO_PGTABLE_LPAE and IOMMU_IO_PGTABLE_ARMV7S are > > selected by other symbols that can be enabled when compile-testing, so > > the tests can still be enabled in those cases, too > > Sure, but when you want to compile-test a thing, what would you rather > do: enable the thing, or go hunting to find some other thing that > happens to select the thing you actually want, then potentially have to > figure out *that* thing's dependencies, and so on? Agreed. > Coverage isn't solely about whether it's technically possible to ever > reach somewhere at all, it's just as much about how easily and/or often > you can get there in practice. I don't see who benefits from making > COMPILE_TEST harder to use :/ So perhaps the visibility of IOMMU_IO_PGTABLE_LPAE and IOMMU_IO_PGTABLE_ARMV7S should depend on COMPILE_TEST? Normal users would still get it through select when needed. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds