Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2540488ybd; Mon, 24 Jun 2019 08:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGSpVA3oC7R0eVxejLek+1qk+cG4GIojrPau4kvDjFE+jEgLuEWp+Ju+dX61ukPC6R0Y40 X-Received: by 2002:a17:902:b487:: with SMTP id y7mr87266242plr.219.1561389028370; Mon, 24 Jun 2019 08:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561389028; cv=none; d=google.com; s=arc-20160816; b=VkBZbbEicY+i8S/Q43BroLkSUT+SRgEwz59gPBjcnscrZzVFVdl7s9p4okbGhCIRW3 KecXh/QqtapJruXC1vPpt+joW+RVyMWzZ4fDVyHq09aEFSRULWMZb0um+2dKnej9sacV OY3PUkdsfr4b4LC3Nt/sLr2Hg5JVg76XCkbhiVB+fYhKFJJvu5iWp6RyIy7wZMi4EiCu mM9SCj70MMPIk0OHqWspBGKwAX8z6LqJPcxHRuw50pLw+yWN81kJ41atsIZBDOZfh7lW +2PrNXczJeR9olfe2+C3b81WXWUXEC1AVFvsX5fgwJRyCnkk4qDmjGEMvvpXRKMdQBsA /UPA== 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=7Z0UKMqfS8QvL2mnWEE469Otwk5nyt+5zDx8HNspP20=; b=upZXe0/P7heLiC+J4abKKliswkHv4hurl20tqxuZ4ODODsphXowN/E3bNSPE16gHbC M6NFCFl5uM41Gg7FX8mWyCRNwzwmk/J++nMiQuUDd9WDrVjCzn+BpW5ZpuSijUJsJ4pz Fv55um//aM0fbqURD2W3NsPr9ikQnMmGsZFD+3g1L2nOTy6/dvUpcdFJKEbxI5MvTO1V KJelH7ZW3jGAM7TFKcZ119Sh40ifMKY2SxzzlkZzd58Uho1g0wjIp7sTIT6tS4umes/G TYvvST/Wot4YSkregD/IiOB4SkRjxQ8cw1HNkDBlkmvpd3Nm+kc5DzJGL9rc9DSXEQ/M MhSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=crUbmuvb; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=o1VLQdEE; 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 r6si8097970pga.14.2019.06.24.08.10.12; Mon, 24 Jun 2019 08:10:28 -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=crUbmuvb; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=o1VLQdEE; 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 S1730818AbfFXPJu (ORCPT + 99 others); Mon, 24 Jun 2019 11:09:50 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:60586 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730834AbfFXPJr (ORCPT ); Mon, 24 Jun 2019 11:09:47 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5OF0N6n018740; Mon, 24 Jun 2019 08:09:40 -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=7Z0UKMqfS8QvL2mnWEE469Otwk5nyt+5zDx8HNspP20=; b=crUbmuvbbvT3MzYaKe+2Qk1jDGdghm4FPQZYv2dhG7BKbH6Am0AyGxgz99x6DXEAif3H gCXy9Pc4kSq3wqHRFcsSuKTZjjOSL/1ya9aIWBd/N3zb6SlpjWj+83WuQqfX4ZpZ/zjo jAZDe1Tey1pIrA5ytoWbshwkjYysPHkJ89Cq8IczKKhzwavhczdun3PW3HIi211kKWE0 oTlEpGX1epDVbCB8sbmX/icUWzYL03gygYcuT7BL5dG0jtRPyDIn3I6Cy1uFxhHOa9uf S70MSZULpL1EaPbilUMkdbjEUbi5ZYTvEJVurB6q+rrpqRzIDGFREZfywwkbUHqkZt4N wA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2tarxr9tc7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2019 08:09:40 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 24 Jun 2019 08:09:39 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (104.47.42.52) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 24 Jun 2019 08:09:39 -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=7Z0UKMqfS8QvL2mnWEE469Otwk5nyt+5zDx8HNspP20=; b=o1VLQdEEo2+LH+4ozj9HGk44HSjbAI/zBZoJJHkBAWMVsfRf4HKwCcz8BvnArn2Llro2zpiDALY7tqichzqsEFD/MxznZHSzi5xNikm8EShrUr2BxJMd1pGV7wpJNyvxn/Ad7XtZ3ZvS/ZlnSo6pmt7BWoSeZRvPSicTNdqsldo= Received: from MN2PR18MB3408.namprd18.prod.outlook.com (10.255.238.217) by MN2PR18MB2589.namprd18.prod.outlook.com (20.179.82.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Mon, 24 Jun 2019 15:09:38 +0000 Received: from MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::d3:794c:1b94:cf3]) by MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::d3:794c:1b94:cf3%4]) with mapi id 15.20.2008.014; Mon, 24 Jun 2019 15:09:38 +0000 From: Robert Richter To: Borislav Petkov , James Morse , "Mauro Carvalho Chehab" CC: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Robert Richter Subject: [PATCH v2 21/24] EDAC, ghes: Enable per-layer reporting based on card/module Thread-Topic: [PATCH v2 21/24] EDAC, ghes: Enable per-layer reporting based on card/module Thread-Index: AQHVKp7X2ENQDwTZIEmHMk4xQwA/XQ== Date: Mon, 24 Jun 2019 15:09:37 +0000 Message-ID: <20190624150758.6695-22-rrichter@marvell.com> References: <20190624150758.6695-1-rrichter@marvell.com> In-Reply-To: <20190624150758.6695-1-rrichter@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1P190CA0035.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::24) 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: [92.254.182.202] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0d14670b-2279-466b-acb7-08d6f8b5f96e x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR18MB2589; x-ms-traffictypediagnostic: MN2PR18MB2589: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 007814487B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(346002)(376002)(366004)(136003)(189003)(199004)(2906002)(2616005)(486006)(476003)(52116002)(14444005)(256004)(5660300002)(66446008)(73956011)(66946007)(1076003)(14454004)(6116002)(86362001)(3846002)(99286004)(6486002)(68736007)(81166006)(81156014)(6436002)(4326008)(305945005)(50226002)(53936002)(7736002)(8676002)(8936002)(478600001)(64756008)(66556008)(66476007)(6512007)(107886003)(71190400001)(71200400001)(36756003)(26005)(102836004)(386003)(186003)(11346002)(76176011)(6506007)(110136005)(316002)(54906003)(446003)(25786009)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR18MB2589;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: iBkW0geixbLc5vk3LMdcJ5KSX9jYzKCM5k+j4mCqOuzIXsFuWlH3LeMKmHbQDTmiA3Fh2q5f/X/C8pWS8WPcvnHXuJrhqxY5hXhPkAP6tbA1zfPYiUldhxlNKeR6MK3YqVwWgnIvBNdpyls7xUttr9XKFZuvE6JHnATIgZ2pqPhMIHvgzAH/8qX9kWSjUjrGEfMBSFT9zzX5LPVKF+9tiLo1rhekAcQsMoc14BM7o8gYr+RhzliJ/1iEgyFLASRxVORPTmv08eoN8iZgV8SAflquIJPIwuNRkIGeMe1xSObUTCrjdIQzHVOBitIvrr10egZmks6PGL3kJUy5YcIFxia333xnjaJeJP2V9TCeNqmO2G0b5I3G+H9fVjrhshAjxWfcgpE8HCj3A2MrhV2t+X7omMBniaB8jWTuSTmrBAs= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0d14670b-2279-466b-acb7-08d6f8b5f96e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2019 15:09:37.9381 (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: MN2PR18MB2589 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-24_10:,, 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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