Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6039830ybi; Wed, 29 May 2019 01:46:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgqlnVHR0ZDZ3nU2lZlllBqybie8AHeu7ddGsTJRJVkgpnzMxyCORFUmaYPx+g4WWMVldy X-Received: by 2002:a17:902:5ac9:: with SMTP id g9mr140154340plm.134.1559119601959; Wed, 29 May 2019 01:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559119601; cv=none; d=google.com; s=arc-20160816; b=oVEC/u8nA30SdYhUzi73NcWum1X+hABPn1k8H7VmOk++nUTYobQ+0rtuGkiKTYAfn+ C1l9U+k7D38r31D+txsQRZJn1adSUJnzZMFmx7YmG761xVjvj0YuWJGXiNOaEtSi6BsP ty1GmHcG/Kgiyw6/WcuwhYToh9cOYH84ufwe18jamOAcG3XnVRvcC7XvUc0yLWvB41qb l75rOr7lEx1lcEg7kBRmC+QjDGg2JvzYri/EbpAWWqvB2Shbit0rqnwOrYy/PbbcHxZq qE5LVusPdXtYo1mEkVH+NrxNQE4FFVPIxhKA4b7svgf4HRjUQpp+MOc3kGF4Xr+Z5E76 eRkA== 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:cc:to:from:dkim-signature :dkim-signature; bh=dpQEqX+Tz0FmEJnIkWCsiP+ALItrYn6fkOWFHNnuN6I=; b=0TntxSV+z6GoU7Z6C/Q4Y+CrfJGWMwyTQP+UdalHOJqCprvEMDO8dGThJhCqiMMtJJ DJVolWm/4f3/UKqIZVaPyCZRDiBH2qFVPfDQzB2wIIfJAQr5wsEOwNoRVZrVEJlZHuYw 8pelKwSWyphYoO5MEitSJJMoDCsnfGCTKWQh8oadnxnpYXITfhohD+6d9HazQSkDNi40 i+EjxhjsMl2hi/oON5Qa/UcuRyCytRWgeDHk+rReM+PwwSnEnCBDNfmWOw4iMjLGCTvi gBGn2kcTpJFMORdOU4dv+fusXQFVkV1DKGlakoJ54s6p6YcKV9K7WYe26jWAPJD/L5tq C14A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=LK58nhB4; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=RkXgIgXX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61si2146863plb.330.2019.05.29.01.46.26; Wed, 29 May 2019 01:46:41 -0700 (PDT) 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=pass header.i=@marvell.com header.s=pfpt0818 header.b=LK58nhB4; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=RkXgIgXX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbfE2IpE (ORCPT + 99 others); Wed, 29 May 2019 04:45:04 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:49778 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbfE2IpC (ORCPT ); Wed, 29 May 2019 04:45:02 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4T8isC6022021; Wed, 29 May 2019 01:44:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=dpQEqX+Tz0FmEJnIkWCsiP+ALItrYn6fkOWFHNnuN6I=; b=LK58nhB4IrykW5wi8qfhvqCDhD6Kz8JQhGjRcV3PpJUeOqAo80IOKj1ybDj5HhflJKbR D0jVKe0ckVxPWLPchmSGO6NVrFY+DVBSra0fsJyIPYZ/GAqaHqVw4tlRjxaNe01qXCxP P5ECsi9Lv1Jkize4HGL5ScBaFY3b0HChwqWkADCkOf59Ph4+HdIdWNy4/eZzG8gZZoyI C3P58a3fQgZnN/6S1W7QnjdHTgY2U+uVsXHhxAtMD4sy6TZZqm6N8139PHQacRIN0RpA 3ggF3t59coUb+z1U54PWfvk+oFBwFEERqftQUtXEWavbEw9sYvkhhKed67f0OdR0zKxM YA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2sskp88p7b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 May 2019 01:44:54 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 29 May 2019 01:44:49 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.58) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 29 May 2019 01:44:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dpQEqX+Tz0FmEJnIkWCsiP+ALItrYn6fkOWFHNnuN6I=; b=RkXgIgXXbkTlPMPUupB9knnAVJWuhVOFpWNLHkb8xLLwP/uojJs3P4hEY+TsR0joMtF8huMzSeomMthtm9mNDolabfdvj6bUMcADC4NaLImEvm+b4kyTKqTUJkH3KAsRP3alfAIru7kW4Lw+uiDRPxX6d7YDx8lhyxFpBva7wTQ= Received: from MN2PR18MB3408.namprd18.prod.outlook.com (10.255.238.217) by MN2PR18MB3437.namprd18.prod.outlook.com (10.255.239.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.20; Wed, 29 May 2019 08:44:48 +0000 Received: from MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::7c9a:f3bf:fe2e:fe4a]) by MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::7c9a:f3bf:fe2e:fe4a%4]) with mapi id 15.20.1922.021; Wed, 29 May 2019 08:44:48 +0000 From: Robert Richter To: Borislav Petkov , Tony Luck , "James Morse" , Mauro Carvalho Chehab CC: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Robert Richter Subject: [PATCH 20/21] EDAC, ghes: Enable per-layer reporting based on card/module Thread-Topic: [PATCH 20/21] EDAC, ghes: Enable per-layer reporting based on card/module Thread-Index: AQHVFfrFZJH+3Ckua0Ku/1mj0fm9LA== Date: Wed, 29 May 2019 08:44:47 +0000 Message-ID: <20190529084344.28562-21-rrichter@marvell.com> References: <20190529084344.28562-1-rrichter@marvell.com> In-Reply-To: <20190529084344.28562-1-rrichter@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR01CA0046.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::23) To MN2PR18MB3408.namprd18.prod.outlook.com (2603:10b6:208:16c::25) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [78.54.13.57] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e12dfd8d-1c96-405b-9c9f-08d6e411e7e3 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR18MB3437; x-ms-traffictypediagnostic: MN2PR18MB3437: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 0052308DC6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(396003)(376002)(39860400002)(136003)(189003)(199004)(8936002)(4326008)(53936002)(50226002)(110136005)(107886003)(68736007)(36756003)(5660300002)(54906003)(11346002)(26005)(186003)(52116002)(2906002)(2616005)(476003)(446003)(6506007)(14454004)(66476007)(25786009)(478600001)(386003)(86362001)(486006)(81166006)(81156014)(8676002)(305945005)(316002)(7736002)(14444005)(256004)(99286004)(76176011)(6512007)(6436002)(73956011)(64756008)(66446008)(66556008)(66066001)(3846002)(66946007)(1076003)(6486002)(102836004)(71190400001)(71200400001)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR18MB3437;H:MN2PR18MB3408.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: w2d1BTM5fPjQ4IN34JokgCugWGamPxQWWlRyoYCCDNeFOuvS5D3ekywVvlzLJFS3tm+W82GzEbVew/TTC2NUaVMHzUbE2UTr+IqfCpa+ftX/ctvirZ2wyeifU9gnSzj9DUTssna4YrktrwBjqa4B22+/i/i2gqOSTIsY6GSXAskqyWeu9WP9oP2cGmjOod4rOcmFRlaEmHlE42zlAPezsW7r4h8R14UxD3g3kcLme4c5R4G6u4fpDvInRN8zYbIjiE8vpQxTwFK6ONgSfcyEQ0iMlE4LNWNeXx3fNM7+7CGjSERvFi1lSlxRM1vAv6r5h03/8r72ejMI18v26IsD0Subn3v85XlvODm/Z0fwwGMNMZhzDG8bUdK9BH7+Fe+rQ9yJoO8CPUubmA8lMIX8eHfrd8ZIoY584kGL+qRuA00= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: e12dfd8d-1c96-405b-9c9f-08d6e411e7e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 08:44:47.9097 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rrichter@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3437 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-29_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCBlbmFibGVzIHBlci1sYXllciByZXBvcnRpbmcgb2YgdGhlIEdIRVMgZHJpdmVy IGJhc2VkIG9uDQpub2RlLCBjYXJkIGFuZCBtb2R1bGUuIEEgZGltbSBjYW4gYmUgdW5pcXVlbHkg aWRlbnRpZmllZCBieSB0aG9zZSAzDQppZGVudGlmaWVycy4gVGhlIG1jIGRldmljZSBpcyBzZWxl Y3RlZCBieSB0aGUgbm9kZSBpZC4gVGh1cywgZWFjaCBnaGVzDQplZGFjIG1lbW9yeSBjb250cm9s bGVyIGRldmljZSBoYXMgYSAyLWRpbWVuc2lvbmFsIGxheWVyIGhpZXJhcmNoeQ0KYmFzZWQgb24g Y2FyZCBhbmQgbW9kdWxlIGluIHRoZSBzYW1lIHdheSBhcyBtb3N0IG90aGVyIGRyaXZlciBoYXZl LiBBbg0KZXJyb3IgbG9nIGxvb2tzIGFzIG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