Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4272742rwb; Tue, 6 Sep 2022 05:22:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5g3zz5x+6zcF0S1unVWSD3G++LOYKh372+L+arev1l9BefQ81LCMirAewE3hXi5WTDLFtj X-Received: by 2002:a17:907:97c3:b0:741:834c:b060 with SMTP id js3-20020a17090797c300b00741834cb060mr29538690ejc.735.1662466934781; Tue, 06 Sep 2022 05:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662466934; cv=none; d=google.com; s=arc-20160816; b=PCESGIcEGFwCJzKyB5kC55wXb5l2vpk0vK49cVyV+c3oNQ9DSTVoujzqpPisrt0Gtu ZeKO4cIfzCheeprQup+tj4u2K1TbKlGzUtnYsarJbAzPL00UGuksxuDtwu4kbhSAfA6T UmmZZB5fXaSZQ/PgQAhOr3y7X1c6rQKqEYMnpomL7yrvUKBXq1CRCKkQyh/iL6TYCFWG +llTbBBp+ry3rEpcj3kvaJOr2H9VKz4woJlvPqKlb33qYmP3jBoqoW9MMwvj7XOEq/Bx 5h0a7NDpHxigKwRcAb8Hhuja1o97yoJdz3/D71E8M4RneEN4F4h5KmMn/0TywW/I8BtG TCAQ== 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:subject:user-agent:mime-version:date:message-id; bh=6pkQdFLG2ZsZs4VmXNPkYIuE8zLVuucLqJGaB/FzPj0=; b=hJkkGLOqZ5LGTMdkE/2NWxsZRNpH0ePsOHesUXDmMvHMbQVm3XbOqnzBDo17NeO525 Cf78sc5J/0nTxNtDRl3ZzU+QwzQlbWQk6Ng1D8Cv1Hu8V55GWyFGKH7iE678HL7TqKfY QlQ2gtJ+9eh4Q8QT6AU1FosWVj4cGVGyvclw41jNwmn2HIy28nlrLIXmId6mWYBBwoK6 9hWNTsVNDoq8O9Tu035dLndFeWCvYQ3AyL2YksK0vrH7DmsLwOgn1jCi/qUqbIHWHJt/ BOIAb3s+yr3tvL3OtkOS77RPpYw5AB8zkPE4nZqZPowpecbNBcBzpfDAk9opbDpYUdfj q+wA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd17-20020a056402389100b0044e6b43f044si4771169edb.267.2022.09.06.05.21.46; Tue, 06 Sep 2022 05:22:14 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbiIFL7n (ORCPT + 99 others); Tue, 6 Sep 2022 07:59:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232773AbiIFL7i (ORCPT ); Tue, 6 Sep 2022 07:59:38 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392A013D32 for ; Tue, 6 Sep 2022 04:59:33 -0700 (PDT) Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MMP6x3T8nz6897Z; Tue, 6 Sep 2022 19:58:49 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 13:59:31 +0200 Received: from [10.126.175.248] (10.126.175.248) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 12:59:31 +0100 Message-ID: <1fd99fb4-bec1-9695-89f3-499477c88bb7@huawei.com> Date: Tue, 6 Sep 2022 12:59:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 0/3] iova: Some misc changes To: Robin Murphy , , CC: , References: <1660730984-30333-1-git-send-email-john.garry@huawei.com> <11d9f054-fe7b-7646-a8f4-7d45a22e2a96@huawei.com> <318d9157-6f2b-4ae5-70fc-a54d5919496e@arm.com> From: John Garry In-Reply-To: <318d9157-6f2b-4ae5-70fc-a54d5919496e@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.175.248] X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 On 05/09/2022 16:51, Robin Murphy wrote: >> >> Any thoughts on this? Since I got no review of patch #3 I assume that >> it is not keenly welcome either. > > Yeah, I applied patch #3 to have a look at the result, but couldn't > really convince myself either way - there are certainly a few functions > in weirdly incongruous places at the moment, but afterwards we end up > with certain other things in rather contrived order for the sake of > avoiding declarations, so overall it just didn't feel objectively better > to me. Plus the fact that rewriting nearly 2/3 of the file stands to > make backporting tweaks or fixes unnecessarily painful is hard to > overlook. Yeah, that was my main concern. But if it is going to be done, then now is as good a time as ever... > Hence I guess I'm leaning towards "worth trying to see how it > looked, but let's not". > ok, fine. But I do still feel that iova.c does need tidying to some extent along these lines. > As for the stubs, it seems that they're currently unused due to linkage > issues with IOMMU_IOVA=m - if we want better compile-test coverage, I > wonder if we couldn't replace the IS_ENABLED() with IS_REACHABLE() and > restore some of the previously-conditional selects? Sorry, but I am not familiar - what were some examples of previously-conditional selects? Thanks, John