From patchwork Wed Dec 13 01:59:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 121706 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4895871qgn; Tue, 12 Dec 2017 18:13:38 -0800 (PST) X-Google-Smtp-Source: ACJfBosmL4iXjQWerOSuTNgLfJsxuz1iCbcC9LJEDcKr7MFTgisKo1c3o088unLMx/r8soN5IpC1 X-Received: by 10.101.77.201 with SMTP id q9mr3844553pgt.226.1513131218894; Tue, 12 Dec 2017 18:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513131218; cv=none; d=google.com; s=arc-20160816; b=gjl1CoOUtkNUWi8mB3nhOdoo+6P4vQCfhOoYn8v2nP4cmu/3Yxea0B3DXtkhtdLx62 p2mUzN79rXRyD45gwYvjZz12OFrSl+ZCKbYSSl+EB3nrSKLxV2LQdP4eE7+RuPLdSlmo ozDrxR+CjNLI/FWlBnH/sck2WFR7NpIIe2P4ecJ433VLWLSSVZPeHzo3YZVp1MOM1jzW hg1CVJZqJIb9AWmOxFGqTp94lAJC+yG1UVYi1vpfu9tfvyhcxJsv3RxzXIm/q6Q2DAnS +9upOfwD3EMkGhpGckl0LKGsKRkLWsTZ61vBIt5PwmCClHXx6QwPFaTih8Wi02nwcoJV dNHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:cc:from :dkim-signature:dkim-signature:dkim-signature :arc-authentication-results; bh=k6HbLyaeoFanRzhDaybh/wME+OM8bZW5AEqUh4Q+Q9U=; b=l6gj2c3Y2n47Podc/9LYN5x3Opd1gpvyM1oRPI6LUArVl7t4VPg+A7l3CAYXExmJ9r HxQ/FXgOk83eFVu3nWX/q8cOOUOZe1XnajIgmh6o4leUtP+qVHdAFaqSJZZ1VZ6ECCih 642al62X8Bf/H2woAlHzHUgSYb+6DitHFNSf4zP5TvGgm1+2h6TE1fQH+NKVrVhQNDw6 koXqAyCg2zSYzHaLY+utyFH8mq/T02clacUDbo24jfnq+nKKUUsJGxh+pc2ai0nAwdKm /PcAUIGlGjwM6+D72V9p0kBuFkZ7kK7l3qtTb7uoJ85FR2JACndL00o2Hg1wBPFYL4Vr FeDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=BI4xN+/5; dkim=fail header.i=@verizon.com header.s=corp header.b=Gfdl0G/F; dkim=fail header.i=@verizon.com header.s=corp header.b=UegiXwNX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n59si432706plb.673.2017.12.12.18.13.38; Tue, 12 Dec 2017 18:13:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=BI4xN+/5; dkim=fail header.i=@verizon.com header.s=corp header.b=Gfdl0G/F; dkim=fail header.i=@verizon.com header.s=corp header.b=UegiXwNX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753826AbdLMCNf (ORCPT + 11 others); Tue, 12 Dec 2017 21:13:35 -0500 Received: from omzsmtpe03.verizonbusiness.com ([199.249.25.208]:59672 "EHLO omzsmtpe03.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753734AbdLMCBL (ORCPT ); Tue, 12 Dec 2017 21:01:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130471; x=1544666471; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=k6HbLyaeoFanRzhDaybh/wME+OM8bZW5AEqUh4Q+Q9U=; b=BI4xN+/58DA0ZKdRKx75cRC9UkAFZsEvE0QeMOxH0Ov0ZcAM1ys0mT+C NbZrjVlc0C3HFrTK8lBgSq7qGYcCVvKsptH0R9cHr9fi+9EMDO7fVIke3 Ei2KwTMnitJDpDNbOgk6IfBxM8gEOtP7FT/FqO8b3TfnT4MzAWUUk0uSh c=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by omzsmtpe03.verizonbusiness.com with ESMTP; 13 Dec 2017 02:01:05 +0000 Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO atlantis.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2017 02:01:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130462; x=1544666462; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=k6HbLyaeoFanRzhDaybh/wME+OM8bZW5AEqUh4Q+Q9U=; b=Gfdl0G/FtRzFB23QQh5PbddWGnJTYAFOK+Ynf15sQk+Q/+BPyV3rFvjp dv9XFZv2N90k4Qod5ghG2TcabZ817tvzR5WAIeH6rG+rNR4yhrLgGRwND Alb71ZqQWDmGBzNf/J2V/DBf7Y/0E7b5WB8U/GDVdrEfc5hBuQAdLXdCT o=; Received: from surveyor.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.83]) by atlantis.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2017 21:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130462; x=1544666462; h=to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version:from:cc; bh=k6HbLyaeoFanRzhDaybh/wME+OM8bZW5AEqUh4Q+Q9U=; b=UegiXwNXSxDEPHHw/B15biCQolN+/0MTsAQfuvtcYXVq9OEz/EDUf2Ne kl412Htx7d/qS+qfGyHpVjdovgBiZO98hpaOFkItOyjrKw4DGwge/RP7e L1Xz2JAb5cEFoxkCVOePuNdzwxK/ZE/Qwydw3uO1ugA80uQM35p//nWTn 0=; From: alexander.levin@verizon.com Cc: Rob Herring , =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , "linux-omap@vger.kernel.org" , alexander.levin@verizon.com X-Host: surveyor.tdc.vzwcorp.com Received: from ohtwi1exh002.uswin.ad.vzwcorp.com ([10.144.218.44]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 13 Dec 2017 02:01:02 +0000 Received: from tbwexch07apd.uswin.ad.vzwcorp.com (153.114.162.31) by OHTWI1EXH002.uswin.ad.vzwcorp.com (10.144.218.44) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 12 Dec 2017 21:01:02 -0500 Received: from OMZP1LUMXCA16.uswin.ad.vzwcorp.com (144.8.22.194) by tbwexch07apd.uswin.ad.vzwcorp.com (153.114.162.31) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 21:01:01 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA16.uswin.ad.vzwcorp.com (144.8.22.194) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 20:01:01 -0600 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Tue, 12 Dec 2017 20:01:01 -0600 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 3.18 12/40] ARM: dts: ti: fix PCI bus dtc warnings Thread-Topic: [PATCH AUTOSEL for 3.18 12/40] ARM: dts: ti: fix PCI bus dtc warnings Thread-Index: AQHTc7X5DXKCfe7sCkCXWc52m2vm4A== Date: Wed, 13 Dec 2017 01:59:14 +0000 Message-ID: <20171213015905.7059-12-alexander.levin@verizon.com> References: <20171213015905.7059-1-alexander.levin@verizon.com> In-Reply-To: <20171213015905.7059-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] Content-ID: <5B5D258A358D3440BA431AF4B1B9A97C@vzwcorp.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Herring [ Upstream commit 7d79f6098d82f8c09914d7799bc96891ad9c3baf ] dtc recently added PCI bus checks. Fix these warnings. Signed-off-by: Rob Herring Cc: "BenoƮt Cousson" Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/dra7.dtsi | 2 ++ 1 file changed, 2 insertions(+) -- 2.11.0 diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 8ba02cb2955f..68053ce2fd22 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -118,6 +118,7 @@ device_type = "pci"; ranges = <0x81000000 0 0 0x03000 0 0x00010000 0x82000000 0 0x20013000 0x13000 0 0xffed000>; + bus-range = <0x00 0xff>; #interrupt-cells = <1>; num-lanes = <1>; ti,hwmods = "pcie1"; @@ -153,6 +154,7 @@ device_type = "pci"; ranges = <0x81000000 0 0 0x03000 0 0x00010000 0x82000000 0 0x30013000 0x13000 0 0xffed000>; + bus-range = <0x00 0xff>; #interrupt-cells = <1>; num-lanes = <1>; ti,hwmods = "pcie2"; From patchwork Wed Dec 13 01:59:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 121705 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4889906qgn; Tue, 12 Dec 2017 18:06:18 -0800 (PST) X-Google-Smtp-Source: ACJfBovHarCRhNmp3kVwixpmA8O7qCALd3HTqdnkZBRfCVL/vdzWPY35SEOGAkFBsOOsw1rRA+bl X-Received: by 10.84.240.193 with SMTP id l1mr4269621plt.240.1513130778466; Tue, 12 Dec 2017 18:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513130778; cv=none; d=google.com; s=arc-20160816; b=sLWYgTuc/uQkO8wALDE8P6RBoJoJ2/kOwXUtX1XITweYt2tVBTfqKmPy70s+8xJgFa pR+BN+MT568x3evdTC2xlcgzbGsDXxmiHOWzZ3XDoeLAv7Z4ov9fGhqbLQ8ucB5ad6cf CJBdikRneg1ZyTrgZTpSDEFXUlzfQDBvFsgwyeiHghnRtadf9E6BvIfPeXh5wP7hV8GQ WuKfuLfS8XpbGOLbvBKue/ev06pzONb06TpbJHtvXml/at9INBEm6Kc7anFDVhw7F3x6 s9NCXWyjLZXWU0eRqugQMjOyEFeVQOnSWQAuApKBPSUSq4z/2NrAbTzWqFbdHl4h1Gi7 tiHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:cc:from:dkim-signature :dkim-signature:dkim-signature:arc-authentication-results; bh=aTyJXBTHWAPp5Plk1j+41zIkHj2/dmFZMIHj/5K/VTA=; b=SsoMWxfAqUKpbKe2FIJSO2ILHJTtyvQ7k8lIZxDZ3qjeiZB+LECKOtrjvGGB+UVJFm BDivCbERWeYaz73AnjD/1wYpgG0IF6odBGy2urJ6GY78SX9eP1C6xLKnLByDijj+qpLW 9+UbKg+WPnrUqawK/to149VJxNDGUnKgn46U5LndFP0Fr9Nsm1RWHjY96BBhtQAlFPzc xjl2a0whTuCI7IdITofBGrhOmrbKaJAd9D/0jQLZv59KhPMuxD1s4onGOmXYWKjrFVqU jwRKpOx46QPu4B9JHslDQbMgJaCZWEpid+O5SKckNE6putprVKP9CH19uh6NhAA5B+kq 8Bsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=ByFab1ac; dkim=fail header.i=@verizon.com header.s=corp header.b=efgwrWWI; dkim=fail header.i=@verizon.com header.s=corp header.b=V8JN+/Nr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si393158pgn.718.2017.12.12.18.06.18; Tue, 12 Dec 2017 18:06:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=ByFab1ac; dkim=fail header.i=@verizon.com header.s=corp header.b=efgwrWWI; dkim=fail header.i=@verizon.com header.s=corp header.b=V8JN+/Nr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753769AbdLMCGO (ORCPT + 11 others); Tue, 12 Dec 2017 21:06:14 -0500 Received: from fldsmtpe03.verizon.com ([140.108.26.142]:6075 "EHLO fldsmtpe03.verizon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753616AbdLMCCN (ORCPT ); Tue, 12 Dec 2017 21:02:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130533; x=1544666533; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SiKXX91pFimnaxCplR8b51Ik3s0ES6AON+Sziclw86g=; b=ByFab1ac9+efHAL0/be2Ptccqpj5fPAX6cLxmr5QNlGJVwqE2ympLyTC SzQYqcp2qAP2EvjLQ2aM8E+qdWeLDNJ7HYUeh3MM0+LHvIK+xgpqgZE9f y6OIlbkXUXbvup1AwBYd8WCUHpNGQVLKCPDYgcr/d7MT7vol1RsCwqAlS c=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by fldsmtpe03.verizon.com with ESMTP; 13 Dec 2017 02:01:58 +0000 Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO apollo.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2017 02:01:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130514; x=1544666514; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SiKXX91pFimnaxCplR8b51Ik3s0ES6AON+Sziclw86g=; b=efgwrWWID7m9zVr70DUvC823xjyBbqRGZ8fabEQl1Wq7NK0v/WRbxM/c bWFjdVlr9ZYZ4FTfsPlKA3U4CM7pNqanLCFLTbdmOCvHe4IhbpStm7NTk p2E4s929p0sGUYKe9KzxsDWSZecjX9ITgHaT9MVtUe7bK73KnQmK6kudN g=; Received: from endeavour.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.163]) by apollo.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2017 21:01:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130514; x=1544666514; h=to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:from:cc; bh=SiKXX91pFimnaxCplR8b51Ik3s0ES6AON+Sziclw86g=; b=V8JN+/Nrh0DShdUTDqYY9qu+oSftwlYX3UGiYQelFQiD+NL0ALkCFk8b tLUGoeya9RDAM/uwyZ9ahzY1bWB+0+tvkQTJfAIDcbVMUyX6ZIYbmnQd/ eDpSo/7dVnGnvRYxYNNWep49xXsECiTxHgu2hZBls2nQljcZ+TtvszDkA s=; From: alexander.levin@verizon.com Cc: Gabriele Paoloni , Dongdong Liu , Bjorn Helgaas , alexander.levin@verizon.com X-Host: endeavour.tdc.vzwcorp.com Received: from ohtwi1exh002.uswin.ad.vzwcorp.com ([10.144.218.44]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 13 Dec 2017 02:01:53 +0000 Received: from tbwexch26apd.uswin.ad.vzwcorp.com (153.114.162.50) by OHTWI1EXH002.uswin.ad.vzwcorp.com (10.144.218.44) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 12 Dec 2017 21:01:53 -0500 Received: from OMZP1LUMXCA20.uswin.ad.vzwcorp.com (144.8.22.198) by tbwexch26apd.uswin.ad.vzwcorp.com (153.114.162.50) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 21:01:53 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA20.uswin.ad.vzwcorp.com (144.8.22.198) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 20:01:45 -0600 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Tue, 12 Dec 2017 20:01:45 -0600 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 3.18 34/40] PCI/AER: Report non-fatal errors only to the affected endpoint Thread-Topic: [PATCH AUTOSEL for 3.18 34/40] PCI/AER: Report non-fatal errors only to the affected endpoint Thread-Index: AQHTc7X9LfogNNxCv0eQ4Z7FMpGEcg== Date: Wed, 13 Dec 2017 01:59:19 +0000 Message-ID: <20171213015905.7059-34-alexander.levin@verizon.com> References: <20171213015905.7059-1-alexander.levin@verizon.com> In-Reply-To: <20171213015905.7059-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriele Paoloni [ Upstream commit 86acc790717fb60fb51ea3095084e331d8711c74 ] Previously, if an non-fatal error was reported by an endpoint, we called report_error_detected() for the endpoint, every sibling on the bus, and their descendents. If any of them did not implement the .error_detected() method, do_recovery() failed, leaving all these devices unrecovered. For example, the system described in the bugzilla below has two devices: 0000:74:02.0 [19e5:a230] SAS controller, driver has .error_detected() 0000:74:03.0 [19e5:a235] SATA controller, driver lacks .error_detected() When a device such as 74:02.0 reported a non-fatal error, do_recovery() failed because 74:03.0 lacked an .error_detected() method. But per PCIe r3.1, sec 6.2.2.2.2, such an error does not compromise the Link and does not affect 74:03.0: Non-fatal errors are uncorrectable errors which cause a particular transaction to be unreliable but the Link is otherwise fully functional. Isolating Non-fatal from Fatal errors provides Requester/Receiver logic in a device or system management software the opportunity to recover from the error without resetting the components on the Link and disturbing other transactions in progress. Devices not associated with the transaction in error are not impacted by the error. Report non-fatal errors only to the endpoint that reported them. We really want to check for AER_NONFATAL here, but the current code structure doesn't allow that. Looking for pci_channel_io_normal is the best we can do now. Link: https://bugzilla.kernel.org/show_bug.cgi?id=197055 Fixes: 6c2b374d7485 ("PCI-Express AER implemetation: AER core and aerdriver") Signed-off-by: Gabriele Paoloni Signed-off-by: Dongdong Liu [bhelgaas: changelog] Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/pcie/aer/aerdrv_core.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.11.0 diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index b60a325234c5..cca4b4789ac4 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -360,7 +360,14 @@ static pci_ers_result_t broadcast_error_message(struct pci_dev *dev, * If the error is reported by an end point, we think this * error is related to the upstream link of the end point. */ - pci_walk_bus(dev->bus, cb, &result_data); + if (state == pci_channel_io_normal) + /* + * the error is non fatal so the bus is ok, just invoke + * the callback for the function that logged the error. + */ + cb(dev, &result_data); + else + pci_walk_bus(dev->bus, cb, &result_data); } return result_data.result;