Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6040048ybi; Wed, 29 May 2019 01:46:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0mfYn/Cc2sHbUuLEflaGN0P9/QqQD8H/EkMgzc5Qvg1M/va0SAtRzz6/nqmcopWy3gkKz X-Received: by 2002:a63:eb01:: with SMTP id t1mr52630624pgh.385.1559119617037; Wed, 29 May 2019 01:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559119617; cv=none; d=google.com; s=arc-20160816; b=I6/fKMvaZchhNKO7zMe/xdJZhK4y96E0SWbjWEdYHH3G28fRUCk6PSYD5zIQkpJ+go Ll/d5GtK5vGhSQofC+JPbtbzotmGHcKPFfkuKQIc1bEJDX/fyq15IJlocQqLaVAT1TBb K3J1P19VNy9sae6x+V68y9NBDTW4vD1IMOcEW34e5MobzKZpXAgQ+CdDPHAsU0Nui/9e ZSZbpUgoatr6RrWwk4Bdfq5UTnkz2/mdUC6m+cy+N6KD2e8MVqwHWsq0I16aomeAqjIm Ovcb6T8z0qKX1NBoWs8JQjTQuPvU1ecLss2ciYU+GDbLnfSRrRV/dD6ZKpcguEZSnlL7 rP8A== 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=GUy40+DnrF6OKmv6P4tIQfRAjMx1FBjH2O7IeBlDwQA=; b=SxbHtWqHugFczT6NsQruSjYuJni4qE9kRbX+MlCKXbwVksnQvJs7xPDUgxRLreNp47 cZNKbymqXtuvu0fUWaOqJK25tx+7c0vdNcxk6EsQScIdQJ6tlK1YyJHRzqrVeOqXInuH /jIiDZi/FIkbzPZghZbE2hAbVTOps5ivIDImwfzz8/MogM0JKBKLJHYrvHLsGx68cZKH /eDlSw7KecKVprsR1aw5VOCqY6bihJQHrwS4Bhnp0Qf/qzf88Ilx0utNhQ2ROmgrguB9 S9SI4VeWzIXTvYzBn1ROyJTtgA0CKkEABvAn/nCA4oVderotgiVotJUFO1B7ID2LYJ+M mVjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=AMUvekIg; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=mAGOAFym; 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 y10si28513615pfp.167.2019.05.29.01.46.42; Wed, 29 May 2019 01:46:57 -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=AMUvekIg; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=mAGOAFym; 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 S1727025AbfE2IpQ (ORCPT + 99 others); Wed, 29 May 2019 04:45:16 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:49664 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726901AbfE2Ioz (ORCPT ); Wed, 29 May 2019 04:44:55 -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 x4T8doO7017780; Wed, 29 May 2019 01:44:49 -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=GUy40+DnrF6OKmv6P4tIQfRAjMx1FBjH2O7IeBlDwQA=; b=AMUvekIgvWcZh/XwYCRPpO1FWMI1WcyVEUNrpnWqtbjxpQjSK1hmXnAxtsm4f6xyb8zN N7PmFgR2R2b4AVU2sETTkXNvrgWUIBq/hag3nijMZL5o2PvisKD1Wluft67eMxTLiprT i1o34zepXX7OFF7ulI6+c9+S8OWR8eXlO/2e4BeR3eZfvM5t+otIrLyFxbSx44pXjb9G 4wrbWilvRc7oILMIdkZU1X9o/+SdEIgQAo+QdWgdQss7iwxVR17fJXiozXUK8qNr/gyC bLvD1l8EElqoC2mmVsRiKOa3KYmDRu95XbAWmSg8Jz8jkN6UdfKacglixGPc+Jazboi5 oQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2sskp88p77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 May 2019 01:44:49 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 29 May 2019 01:44:47 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.50) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 29 May 2019 01:44:47 -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=GUy40+DnrF6OKmv6P4tIQfRAjMx1FBjH2O7IeBlDwQA=; b=mAGOAFymtg2P1Czg9tx1ytPR+F66Cq18uWzxBvg3Q1W0yZ965hF5Oqn+bPlfAAQtR0Vc+H5JC1ecT4d0nAV/bDB/tPmTz0LipzJAJIpP0WwjjYQDlYTUwIi0UIApaKUJtGTy78M892wPLeJG88XQbf09zO1Ipr4y+YTcwtt0y/g= 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:45 +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:45 +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 19/21] EDAC, ghes: Identify dimm by node, card, module and handle Thread-Topic: [PATCH 19/21] EDAC, ghes: Identify dimm by node, card, module and handle Thread-Index: AQHVFfrEFc2xj5nexkqG4JRDUNiq8A== Date: Wed, 29 May 2019 08:44:45 +0000 Message-ID: <20190529084344.28562-20-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: fb6cd393-6d40-4d0f-33ff-08d6e411e681 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:9508; 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: r2n5TutrTGSmGGK/+6u9kjneM51PDHMxyHnGbd6EWkdpiKzEqiv/kz+uiF0IeCN4gVkL3LJeUEL+W3e4xyxoAXekK3cPajzN62psjnG6dT/p4Tl1219WwPtgKYt2+RlS9ASBabh+i6FyWJTzIxmi4xcYiZK1VFTmZfYJWbSx7nTCYzvvhYGTL0MWFNFYAJeR4qxzjbtH8cyb/2ywA30szjgCsxe24uvwVbgOGxAufyVfSbrpGthCz3XnSGKLu8uJfxWPhJlApkJ1z6ZPHSNIBdCauT5xGskgFgBrfuqmudFuaCCk+bFWkBid7SVyKVJQtAUfJgud6shgFlPHHAnPCM1CkOn1PWVSsSD8eMRFLRBrDYrH0BO7hSgqCDtgwDzPo34s+SDmWSH8LEpTkvCR66LjwqJDfWW/m6sDuEer3j4= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: fb6cd393-6d40-4d0f-33ff-08d6e411e681 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 08:44:45.5129 (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 QWNjb3JkaW5nIHRvIFNNQklPUyBTcGVjLiAyLjcgKE4uMi41IE1lbW9yeSBFcnJvciBTZWN0aW9u KSwgYSBmYWlsaW5nDQpESU1NIChtb2R1bGUgb3IgcmFuayBudW1iZXIpIGNhbiBiZSBpZGVudGlm aWVkIGJ5IGl0cyBlcnJvciBsb2NhdGlvbg0KY29uc2lzdGluZyBvZiBub2RlLCBjYXJkIGFuZCBt b2R1bGUuIEEgbW9kdWxlIGhhbmRsZSBpcyB1c2VkIHRvIG1hcCBpdA0KdG8gdGhlIGRpbW1zIGxp c3RlZCBpbiB0aGUgZG1pIHRhYmxlLiBDb2xsZWN0IGFsbCB0aG9zZSBkYXRhIGZyb20gdGhlDQpl cnJvciByZWNvcmQgYW5kIHNlbGVjdCB0aGUgZGltbSBhY2NvcmRpbmdseS4gSW5jb25zaXN0ZW50 IGVycm9yDQpyZWNvcmRzIHdpbG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