Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2971359rdb; Tue, 12 Sep 2023 19:30:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESmaX7oYZRRDAoBPucOfU9OGB+GzbeBzmLpoc8HrhpwOGJ+b9khHwQkmARttfXQFduhzuA X-Received: by 2002:a05:6a21:1f25:b0:14a:7701:56df with SMTP id ry37-20020a056a211f2500b0014a770156dfmr1082668pzb.21.1694572200168; Tue, 12 Sep 2023 19:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694572200; cv=none; d=google.com; s=arc-20160816; b=E3t9UY8oYbJbf0ms+QlTrsba+QGNU7FQceGoOmJEK0mQxjwIPw5rcupOx6cTLLj49f +S2DNbpbdi5y03/YqRbPCVvjGys+3+MLnXNSQXvM/Qox7mwUyvp3NquyWfSB3ClrnT8I lW9usF1zJMz+g7u6HprGsJmIwKhWgcSW0VhoTgS/qW7SM1ZJ/p31EL2NEvUoX9MCFp/k 6IaCt3IlD0dXRQhoBEc+whTv+h7kpUfiY4l+qXORIUzYQhv01NLASxq/RoNid181Qr+Y c/fn0NLPBWHo8fdIVtNlI+pawQpipKm94ePn1pLCFCfDcYTzKyrGiopzXO7cc5sI/yzM JTcg== 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=H84tXt1g4buSx2KMg0Lt5/8rFOXppHylmlmoJOy/K1I=; fh=1VsqXq2qcuaB9T60VGbarwB01qgHSrTRedORIurWRvk=; b=ObEn83XT41Td60TSFW8nWOIRbfUR+b34Ljh3XvD9Uwutky4Uqj4GrSfE5guIQ0o33P fI0kBvgsORkFFSxxuOYexB5axKayroR5QH5SAAlocStkEhZV/FcRAhGxTH3ne2sNh658 dkBbGlVJ80dWArPKiSfsBuDVeGcIP1crXuJYZEV8EomJOI/p4khbGC0VG0iYBSdxWLFj W61qgKfUz+vBQxGamqxiBeO1Y6PvIbFlFfUVZSZ1G0XxUYmgo1W+S06VGoSpySUQmbas skS4xjFEHxNH/T5e4Se+rKBOTLQNXgFL/e3BuQyGdb9zJwv28+SUs0C/IWED8AdG7sxG qc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HlGVOA8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id i1-20020a17090332c100b001bc1b018964si9677815plr.435.2023.09.12.19.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HlGVOA8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 13E8782A9BA9; Tue, 12 Sep 2023 19:28:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235366AbjIMC2Z (ORCPT + 99 others); Tue, 12 Sep 2023 22:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbjIMC2Z (ORCPT ); Tue, 12 Sep 2023 22:28:25 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B7BB1713 for ; Tue, 12 Sep 2023 19:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694572101; x=1726108101; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=ADJXPAGxhH/KIzMbrba+LZ+A/B+nI3RN78Cnn9H+UvU=; b=HlGVOA8HzfXnnFEFccthZd8uVd8ho4rzUs6Wl5BeB+RyBP85nT1lQaNL OElLuMupR9LRM6FB9JCG0WtnK82ECXo6HRyMBRP31liFjVEFZ8DYL2YtN k6YwtAeygbjh4KKGXb6rsxA5XGzyev3+HycUJ5e0n9U/6ozBgQgLxY/Xi 37Umx9D9H/Vs4o8TPcmWD9sTE6B4G7FgXPwra+tsjW+JVZTyo8R1LaLI5 aPXeExOur/4FPyFgIPB9wmfD+vZpBHKgnHrh8PqbIBYlIY8xlXoaA/3Tu Z9SSWgNt8TKwFXjH2Vw/aUHKnHSCRu1R4BeX8e5rl09f3xLDv7zTBDZma A==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="377454858" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="377454858" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 19:28:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="693689531" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="693689531" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga003.jf.intel.com with ESMTP; 12 Sep 2023 19:28:17 -0700 Message-ID: <0f4fb712-28e3-8620-6a65-59c9b9d77740@linux.intel.com> Date: Wed, 13 Sep 2023 10:25:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: baolu.lu@linux.intel.com, Michael Shavit , Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/6] iommu/vt-d: Remove mm->pasid in intel_sva_bind_mm() Content-Language: en-US To: Tina Zhang , Jason Gunthorpe , Kevin Tian References: <20230912125936.722348-1-tina.zhang@intel.com> <20230912125936.722348-3-tina.zhang@intel.com> From: Baolu Lu In-Reply-To: <20230912125936.722348-3-tina.zhang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 19:28:27 -0700 (PDT) X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On 9/12/23 8:59 PM, Tina Zhang wrote: > The pasid is passed in as a parameter through .set_dev_pasid() callback. > Thus, intel_sva_bind_mm() can directly use it instead of retrieving the > pasid value from mm->pasid. > > Suggested-by: Lu Baolu > Signed-off-by: Tina Zhang > --- > drivers/iommu/intel/svm.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) The intel_svm_bind_mm() could be further merged into intel_svm_set_dev_pasid(). It's fine if you keep it as is since we need more cleanup and refactoring work after this series get merged. So, Reviewed-by: Lu Baolu Best regards, baolu