| Message ID | 20260909-submit-sunxi-nand-vendor-oob-layout-v1-v3-9-838cb0ba1547@gmail.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-25738-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mxe881.netcup.net (Postfix) with ESMTPS id 94B201C1CAB
for <noreply@patchwork.local>; Wed, 9 Sep 2026 10:38:22 +0200 (CEST)
Authentication-Results: mxe881;
dkim=pass header.d=gmail.com;
spf=pass (sender IP is 172.234.253.10)
smtp.mailfrom=linux-sunxi+bounces-25738-noreply=patchwork.local@lists.linux.dev
smtp.helo=sea.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.234.253.10 as permitted sender) client-ip=172.234.253.10;
envelope-from=linux-sunxi+bounces-25738-noreply=patchwork.local@lists.linux.dev;
helo=sea.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id 85ED764F52
for <noreply@patchwork.local>; Wed, 9 Sep 2026 08:32:00 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 1444B47ACDF;
Wed, 9 Sep 2026 08:31:10 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
header.b="pt67czu3"
X-Original-To: linux-sunxi@lists.linux.dev
Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com
[209.85.161.50])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 721C83AC0EB
for <linux-sunxi@lists.linux.dev>; Wed, 9 Sep 2026 08:31:07 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=209.85.161.50
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1788942669; cv=none;
b=C4W0KVmvpMY+uSi41Y+NoX6NOHfZ65g3wxrJrhLTf563vDuFjF7JxnRlIzVpJ2LSqUz7her72GP1WMpEg45LfuZ4WsCDkdJvceINAOqNnIeu9Q4JHX8Jleivf5JpG0ntE+6b4NWPAr/tz22/KKIwZDZOm08tqYzCOQ3LG8N3LCw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1788942669; c=relaxed/simple;
bh=TnmhAN7UAS2ynuFEOPQLlzD2wvbIo/yeVWwhOMqNS58=;
h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
In-Reply-To:To:Cc;
b=Vla89V85KjhJpVzoGMmWImfcHCripxxH0f4NOb5Q/LSb+9T7W0aKA4wWorHR239enNlcS+6h6pBiebRpYllrt/g83++Id10OAE7yOuOqo0loMwknb+rowG8o2zBN5QqLhjF9y7an08U4yNXeo4NwASXi8vIzsud6jLlsoGGi1cA=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass (p=none dis=none) header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
header.b=pt67czu3; arc=none smtp.client-ip=209.85.161.50
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-f50.google.com with SMTP id
006d021491bc7-6b8e2d8df4fso3136420eaf.1
for <linux-sunxi@lists.linux.dev>;
Wed, 09 Sep 2026 01:31:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1788942666; x=1789547466;
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=SP5FgDVql885MI97WgCQyPWKLiok3M5jguE0MrKj3qI=;
b=pt67czu3ncSjQNa3RfPTrlazzOnZ45sj+PFtQKq74n8nl4sYTYsJdi79BE1SIj194Y
Nc5oY23O7Zjzx3LHZDmqt/ZSYbCvyA5mfYMaVEoERaJWgj5YG5gNukDvO+IkXw9xXgV8
alrnLYPcL+RyK8Qcny9pMxLBLllH/9yTFJ2tPKEI+V6kmS5DDTtWZKCa3zWs6V0QiD0o
Jy27xwwxMTUZn/heD6yibr/Rah+qSWbQ4UjDY6ASoiLIZD6ReYtTxjooUkMXri+lJgYH
YCk2YbC13vpLur1j1LatPpRBqyrmzLaNcCjAR3xH6Op7lexQbZAp0klGVGcu1vVHrrav
+qfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1788942666; x=1789547466;
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=SP5FgDVql885MI97WgCQyPWKLiok3M5jguE0MrKj3qI=;
b=P/ch49nIFCMSSI2g2VobV+5SCEPaQpHtmI0Jn9oFcrKCRWlXkWi0xds0IP6R7xPZJr
xQ/iN5nIoU/fjdB7VyKSRwZA0to03wxF/O/ktV/Zqp5wDU7oqlKgPwfR6ql2XOOMzLgA
tek8mkxid9BhI6BFui45Kmx+LtMiFUOSJTWz6xb8PuCMVxPXr3G//PBTsjSxTDikJxSE
T9th71ahBIF+KLBZQq/VGvP0etOjvMfTieE5AlKUdtLvhd2572CqmwcjhRIkjaobvYvX
Pw01y6OYPBj3DoiC6OdMQjqRhuE5cFpH33gbPQl3kKka+xjIlaiJxyz22qUrWsIwhTWd
IXFQ==
X-Forwarded-Encrypted: i=1;
AKwUvByNLm4q/fCQ5bo5il2TbnJckcmyaR/WB4EZsMwRvHHBtDG7EVxlmtIXdi4Cf5+6zIRknrO/8UnaSGzytg==@lists.linux.dev
X-Gm-Message-State: AFuF++mrJiPt4Vyualfxez0TS3hgbuXc54ZklQJbMehjsL7qEulm7bu2
4uuNC4vvhTGVTeTJG+Se8sK4n4WIUNfMMWhbhTFHt1IM0qJjICUYPu4L
X-Gm-Gg: AYBFou1i51LuVMh27eoSr0y201HfgajdcecrsB090ItyCkxacMhwema2iWgnFWZQ+gd
uUvdwzikZwLVqTAA2yy1QmSEKYfQXaRZlUZfoYWknX5IBW/+0VdVrBIwi49Gf9RmgWoyBwSc3wA
ZU+31Ohc/RQW304GLLMsuP0a9NAygdvR9k6pJ4FZ7kZ79eFKt1n9k6sNML16EhM/7EcDRpWYYkx
M9br7IVbD/5Ww/SAOk6yGtx9PrkstVIv2uNQQ/ubpkV9xmbV6rRc6evXvYw0S31gxpCbEEPD7l3
pf14ahiPuf6BvRWbKZ0UgW0Ix857jqsMaLSFF8S0ZHUKY1ItBP8QrCoA4y78dD90q6x/9/h5arZ
EXhSQRugNFBdbTH/iioKUmeqinW/3vsDjlrogn9BtvhFZPdeM5Y1o3Mttm5HqgANimCEs2I6J/+
KLu5O++eGPDDGKTDU2r8hvzFX53LLh7hqW2BvUsrwbW23AHha3ZKj1V9oAun1yTJvTXM4cSCZ/K
qLHIDhK1kqinyO0+sh8RqGY6m5z1hS0oLm/xsepDQn1WxWyhX2pI1s50noCtmKkm4wX97NigWA+
6jrh9NcHJzt1Abk/diVTgrrOA0dZGnHPGcJLQrxn6QQyZyTac0Mizot6XY5OSmW/VAOUSRawPfm
Ek1vRMhrqc7ccWPpn0Kh28eTmdXib
X-Received: by 2002:a05:6820:c84:b0:6b1:a0b6:72d9 with SMTP id
006d021491bc7-6b6fd3d694amr18766040eaf.25.1788942665879;
Wed, 09 Sep 2026 01:31:05 -0700 (PDT)
Received: from [127.0.1.1] (184-96-151-165.hlrn.qwest.net. [184.96.151.165])
by smtp.gmail.com with ESMTPSA id
006d021491bc7-6b6dbedc6a0sm19031004eaf.5.2026.09.09.01.31.04
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 09 Sep 2026 01:31:05 -0700 (PDT)
From: James Hilliard <james.hilliard1@gmail.com>
Date: Wed, 09 Sep 2026 02:30:42 -0600
Subject: [PATCH v3 09/15] dt-bindings: mtd: sunxi: Add randomized OOB flag
Precedence: bulk
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id:
<20260909-submit-sunxi-nand-vendor-oob-layout-v1-v3-9-838cb0ba1547@gmail.com>
References:
<20260909-submit-sunxi-nand-vendor-oob-layout-v1-v3-0-838cb0ba1547@gmail.com>
In-Reply-To:
<20260909-submit-sunxi-nand-vendor-oob-layout-v1-v3-0-838cb0ba1547@gmail.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>,
Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, 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>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Boris Brezillon <bbrezillon@kernel.org>,
Brian Norris <computersforpeace@gmail.com>
Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev,
linux-kernel@vger.kernel.org, James Hilliard <james.hilliard1@gmail.com>
X-Mailer: b4 0.15.2
X-Rspamd-Server: rspamd-worker-8404
X-Spamd-Result: default: False [-1.16 / 15.00];
BAYES_HAM(-5.50)[100.00%];
RBL_SENDERSCORE(2.00)[172.234.253.10:from];
SUSPICIOUS_RECIPS(1.50)[];
DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed),
No valid DKIM,none];
MAILLIST(-0.15)[generic];
BAD_REP_POLICIES(0.10)[];
MIME_GOOD(-0.10)[text/plain];
HAS_LIST_UNSUB(-0.01)[];
RCVD_COUNT_FIVE(0.00)[6];
FROM_HAS_DN(0.00)[];
FORGED_SENDER_MAILLIST(0.00)[];
RCPT_COUNT_TWELVE(0.00)[20];
PRECEDENCE_BULK(0.00)[];
FREEMAIL_CC(0.00)[lists.infradead.org,vger.kernel.org,lists.linux.dev,gmail.com];
TAGGED_RCPT(0.00)[dt];
DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:rdns,sea.lore.kernel.org:helo];
FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev];
TAGGED_FROM(0.00)[bounces-25738-noreply=patchwork.local];
FREEMAIL_FROM(0.00)[gmail.com];
R_SPF_ALLOW(0.00)[+ip4:172.234.253.10];
TO_DN_SOME(0.00)[];
RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from];
RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.90.174.1:received,184.96.151.165:received];
ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG];
FREEMAIL_TO(0.00)[bootlin.com,nod.at,ti.com,kernel.org,gmail.com,sholland.org,socionext.com];
MIME_TRACE(0.00)[0:+];
MID_RHS_MATCH_FROM(0.00)[];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1];
RCVD_TLS_LAST(0.00)[];
RCVD_VIA_SMTP_AUTH(0.00)[]
X-Rspamd-Queue-Id: 94B201C1CAB
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
|
| Series |
mtd: rawnand: sunxi: support the Allwinner randomized OOB format
|
|
Commit Message
James Hilliard
Sept. 9, 2026, 8:30 a.m. UTC
Allwinner NAND firmware stores the bad block marker through the
controller randomizer. The mainline driver instead compensates the first
two randomized bytes so that the marker remains plain on flash.
On H6 and H616, the firmware also uses a fixed protected user-data
placement while mainline fills the OOB space left after ECC. Add an
opt-in property selecting the firmware's normal-page format for the
configured controller hardware-ECC geometry. This covers the
vendor-specific randomizer, bad block marker representation and protected
user-data placement needed to access BSP-derived images.
The property does not change raw-access semantics. Raw operations still
bypass ECC and randomization and expose physical main and OOB bytes.
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 9d061e2216cb..8ecafc40ddcb 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: