Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2540295ybd; Mon, 24 Jun 2019 08:10:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIVWhl+mDTyTllCTDEnr0Utss1lJmCOvb+Y92paAom6UrAs6nQ5nPaXtGLissGgDTwO9oR X-Received: by 2002:a17:90a:3ae8:: with SMTP id b95mr24835097pjc.68.1561389018038; Mon, 24 Jun 2019 08:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561389018; cv=none; d=google.com; s=arc-20160816; b=KGZjVTqoQf+2tIslLP340vKY6KQ3lWynmLt2CPw0coeBjgkKtiZJaeM3WtIHZyvQmJ /RwIcPsk3VFMfo0z03ajtnE5ZnNE0mmmlC2lEQ+/fVBqmetUPD2n7kzE5YxNtswFL2ay BoawOv9LA1hywfM530FTEjiUKjceI0JvpTpHOVvH1hzGSTwwmR0qI5KHKSmxMYXZfeKN K1sCUuJ27bTmvC2hMdlADokrofsX4/p0AzAdKnRteDYKtjtewZJ+sLqCsoH1WeyA72DJ BNuuV/rK6Iaasre1IBafvxbt1/Ki+rKqeSLgs1GJH86ad6xP777lvtkq1y01pFWR9aJx zpXQ== 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=fGiKqzPfUc9AXTHSQs9EVcWX6jy3P7JI7GKuDwheurI=; b=wKXvVP/XOmQv/wbHv4YkACcqfWsUUiLc5DdQmLL6mUfiVXlsJgTvHd1hIukFnUgXoX Ec9lCC/cy9rxFXakPa/lZAR41lVFIUtm+g/Ewgg50/JQ1I1ql6y9Uh/Pfmax6+AQVe0N tnPlAunzIjkcGlk9eDON7HfkTinj7uuLeQl6L9e5MHv4sjqYdv9fI9mvm05jeIzOY0uf QnG6mDAj8hhAvEDk3x1XcN38S4L+ZAbPU/G5R1Szqsc9NEwz+gbAJK7wOzIhUjcHxYO9 bzpqYAt4nv04RrlV+6Dy0zFUBmmJWMehAfEV0TmiJ8awWgoIalLPtlBwDVxHgEWgOEuz J4rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=CKgBRbYA; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=X8AieWew; 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 e18si11124295pjp.36.2019.06.24.08.10.02; Mon, 24 Jun 2019 08:10:18 -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=CKgBRbYA; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=X8AieWew; 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 S1730725AbfFXPJi (ORCPT + 99 others); Mon, 24 Jun 2019 11:09:38 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:62922 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730682AbfFXPJf (ORCPT ); Mon, 24 Jun 2019 11:09:35 -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 x5OF0720018628; Mon, 24 Jun 2019 08:09:27 -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=fGiKqzPfUc9AXTHSQs9EVcWX6jy3P7JI7GKuDwheurI=; b=CKgBRbYARYn1hUyrxb0dCbUlA+fBle9XyaE7mtHsQAdDczARz4sb13sPLW2fGnzNbr9a 81FLfzSnbZlyqRs6pdEuoiC3oIPLMrc/6Q+aFI11KbdoYrG963yU0bPx38nXlo56uFhD qoL4UT/cweY8L+S/LiQ+JbPSeG7bLVQPj4k+IXmQnrb1nawy/2LUqbfE7IOQatoPaBCG FQU3gTLV5kE7NkgvJemlnBVHaQwCa0Ur8IUvAVSj0tAO9ArqGCEw91PLZ1YS8U8vWOJe 4Xttguaq3Eg9LChUD63/n+ayMsjGGhGEbGu0YsDERkY9vKnG0ORkiXEedHhv5YcBntYg Fw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2tarxr9tb6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2019 08:09:27 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 24 Jun 2019 08:09:26 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (104.47.42.57) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 24 Jun 2019 08:09:26 -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=fGiKqzPfUc9AXTHSQs9EVcWX6jy3P7JI7GKuDwheurI=; b=X8AieWewTvPsg2KjquFqgxlERr3aYybwMejjJy4RaUii+fRytIFor0ZLNz6R2U5seg7BvZ5zS6uw0IHzvtVLKyGA9buoxCqsHNw66OabqSGWKChwajRPZ792bIFKLR3tX4MGFKCNngG/7P01tyG6HU4NFG9IX/jz5d0PUHMo5a4= Received: from MN2PR18MB3408.namprd18.prod.outlook.com (10.255.238.217) by MN2PR18MB3197.namprd18.prod.outlook.com (10.255.236.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.13; Mon, 24 Jun 2019 15:09:26 +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:26 +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 15/24] EDAC, ghes: Extract numa node information for each dimm Thread-Topic: [PATCH v2 15/24] EDAC, ghes: Extract numa node information for each dimm Thread-Index: AQHVKp7PrQ3keExIu02YFGQ2PMgwJg== Date: Mon, 24 Jun 2019 15:09:25 +0000 Message-ID: <20190624150758.6695-16-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: c4a9dddb-7085-4244-8bb2-08d6f8b5f23b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR18MB3197; x-ms-traffictypediagnostic: MN2PR18MB3197: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2887; x-forefront-prvs: 007814487B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(396003)(346002)(376002)(199004)(189003)(36756003)(110136005)(107886003)(54906003)(81156014)(81166006)(68736007)(8676002)(25786009)(5660300002)(8936002)(305945005)(7736002)(4326008)(1076003)(186003)(6116002)(14454004)(476003)(486006)(2616005)(11346002)(256004)(14444005)(446003)(3846002)(50226002)(26005)(2906002)(52116002)(76176011)(71200400001)(71190400001)(99286004)(386003)(6506007)(102836004)(478600001)(316002)(86362001)(6512007)(66066001)(53936002)(6486002)(73956011)(66946007)(66476007)(66556008)(64756008)(66446008)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR18MB3197;H:MN2PR18MB3408.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: Jk+lQP38n/+InFfn3SYvE+rahkc5CtHtaqlAdTQkcQkdcAWRmdNHNP5me/DZB5vaTMA3IqTNNJrhXsLL/dIt/VEjZXBexQb7RJSg2qU3254Eptzp/Z5RPvvNnM7sqRS+thg8ct2T1GJvV/zEJScL5ur5Jas0gZIAXm/Shes4cNDbJzcrDuEQF+RXMTja8f1SEAV3MUsJsQjJdLYMJIdQp2aaxMsLD8UdXa5pSg/d0xsfVNO1dganmDBfTjzF0HV9CGiN/u75GutuWdS5vyNYcwPsYnBRysG9uGcYQEmbmjDaXM8/jGi98pvRic7iJsy2G4m5o+csj/m+p4HVx4Ko+2q/JlJbDxEBaJA3aFFcMlKIXulK8rurUMz6jzVssXd7YMze+lpSuiZ+wFKYuJESMhtujVDX/aUD02l9u6Wn9kw= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c4a9dddb-7085-4244-8bb2-08d6f8b5f23b X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2019 15:09:25.9659 (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: MN2PR18MB3197 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 SW4gYSBsYXRlciBwYXRjaCB3ZSB3YW50IHRvIGhhdmUgb25lIG1jIGRldmljZSBwZXIgbm9kZS4g VGhpcyBwYXRjaA0KZXh0cmFjdHMgdGhlIG51bWEgbm9kZSBpbmZvcm1hdGlvbiBmb3IgZWFjaCBk aW1tLiBUaGlzIGlzIGRvbmUgYnkNCmNvbGxlY3RpbmcgdGhlIHBoeXNpY2FsIGFkZHJlc3MgcmFu Z2VzIGZyb20gdGhlIERNSSB0YWJsZSAoTWVtb3J5DQpBcnJheSBNYXBwZWQgQWRkcmVzcyAtIFR5 cGUgMTkgb2YgU01CSU9TIHNwZWMpLiBUaGUgbm9kZSBpbmZvcm1hdGlvbg0KZm9yIGEgcGh5c2lj YWwgYWRkcmVzcyBpcyBhbHJlYWR5IGtub3cgdG8gYSBudW1hIGF3YXJlIHN5c3RlbSAoZS5nLiBi eQ0KdXNpbmcgdG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