Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp101568rdb; Wed, 17 Jan 2024 19:20:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5dmH7zlcBfo1LTv77Nfcnez+kGBcfeYHtnTVpLEFa+g9UyZ9Sj5R0Ec1A3rppBY3QCnF6 X-Received: by 2002:a05:620a:e1e:b0:783:4590:d2d9 with SMTP id y30-20020a05620a0e1e00b007834590d2d9mr186186qkm.45.1705548012522; Wed, 17 Jan 2024 19:20:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705548012; cv=pass; d=google.com; s=arc-20160816; b=epMHGeVenJ/RzBTJgBVjqCS5tIFe0LBE9hB2vTbfDlJkR0EhwfDp+Kb8TDqVwbzGkW MESiOzCykcl002LZtAH1sH9TzyRafTxCLB3SWHzK0vBTfeqSX3ACtyZphWZsDUFMZVoY YuHT0lZmnR/xtMR66c5Gvl/pdBtiMDYRIczwiwYJdVOMeot2K8oarEztRvI/XUnvClVC hKu7VDhdW04UvhYTMgkB5T72QgHlP05+mAVYyEI5RXTfq4qkETNGWXp7RQlW56QKqP8W hcqxWn24uoBXRgvk7JunapMFkRO7tylwVpJpmVCJ2pHbEAxEJH3s73sQrBhnz9JyK0+1 XT2g== 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=q/hXjsYDiBXwvKqb0cKaBcu6i+E10PtDLq8h9PRndNg=; fh=zw0Oa20iAp3YmN+cf7yM/4gaqNNqI0hGhBN5fNR7xEY=; b=d2GtMwYEa8lcD2KVkhHkIo2XZpsUjkw7rG2YOqtcE0FM7UXRPFa8zj1vSkyipdvg0I AryQSy4CuKaZLF3gwbD3z/xf4/KcvYQFiJx7t+Vh+BuZLQwsy7AFQ/YGHX9D08hJtrSB Lolm6qqy6JurecWykO343LmQe0PdZFJIIPW/2XsDQ4qS0GkvD9Yqbl/3DPz+SrNjhlQK JULyYzFJVPVlmae/3Vg5jDTK8o2QRRS9hksKOcM3Xv/B1CLxy6cfxphAXuZ25rN2t2Md rRxNb82tMzwmoN5bfE12t6uTevwwcL5Ag7kMtzzSqd3iWw2vVHHVgagcizW5fsMgT+9k Wjwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U17CO2b+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-29602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q4-20020a05620a0d8400b0078179944afbsi13769271qkl.154.2024.01.17.19.20.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:20:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U17CO2b+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-29602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29602-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E0791C21AFA for ; Thu, 18 Jan 2024 00:52:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E913187E; Thu, 18 Jan 2024 00:52:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="U17CO2b+" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (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 F2958185D; Thu, 18 Jan 2024 00:52:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705539142; cv=none; b=tahq2OIT2b4znSUfnoDwijYLxT+pRzuq/KB/HdpexjkF+WeYMJZxaEsaH5GfGgl6S08ZcuQt2+SUVekPLD0R4D+v+ZdhkHDpNULkUSFW0sMI+sPZHiGtyqjumrzvMwL2kGRjmVCJPNNNsJgU98PPUMa/6dsw8urXNdHBKzDv3RE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705539142; c=relaxed/simple; bh=FirjylFd2MCTFO58V4vn7pDh9CrJrYnIJwrr78O9IR8=; h=DKIM-Signature:X-IronPort-AV:X-IronPort-AV:Received:X-ExtLoop1: X-IronPort-AV:Received:Message-ID:Date:MIME-Version:User-Agent:Cc: Subject:Content-Language:To:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=cgt/Htnb2p+g/MftM7jDS7Nxt43fMFatNwQXmjCh04bH70g+k1dxajif33HRZ2+1kmpitEALr2VfzhsVpciMinqUJjm8uuZ9yrPKOfozhT9No8qQx9FQGoXzXjYAPi1bZ455zoy2ExD05eroWUVGVSNvVtwkh0oud4H++P6wDn4= 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=U17CO2b+; arc=none smtp.client-ip=192.55.52.93 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=1705539141; x=1737075141; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=FirjylFd2MCTFO58V4vn7pDh9CrJrYnIJwrr78O9IR8=; b=U17CO2b+PAZoZLRfRXr5ILSxGFwyOyAj2MFpqs1MvTBVQsFoAvGFP+Yu kYYuKXXsDB1h7txbiOU3zAQRZJj5QO07hV9S9sjsLom5KORJXUh3+GspM nfNcKJMAYK581U7/008Ou7/VLyrWJ/5HlLjITjeKUv7boIaZe0vseh4Mw bI5Jl/5mPqnUur8Rzhfd5v3dzM62l5uvgjavOj3m1yYepG3y17hvVR89S e1YXexN/6yatSE0nV4Uy0x5ROymB+3DrpDTUCII3m0MUm/TScAt7xfV/C +6pMdiYgfCYZ38dx/tOdtJD11B7/Xe6wvyyDbGalBK7myMbtqwl/8M53y A==; X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="397467481" X-IronPort-AV: E=Sophos;i="6.05,201,1701158400"; d="scan'208";a="397467481" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2024 16:52:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,201,1701158400"; d="scan'208";a="186466" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orviesa003.jf.intel.com with ESMTP; 17 Jan 2024 16:52:17 -0800 Message-ID: <5a9c38ec-1dc2-40d3-99eb-02b87be660a6@linux.intel.com> Date: Thu, 18 Jan 2024 08:46:50 +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, linux-pci@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v10 0/5] fix vt-d hard lockup when hotplug ATS capable device Content-Language: en-US To: Ethan Zhao , kevin.tian@intel.com, bhelgaas@google.com, dwmw2@infradead.org, will@kernel.org, robin.murphy@arm.com, lukas@wunner.de References: <20231228170206.720675-1-haifeng.zhao@linux.intel.com> <1a2a4069-c737-4a3c-a2f6-cce06823331b@linux.intel.com> <3ee904e9-8a93-4bd9-8df7-6294885589e4@linux.intel.com> <42f7848a-0262-4871-b5dc-0e87beebfd11@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/17/24 5:00 PM, Ethan Zhao wrote: > +       /* > +        * If the ATS invalidation target device is gone this moment > (surprise > +        * removed, died, no response) don't try this request again. this > +        * request will not get valid result anymore. but the request was > +        * already submitted to hardware and we predict to get a ITE in > +        * followed batch of request, if so, it will get handled then. > +        */ > +       if (target_pdev && !pci_device_is_present(target_pdev)) > +               return -EINVAL; Again, we should not ignore the error triggered by the current request. Do not leave it to the next one. The WAIT descriptor is a fence. Handle everything within its boundary. Best regards, baolu