Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1771002pxb; Wed, 9 Feb 2022 04:14:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzz1CKYUH6znLaEmEz8R2OmxPysFHZDM1qGuFlcnDPyGfgoBmsk7zJ+5zPJ7443FReDMY9E X-Received: by 2002:a62:bd0e:: with SMTP id a14mr2105424pff.32.1644408893994; Wed, 09 Feb 2022 04:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644408893; cv=none; d=google.com; s=arc-20160816; b=wqDmARjtncCRVVPLlGtlritJaeLUzx9DJ8HQTu9CMW3/k6TjhXo6JG2JzUFe+JMuR5 jyZYHfluGt2vaAXwkd42zOMXXN3MxIvufjwGkiU9XTJ9BNh/nbzgCQwc3+lp1i1dlGOR hK+toq36GNxKxbdVCJhYtprdHQV34sXyYVTis3LfcUNu2zcHNDmvB+apssxeRQvWyzwm 57s8P1FmfG+oJ996qkZL0fJ8WbJ8KIAC5Im6ODMWIfvgBrKfOQSaN+ij77QWdJ9VczBE NhWddzxyq9M3nK5lZUCdzquUNeIthHuTI5qXwd0T5a6uUY39mP+Pk5XZai9eho4XIfW1 FfmA== 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:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=WmkBJ5Q80UhSVZpzORbI0zO9Gy5JTyKL5SJYLLVXK04=; b=CTRmMrVXISRYg21lsBvBEr+9L5m2UiG3GvBgrAygeaLC2rywf0SCn0fa5n3VZq9SNn +Gx2VE1xqdHcDoKjdpoqa6hkrdXlJtqT84M1ANxMbouTCk+lbx9/Y5ZPeNC99YMTJUIo wSDmNl3IJDZHefsPBxKQx+zNBpQEXcTa8N3HFsEE/lHLsn7QnOfDS1uVU8Ki4RanPXiJ Uq7B9mjrbTCHm8X8l6O88zGmBNKZKjKo9gM030AyQb5Z3L1FwrJ2TlwTqQLbjJlAws3A iXBjR5svZVJXSOp/6CZp7PBc2FkT4k6vyqKeNj4JRvOxSF/26AkWQiVXG33IfWTcWH9l N9uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CcreWIs7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t62si3710604pgd.354.2022.02.09.04.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:14:53 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CcreWIs7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B1AEC10346B; Wed, 9 Feb 2022 02:11:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346938AbiBHEbO (ORCPT + 99 others); Mon, 7 Feb 2022 23:31:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiBHEbL (ORCPT ); Mon, 7 Feb 2022 23:31:11 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149AAC0401DC for ; Mon, 7 Feb 2022 20:31:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644294671; x=1675830671; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=sLnwdFLCJ4UV9sC7s0su5wmh+vi9Lj/1fhIUEK9dmJA=; b=CcreWIs7Igj61y8rLAWOaAPyM9uUg8S9CekjAmqzHdPYRA1Ms6QHlnZK Z1IY1OvwESheVO7xKeVKZFmJEWswsB2eluc3ualSBc0Kj7XuuLEW4RENh cNuIY2RG5hOEnlu+JSBZ6JRV0YPj0uk2wvtblrENtESPjUYJ4AgTbzU+0 rfVFo4+MLMiMasJlx0Zce5VCRoGroqp/G1wwnccaYtpmQgJJHco9Vwxgj KK6Ahet/c7r+dTTqhBjMJflOVs3daYWaKFZJ/aDe0oA3n3YJmbAzd/SZh 01BtdTzJkDctUCrnhvqZ+rnxKDag/yoITpJ2QQl81qisb3HtusoKDfCLS w==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="236275232" X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="236275232" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 20:31:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="677985554" Received: from allen-box.sh.intel.com (HELO [10.239.159.118]) ([10.239.159.118]) by fmsmga001.fm.intel.com with ESMTP; 07 Feb 2022 20:31:07 -0800 Message-ID: Date: Tue, 8 Feb 2022 12:29:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: baolu.lu@linux.intel.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Jason Gunthorpe , Robin Murphy , Christoph Hellwig Subject: Re: [PATCH v1 04/10] iommu/vt-d: Remove iova_cache_get/put() Content-Language: en-US To: John Garry , Joerg Roedel , Kevin Tian , Ashok Raj , Liu Yi L , Jacob Pan References: <20220207064142.1092846-1-baolu.lu@linux.intel.com> <20220207064142.1092846-5-baolu.lu@linux.intel.com> From: Lu Baolu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 On 2/7/22 6:39 PM, John Garry wrote: > On 07/02/2022 06:41, Lu Baolu wrote: >> diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c >> index 583ec0fa4ac1..e8d58654361c 100644 >> --- a/drivers/iommu/intel/iommu.c >> +++ b/drivers/iommu/intel/iommu.c >> @@ -3348,9 +3348,6 @@ static inline int iommu_devinfo_cache_init(void) >>   static int __init iommu_init_mempool(void) >>   { >>       int ret; >> -    ret = iova_cache_get(); >> -    if (ret) >> -        return ret; >>       ret = iommu_domain_cache_init(); >>       if (ret) >> @@ -3362,7 +3359,6 @@ static int __init iommu_init_mempool(void) >>       kmem_cache_destroy(iommu_domain_cache); >>   domain_error: > > nit: is this label still really required? only failures in > iommu_domain_cache_init() jump to it, and that can return directly now. It will be cleaned up in the next patch. > > Thanks, > John > >> -    iova_cache_put(); > Best regards, baolu