Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6040635ybi; Wed, 29 May 2019 01:47:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqw55oRRaUsrC2P/NsAihSUChfwKaafO44aeXXiJGwibcwtXgmCT2k7LWCe9k/6oICOFDjDF X-Received: by 2002:a17:902:6ac4:: with SMTP id i4mr5095555plt.75.1559119663428; Wed, 29 May 2019 01:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559119663; cv=none; d=google.com; s=arc-20160816; b=Ae51o4Eab8JVbU/Br2+Ifu/SAk1YwOCrdpJSimpPH5m5e2L2wIScu2NRXfYpGUX0nA csabrsDNkZsVqo++o3COMHOc3kiGlshRyXtn8J0ZJD7DY5bVtS+9beFaNR91mJ0tcKCR 3+7SZyXtQgZNMuAY1b6+YdoDpOTS19eTAnC+2MTCM9OEXNrGWSCb/iHBzykyquNdB0Je /G6hwn7Ndpx24+oqsezzSV2VgvOj+wO1WPnPKMj54ZDC1rY/eN7wn0JE8LBY0ZeHQVov weXGfQoR2onWKypb/qUiUC1h5vRye4ILMnZqJ3efPjicMknavHQkEwXKoWADz7uC66qv vEkA== 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=u9alLq7IezxnE8uRDb+x5yZz/pbYz8zbGCqaefQpu/A=; b=yVr3ooIDp2/ClqdMe8eDFAf3AESBWw3FeMFmF7Cm/qIvSJgo/S1ENSN9jPFMQ+1u/B OmZSCVFX/PybHMQMEEl3bY45CqcudKdq4YwugvKYGHS0seFFTfboJ4H4Z94/ir5aQiO4 7fyKAbQguDq3lRWgRwhdZ+NHXjBHhSjbEb8I8pBUPYvSWlnKnecuhoEeZi25AYRSlKm7 Zbxrp611I6gCo+1E+Gnh3GA/IhsZ9C6nEU5MAVPzEtASnY+rlGhDNKUdPAdLOFqz0Ki1 aAWikx3nIh+T5mNAUXfvSUWrKVb9KiY5CcrmO7/biVlJjzz8Ywf8MbMHDHZ/TsCSFVoN SMyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=mLhsNSPA; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=wWFJSX8u; 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 j11si5925878pjs.73.2019.05.29.01.47.27; Wed, 29 May 2019 01:47:43 -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=mLhsNSPA; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=wWFJSX8u; 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 S1726896AbfE2Ioy (ORCPT + 99 others); Wed, 29 May 2019 04:44:54 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:49578 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbfE2Ioq (ORCPT ); Wed, 29 May 2019 04:44:46 -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 x4T8do5I017769; Wed, 29 May 2019 01:44:38 -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=u9alLq7IezxnE8uRDb+x5yZz/pbYz8zbGCqaefQpu/A=; b=mLhsNSPAVtAIOC2aVTNyV9WGnElMhrqICSX19QLcXLJi1hqAzqf9n4RS/pQOBcbctnBQ x6fjfC3qbkgY35B7Di2Z+uWi+uuIVCqJL0VzYqazj0lDt1HRuyMQUb7E8MU2SlT12WeK tdWP7VVPZMqlBlmX3ed7x45r40thJXduLnl43YoK3P1QCuFgbvy53caO4nXPQwHBOMkC zbFSBdVF3NnehKuHYoXj9N0t0yYmgpv/z/VHQ/4hYrbdK4KzN1TivAzlDWO0BW3IzT1s qPmW7+WMtIL8xy2KYJ8758fyfqpRGyi072JEZztRzSLsTwAeVQ0wLD1blBXxqLA5Mzm1 eQ== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2sskp88p6g-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 May 2019 01:44:38 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 29 May 2019 01:44:37 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.53) 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:36 -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=u9alLq7IezxnE8uRDb+x5yZz/pbYz8zbGCqaefQpu/A=; b=wWFJSX8uN2Me5hmId/PnSgA4S3cTumVTmjJv6keiNY17EJM7p1zqCKFsKySfcrhM5Gp2LFsjwJ5IYw21Ryu9x8BvBuHHcg0wlTRprKv92b/MO5zlPIIlkgXmWDvHHJo3M+jXCyv5QzCAKOQh8TnMtUbHDfReityKHlTM6ct9L0k= 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:35 +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:35 +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 14/21] EDAC, ghes: Extract numa node information for each dimm Thread-Topic: [PATCH 14/21] EDAC, ghes: Extract numa node information for each dimm Thread-Index: AQHVFfq9sPfT7Zt2PE+R3bvTGIYDig== Date: Wed, 29 May 2019 08:44:35 +0000 Message-ID: <20190529084344.28562-15-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: ac202288-64fa-4567-8f08-08d6e411e036 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:2887; 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: oCcwaQG/Xey/h8j1hSSXI/fQ8xAcXr2cpgAnOoNpFKvtN3pgu8FcvsH7YFIdXo0W1zgTCm7eYB+bXPsqV5lnqkDFfqTlAFOv119nG6qpScL7OIMS/QE4Ku0ITLf3avziQ8ITVfOkIR6D0U/Mp7bYLEr7QkOUheDUOBzxJMTMPYyezuFHZweW2ejBhwY/ywWf9bGnkbAwh9hG2wykC6d1GPDPLCN3w4Fw/s0UxA+NWk/1rH9CfM7mrSCawMKZ3HchXm+tQvJ1a0cZaTJ+vE4Tb8JpzyTpmSVBAyIjXoOlg9aa3RB4FJo/zZVHyUuM7juwN2xf25Y4crRhIabVN6eYeqXrvmAx8y3w+oasD7AjyPmDC6VdRpnj//OZyh+C4abObZuVJ0yPMcVuU85N8kTlzZGRbdyRjLpR8oGmYxAhkIA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ac202288-64fa-4567-8f08-08d6e411e036 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 08:44:35.0325 (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 SW4gYSBsYXRlciBwYXRjaCB3ZSB3YW50IHRvIGhhdmUgb25lIG1jIGRldmljZSBwZXIgbm9kZS4g VGhpcyBwYXRjaA0KZXh0cmFjdHMgdGhlIG51bWEgbm9kZSBpbmZvcm1hdGlvbiBmb3IgZWFjaCBk aW1tLiBUaGlzIGlzIGRvbmUgYnkNCmNvbGxlY3RpbmcgdGhlIHBoeXNpY2FsIGFkZHJlc3MgcmFu Z2VzIGZyb20gdGhlIERNSSB0YWJsZSAoTWVtb3J5DQpBcnJheSBNYXBwZWQgQWRkcmVzcyAtIFR5 cGUgMTkgb2YgU01CSU9TIHNwZWMpLiBUaGUgbm9kZSBpbmZvcm1hdGlvbg0KZm9yIGEgcGh5c2lj YWwgYWRkcmVzcyBpcyBhbHJlYWR5IGtub3cgdG8gYSBudW1hIGF3YXJlIHN5c3RlbSAoZS5nLiBi eQ0KdXNpbm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