Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3286911rwb; Mon, 5 Sep 2022 09:07:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GdVbRU5mWEw5w9gh6nyQKfAIBdG69+OeR94HFBTz8hVlkXEHGWYKEaqatnajdA43hmkEn X-Received: by 2002:a05:6402:190d:b0:447:ed22:4d0d with SMTP id e13-20020a056402190d00b00447ed224d0dmr40441342edz.309.1662394048844; Mon, 05 Sep 2022 09:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662394048; cv=none; d=google.com; s=arc-20160816; b=KXXmnEMAk8mberbbppJjDEgsG/SGEU5jMb0doBRLTVpZnD+KSoGP5hCbDPx2SvBkXp 69hviJrocoogr5cDeqRqdw3AdV9OR2dI2dqhv3ZLQbtU0MdF4qyAkRC7YwMXV0nFfVUj o8AD9yjQi09gsMq+o6kPs+xjm8+22UiPGJV+2RAlj7i32bkVenXpPGEVCRkaJXvh8cgA 9OU3MMAN9Oh285T/pKToR2cYeuqnk3WNnsq4Q0zSrIjAM/gN/5nYBLErS4njGGw1J+4/ FXSEvD9wVU4bt+i7DL2JrCuWjlG9j6tIOkWdaCfLCblDNQk8q4oDWEbDSrpiMi6Bnpoe OJSw== 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=3LQmS3UYEMsK3gv12mYu+Op0u52mt5RGrF9drFeWxkc=; b=0yKVQNrYKod/MHObKyDYuYRVYgykCI/qgi9PnS0UhFZiV76hDcd4XGrA+l9h/FEH7F oK7IycefXoDP45vSUFSxpa99NGc3OET25Nf5D078w3DgvWKGg+jDS1tlVb101w8erpUz RmldTtOO2d7BmEP4NBuHTwRAXiiFt1+aDytrrhI7qum9uxz3F+F7PsnirVSPtfWfpNM9 HzbU7x+WgffDRoBsBF5S6s58QdDQg4T4LYhpiuq7Z0usgFYz94LBjNVFNfhGPCHfuVyT s7FsmJWrqv6jJ6skWzW43JHqFn0Xc4EgTf0bzMJ2v9D8gZm9dVWQiLrkhevurpzQNESs W3mg== 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 hr30-20020a1709073f9e00b0073d8659db5csi8223886ejc.966.2022.09.05.09.06.58; Mon, 05 Sep 2022 09:07:28 -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 S238604AbiIEPvM (ORCPT + 99 others); Mon, 5 Sep 2022 11:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236977AbiIEPvL (ORCPT ); Mon, 5 Sep 2022 11:51:11 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 18BE25E575 for ; Mon, 5 Sep 2022 08:51: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 1E6EC139F; Mon, 5 Sep 2022 08:51:16 -0700 (PDT) Received: from [10.57.15.199] (unknown [10.57.15.199]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 131AD3F534; Mon, 5 Sep 2022 08:51:08 -0700 (PDT) Message-ID: <318d9157-6f2b-4ae5-70fc-a54d5919496e@arm.com> Date: Mon, 5 Sep 2022 16:51:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH 0/3] iova: Some misc changes Content-Language: en-GB To: John Garry , joro@8bytes.org, will@kernel.org Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org References: <1660730984-30333-1-git-send-email-john.garry@huawei.com> <11d9f054-fe7b-7646-a8f4-7d45a22e2a96@huawei.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=-8.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 On 2022-09-02 13:18, John Garry wrote: > On 17/08/2022 11:24, John Garry wrote: >> On 17/08/2022 11:09, John Garry wrote: >>> This series includes: >>> - remove checks in the code which are not required >>> - the re-org, which I had originally posted separately >> >> BTW, Can we drop the !IOMMU_IOVA stubs in iova.h? I could not find a >> kernel config which actually exercises that code (so testing changes >> there is difficult). > > 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. Hence I guess I'm leaning towards "worth trying to see how it looked, but let's not". 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? Robin.