Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2458765rdb; Thu, 21 Sep 2023 21:40:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhFD6wKAztW1Ihv2FNmZcLzuvc/yEmeUYTi0/wDBGKQ2thuHiCpU4Nb1XHrasYvfmKEAyz X-Received: by 2002:a05:6a00:15cf:b0:68f:d35d:217e with SMTP id o15-20020a056a0015cf00b0068fd35d217emr8286839pfu.2.1695357650379; Thu, 21 Sep 2023 21:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695357650; cv=none; d=google.com; s=arc-20160816; b=oH0JoEO7sFnrCPJcj4qGWCqfRrEdxcDcsZ1fL1lpoN/muyHMOJtLAqgQsLtlqN8a5D 1WOG+BPtR0il+3B828Hw2Pq4bQyKGH+ZkFm58kHhGlcMWDuTH0ym8dB74MO8iYqWYNO6 xH/UsffuQJC5BmPSNSU8uUOHiGpafCMhbjNqbsc4tRr+hIeXUYbZPFamr9lHgM13D3bJ SEkft1vLUODjJM6S8gQnDHNR+TyJcSLMFl5UOcmmJTmpN2JXBx6tc7dI0LPyeXda3ajz GkTo7t+JcisqbdMam4uKUUyZ5eThel6ny+OFdcy2Js3KVxwRlF+oGcxvsKx4LgWBP2vl gYCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nNT2/tTxlFmIxWwqgo/0XCM90wCyMD1PzlNkeutky8A=; fh=4ns45bZfrwFdXPgeQN3ffYKcEqbNQsKKKh0jYm6xn10=; b=r7vSE/5L8xnDgZGI9vp6VkhntbQVVWpXxjxrcXxufs8ziEdvGqFtmzjAr8qix2Kelj THGlglUuycMu3O+CFWcs1HIOAv8aHyt5JjJYGLITdgM2pa27ivYNwPVsBkdwGPUVRyrd DUN8Tbp1z45+gEO4P7l8/q/1X9b17VOfL7iRGTLN0ABN0+oZY5KJ+wgByuftFgQ07a6r i2JfljAaoK0RNiS5DfXeFftYVwBa0AICcFnEX5NW0ys+ZY6sQX5fkB0UEz714fT7tFpv XKP1vqnx+L/FKHgVvzJqX1+I+hXlQVzYovOSMcSrPGr8czx49kOvP2qCV2Ye6DPI9e4l kTsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=OUHULxWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j191-20020a638bc8000000b00578ccb95206si2805958pge.745.2023.09.21.21.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 21:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=OUHULxWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 67F40832C6AF; Thu, 21 Sep 2023 15:56:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbjIUW4C (ORCPT + 99 others); Thu, 21 Sep 2023 18:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231719AbjIUWzp (ORCPT ); Thu, 21 Sep 2023 18:55:45 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B551FFE for ; Thu, 21 Sep 2023 11:56:53 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-79f8e4108c3so26697639f.3 for ; Thu, 21 Sep 2023 11:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695322613; x=1695927413; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nNT2/tTxlFmIxWwqgo/0XCM90wCyMD1PzlNkeutky8A=; b=OUHULxWh2Rsisvlc484pzdxDO3XnRsvLP9hIpA1rH553W5M9dhvlj7k9R1ghaKivcB ZTe7XEGQ0OR46OPi4uLjIrFPRR3BD/VB1XEELeiGxG9CWC3tq1LifIToHkV3YPtdd4fN 8h9i0zMutTvAFmdOzfFNiNH/H4gJRdR7y5e+wjyTcFEv9CSDPd2ri+tYPIwtsvYjjiyF XiLdKLE0a9x+WyXDKWshpNfwLeLN/4SLQTB1JPPNiZ8tVoSDP8Xs5t9aZF3n+eWmAJJZ 1zPvK21HbZmWIOgJOrDyPa9RD4qKaUoZFiWvFTPt1LZK1s7db1PLmi0idzT7VIiRMLbg ZhAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695322613; x=1695927413; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nNT2/tTxlFmIxWwqgo/0XCM90wCyMD1PzlNkeutky8A=; b=K02lkYT95tzmO+572WnBZKefHG1TqXDqxKpiP5uMg+YmgCmGVm6JXgZ1uhqrmwBT9F oq7B20+Mhew59BQZhFWpYHMgeqCqj1jZs6200E1ZKJ1zsyPNJpaOTziWlyv45XeK3Eo/ CiEtYKINVD/SBvZEVHMFvFzInNq99mAKUH3DtZOYIXmEfrYT59SVrv3QwexiZwUjJVR9 K5E7d3Zlad2mN8pyeNwv2atLI8BMK1DZ/7V1xgSyx3FmwLZ8h3LJMf1jXAJ61Iq61212 Liykfu90hqvKeF4fcQ2gs12xU15kYYJaK1Lc3zQ4UrbOZx4cafkUCNL9BRdBZvXwi6fO Vjrw== X-Gm-Message-State: AOJu0YwP4bbHnXgiwu0KvPS/lTurqDiZD0on6HjvCWanf5l2cX7q6hJn EUDj4ope2KQ8jgKlsSVb/sttcQ== X-Received: by 2002:a05:6e02:1302:b0:34f:c9b4:5f9c with SMTP id g2-20020a056e02130200b0034fc9b45f9cmr6008080ilr.31.1695322611693; Thu, 21 Sep 2023 11:56:51 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id y10-20020a63b50a000000b0057412d84d25sm1649420pge.4.2023.09.21.11.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:56:50 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qjOr2-000TTV-F8; Thu, 21 Sep 2023 15:56:48 -0300 Date: Thu, 21 Sep 2023 15:56:48 -0300 From: Jason Gunthorpe To: Tina Zhang Cc: Kevin Tian , Lu Baolu , 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() Message-ID: <20230921185648.GY13795@ziepe.ca> References: <20230912125936.722348-1-tina.zhang@intel.com> <20230912125936.722348-3-tina.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912125936.722348-3-tina.zhang@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 15:56:04 -0700 (PDT) On Tue, Sep 12, 2023 at 08:59:32PM +0800, 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(-) Reviewed-by: Jason Gunthorpe I would order this patch first in the series Jason