Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp843756rdd; Wed, 10 Jan 2024 00:48:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTEyS5xLuNqcWT5TY6KgJ3x31odq8JEferWW1QcXrQcP7E7As58/gN+VeV3zJ4o+FgBtKt X-Received: by 2002:a50:a40a:0:b0:554:1e3b:a616 with SMTP id u10-20020a50a40a000000b005541e3ba616mr251562edb.43.1704876486900; Wed, 10 Jan 2024 00:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704876486; cv=none; d=google.com; s=arc-20160816; b=0iEcGta/wHbDDDuu5hgXrZBTKwbx9TrNZ2kmOsduUb57/7j/O/9Ghy2UQGJfe89+lG dAiio4LvkMv3g2DEZfppLinEFFI4CJcG2bYe1Tu5FaEfOPtnQkl5TqBZY+z2/gNdCgsj 3pyQSENUEcji+kOVeS++JJLkQ2FYjepGigPnWbenahG3qBNYINri7+gBQHv8PvsTMVcQ fgpQbbu3XWoBw4MrIj9U2al1vkjsXcNNOQBaRw1c5cS+fi/ZBToV6zeu+0pVeUM8LYrz sNMbouOsxoYTRgPqAuq8XmMnB6cP56SCjTgdsWnbb2wFBQF3w8yPNl0ZZ7VDzgPxtfQv wOwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=hBm0hD/3+RmxqX5cybqT/b6R7OoWnYEMkCL3+IXVHoU=; fh=o21vhqUckBhZPB0tnLFE8x1jjJWz7Scm2klc6ZpXYNI=; b=k0lqaGp1EMSIl1A8KZWBrEcn5cRp+7xaqQO5mQx4p4cOUdkiBWb7bI39VW1yDfhw/u pAHoaM7QQwnrCRzQINlwHsDSto97DdJtDZJRtII5SEpKYsgou7pJZmh5H4qLz0VnnKPJ LAhilHrRZvhqFMfxt4CYbq0U2cGSs07mmrhh0JHzgbKXkU9nHyGmbyioRhPJAzrGELrb eGbYUTbqm1Hs7p2VKkJ61r514vK74PTpiNWlaJ0m+R0EhcV4aAW20L6nmIa7GgF8auwO ZJoaLXzVUIPNm0hPw7KNRmAQBlD2NXJAlJTussN+GuDV2n972dxwongokhD5Yk8+0+7L VRIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IxEaITTX; spf=pass (google.com: domain of linux-kernel+bounces-21862-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21862-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dz8-20020a0564021d4800b00558542a1d77si450460edb.271.2024.01.10.00.48.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 00:48:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21862-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IxEaITTX; spf=pass (google.com: domain of linux-kernel+bounces-21862-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21862-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A31CD1F2621A for ; Wed, 10 Jan 2024 08:48:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2860B3A1BE; Wed, 10 Jan 2024 08:47:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IxEaITTX" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 A0D7B3B187; Wed, 10 Jan 2024 08:47:53 +0000 (UTC) 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=1704876474; x=1736412474; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Hje+oh1f6Ond+bPDUXiY/R1MUpvhv24EHAttcOoZil0=; b=IxEaITTXmNKg8KXA6ofNVnG0Kp1ZCF2vqN1av2ejyM1IENDpyJ2U8uk6 qdSIPFzkQhGK9sYJ8GlPGW92q9gDu8Cxhjw0GDlQIoJv4zc1vbF60CY2J 2uQQel7qla/r/ZURoeS0+aqVIM15r1W44otNI68BdQ991vieYELlAmMKH nrOHO1IU7UKM+/HEbtCJh9D1FQ9SQlZOsH6y1b1Jgvi2C7Wy73h57sQnb DAIiZzArMvTpI/CrXryws7k9NLj2nYqBjRKN8g4kTXgKA5MngviZMEY/s N8mGp2C8uBVSQLJPWxWmEk5ZuIJ1u6ZzrNHqU5cBzelMaEmdKE58RY8j1 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="5539065" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="5539065" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2024 00:47:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="1113378098" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="1113378098" Received: from zhaohaif-mobl.ccr.corp.intel.com (HELO [10.93.11.157]) ([10.93.11.157]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2024 00:47:48 -0800 Message-ID: Date: Wed, 10 Jan 2024 16:47:45 +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 Subject: Re: [RFC PATCH v10 3/5] PCI: make pci_dev_is_disconnected() helper public for other drivers To: Baolu Lu , kevin.tian@intel.com, bhelgaas@google.com, dwmw2@infradead.org, will@kernel.org, robin.murphy@arm.com, lukas@wunner.de Cc: linux-pci@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org References: <20231228170504.720794-1-haifeng.zhao@linux.intel.com> <8250acd8-4013-487d-9b31-102334ff316a@linux.intel.com> From: Ethan Zhao In-Reply-To: <8250acd8-4013-487d-9b31-102334ff316a@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/10/2024 1:25 PM, Baolu Lu wrote: > On 12/29/23 1:05 AM, Ethan Zhao wrote: >> Make pci_dev_is_disconnected() public so that it can be called from >> Intel VT-d driver to quickly fix/workaround the surprise removal >> unplug hang issue for those ATS capable devices on PCIe switch >> downstream >> hotplug capable ports. >> >> Beside pci_device_is_present() function, this one has no config space >> space access, so is light enough to optimize the normal pure surprise >> removal and safe removal flow. >> >> Tested-by: Haorong Ye >> Signed-off-by: Ethan Zhao >> --- >>   drivers/pci/pci.h   | 5 ----- >>   include/linux/pci.h | 5 +++++ >>   2 files changed, 5 insertions(+), 5 deletions(-) > > This should be moved before PATCH 2/5? Otherwise, PATCH 2/5 couldn't be Seems the order was mixed when send-email was abort by network connection and sent again. [3/5] &[4/5]  goes to upset.  though the subject order is right. anyway will resend in next version. Thanks, Ethan > compiled. > > Best regards, > baolu