Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1147331rwb; Tue, 27 Sep 2022 09:01:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Gq9+oEVVwHmQO7fQYJKpjb45mnbeCCO4RW5VEWxJh35ZJSmVlTD63fqROrA2n1RrjJ97J X-Received: by 2002:a50:fc9a:0:b0:454:6a56:7d27 with SMTP id f26-20020a50fc9a000000b004546a567d27mr27927718edq.73.1664294505067; Tue, 27 Sep 2022 09:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664294505; cv=none; d=google.com; s=arc-20160816; b=M0ouqJRvYdhi0JBuuQB9XCFoZKm5zqY5MmigEUzmfeV5VTPqiXMF2ztJdWzZzcVqql rMmOyyndRM/oRmRMcVZr10njFTdBdnAmdDwOHjZ6DwygasIXQH0zn9253W15BvhsN7tW +zXKOvDvQ8eZLTvr6o31wwQG5ksoHzr8jb+MAndYF5AcdB+pci8oEAIvVtq6LWE4QcFl EAEFBwOnH1531qzF1nKgOgx5GPsDr7g5NJoEeu/zmSj+WRyhZEUGYcLyE+I5Bev6/DWv 0XSfHFUAN7xHKpoZxGH3PLgOad9sr6ZfMJujCp6kieVefQMKNIP5JHaKuV5J4hlWLROy lT0Q== 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=NNGLqbAOVt6+WHT6hUoKTqPVUTCH7gjcoD7snHrsFUM=; b=pfkEoaBr386ewCWaajIxWUI1+1Dx+x1ZhH/x/ViZWFGfg+tZRl6Z9E2kHT3OXSAOFw pfRehBcoJIF/AoL+cz+vIy/i1iwCO0h3aleUq4mOYewdyxxpXdQ4TUAnvI8bWX8EwyRO evKpBo0I9arRcapErmKXrxU7E1ryEi/ObMugeXYp95scO2oz+FI/Y8Wj9OBaWH+Z2DRZ Yj9WXYYzzpKhlZrdRtTt12g8obvQ81DDgMM+mpGYJfJRC4WZspZJCTho9lBOUzzGcmrf qZ56iUbQ4aODgTz1t8CCbAszE6gU6zw8vBkHzIiIFk5yhYXzdX24HTDpaZ11MuyOoQdL 3txw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o30-20020a509b1e000000b004530ed186aasi1852447edi.186.2022.09.27.09.01.15; Tue, 27 Sep 2022 09:01:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiI0PwF (ORCPT + 99 others); Tue, 27 Sep 2022 11:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiI0Pvi (ORCPT ); Tue, 27 Sep 2022 11:51:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E33B5B057 for ; Tue, 27 Sep 2022 08:50:10 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A6711063; Tue, 27 Sep 2022 08:50:17 -0700 (PDT) Received: from [10.57.65.170] (unknown [10.57.65.170]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 023C13F73B; Tue, 27 Sep 2022 08:50:08 -0700 (PDT) Message-ID: <76a84590-995a-f958-0135-a344762bffe1@arm.com> Date: Tue, 27 Sep 2022 16:50:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH] iommu/io-pgtable: Make IOMMU_IO_PGTABLE_DART invisible Content-Language: en-GB To: Geert Uytterhoeven 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 References: <9db42ab0-da49-95fd-3fea-eb505af0867e@arm.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 On 2022-09-27 16:29, Geert Uytterhoeven wrote: > 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. As I say those still offer functionality beyond compile-testing, but now you've got me suspecting that it's already suboptimal that one has to enable the format to make the self-test option appear... Perhaps what we want is a separate master option to enable io-pgtable self-tests in general, then rejig the rest around that. Of course the self-tests would be even more useful if the harness was at the level of the core io-pgtable API so it could cover new formats automatically as long as they provide the configuration parameters, but that's a separate matter for someone with sufficient free time and enthusiasm :) Cheers, Robin.