Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp792333lqs; Tue, 5 Mar 2024 17:37:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0YNp9DMFcTj81pPaQxJD7u0YmMuK367W4mYaG7YbLUP+bIKxHsdNYozYam6PE46fV+ZdZwhEmV8TWWTLZPkkRdtTOcnDz6naPKv7Gnw== X-Google-Smtp-Source: AGHT+IE+6iLRE1126Cvg4VrWhYk6e4HoZGdFeJUOFCHGyvSznr9LirXWMc9vadtEOkZLNW664xfi X-Received: by 2002:a81:9c54:0:b0:609:6c89:2e3e with SMTP id n20-20020a819c54000000b006096c892e3emr14600946ywa.24.1709689041010; Tue, 05 Mar 2024 17:37:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709689040; cv=pass; d=google.com; s=arc-20160816; b=MfXX7ahe/iQCRxVJHythZ/6CI+jeDXFBqBfM8WxJc5od0cedrLFGIsXHOFPJu/xwHC KK18BHRl90fLEzvkwD1CcGqTUwkuza7Arks3eDeYjT/8xMlPeJ3wZi8wDZnKzLgWwBoq v3lM4D5NqGf/goKdCjqFY8I66KJZ4g0kHN9gyzyuo+FTQZVQ6se1lSKE1r6FV62xDMSc u8NF0qeDnpK24P35eOwJ7tdRO1vyaDr189mcTEI9z44pI0wj/hn9xiLix3UkVPszqcDu LXH7ErlkXIHnapcEUUa7L5PR/e6t0wbk7gn4CGEgJcjbhqL30vSCUjaCksVIM0EJu/eC kCRQ== 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:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=jn/L8omLjhDl7IJB0gflsnwY6Dbx76gMn0d63B5sUxQ=; fh=heiOZo4ica1PReK33cnyt/kT83/dd17oUMijKM38T7U=; b=GZlDFJQK1VyuIu+NSCYyIjbjK1TgVKUBOXGKok4dZ6p/SKH1iZpD6P+fT/omJBLgB+ gfsHlpRnDrKpJ/BXdcCIDWlJZwgJzeuqDDvf5xtH/uYhAVlc+A6Z8vmX8b1oqwPst2I4 Qz3ynIDbHQ1uTqWwP/UQ843MoB+h9hppeZEILf1TDrD9oKKftx1+Yp5iAbwptdS6Nx0O pvlZ4qukQwL6KUV4ns697cC0vgmRgjNYFFKy/zPFQ+1cj2IEpJeU8idx5M/G0k1SF0x4 HUMDR8/18fkwEIWILSpUfsTwNAtPLSGbEUriK26k1lXvfq9nWfw7L8u5fasLmQcKgpyC 4AjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cto8kBu8; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-93199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93199-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g15-20020ac85d4f000000b0042f0390a959si760002qtx.300.2024.03.05.17.37.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 17:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cto8kBu8; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-93199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93199-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 B9B271C24B1F for ; Wed, 6 Mar 2024 01:37:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A29EA846B; Wed, 6 Mar 2024 01:37:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Cto8kBu8" 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 56B70ECF; Wed, 6 Mar 2024 01:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709689032; cv=none; b=FyWupOAJYw5bxIqIDpzZU/fzAPivFekc9lLzS8WLcC8IU0hlYU0pOCfVz6+jlzsDvPnfBKhnt6s6hkkiluucoU/wvr1Wi6RZyH/oHiKRsAzQz98TSWgSnpy10elUygxd9JikGEx39CLf+ZV9vAwEp8fQ0nHOaZ3Ig7KLJB/X3+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709689032; c=relaxed/simple; bh=nNCPtCjeN4ZD5FeOywBZs3lEGyACtFVhReOebhXpM4M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LKiSvVo/Saae16h/XWHIOhTGbQrIlmIv58li0eyW+CiAedDkqWjZDLE+/FDpJYSnwxGrrMMlfuLyt62Y2NAGESXd8YwY7uqwbZDXfTbvR3S6QaNiRQULxCcVAIB7nQldZDBGm4i2DKy9RikiAmCPT+H7hp1isZwUoLcGaG/U9PE= 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=Cto8kBu8; arc=none smtp.client-ip=198.175.65.13 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=1709689031; x=1741225031; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=nNCPtCjeN4ZD5FeOywBZs3lEGyACtFVhReOebhXpM4M=; b=Cto8kBu8guHHeJ0pvZgsRijvZu5BS376D/n6jIJkBblRs2CVqNchY3jM yhBuAc0TAptyWFI0yneXfFK+czYap9CR7d9Q/hJ21/ioe5sdRTxKxtwVp /jfSAN6XO7OJ9AaZ4UHrwf7NXvKrpNN3EmmJefv/TH+xGLlDQq1mduppI 1w0G66gLcAuvfKUIUtkjE5JlwOVPQKX4xGgO/5Pv0TfOu+h5KlDlfdZhx /ru5fQPR7rLiJEvfvhIEY10UCKhFaMV1W3DU7XJPf/zFW7ZNw0DfCSF38 u2hwlWC4B7n1k6tMp4ZMIxprPUgRjayzu4FedwUiabwttbtmAI4dBdqN5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,11004"; a="15425596" X-IronPort-AV: E=Sophos;i="6.06,207,1705392000"; d="scan'208";a="15425596" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 17:37:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,207,1705392000"; d="scan'208";a="14146701" Received: from zhaohaif-mobl.ccr.corp.intel.com (HELO [10.124.229.115]) ([10.124.229.115]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 17:37:05 -0800 Message-ID: <4908a5ab-dc07-41fa-bdf4-36b1f3f516e2@linux.intel.com> Date: Wed, 6 Mar 2024 09:37:01 +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: [PATCH pci-next] pci/edr: Ignore Surprise Down error on hot removal To: Lukas Wunner 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 References: <20240305092139.GA28325@wunner.de> From: Ethan Zhao In-Reply-To: <20240305092139.GA28325@wunner.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/5/2024 5:21 PM, Lukas Wunner wrote: > 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. Agree, BIOS writer finally was convinced to fix it in BIOS. no need to respin. Thanks, Ethan > > Thanks, > > Lukas