Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1303705pxa; Sat, 15 Aug 2020 15:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9f5Xx6tggmAXqwJwOeOEY9DKXLMpbt41wi6a1y+/T/w+LqGwu6e102vJ/bqL/ihlZExdt X-Received: by 2002:a05:6402:1427:: with SMTP id c7mr8829529edx.245.1597529274466; Sat, 15 Aug 2020 15:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597529274; cv=none; d=google.com; s=arc-20160816; b=m6yf0rsOUzqlKiy9sb6RWrN8Rhxf2mA10aXmrB9x7Rir8Bc7qMA6dTTQeNG3zfuNMN RZ+4l3BpXnud0YadNBZegPGL7FqyzcIkAcK3yMNRlfe+y9pcDeOqCoxClLIb9iCFqhJJ 5zJp1RXfWfQrDuXQWekGDkDnI4mmPpqrUmumO91NtMV+VBGLvp9d0lElizgoIq5qKWM7 y8kI/ImtSSv/XlYrtWP+Zeqrw3zboyUSne70GTXQIM9vwoR/FjLZk5sezsnkC/AqxXRa Mi3vhZhlUBYZo8VPmtecgcmHnUw6ITEjADTxyAtwY+VYNGYtqbxZspn5szD8yF/pUOwb X3Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CmqbmjtODYtlwRW7qWoQG1WqmoGu1ND+kuU+HHrBwFw=; b=ZZXoHO+RjQjQdjZ7+as5EiAHsf30qZLpohyCyWjtHGhikcHG8ZE6dEhu7KM2q1i5Cw j0c0tWq555xBjDr0qAYFB4xupAMsGwPhLMVblWe2zFllGgEgk51QHHP7xh0/g10SjPkO bBdRoDetPNmPRU2r5DdmWo/+n0ohB7yPodEQYMQRwlg86NAgQT3XuI2CgGJ3tm6F5956 WvuCfB95zaD24/bOPI8UmK11gfHSWPiLM4NftkM4z+3HB9a+V0wVAWNq+Y3TjLhycrMX 9FTLA90EieMZ7RWtOoeyd+oVv4IrjJ3HLUiPMnTTP/wQex5RE2PT5/2e+xb7QkSVgOAp SyvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Enkvx3eC; 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 b4si9319501edf.40.2020.08.15.15.07.31; Sat, 15 Aug 2020 15:07:54 -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=Enkvx3eC; 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 S1728967AbgHOWGb (ORCPT + 99 others); Sat, 15 Aug 2020 18:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728418AbgHOVuu (ORCPT ); Sat, 15 Aug 2020 17:50:50 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89947C03B3CE; Sat, 15 Aug 2020 01:41:07 -0700 (PDT) Received: from zn.tnic (p200300ec2f1c7a00329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ec:2f1c:7a00:329c:23ff:fea6:a903]) (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 AC2801EC044B; Sat, 15 Aug 2020 10:41:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1597480864; 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=CmqbmjtODYtlwRW7qWoQG1WqmoGu1ND+kuU+HHrBwFw=; b=Enkvx3eCIzsidlS3C+nqS52FIeO7ezEcI27HINGWHsC2a3OXUawSC8iEolmV1uC8UL1Q7Q nQchEb0VvZYIAzmKg9Hp5o/sU36IposP4sYm1Ay+AsgnzMWjzQ7W4vL2gG0MRSZmDNmpU8 2pPkjh0eUEUPuBB9+hu24EIEq+1WtT0= Date: Sat, 15 Aug 2020 10:41:57 +0200 From: Borislav Petkov To: Alison Wang , James Morse Cc: mchehab@kernel.org, tony.luck@intel.com, rrichter@marvell.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] edac: nxp: Add L1 and L2 error detection for A53 and A72 cores Message-ID: <20200815084157.GC25814@zn.tnic> References: <20200709082215.12829-1-alison.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200709082215.12829-1-alison.wang@nxp.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 09, 2020 at 04:22:15PM +0800, Alison Wang wrote: > Add error detection for A53 and A72 cores. Hardware error injection is > supported on A53. Software error injection is supported on both. > For hardware error injection on A53 to work, proper access to > L2ACTLR_EL1, CPUACTLR_EL1 needs to be granted by EL3 firmware. This is > done by making an SMC call in the driver. Failure to enable access > disables hardware error injection. For error detection to work, another > SMC call enables access to L2ECTLR_EL1. > > It is for NXP's Layerscape family LS1043A, LS1046A, LS2088A and LX2160A. > > Signed-off-by: York Sun > Signed-off-by: Alison Wang > --- > .../bindings/edac/cortex-arm64-edac.txt | 40 + > drivers/edac/Kconfig | 7 + > drivers/edac/Makefile | 1 + > drivers/edac/cortex_arm64_l1_l2.c | 738 ++++++++++++++++++ > drivers/edac/cortex_arm64_l1_l2.h | 54 ++ > 5 files changed, 840 insertions(+) > create mode 100644 Documentation/devicetree/bindings/edac/cortex-arm64-edac.txt > create mode 100644 drivers/edac/cortex_arm64_l1_l2.c > create mode 100644 drivers/edac/cortex_arm64_l1_l2.h This needs James to have a look at. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette