Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2096903rdb; Mon, 9 Oct 2023 12:23:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOCpB8Q4xK7O5gqprqaWYQuIqLGOstCQUcBYSdgQnOHpLD0wAY3/ceayk5BdrCk8zFnGB7 X-Received: by 2002:a54:4413:0:b0:3af:b2bd:daba with SMTP id k19-20020a544413000000b003afb2bddabamr15985130oiw.56.1696879383971; Mon, 09 Oct 2023 12:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696879383; cv=none; d=google.com; s=arc-20160816; b=jEQCMEnlmVMZWxCd8MQNASE+zwAoWPCSIFjmLXelvnYtNSArR2G0qlljyQVvlTtErB 7mpTtA2jxcY3DEv3Al7IZQzrPCRQVnhjo3flBNN7hSLe0qY8qiRhhXB7uhQwXOF+7sKy ATofMPrkfRG+TdQMUNPmbTXulbneARip8sUTxfL/z/X4jfn4dMne/c09LXzKLCzPdwQZ b0urWTR5gVh5iqP5Qa4nLTWqKQ0mezwDvY+RzvqzAprDuluIZvg+xF57MdrvTg02CfQi sG4DTG0tEMbsTt+F83JUfd8ydwXtqLnNwzOfjhmlPashLzPp8472Hk+S38kPm1p8eIpl lKgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W213PjLTqM3JEmBmT6cQ0NV691A2RnRzmI4p6V+/cyA=; fh=VxOl3Fnl32KDobyp3qt5WVFbT3UxHrLge/0+PiRLMiE=; b=rGaODRGF547AAHwpp/6VVBXH3ogNoOcLJn93UNqlS1Fw/XOK3w52eE+oOhbl4OkdDU FxofCZE5dkQdlE6MqMHMadeEg0R4ZeZvnSIsWavgRGJUOMnCg4wFRvkQwpaNOekEuxmw 1t7vRSnWm85QtZWUfCrxfSR6a6ZBVutAxJ383xXa0Jeti/NqjVhi7AIdARt8FmQVkWo1 5cfOgmxeitlDzlFy4iXwq9EPrHnHwl/9od3f6Vq7MGXEG/HDoj7tmA0D9jwFy2JPX1/e XIW+kpXp9UQ9aMNheE//l/9v+Qx1FvTvACO00GqJ5T7OzTCnmSqLkhkjZ6zEAKFG2jq1 NtcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dAcMgpiN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a22-20020a637f16000000b00565701e9a36si9835247pgd.752.2023.10.09.12.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 12:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dAcMgpiN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 197F38054B0E; Mon, 9 Oct 2023 12:23:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378347AbjJITWm (ORCPT + 99 others); Mon, 9 Oct 2023 15:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378273AbjJITWl (ORCPT ); Mon, 9 Oct 2023 15:22:41 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA3EC93 for ; Mon, 9 Oct 2023 12:22:40 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9b6559cbd74so895094666b.1 for ; Mon, 09 Oct 2023 12:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696879359; x=1697484159; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=W213PjLTqM3JEmBmT6cQ0NV691A2RnRzmI4p6V+/cyA=; b=dAcMgpiN0LWvK66wLQsELTxUO3nl3flvQzKo216b7GkR2f/vq8ZAWjvuXCG32cH2pm 32VkSc19Bwnn+CSlo9WnwzPVvHnL6Vjdr9bl5O7fSQLhSzK4Tog6rz7XG7T9BnzlhDad gtU+UhPWdNs9X+J0Aeqgs8+T80hfRaKP/Bi0E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696879359; x=1697484159; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W213PjLTqM3JEmBmT6cQ0NV691A2RnRzmI4p6V+/cyA=; b=bIHlhOmNHE6ychf82EWkgYFdBX/3gJLauWnUVqZbqHjOYheqof5aXjqNcUkahRfU12 b+tjA3rROrRgRDxRf7M36KNDeB6Y8SXjSkXLgfH2o0QR+YTeXwYQxtiW1Twlk2gsWFkY eu4R3Ht3/go7zzrvAeWOg6ei2COi5/oA+3uHHPRdWyC+7F9Jb+k3JPyxeLjKlEx7aTNd lHqyFyYzzxsOPWeKTJr9quJrylYAEJXwo85jP/pGFEIkvGrm31SVluv5amv4WQ7WVg4w x3WYXWdiCrFdD9QUUeaEyoB6XYJxcMhFvgqemw/skzJAzv6gWequFkw923vhMqwXDAR4 8cMw== X-Gm-Message-State: AOJu0YynDxyY0paeqIITYR4ZqORCtMz2+3MLfj5Wc5Qd92FE/WLagu83 ObLZbp25Ok5Zyv5wdwwlnqRVyx3s2ZL6Ucies/Vutg== X-Received: by 2002:a17:906:3012:b0:9ae:4054:5d2a with SMTP id 18-20020a170906301200b009ae40545d2amr14184483ejz.16.1696879358971; Mon, 09 Oct 2023 12:22:38 -0700 (PDT) MIME-Version: 1.0 References: <20230926194242.2732127-1-sjg@chromium.org> In-Reply-To: <20230926194242.2732127-1-sjg@chromium.org> From: Simon Glass Date: Mon, 9 Oct 2023 13:22:21 -0600 Message-ID: Subject: Re: [PATCH v7 1/2] schemas: memory: Add ECC properties To: devicetree@vger.kernel.org Cc: Mark Rutland , Rob Herring , Lean Sheng Tan , lkml , Dhaval Sharma , Maximilian Brune , Yunhui Cui , Guo Dong , Tom Rini , ron minnich , Gua Guo , Chiu Chasel , linux-acpi@vger.kernel.org, U-Boot Mailing List , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 12:23:01 -0700 (PDT) X-Spam-Level: ** Hi Rob, On Tue, 26 Sept 2023 at 13:42, Simon Glass wrote: > > Some memories provide ECC detection and/or correction. For software which > wants to check memory, it is helpful to see which regions provide this > feature. > > Add this as a property of the /memory nodes, since it presumably follows > the hardware-level memory system. > > Signed-off-by: Simon Glass > --- > > Changes in v7: > - Drop unnecessary | > - Add a blank line between properties > > Changes in v6: > - Use a number of bits instead of a string property > - Fix inidcates typo > > Changes in v5: > - Redo to make this property specific to ECC > - Provide properties both for detection and correction > > Changes in v3: > - Add new patch to update the /memory nodes > > dtschema/schemas/memory.yaml | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/dtschema/schemas/memory.yaml b/dtschema/schemas/memory.yaml > index 1d74410..b3bf3c9 100644 > --- a/dtschema/schemas/memory.yaml > +++ b/dtschema/schemas/memory.yaml > @@ -35,6 +35,19 @@ patternProperties: > For the purpose of identification, each NUMA node is associated with > a unique token known as a node id. > > + ecc-detection-bits: > + default: 0 > + description: | > + If present, this indicates the number of bits of memory error which > + can be detected and reported by the Error-Correction Code (ECC) memory > + subsystem (typically 0, 1 or 2). > + > + ecc-correction-bits: > + default: 0 > + description: | > + If present, this indicates the number of bits of memory error which > + can be corrected by the Error-Correction Code (ECC) memory subsystem > + (typically 0, 1 or 2). > > required: > - device_type > -- > 2.42.0.515.g380fc7ccd1-goog > What is the status of this patch, please? Regards, Simon