Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1410706pxb; Sun, 12 Sep 2021 18:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5mNK8VAT2OxMYCTZc8p1rsTq8sB9bYSOGLsQMqZsJ3CTNeg9FhvGbGhF3KkdEKa8BdQYL X-Received: by 2002:a05:6402:c96:: with SMTP id cm22mr2899960edb.314.1631496805131; Sun, 12 Sep 2021 18:33:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631496805; cv=pass; d=google.com; s=arc-20160816; b=tyivz/cFB2zkMvIkMZ4RYkP94EvIy3vMJ9M77Yhkm7sZxAZAr6G56H2iet4Vhhzmjz F8dIcpMC1R3TK+AYhvWKnu4BxdodwAM52du+qwT1oadW/c3Bg8Waby/8ALeyFFySzzvU 8QB/Z3wVP1ICaoBNz+hmYF8K/BaVjMvpc8i7a9yKwtOIv9OgpjL82Qo5zQ5BFzWbA13g YuUkta+I0FbLhEX/eiZtrWzhqagsoFGvFlY52KDS22o9Req0urqyiBPbOXrL/PzfKOUv jo22IQbY46wIUsEQmq7qPtXDnEnmHAZw+IWW09S2nzBObs3OoPKR9OIasamfvjWlVkfL AAWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=iT2oUwDr19TJUfXIKq72kdxXPCrWQBfMWChZRZEjBuY=; b=g6+4FzQi1rHxIVlmJcGKARIOZWZh6ljZN+K1/PaHZR+wjJztp+dYohXuKtKkQufXf1 GqnC4UHWBkvRYb2xNbfUjJcRLWZHYHJho6xiMLTri+Hl8BNZ+nw7huMkB98kIkjlXIfK uD4KLe9+N8Rx8Rsh4dw9qdtPQ+85L4JRlvi0WSh8pJE/OBupXMbTHS1Qcmew1WrYtHGs OPLvvy/JSy8U4cstYIq9awmC5IOYz+nVGKJZHbrW7RdfnZ/GO7yVxdsn/I3w5+gF3zjx TZkNnyh7ir+pjcbBXNLeR7sILXEcnXBmy4MlG0wVAoPQPbMkYC8lBrHErq8CW1EBycCD H1UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=WkIml3nn; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq16si6678550ejc.653.2021.09.12.18.32.59; Sun, 12 Sep 2021 18:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=WkIml3nn; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236797AbhIMBcy (ORCPT + 99 others); Sun, 12 Sep 2021 21:32:54 -0400 Received: from mail-dm3nam07on2084.outbound.protection.outlook.com ([40.107.95.84]:60604 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233133AbhIMBct (ORCPT ); Sun, 12 Sep 2021 21:32:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6+ns2jgVyYVl/ZKKX2UwKtSsSJ0qi/4R6nLeeot2mHfjEdURS3gQM0jPSzMMznIg3iQy3+xhoZGAZ9DEc9a//KvrDJITKop9VzCaqbjoiVrjfFJx/yDZTE+9GNML3xjtj6kAIvuRKOkcoYVbodtmqvxpntAr9w0YaQdPtR42NQigC5RvqMKZEVsUt6PS7q0FpGmOitzNnH1J934gbnE/IE9Myi1ZtR0QmCxS5ZHLOsRIh6H2hQqVMm7l+sj3HHiv5sA6PprDDDtTDJZEVjwX94yKSTteO5sZF9m7uBbmlp4pq/TyCsSd0uzLUMvc/WyIUfE9avMhfkObJd4zuepqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iT2oUwDr19TJUfXIKq72kdxXPCrWQBfMWChZRZEjBuY=; b=P0lqJJIWgkZWM8FiVAPO+6b2FqeBTVvp6jGVAVPFY/NVSUtKOvAuBPQDYliq6TibySrEty3DHZmvjWmlObdxo4y8km1oL6aWFfC0wT45I16IdtH92jr12UXV6EzektN7O7Bq58dXDxGKrujroRWOJhASx8x7zNLmY4isBu1J76QlUVq+LBObg9JrE3c/7WE+JvD9XugYUDqM9qf2gCxBGHtAUX9+rszOvo0J+JOObHm+d0WfRoPRprJq8UtKq0gBUBxFFsK6n+dGK18u/sxkDJI7lClTOYHBX/wC4gUsfMDdzDWOb9QxnTshFgv2Vqp6k4mjVpGljBp83JbRTL41YA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iT2oUwDr19TJUfXIKq72kdxXPCrWQBfMWChZRZEjBuY=; b=WkIml3nn9VUG6CAe15mMnpNHtCVmG7CNj0bi5/buh5Rpkwk9xYdPY25cp/j8PrCbOAQsG12110elldLJvn+6tr7uoFkDcBQj0goX5t6XX6WiKiWaWhNh4iIzORma0v4sCrAkZ8OWoS8s54H/ddkICvSaJvUBWqRsinAWxAqEjhk= Received: from DM4PR12MB5263.namprd12.prod.outlook.com (2603:10b6:5:39b::23) by DM4PR12MB5264.namprd12.prod.outlook.com (2603:10b6:5:39c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Mon, 13 Sep 2021 01:31:31 +0000 Received: from DM4PR12MB5263.namprd12.prod.outlook.com ([fe80::90b2:e7f6:c5e5:c80f]) by DM4PR12MB5263.namprd12.prod.outlook.com ([fe80::90b2:e7f6:c5e5:c80f%7]) with mapi id 15.20.4500.018; Mon, 13 Sep 2021 01:31:31 +0000 From: "Joshi, Mukul" To: "Joshi, Mukul" , "Ghannam, Yazen" CC: x86-ml , "Kasiviswanathan, Harish" , lkml , "amd-gfx@lists.freedesktop.org" , Borislav Petkov , Alex Deucher Subject: RE: [PATCH] drm/amdgpu: Register bad page handler for Aldebaran Thread-Topic: [PATCH] drm/amdgpu: Register bad page handler for Aldebaran Thread-Index: AQHXRs6Uco2r7eCCPEW3XTp7lQLNb6rflw+AgACR7NCAAC6FAIAAV7jwgAB+vQCAAEnsgIAAA5mAgAAAloCAAAbygIAAie6ggACEBQCAFURmoIALF48AgFgrUTCARtd2UA== Date: Mon, 13 Sep 2021 01:31:31 +0000 Message-ID: References: <20210603211255.GA1410@aus-x-yghannam.amd.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Enabled=true; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SetDate=2021-09-13T01:31:29Z; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Method=Standard; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Name=AMD Official Use Only-AIP 2.0; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ActionId=4dfaf029-a486-4d97-8833-2349d1adab88; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ContentBits=1 authentication-results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 97b6c636-88e4-4095-0d3d-08d97656375e x-ms-traffictypediagnostic: DM4PR12MB5264: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DF0NGSVwfC9YNsZuB8aLB4YQF0V3RMkwHaDHOut19qmTQZOPd/KxAyAzHGl8Uy/fMt/GzZlyerRiAM3+fHNalHWQ84CYiEtrBbJZKBXB94wSotQ/pDecOS3k+36mRiZhKdu2aC3JfQgEJMxt3nc+30M9rrRRUZOk4lP3lQSGc9Az0kxpAsrua1l9QgUpyPtk3ixWo8WeC2wqrlTHt69kHhY9Ej+wl2Mi02+zqucAsv+yzpIGSDlFwvqttuBg1lszr/5lH1j+f01FhiosgoR4mX1/spTqrxzSAQTQNeXI+IdCvlIXE3TwhNOTCu5UtCMRDf8jN+EKdc6j6VYvPRYm8eGFjCpCTyb5dIvQcXiyKmJqyFXulQqD8CyY9mfFgsjF8tM8GreDDoqapP5/hPRtTQ/KqEP/YbOa37lFqXs1+7hZ56XLvy16uQJ177k3GDC0NRenxkhIHxrRCpTBSUlPS2VaL3LH417oZw2cU7/DlOQYqdFcfBDONz/6eWLIqJgaF6p2PyzsxL2TvDq1Kc4uGYU70JEC2NKs1Z18n0Q66avGROiENwas9mqh3JUDeaS5pOApxYaZF7QRVxWdb0BKgPcYu7PDW/7Cds5jRTHRC8RIYQKpzBVKD290HBsbesgrPvwS1XW1m67ztOzQvg8Ne6AM0ybxVojyEY45h2ahUJVLLnKyP/CZOj4xMu8lHLJW6HDIIbmzEyiFEB8R2f8dmQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5263.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(71200400001)(6636002)(76116006)(53546011)(66556008)(66446008)(66476007)(64756008)(66946007)(7696005)(8676002)(4326008)(6506007)(316002)(83380400001)(33656002)(86362001)(122000001)(2906002)(186003)(110136005)(54906003)(26005)(38070700005)(38100700002)(478600001)(55016002)(45080400002)(8936002)(966005)(9686003)(5660300002)(52536014);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?36xyzjR6FCvk1+/kuu+bC59nlte+ljIXD7oIFUxKAz3kroGgNQfc74oU6qE8?= =?us-ascii?Q?2+8HgXp+mh1cGdtgZEEgoD97fX0SNzKK51Cy7HgIpReBHvnbwbEkBvhl7C+X?= =?us-ascii?Q?X8lZMNgsnw2KiZOU29AshYLaa/j+kgqT5pbWxdlU5BxPnbKEesZP009OEZXU?= =?us-ascii?Q?Wled4dKSa0cZvj3+DfQIA2fq4tnuZswIQajDrZx9JMOSLRwGz5EM2CTDaCnR?= =?us-ascii?Q?QJxpQfnIXMmi3LowvcZK5+Jgfc4qaOYOyO08dWbD/ifwWW4nEdYOKUyd+aPU?= =?us-ascii?Q?kgHQgtikVJLeVpb2AqTWnIzbQmlQvTNcPo+4NBly9UPjRb409Fq2+rcjUuoV?= =?us-ascii?Q?NtPltrqJU4gYbCTGBg/059dcQ/cjgHGftiJa+/DE8iCtCHGP6m5g7CZtcmZU?= =?us-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7RM1XkgEnuCoWHQsrEIZcD2ok552Fb?= =?us-ascii?Q?Ieo=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5263.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97b6c636-88e4-4095-0d3d-08d97656375e X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2021 01:31:31.6288 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LVCqWftLOJMwhe1ylCJj8mPAKr4HLU8vTjKQHFwM53zSFoMmFjtqSyICLE40wwEnEytqLx2mxjhu4zCIlMiWHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5264 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Official Use Only] > -----Original Message----- > From: amd-gfx On Behalf Of Joshi, > Mukul > Sent: Thursday, July 29, 2021 8:00 PM > To: Ghannam, Yazen > Cc: x86-ml ; Kasiviswanathan, Harish > ; lkml ; > amd-gfx@lists.freedesktop.org; Borislav Petkov ; Alex Deuch= er > > Subject: RE: [PATCH] drm/amdgpu: Register bad page handler for Aldebaran >=20 > [CAUTION: External Email] >=20 > [AMD Official Use Only] >=20 >=20 >=20 > > -----Original Message----- > > From: Ghannam, Yazen > > Sent: Thursday, June 3, 2021 5:13 PM > > To: Joshi, Mukul > > Cc: Borislav Petkov ; Alex Deucher > > ; x86-ml ; Kasiviswanathan, > > Harish ; lkml > > ; amd-gfx@lists.freedesktop.org > > Subject: Re: [PATCH] drm/amdgpu: Register bad page handler for > > Aldebaran > > > > On Thu, May 27, 2021 at 03:54:27PM -0400, Joshi, Mukul wrote: > > ... > > > > Is that the same deferred interrupt which calls > > > > amd_deferred_error_interrupt() ? > > > > > > Sorry picking this up after sometime. I thought I had replied to this= email. > > > Yes it is the same deferred interrupt which calls > > amd_deferred_error_interrupt(). > > > > > > > Mukul, > > > > Do you expect that the driver will need to mark pages with high > > correctable error counts as bad? I think the hardware folks may want > > the GPU memory errors to be handled more aggressively than CPU memory > > errors. The specific threshold may change from product to product, so > > it may make sense to hardcode this in the driver. > > >=20 > Sorry I missed this email completely. Just saw it so responding now. >=20 > At the moment, we don't have a requirement to mark a page "bad" if there = is a > high correctable error counts. > Our previous GPU ASICs which support RAS, also do not have such a feature= . > But you make a good point. It might be worthwhile to go and ask the hardw= are > folks about it. >=20 > > We have similar functionality in the Correctable Errors Collector. But > > enterprise users may prefer a direct approach done in the driver > > (based on the hardware experts' guidance) instead of configuring the ke= rnel at > runtime. > > > > So I think having a separate priority may make sense if some special > > functionality, or combination of behaviors, is needed which don't fall > > under any exisiting things. In this case, "special functionality" > > could be that the GPU memory needs to be handled differently than CPU > memory. > > > > Another thing is that this behavior is similar to the NFIT behavior, > > i.e. there's a memory error on an external device that needs to be > > handled by the device's driver. So maybe we can rename MCE_PRIO_NFIT > > to be generic > > (MCE_PRIO_EXTERNAL?) and use that? Multiple notifiers with the same > > priority is okay, right? > > > With respect to MCE priority, I was thinking of using the MCE_PRIO_EDAC > instead of creating a new priority as the code in the GPU driver is doing= error > detection and handling the uncorrectable errors. > Not sure if that aligns with the definition of EDAC device in the kernel. >=20 > What do you think? >=20 > Regards, > Mukul >=20 After talking to Yazen, MCE_PRIO_UC might be a better choice for the MCE pr= iority as we are dealing only with uncorrectable errors. I will be sending out a v2 patch with changes to use the MCE_PRIO_UC and dr= op the MCE_PRIO_ACCEL and see what the feedback is. Thanks, Mukul > > Thanks, > > Yazen > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flists= .fre > edesktop.org%2Fmailman%2Flistinfo%2Famd- > gfx&data=3D04%7C01%7Cmukul.joshi%40amd.com%7C7d32897fddef448ab0 > aa08d952ecf41f%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6376 > 31999953383488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJ > QIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DYWZz9 > OYTMOhBl4183kV5ZYj01yw0xwNj%2BjTdXejFKH8%3D&reserved=3D0