Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6039888ybi; Wed, 29 May 2019 01:46:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXgint2ghNtORKedr4/emATTH/s6C8Ru76GmLWNVAELbi66+q6I9LVOZIQHd12rqT/wjGm X-Received: by 2002:aa7:808d:: with SMTP id v13mr116487760pff.198.1559119605222; Wed, 29 May 2019 01:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559119605; cv=none; d=google.com; s=arc-20160816; b=Io7M84lziW7V3Es5BZZec/8ZiXYUWNXsUln+K3qiNtIOYbGSSyaoubQ49oRSM2yy70 tTlEQ5lHidWAh1TEhQtWUqe10H5VvZ7O1kb/WwSWprG5yK8wja0Dw+JoPCEZNY2ZvZMx xoT93RWntY95jw5DNxMvunDO4ESYR17V3W+aHLplQQUZTZw+YxmMVX6XoEE5PFUXWBkP iA+btu4H97WMh9BrSjMll2DRqbv4LDWYPfugi6dI3WQbOYDvsNwhs6hzGlYEpAtsJmQ3 AvhUvzIyIJjO1Cbl1Os0hQf3RHxWIkqGjYDuiTJL/E/VNiQXRuN9unTmoaQRrl33K9Ay R0LA== 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=P032/2mUDARC0KfBoQ1xOYrSE/a7RwcAnyqNMZPCrIY=; b=yHwNIrBxiOGdVHWwASNwFHdWT2UCxinaY1vULxVdLeD2IyELjvmvuqwMjyj1rBurg2 JV+3XaRLqppcpQNgada/mh9GCtb8Z9wyUdfkAkIMa+EIIKdzXozIEcMQa8xue4Mv45nx iWgAkIWbhe2OEXWUPY/46YfiCfm5FhAKZk72mM6NIcjxB7V452H6mZD1fLT/6qdHHXUa gRK+tIfenN3GFG8Q9Ng3p4AbeJ2tNWTiiiTzOwCTT4m0dYNLp8m2rA8TpBNLSlRwjeYV bSlDpFSu5BwjeK+38ASQtxO6MSpYNmOaqtQa/nf6TZy5xjjibYsd0CmwHlU7u/7RzeoF Ydig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=KjFFaJFJ; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=MHkT7WyI; 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 y6si13405295pgs.342.2019.05.29.01.46.29; Wed, 29 May 2019 01:46:45 -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=KjFFaJFJ; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=MHkT7WyI; 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 S1726960AbfE2IpB (ORCPT + 99 others); Wed, 29 May 2019 04:45:01 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:35588 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726909AbfE2Io7 (ORCPT ); Wed, 29 May 2019 04:44:59 -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 x4T8imwM026181; Wed, 29 May 2019 01:44:48 -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=P032/2mUDARC0KfBoQ1xOYrSE/a7RwcAnyqNMZPCrIY=; b=KjFFaJFJxYNzlkdthsaEfTTi6vTYNkolODC9oaQi28y967jaIzP9QFKhZVmDyWy99fmU XmDBwVFh3fd3ugmQ9BbgY04Gr0kCgV1S9CGMhd4bURZfOyVmSGC/JWGR/aZKdoU1ZCMn jnOmX00K3F3gfN8qNQLLOR/w2gNmm8WNG9FdilDBidAb3CL//c9Jl17+zoPFhl1VZxiw FMW+klrwZLoawxfv+ZdmoXkYfUsKG1z0mc5k1g1WfiY02CMjJZpLXf+xi9KZJf0ywjTc HN/8vxzcN/bpBYPpy2lUmvujRfHCQHleH22a6Z9/9QQfqH3boDgxX8oxc/cK9k7hKEGc SA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2sspkpg1r8-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 May 2019 01:44:48 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) 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: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=P032/2mUDARC0KfBoQ1xOYrSE/a7RwcAnyqNMZPCrIY=; b=MHkT7WyIqLyGNAIg5ahCrbvBi/Hojyrl8xOwTzhHJRyJQ+9/Pob/35fl2YaRzJbltHsCWjMZGhIS3pcxwgjIyfZSDUS0m1MNZqcK95riCB5NZ1MgvdVPzTML6incIxKWiVTF1gsXzzNzPvejiLdqTFtZb9y4M9hEXFdSBqWVRLQ= 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:43 +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:43 +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 18/21] EDAC, mc: Introduce edac_mc_alloc_by_dimm() for per dimm allocation Thread-Topic: [PATCH 18/21] EDAC, mc: Introduce edac_mc_alloc_by_dimm() for per dimm allocation Thread-Index: AQHVFfrDZJ6YG32qm0SpPdrScZiSnA== Date: Wed, 29 May 2019 08:44:43 +0000 Message-ID: <20190529084344.28562-19-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: e9fc6991-fcdb-46fd-175d-08d6e411e549 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:4502; 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: 4eFJV1NmeYJh3JB7D9RgSophtSjiiaAAjusBxfBz5EhlCAYp176DvG1LN1eCsxFmdS1/abcge4XYFn4a+Hz2RHRqcQpjHR4AYIFrRG5MkiF3wA0PioQ24eoc6GmyIUqF+DcFQ29cA5YwkQgpkAv8rfyF2AtIsBc6MmJNqdIgGfRywmVFeNKvPRpzzluY1KvsqrSDLTXDAwXO/9JLa5K1WVBQvYu1xTAY94tLyWqmpVb2rYrK89fTtu/SlGBALgf7/+cXzxRfLnRGF0L1O4W23Abn7p8laKIoc23VzAMI0XsNvPryGEBZYCzOggei7824N01rqGjxnyyAkugdG3jjine88o6OUHQ1qX8cznM7Cs7tH8HuRVnOpsAZFPtCnXXrj86dEj9Mr6kMKenezjRaIjpGJS38KQDdbEPCjYVhXbY= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: e9fc6991-fcdb-46fd-175d-08d6e411e549 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 08:44:43.5135 (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 U3lzdGVtcyB1c2luZyBBQ1BJIEdIRVMgZm9yIGVycm9yIGRldGVjdGlvbiBkbyBub3QgaGF2ZSBl eGFjdA0Ka25vd2xlZGdlIG9mIHRoZSBtZW1vcnkgaGllcmFyY2h5LiBDb21wYXJlZCB0byBvdGhl ciBtZW1vcnkgY29udHJvbGxlcg0KZHJpdmVycyB0aGUgdG90YWwgc2l6ZSBvZiBlYWNoIGxheWVy IGlzIHVua25vd24gKGNhcmQvbW9kdWxlLA0KY2hhbm5lbC9zbG90LCBldGMuKS4gQnV0IHRoZXJl IGlzIHRoZSB0b3RhbCBudW1iZXIgb2YgZGltbXMuIFNvIGFkZCBhDQpmdW5jdGlvbiB0byBhbGxv Y2F0ZSBhbiBtYyBkZXZpY2UgdGhpcyB3YXkuIFRoZSBlZGFjJ3MgZHJpdmVyIHVzZXMNCmludGVy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