From patchwork Fri Apr 11 22:08:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijay Balakrishna X-Patchwork-Id: 14048803 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DA2C293B55; Fri, 11 Apr 2025 22:08:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744409321; cv=none; b=fBH3b29yAcwjsOMiYKAPxa7DLCdxriuwN5BW89mHMQXGtXiIUWWN2IQWJZ2KYmcHtzajC132+KVNDSSmOM4CpxuvwIfwCN/zdB2piphPjVFMQHd0+oYs4sbElFkWs9F93W0J3rVeqmhdaghKXk2V4E1Wd0WyAQzwIatq3zYPjMY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744409321; c=relaxed/simple; bh=WZrpMsoJEf8McqfhVmNx1nWCMR+cyym2/nGipLZ6fy0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ugSVdv1v6XcaemEyflJvWMp3+14GqsRKySQyXh51X0zqnGzUtYtTrMO3gu1JAxvdEjVX+ffWR5L+vCvp920hLoaKSzC7cvnFXYzA0pyr5mHGgLFNy4FxdvQLrv2Fj5+8oVmnBE5Umg4geEgbXpgne2nwEVPUKIAQundMiOvZkug= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=EnIErEt1; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="EnIErEt1" Received: by linux.microsoft.com (Postfix, from userid 1053) id A4B4221165AD; Fri, 11 Apr 2025 15:08:39 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A4B4221165AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1744409319; bh=Pes897Jv0hoGSjWuzaZIkP/52WpUpaObjwqPMl/Gn1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EnIErEt1pDfI/+HsXzjVSaE/SIB4/opE5rI0TkdaaH0PrkZyd+IHFLanNP90Lp7Mu pJItHVB/NUGDXpsAZBVps8kq94718ThDZDWsCFu+ei5ZnYHmdJsqZW5J4QgLuKCM7D q78CFGZQEh3Z7YsvCBuMuMPlNSYS4m3lz+buDe28= From: Vijay Balakrishna To: Borislav Petkov , Tony Luck , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: James Morse , Mauro Carvalho Chehab , Robert Richter , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tyler Hicks , Marc Zyngier , Sascha Hauer , Lorenzo Pieralisi , devicetree@vger.kernel.org, Vijay Balakrishna Subject: [PATCH 2/2] dt-bindings: arm: cpus: Add edac-enabled property Date: Fri, 11 Apr 2025 15:08:39 -0700 Message-Id: <1744409319-24912-3-git-send-email-vijayb@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1744409319-24912-1-git-send-email-vijayb@linux.microsoft.com> References: <1744409319-24912-1-git-send-email-vijayb@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Sascha Hauer Some ARM Cortex CPUs like the A53, A57 and A72 have Error Detection And Correction (EDAC) support on their L1 and L2 caches. This is implemented in implementation defined registers, so usage of this functionality is not safe in virtualized environments or when EL3 already uses these registers. This patch adds a edac-enabled flag which can be explicitly set when EDAC can be used. Signed-off-by: Sascha Hauer [vijayb: Added A72 to the commit message] Signed-off-by: Vijay Balakrishna --- Documentation/devicetree/bindings/arm/cpus.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index 2e666b2a4dcd..d1dc0a843d07 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -331,6 +331,12 @@ properties: corresponding to the index of an SCMI performance domain provider, must be "perf". + edac-enabled: + $ref: /schemas/types.yaml#/definitions/flag + description: + Some CPUs support Error Detection And Correction (EDAC) on their L1 and + L2 caches. This flag marks this function as usable. + qcom,saw: $ref: /schemas/types.yaml#/definitions/phandle description: |