Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp772196pxj; Fri, 14 May 2021 15:53:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfF+wLdVXDz+TKSmSAhgNPMkHPojLKEtrEzMig0pv5qQ0ITZt7NBjt+cgcaYqALmO3Ah7d X-Received: by 2002:a05:6e02:12cb:: with SMTP id i11mr41938754ilm.221.1621032797253; Fri, 14 May 2021 15:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621032797; cv=none; d=google.com; s=arc-20160816; b=Wcx654joJGDTQ18xbQi+xnrNTsVRB18xA7NoY/nxZ8HbgySZA/FHD6v6MWpr/5Xr+3 4q8A1QI6Qv1TIWE1NSN94dILzPz9YZWfJEyuIkjQPi45cCSSlHHdBeyW2e/8GYg4HExX mgg93J928Gd9v/veiPdfd1Jm34vbPw51wEtPE2uaOG00PEqFID/ymmhWqi6ofsNF4/Yr YNqdKQN36Xcx1wc+BMK3BPuC8cYNO9y/EwFDoCLRCu9bA+P0xzLQcfvj4R0r26ItSnrW 6pFtE6FF8VIHNquaQ4xSdcyTOpevwXyWVtNfCXYLMzw4ZC8qysLKTqEGs7A+CoRFCQvy cloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=56UXFskDRro/v9sxWzMI7cd2EQdQ1g/Ab6XrYnboPHY=; b=tnGgUzyoc26tOkvfoe2fw7QZB0M2sEll3QEVAR0U0S7TuRmwzInDagnDlS4u3NUc1W rMhMWNWPKEGb7rBXygxekEbZggpQ0iRxm+M83yZ2TmnmrL58fNvaZF2Tr+lDu1glTvjv dP/XEsxbaU6ihOurlX4JVqTFnjzQYasGVOq96L4HxN6HIYJ4cdqeNS6qVFIdz0E/BA9G SC2+54A8UMyy/InIYwqW4amGgZGVL4rGty9brYSi6/qxQCZycghUu2/Wt6v1gfhovjr2 hUi5r0yRktnwsiZzVgS+xsKZOx70P8k7kaXU0oe0/bOd3bPe3ScMEGBQHTE6DOcXoeGE exiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=l6ulfs7R; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si10727535jaj.81.2021.05.14.15.53.04; Fri, 14 May 2021 15:53:16 -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=@alien8.de header.s=dkim header.b=l6ulfs7R; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233005AbhENOja (ORCPT + 99 others); Fri, 14 May 2021 10:39:30 -0400 Received: from mail.skyhub.de ([5.9.137.197]:41236 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbhENOja (ORCPT ); Fri, 14 May 2021 10:39:30 -0400 Received: from zn.tnic (p200300ec2f0b2c001b1c8d89a706f2ca.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:2c00:1b1c:8d89:a706:f2ca]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 202691EC0537; Fri, 14 May 2021 16:38:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1621003098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=56UXFskDRro/v9sxWzMI7cd2EQdQ1g/Ab6XrYnboPHY=; b=l6ulfs7RoVDOCFi04UqltMLII+y7afq7VEDMQQhzJJPZPFDp6UHaD/pm7/7eODbSlyEhaI IK0IZk+2mBuk8WS0N5i28eS2uqsDJ2kq2vKTIoxz1v1fzTBaYZyhaPeh+NPIT3TnQc1gwB opRwOpFGOAq43qMhE700hrizvFOpRfs= Date: Fri, 14 May 2021 16:38:14 +0200 From: Borislav Petkov To: "Joshi, Mukul" Cc: "amd-gfx@lists.freedesktop.org" , "Kasiviswanathan, Harish" , x86-ml , lkml Subject: Re: [PATCH] drm/amdgpu: Register bad page handler for Aldebaran Message-ID: References: <20210512013058.6827-1-mukul.joshi@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 01:06:33PM +0000, Joshi, Mukul wrote: > We have RAS functionality in other ASICs that is not dependent on > CONFIG_X86_MCE_AMD. So, I don't think we would want to do that just > for one ASIC. Lemme try again: you said that those errors do get reported through a deferred interrupt. Which is likely amd_deferred_error_interrupt(). If it is that interrupt and you don't have CONFIG_X86_MCE_AMD enabled, then you won't get any errors reported and your RAS functionality will simply sit there inactive. So if that above is true - something to which I'm still not getting an answer but maybe one fine day... - so if that above is true, your RAS functionality *needs* CONFIG_X86_MCE_AMD to be enabled in order to *actually* function. So you *must* make your RAS functionality depend on CONFIG_X86_MCE_AMD - otherwise no deferred interrupts and no errors reported. It is that simple. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette