Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1729928lqg; Mon, 4 Mar 2024 01:45:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVNSIngfiGF376hLrvpkf88pWwXORnx1dogR1S4y14yw1FuoLMrhUcunVOcYo+qLJy5xEEDklQa0Q6khApHfgA1J8iQSY8rmtFGpsrzpg== X-Google-Smtp-Source: AGHT+IEAawJwLdHlcWPkTvL1FysE2BHQ67Ufr4hKVfYo1jiCduIxmZ6sqIxGyMYcDXX6RndUbtQz X-Received: by 2002:a54:4704:0:b0:3c1:ee6f:cd17 with SMTP id k4-20020a544704000000b003c1ee6fcd17mr2067052oik.2.1709545508806; Mon, 04 Mar 2024 01:45:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709545508; cv=pass; d=google.com; s=arc-20160816; b=IqIPxQM51dlC7wQOD1bJZcxsxtVST9e5yQ/jy8UIT+5uWAQT6eAkS7TZDtvmuNl4lt KoJ54G/nNrgIM9K/+4OZzMYS6kZbn5J1Q8G1aTzx8h6DDkae4KT7Q3MuMYBUM0R1UShQ Y5iuYOx70OWxHaVbe6CvUY3VoR1BDQzLtqcgnKzvAhP5QTTw59dizaJdvrZW+imQ47G7 XEEpNWnM/VsCEHcalMOV8Kr3u10FdlENMmfdX5LV3Tpygu412wSfZ3vIn7ss28889Frq E67T6TFVd/+mZiyRyrFRQZq5/AbT7vhm4XD8vfGjGwqwDNcR6AhrSCqbguabBop7ckuZ mvrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=LODfIHLUA+HavmJbIjlSltoojXNZhSiQVoQDK7XME6U=; fh=0sytPK7UE4uOKw79i7j7Hu1zQGyv0/+63WV5KVQjwWo=; b=K0BDaslHueQy/uQIzdUEGPMjjZsmnL5ZcDDz3ck4S9KUWzMYZB0Dl9moPb38QUSPI7 awl5+4Ig7FPgc/cyQ17rgMBgxa1gGMWNvKZc1+CZS4bA/aR9XJfC1lDKK7dKXsZiNM9t QTvVooIPLnlsTZd0GlYNTyszozJ6YlQhSxiYtfp0OEzlHhrIYD4qXTjGOa8jw0Zp1RVN 1pYX7+q5vSAcQxAZwyuT/MTxj/uHZCT41bT8kbpx5+rQb+4GQoB9430o5PtHt9FwJzco RHQFg9RpYqfJpWvDzlSIbB/knMJfZ5wKter0ub7c+DiLFxCMhKB1nrJX1V7tQIUBXEcV g3xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gA8Dcpfi; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-90213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c189-20020a6335c6000000b005d92a3f1196si8055253pga.592.2024.03.04.01.45.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gA8Dcpfi; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-90213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 11594B20BFB for ; Mon, 4 Mar 2024 08:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E677C19474; Mon, 4 Mar 2024 08:39:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gA8Dcpfi" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57B0B171B0 for ; Mon, 4 Mar 2024 08:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541567; cv=none; b=UuP6oAHyuLp08gZSHPcpSGgzYDzSV25rYv4luQjLvW1exrIJKzJoGDCkI9DgRnb+cYd1eDPmr2tJCbXJlvoRn8xjSRC0PlAGwBe1prFdo0+v6G2hNFoq0Y9Gm74hBhlNHBNyajyCp8HNHtrCtoQpUBwmLLPA6AZ9Yz7HQMvtWL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541567; c=relaxed/simple; bh=tnbuylnWDXP+S1B3cukYKyI8V5xN6rznZpSCdmCUPNI=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=tERhXmp5hhZRhuatz4a+jYquINK7RArlAfmWPnWxDTrND2DxCvJfS562KT0O7M/zZYOphTunycHOsPduHdAN20IriUcDqIzbxMxtxc5f762sTe+o4q3MPhiLi1X4PPZLuSbssHxQnVMEhRQ2Sz1Ou61F3z1Nq9qHq1qLI7iwVyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gA8Dcpfi; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709541565; x=1741077565; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=tnbuylnWDXP+S1B3cukYKyI8V5xN6rznZpSCdmCUPNI=; b=gA8Dcpfij8s3uzxFHKp/ghSFrkmgsM1eybhBMyZZPn8Intp7XAP0Z1BJ KGEH/6GOViJrtnKJ/oB2bq9WBhHeYSDtK3aUDaHLLlGwgFFKE/P/xiaMZ U8hWDhKT83l51lPusApe+iLItVse74BOHT4/L/hd1hztJp7F/G9gLAhCz RYaMnQ4OUIfNTF5xJzmSAp2gMY2GufSAXb7Jj+lUSudzgnFLm4xyeRYW0 aU1cmP3LyPO/Wo1Iz+sdy+KIsWOjjvIuJT8vsBlEgaj9owvt0HIGqQxZK s97WPVpw/O5JWMT36gYm6m5xZZ6/beoyPPDSDINKgSAjuXNhsSaZT8ftT w==; X-IronPort-AV: E=McAfee;i="6600,9927,11002"; a="14664908" X-IronPort-AV: E=Sophos;i="6.06,203,1705392000"; d="scan'208";a="14664908" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2024 00:39:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,203,1705392000"; d="scan'208";a="13609098" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.254.211.18]) ([10.254.211.18]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2024 00:39:17 -0800 Message-ID: <31054869-9373-481b-a002-5200e26a7bba@linux.intel.com> Date: Mon, 4 Mar 2024 16:39:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 3/3] iommu/vt-d: Remove scalabe mode in domain_context_clear_one() Content-Language: en-US To: "Tian, Kevin" , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , "Badger, Eric" References: <20240229094804.121610-1-baolu.lu@linux.intel.com> <20240229094804.121610-4-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/3/4 15:53, Tian, Kevin wrote: >> From: Lu Baolu >> Sent: Thursday, February 29, 2024 5:48 PM >> >> @@ -2175,9 +2175,6 @@ static void domain_context_clear_one(struct >> device_domain_info *info, u8 bus, u8 >> struct context_entry *context; >> u16 did_old; >> >> - if (!iommu) >> - return; >> - > is this check only relevant to sm mode or should it be removed for > both legacy/sm? If the latter please add a note in the commit msg. This kind of check makes no sense. I didn't take it to sm mode. So only need to remove it in the legacy path. Anyway, let me update the commit message to reflect this change. Best regards, baolu