Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp273714lqs; Tue, 5 Mar 2024 01:22:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvaGUKdotPk5d7A1qt+LXRH6/BGIKBMTeAVAwoWtwUYaby77Q52wT0f51INaeWwMTLhL/xdgPtgfUVN+biRKZFt2Bl7tHzF7ed0+uVCg== X-Google-Smtp-Source: AGHT+IE4z+56G8uN/c6v8RpS39OY8tGOG6CKjsvXJZF+U/4Zo1WuoWfF1dhHXbhSiBWdUm2vHv0K X-Received: by 2002:ac5:c953:0:b0:4c0:2bdc:250f with SMTP id s19-20020ac5c953000000b004c02bdc250fmr925989vkm.7.1709630520709; Tue, 05 Mar 2024 01:22:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709630520; cv=pass; d=google.com; s=arc-20160816; b=hGU4jRssbkagIr7ShPHAWwoj4hItdf2UK9T0oj0zw+gnqa5+L8dMersBtgCDAT3m6O mroLdiihAzhezglC9wIqQ4K6cRPWF3hwxat8C3ElbAjKgSyT5Fn4B7WjI91HCJ95UvWn I5hAgyrl6fZpA2XRSedcNngXf+t9DiYjZsnEPAzzSCDndZaO/QrCTH9mYMoNvDFBVMA9 j/PIG0vxxPDlLXpOVqeiSkbzVCK9UN4PrTYClLIwE2RiP8NV70wDHWOY4UWABEsfI9s1 WL8/884IimiXWl9s0M/sNEtDBtha4w9GC+TPDdX1QFmVqWEf5XR8IppKrtGqb6Dbxhtu IB/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id :subject:cc:to:from:date; bh=3/AOn+sluJGp2rzfDtci7Ne1g2ji2VLB34N1EPxZanQ=; fh=xfzRCIplW/0zNrrUdznmpmzHWosSu3MOZME3ONgceRU=; b=ZQ2pL+WtElCN3MOFoegAnbQFIOJ7cpG8uB2zX7RWbrlFMDtuASi5FQvGeweSRcChaq bVyyGutIa/005V+w2iRIh0W2BE6lmU0OQTNIHjP6ofnFcn7gbaloeYFogQV9lv401NcJ bUPZrRGA20wwQtDJDKClbUXWhFwv0iUZ08NDlgb+J0B7JAj+n4MipXH9UtwHZM0ZQ5PA 0h9Ggi16s60ztY8fCdvTdc+uDvPTJ/+c6DHfHz+HDGnFXYsawOxuvz0Ht+MKMcZu0Hcx N8NonXSaaz/YmSqC57Xi/DKh8jWDQx4Xjh1GxZtY4vAxTQPqW5sWId1WEwl3YRr8uPuz mi+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-91992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91992-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t1-20020a05622a148100b0042e809d62easi11859575qtx.307.2024.03.05.01.22.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91992-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-91992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91992-linux.lists.archive=gmail.com@vger.kernel.org" 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 4EB9C1C2224A for ; Tue, 5 Mar 2024 09:21:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A8FD524D0; Tue, 5 Mar 2024 09:21:46 +0000 (UTC) Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) (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 1A27550A69; Tue, 5 Mar 2024 09:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.95.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709630505; cv=none; b=XuHn7VvYK9wvqeIWxbRsEFpYU1bk/f5met5b6XLkNbiiZ9IFQwZIm7zgzmaRkSF8qWTZTBcp2Ct1aMuarGer4oG3Fn0oBtCQiIY0eRNq9E2Ohd1iDUx21Qg5I5f0WqTsNqwF6HcvCR9ljfXUQFCtirgAcN1LwHd902wqxoorCGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709630505; c=relaxed/simple; bh=goZz1J7IgK9l4iO06JAHMIsU18UR4FOYBXKcpYKVz/U=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=LRk6ULayo9kY4LxIXjBjMoglnXeyMFMks2k2Jd5b2V3UIhbVXrmXSnFpsxVk0I8Mh3xVuZmxbFVuuttXr8kK0zeYkrL7zZd4bD6NJfpDRg/TSRMdOBpYD0VtG79DzyJetM8zx+Hh9lThcWHUk6U06apR6WLhF7QYHu7VP+/Gh0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=83.223.95.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id D748930000D0B; Tue, 5 Mar 2024 10:21:39 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id C910B2E204; Tue, 5 Mar 2024 10:21:39 +0100 (CET) Date: Tue, 5 Mar 2024 10:21:39 +0100 From: Lukas Wunner To: Ethan Zhao Cc: bhelgaas@google.com, Smita.KoralahalliChannabasappa@amd.com, ilpo.jarvinen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kbusch@kernel.org Subject: Re: [PATCH pci-next] pci/edr: Ignore Surprise Down error on hot removal Message-ID: <20240305092139.GA28325@wunner.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) On Tue, Mar 05, 2024 at 10:09:20AM +0800, Ethan Zhao wrote: > On 3/4/2024 7:58 PM, Lukas Wunner wrote: > > On Mon, Mar 04, 2024 at 04:08:19AM -0500, Ethan Zhao wrote: > > > -static void dpc_handle_surprise_removal(struct pci_dev *pdev) > > > +bool dpc_handle_surprise_removal(struct pci_dev *pdev) > > > { > > > + if (!dpc_is_surprise_removal(pdev)) > > > + return false; > > > > This change of moving dpc_is_surprise_removal() into > > dpc_handle_surprise_removal() seems unrelated to the problem at hand. > > > > Please drop it if it's unnecessary to fix the issue. > > To only export one function dpc_is_surprise_removal()... or I have to > export them both. > Seems I should keep them intact or refactor them in separated patch ? Please keep them intact and make both public. (You're not "exporting" the functions, there are no modular users.) However, I doubt whether you need to respin this patch at all: > Reproduced on "Hardware name: Intel Corporation ArcherCity/ArcherCity, > BIOS EGSDCRB1.86B.0107.D20.2310211929 10/21/2023" Eagle Stream BIOS, isn't that an Intel-provided BIOS? Sathya's comments sound like the BIOS is misbehaving. If so, then the first thing to do is ask the BIOS team to fix the issue. We do not want to pollute the kernel with workarounds for BIOS bugs that can be fixed in the field through a BIOS update. Thanks, Lukas