Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4670370rwb; Wed, 17 Aug 2022 04:17:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EOC/I4QMZQ9d6hPbFSFdbQeX7ZC1I7eoX9sd1iGireRF1y9Y+s5V1gbIxtur+uiTWa3JZ X-Received: by 2002:a05:6402:25c6:b0:43b:7797:d953 with SMTP id x6-20020a05640225c600b0043b7797d953mr22756355edb.254.1660735070444; Wed, 17 Aug 2022 04:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660735070; cv=none; d=google.com; s=arc-20160816; b=fuum20PAXfR40DU4199ZGQm8X334D5S0uVCkECqtU+bR9uj4lb4EKBl/LNfxR65QaG NfnOBSJ2373bRIRvuz7xlMNR7AiFa4gSIz031q+gK6mwIVDiwFUGyfVgZFXMZtgnUzq7 4a/qWxyW+bxGusoOyQ+BkcMB5vdPHya6gz0NUWSLRiX8YuVXyqshNF4P2Zk+nwxWUWRe Yyi84gWKFUKZ6Kp5XKbZKN935hcvhHAb5GbZSMa/dml8QYfQEXXRdJZW+QN3sxkyRUva iWHQI5dDd2wHo6gRtnH7+m7Zbo75foRS/6cBQQMKi4uyPUJj5LJlXj2Kjjs13EcjOZBy MjTg== 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:references :cc:to:subject:from:user-agent:mime-version:date:message-id; bh=0yA3hC3cr2nZI2k0Qce3fUIl27O8SbK/bTgH6lYgS9k=; b=wGnM1uLqnCki1h4HneyT/vWSsq8fu53alFcCEFAIuXmHgOaf8+HiDW4fr7nRRvdgJA lLDh/gtUJ121khLT37nI0fX77vDjCHTKHsi7e1xiJvns7Z3ZgEl8Rt1TY9IC2gicOZk7 PV4zbYxZOxSTF29YLqgJ5Ryy6rMbAUCCE0zOa+HAiyeOdI+xs+2duR8hGU4lVbVA9x1C ujXzUZ8nyU/SO+rCyfN+tpAnQK4rm6QYe6nNDe99Kn7zDdCe4zV1W3z9eaD9OPGBwPod e1uZ8BXAbWJvdQs+fCjqt1P+D+CxLxVYZwB5FYHgtaHf4eMKHTTlzK/rE4X+SAKwH/Ka tflQ== 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 ee47-20020a056402292f00b00442b678864dsi12136396edb.431.2022.08.17.04.17.25; Wed, 17 Aug 2022 04:17:50 -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 S238915AbiHQKYP (ORCPT + 99 others); Wed, 17 Aug 2022 06:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbiHQKYO (ORCPT ); Wed, 17 Aug 2022 06:24:14 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AF3259240 for ; Wed, 17 Aug 2022 03:24:13 -0700 (PDT) Received: from fraeml702-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4M73yk1QRBz67Pn6; Wed, 17 Aug 2022 18:23:58 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml702-chm.china.huawei.com (10.206.15.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Wed, 17 Aug 2022 12:24:11 +0200 Received: from [10.48.158.152] (10.48.158.152) 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.24; Wed, 17 Aug 2022 11:24:11 +0100 Message-ID: <11d9f054-fe7b-7646-a8f4-7d45a22e2a96@huawei.com> Date: Wed, 17 Aug 2022 11:24:12 +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 From: John Garry Subject: Re: [PATCH 0/3] iova: Some misc changes To: , , CC: , References: <1660730984-30333-1-git-send-email-john.garry@huawei.com> In-Reply-To: <1660730984-30333-1-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.158.152] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 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 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). > > Based on v6.0-rc1 > > John Garry (3): > iova: Remove some magazine pointer NULL checks > iova: Remove magazine BUG_ON() checks > iova: Re-order code to remove forward declarations > > drivers/iommu/iova.c | 1074 +++++++++++++++++++++--------------------- > include/linux/iova.h | 60 +-- > 2 files changed, 559 insertions(+), 575 deletions(-) >