| Message ID | 20261105-submit-sunxi-nand-vendor-oob-layout-v1-v10-25-dca1f6ed29a8@gmail.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-27284-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mxe881.netcup.net (Postfix) with ESMTPS id A82C71C53BA
for <noreply@patchwork.local>; Thu, 5 Nov 2026 20:40:45 +0100 (CET)
Authentication-Results: mxe881;
dkim=pass header.d=gmail.com;
spf=pass (sender IP is 104.64.211.4)
smtp.mailfrom=linux-sunxi+bounces-27284-noreply=patchwork.local@lists.linux.dev
smtp.helo=sin.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4
as permitted sender) client-ip=104.64.211.4;
envelope-from=linux-sunxi+bounces-27284-noreply=patchwork.local@lists.linux.dev;
helo=sin.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 1DCEB2D5B1
for <noreply@patchwork.local>; Thu, 5 Nov 2026 18:57:03 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793904970;
b=17R/dGLTVQcVhOpd0/wYxp2MjXiHaDYCaT1DWJtXE9GH5Gy7PKlXFwY7dt9NDH7q144P
/GBYXGgetSX+A4Av+Nw1ir7HpfxoCCPkFyFzx24in5f3y21NFabMQT/O0ItB9lNAeYZ/e
aloIIMK4eMVE4mAnn4e3nBUEu69aRzvy+/dzI+tEYZ5EvMhUWc6u5kILSVMSlUdQ4TPdM
UPMNNcVd0pqhFIAHsgSlcH2UnZG7+UrE99wac+HruopZwmnf8OnAlF7/oexdDDvi/o2gg
KExGhEdq5WyKQXBtFNFyA6wjlkQyhfphsuGRO2nfoaaPEEj9djM+0p6l5h3nlZPYJEg==
ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793904970;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:Date:Subject:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
bh=KWxxvC68veJE9vLqTWwy/EexVQuI9OEnPBoyBsJoQls=;
b=0YBdah2Ww97yfi7j3q1ehXrfqJPFM+M7AMw3RR2SC5+HjYJmdbmOs9VkwQlVXH26Zrkj
h0Jt8sClgJ4kfwITMW9O7u6r34TlsQOXp3rg0zV2J34JiPYb52delmd2wiT88XqGmRxzY
bT3zf8nOj2UYFi7yL+D4pveIEN1g6FJyVlEfevX2Zs3OX1z9YkLBhe2mQSwvGUzCzbRc4
e5aK+JazFR3Bon15e/OPL3g4YAgGilhj9ZEgWQctlUzWvCsd0RVbSd1ZqFdrexM44C8em
rmIirTSTOYnu7lN1JkMDYHBv5wHuEdJ6ZoyqyLMMgtuWGlsJZFWhJF3tlWuJJ4Dzaug==
ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=rrhoRe3x;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id EC20D60A262A;
Thu, 5 Nov 2026 18:56:09 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key,
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=rrhoRe3x
X-Original-To: linux-sunxi@lists.linux.dev
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.remote-ip=209.85.161.48
ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793904969;
b=Q0OYfs+Y8gvOPq5RTn0CjB42Wx0M+2uC2tojGp4OHYLNU//bb+f5tCd7KlxK5qi0c3Ze
mdFkF8h51OFRJvvnPpvs/RoElqQ2xfFOHXezZ1PmJfUXUlMcMiQisTrtUAL8fczPrrrAM
4k5McjHDPsNE/YCAv7w81Jep2BWpgxjiQJpFtQIZYrEb05cTys+9orbhgHWij5+nCX49w
VKi9D3C1lMt536Ie0qaegZcoDTyxsCaJjC7GW/LpvsJHIiDYgz+Kd8BdRORyXZEZBL81Q
KY5U9jnm7N2QkwrYfJLoHrw2NaU2Zf8nydKGHuTlIYWJ93nYFq4Iqvc4+rJrs0Jlzaw==
ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793904969;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:
Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
bh=KWxxvC68veJE9vLqTWwy/EexVQuI9OEnPBoyBsJoQls=;
b=zm2dy1IHBu3qFFxe9q1XdSWVD/+NRSViAW0qRoYerDUxVj69oSDP/Ai818a85n4sTFjX
StkIv1gckaRUioNM2FkNn2Sjraj3Km3w98wKscjXkIGIoRZyMEkDVTdkgwpZA8ZvZMvee
j0+qX+whNY3xHIPukHU9eBC9aZtpUqhgd4UN5ZF7I1I3UdAfTrz4g2YbLRX/V5nJXbW0p
66HySql/PCIlc/7cyvje2nzyQaMVk3/YV9QsPhd6IjUqCzczov4S/eE+7pK503m28/vSv
UPnOpLsqKnk33vUARXyptsA6rba87xb5QtXAFr/3wG3LokpMF5lVEbEQ2FtoDs7doBg==
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=rrhoRe3x;
arc=none smtp.remote-ip=209.85.161.48
Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com
[209.85.161.48])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest
SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85B3A60A2623
for <linux-sunxi@lists.linux.dev>; Thu, 5 Nov 2026 18:56:09 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85B3A60A2623
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=gmail.com
Received: by mail-oo1-f48.google.com with SMTP id
006d021491bc7-6dde81a6820so1436781eaf.2
for <linux-sunxi@lists.linux.dev>;
Thu, 05 Nov 2026 10:56:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793904968; x=1794509768;
darn=lists.linux.dev;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=KWxxvC68veJE9vLqTWwy/EexVQuI9OEnPBoyBsJoQls=;
b=rrhoRe3xHyLEH79PBGX5xQiaaMGyNqL4RFnSvz/cVpflO1VAKVJXIgy1QJYyEKKvLr
Ehu+teISzIeG1fe3nm1aCk+iRYtMXAZkUuYTujCjp1hVq2pXEf2aEDVIi953q352XioN
7z3StCggsPamR6Npeiqj08eVt+J7iRsuQZ3Po34eg7/gEIyivO+HIQ8MWYPDD41ZHdVm
cmzuYPk6WAjD/j+s0zd2nWZsKCsubKHfSh+KgOhldry0NJkaOi9DzcZngN6NM58afHG1
Tvyna5EaIK9vttmTyWxOgkxti0bkz9T7nUNs8fDiu4VGKoKwna7Pam63D5qzH7lJ3dwg
QQJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793904968; x=1794509768;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=KWxxvC68veJE9vLqTWwy/EexVQuI9OEnPBoyBsJoQls=;
b=Z9D1XRGx5mzg6fRyDqB1/twL4AYs2SarM1nHYMBzOwna39i/sbtlAep2uyB1E8fSf9
UjItHcVZMm59bn7wmryj1WJyfYtXyG66h267lMr+Rzx0KW4NG//GyFIA+JEEUi5ICMm+
r0oU+OPypipDPVybpz4SEWvtNAqxzt2SSTo/vFcWXKFlCugLoEFfsOT8dd3mC7MntnSv
F+u7tuct0Ht+yPxWtmxsCKpNML3izkm+jrN8zOEEaYHht/2hvqYo6nuylHVdIgmXKgsZ
YSBtAJaaULro0STml+1aCPahJil9RhbGVwFuWSdH1lzsJ8YuBBSwtEQ6Il6TqcP8LlMy
WBRw==
X-Forwarded-Encrypted: i=1;
AKwUvBzXAStifxctqZp6zaWnhbUYYrBnLrwil8/cvIBU1YvMII29iRcnMa0cNmGtIoU1jYTimfgDD+/1mOTXiA==@lists.linux.dev
X-Gm-Message-State: APuU4Z9i8jiomPQxd1sJo0BFbDnJneRRxojdzNYYNjkqBOXeggYWYbh2
s47xz8Nh3OYi5GA7rtGnHUXuqJpQNPqGWVeqXbNIt2yIfu/u7EPonJJb
X-Gm-Gg: AYBFou3q2kdNihozCo4WQVV8YY8+I0i3nVpDNthPDMoIAdGXe0tyzZkGLvbuP5C+QEd
haAC6oGBcxkW4dKyILcnKEqp+Pqj1G7bKMD7J4k03WWsnP4n0cH7Q0IfTiCdxn5urZg2vuGH+xS
dKrdTkZE2eE0jOz3KASJomaPMP84nu6dxwiTJfqI3DzhAyPtASY0AfwImlmemtYqXkQDDO37wE/
v2MBrlY9q5UgSieJVzdgtxts9X0+MF2PURMgZ6mYuf9b57TlruGN/QHigKVALUK39bf8l0Zd8n+
5K3HlQ/dXUdq76QDJMD504KxMEX7sA6l1xHYhyewK/0+ADCeseOkXvjGr2ITpypLcoLLJ2oGifq
GPmI/gSG4naidAB/pcTddorBHodIAbX+t9K6MXGvVeXQ8qmm17+1WwFBmOfO9NODt3qi27qmcL3
IFXKLsn0IfuE7EYV134DJIewFRvpf2RuBC3OOJ+/2OP8BGuToQN8cN6pNZEfLsBVapckkbDHuhs
hlDgcigO2LBi71/kzo8Ys+dmTWaBz8T0qrFCO/o+fiH2otslKqLZASoRQV/hrxwWiD7YN4/l+wq
U7/ZxndqfDlRwlgwJiCwj3uD7FHEjLv3zHAwy5OEygH6k6rWWXYxKy827jMRRkV7BFHjSbuQpVX
mHcidmtuONCEoaqiQI2+imM4ZXhpCGEnt4QwRzuiG4pNOQMbvj0bYi/k6B4A1nugOP1DPJXBgZq
MCX26EKRa9rXpFF0hGXXnwEIkCClneY0qegArcRjhbdKculf9OvT4C
X-Received: by 2002:a05:6820:16a9:b0:6f6:3762:5f9c with SMTP id
006d021491bc7-716e73de6d9mr410801eaf.11.1793904968458;
Thu, 05 Nov 2026 10:56:08 -0800 (PST)
Received: from [127.0.1.1] (174-29-1-49.hlrn.qwest.net. [174.29.1.49])
by smtp.gmail.com with ESMTPSA id
006d021491bc7-716e99465dbsm115897eaf.0.2026.11.05.10.56.07
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 10:56:08 -0800 (PST)
From: James Hilliard <james.hilliard1@gmail.com>
Date: Thu, 05 Nov 2026 11:55:41 -0700
Subject: [PATCH v10 25/26] dt-bindings: mtd: sunxi: Add randomized OOB flag
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Post: <mailto:linux-sunxi@lists.linux.dev>
List-Help: <mailto:linux-sunxi+help@lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
List-Owner: <mailto:linux-sunxi+owner@lists.linux.dev>
Precedence: list
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id:
<20261105-submit-sunxi-nand-vendor-oob-layout-v1-v10-25-dca1f6ed29a8@gmail.com>
References:
<20261105-submit-sunxi-nand-vendor-oob-layout-v1-v10-0-dca1f6ed29a8@gmail.com>
In-Reply-To:
<20261105-submit-sunxi-nand-vendor-oob-layout-v1-v10-0-dca1f6ed29a8@gmail.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Clark Williams <clrkwllms@kernel.org>, Steven Rostedt <rostedt@goodmis.org>,
Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>,
James Hilliard <james.hilliard1@gmail.com>
Cc: Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>, Maxime Ripard <mripard@kernel.org>,
Richard Genoud <richard.genoud@bootlin.com>,
Boris Brezillon <bbrezillon@kernel.org>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Brian Norris <computersforpeace@gmail.com>, linux-mtd@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev,
devicetree@vger.kernel.org, Conor Dooley <conor.dooley@microchip.com>
X-Mailer: b4 0.15.2
X-Rspamd-Server: rspamd-worker-8404
X-Spamd-Result: default: False [-1.19 / 15.00];
BAYES_HAM(-5.50)[100.00%];
RBL_SENDERSCORE(2.00)[104.64.211.4:from];
SUSPICIOUS_RECIPS(1.50)[];
DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed),
No valid DKIM,none];
MAILLIST(-0.18)[generic];
MIME_GOOD(-0.10)[text/plain];
BAD_REP_POLICIES(0.10)[];
HAS_LIST_UNSUB(-0.01)[];
DBL_BLOCKED_OPENRESOLVER(0.00)[sin.lore.kernel.org:helo,sin.lore.kernel.org:rdns,microchip.com:email];
FORGED_SENDER_MAILLIST(0.00)[];
RCVD_COUNT_FIVE(0.00)[6];
RCPT_COUNT_TWELVE(0.00)[26];
FROM_HAS_DN(0.00)[];
FREEMAIL_CC(0.00)[kernel.org,gmail.com,sholland.org,bootlin.com,socionext.com,lists.infradead.org,lists.linux.dev,vger.kernel.org,microchip.com];
TAGGED_RCPT(0.00)[dt];
FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev];
ASN(0.00)[asn:63949, ipnet:104.64.192.0/19, country:SG];
MID_RHS_MATCH_FROM(0.00)[];
TO_DN_SOME(0.00)[];
FREEMAIL_FROM(0.00)[gmail.com];
RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[209.85.161.48:received,174.29.1.49:received,100.77.114.92:received];
RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[104.64.211.4:from];
TAGGED_FROM(0.00)[bounces-27284-noreply=patchwork.local];
R_SPF_ALLOW(0.00)[+ip4:104.64.211.4];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2];
FREEMAIL_TO(0.00)[bootlin.com,nod.at,ti.com,linutronix.de,kernel.org,goodmis.org,pengutronix.de,gmail.com];
RCVD_TLS_LAST(0.00)[];
MIME_TRACE(0.00)[0:+];
RCVD_VIA_SMTP_AUTH(0.00)[]
X-Rspamd-Queue-Id: A82C71C53BA
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: INBOX
|
| Series |
mtd: rawnand: sunxi: fix transfers and support randomized OOB
|
|
Commit Message
James Hilliard
Nov. 5, 2026, 6:55 p.m. UTC
Allwinner NAND firmware writes the bad-block marker as part of the controller's randomizer stream. The mainline driver compensates those two bytes so that the physical marker instead remains plain, even when the rest of the page is scrambled. On H6/H616, the firmware also places a fixed amount of ECC-protected user data before the first parity region, whereas mainline distributes available OOB space among the ECC steps. Add an opt-in property selecting that firmware page format for the configured controller hardware-ECC geometry. It identifies how existing flash contents must be interpreted, rather than changing the format of all NAND attached to a controller compatible. Without it, retain the mainline marker representation and protected-OOB placement. The property applies to normal ECC transfers. Raw operations still bypass ECC and randomization and expose physical main and OOB bytes, including the physical randomized marker. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: James Hilliard <james.hilliard1@gmail.com> --- .../devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml index ccf616fabc91..4ed99054a8ab 100644 --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml @@ -79,6 +79,16 @@ patternProperties: minimum: 0 maximum: 1 + allwinner,randomized-oob: + type: boolean + description: + Select the normal-page format used by Allwinner NAND firmware for + the configured controller hardware-ECC geometry. Normal page + transfers use the controller randomizer, the bad block marker remains + in its data stream instead of being compensated to stay plain on + flash, and protected user data uses the controller-specific placement + expected by the firmware. + unevaluatedProperties: false required: