Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2850331rwi; Tue, 1 Nov 2022 12:33:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tt1uC5a28RYfkCM2vt3LbkDWonUbXVzUsqeV/7i0xeCHYWz/oWycFgoh/oexsZm0pE7BS X-Received: by 2002:a17:902:d48a:b0:187:2b1d:10e2 with SMTP id c10-20020a170902d48a00b001872b1d10e2mr8773489plg.86.1667331191194; Tue, 01 Nov 2022 12:33:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667331191; cv=pass; d=google.com; s=arc-20160816; b=F6R5431HVmqag74+Qr+xEzAGUiQ6ilqO4jBtZGLnw/wAOHuAUq0pGMDKQ7oHYs+tl4 hi/eI138f4M1nv+7iXUEnkLREeqlUZe+JPKvs9iIxaiVcDkw8vCUOUvys6l/yQL7aXPE OiCGCKBPCPmf+nQMHNXo1XNAZfjtBPHTKoQIx+0ruU/pyIWWdnDdFR2VnUDf0oQvNrtp 0H4KEyTaAjC5+EAyX0kzPQ1e4dnQ2HlYrx+T5f2hFikFLYmZTD9gxk1RtDjJkzHqXZoV NhfTUO6a9Xce75czbpnvE/YEHu8KUO3/Xe/K9kcr59MXP88t4LZ9zmt3107G1qQFowWr 3+sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-disposition:message-id :subject:cc:to:from:date:dkim-signature; bh=Ee9IGk5emo+uBw3wyBp/cnsODjfpxM9zdY6GsmDDlRA=; b=hvYyXdYjdR/nRiDQZwguhdNWjrXI+0nSfzURAhijJsfU4vh5peU8MNvQH6Rb0dLtfN zbPdp0fAO+3Nqa1vkrLiHwYNmac4W7sgs90RnYWzNWUWdT/hmwJl4ZwtHT2dyUXG9YTx zDbJQdJoyFLUa4Q8Asztq9kJQC80YHbjoC12nA6O4J2BFo4DnaIOHe0oftYaStisp2JM koh9v0F5QBtWXRaY45L+RcgrOcM+ewif8IIv39JdRMWAwoqDodJ7gjUQDRE0lChz1wdN QWjoHgoWwKd3MXFqF+vn93RmSCwdx64TUrLBF515BWIsb+19ZvkD1O22Y9DY0Pekntmw NK4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=iaN1YqF7; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0046ff4e3a5d4si2427917pgb.260.2022.11.01.12.32.58; Tue, 01 Nov 2022 12:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=iaN1YqF7; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbiKATKO (ORCPT + 97 others); Tue, 1 Nov 2022 15:10:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbiKATKL (ORCPT ); Tue, 1 Nov 2022 15:10:11 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2118.outbound.protection.outlook.com [40.107.94.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE9811C416 for ; Tue, 1 Nov 2022 12:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NZwaWQbR49fy3jv2DlkUDyhG3dbax/vXIBEmpwEIdsWMzeQ9glWyrZ/54bue093uNPoWsQBM7m+m3nLebzSp5wzYa5BW0WTWHHUjJgw7GkUHTQ8mHue5JVO+EvvenTLvHA0fWI2psvEMP1hOvkJr+qXkwuEQIESZ+grhdcVVzB3592Und845sI2MA/c8TygH3tcseEB7BhJe0/YJJw23NPPhN8oocwH4pZ29rOxC4Ep2Nc5a0UDn5QaUfpNbQOjxzWyBpPRARckkC4bx8Oefhf+fORYa8tOpdRUQdG6dFYSKHth6WBbfuSBCEWif71ZUVYstrIlrZmOVSTmDoObjYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ee9IGk5emo+uBw3wyBp/cnsODjfpxM9zdY6GsmDDlRA=; b=nd6TzY3uiNx3rXZY8+Tec/Jh5QqTRaMjRleTaraM2hUaT/H+C5jwTvSPmQC8Vv9bs24wVbhfuDrygLIsfKPLcId3luKBJR5KKxEWFS9/AHUE6kh+QsWvdEKvLluTLlECjuUuRgVfUDl10tExk2kx9KyKt/1qhD089COZlX+Hn+VQ3Ckf3Viis5DOElM+IlVy/gZlt0bwxIG+OOVt1WQx4lHlagSTMNzaiBru0WIEqnMaHVZpjRAWKYKr1j4u17W7YlfNGbymnzy8G8n/TPN40h/NCatQDkw5VFAu3epYOBJ4dXfwICveUfaX+h+eLwrxezTPL/UYhI0+32kK+vBlkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ee9IGk5emo+uBw3wyBp/cnsODjfpxM9zdY6GsmDDlRA=; b=iaN1YqF7GC/rdNAkJkjXfaHOMY1Fx7EDUXvtQaz4zFJlJwiJoYDbdlY3ARsgB/tht8TWp2sj+5U/PZSWcwUhGNHKhDCrKN3QfODftBcpMOKyyagwaKxOJrQpu/uMmSNA0TJPUbi9iDN8HdaNaBViMngfTANddTfNmHVtike/adk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by MN2PR10MB4319.namprd10.prod.outlook.com (2603:10b6:208:1d0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.19; Tue, 1 Nov 2022 19:10:07 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::a8ed:4de9:679e:9d36]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::a8ed:4de9:679e:9d36%4]) with mapi id 15.20.5769.016; Tue, 1 Nov 2022 19:10:07 +0000 Date: Tue, 1 Nov 2022 12:09:59 -0700 From: Colin Foster To: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Cc: Pratyush Yadav , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Krzysztof Kozlowski , Roger Quadros , Vignesh Raghavendra , Richard Weinberger , Miquel Raynal Subject: Barebox / Kernel Omap ECC inconsistency? Message-ID: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-ClientProxiedBy: BY3PR04CA0011.namprd04.prod.outlook.com (2603:10b6:a03:217::16) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|MN2PR10MB4319:EE_ X-MS-Office365-Filtering-Correlation-Id: e906f42e-3c8b-4554-ef51-08dabc3cb0b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jhW2tSDw6kVHEvUsXItqSBE/0xYKDhXigaHgEbAKlUSKENGC9wUfYx9YFlsvIzLQoDT37b8Lqk4bbnLEBZ3B4ANpOL3UTQRjkb/Df84WHy5uu50sAnr0Lar29F/Twm+0IWiPLcmcuYobjF9Gj2aGkE7qS/BiEgZbEJFe21N+9OBUwD0IrenBMcAg9/zPIjCwE+kj1ITDMr7H/6+RInl7OhGuScpIFr1zyDVcicAlQDUs6cSdpn/YekzRLF9iqM5cSOycC6u6P1eo/JwrPwYYZLQ55zmv49kvJ7b4XUE8ueJQBeG1PSS4Fjf2ROXPQMbjNmgYnwdWM6j4BGoi78+S/JcE5bo/o5FZ0aYAWb6UZTAT8zdLIyNrYhg6hW5lZV4r2e69pkmZgmGyiP0u13PRxZt+cCeQUJdSrM678slBwGE1Fb8/Zmaq1VxvpXG4FDAcJldX0V3I1Zj4x8yAlyzMnoHgEZ8ewxbTWag2OfG2JOfxlpqaMPCf3+vpnnTLJI8KTOj+2bjFBnTnTKZfLPFrR0zhZPB9x61rrI2VDso4Swl/ryuvJIAxKPxKv8IoD7BmODt8qlH1XweFGAg4fQxj3yHnqF5XoYSZ1ov9OAT9J1AGxXH/ZHftfrhegVSpNNYUsLJ84Nqwu7EU6k3U7rTDjSzIppJYVGyTK+Wmx2XAgWcfkv/GPRPnz5ZAzwolEt5wAWqC2nuBmHuk6IhWOOC9SpR2sIcncRQZhm4yJND5ZWs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39840400004)(396003)(366004)(376002)(136003)(346002)(451199015)(6486002)(966005)(478600001)(54906003)(66556008)(316002)(6666004)(66946007)(86362001)(66476007)(6506007)(4326008)(8676002)(26005)(2906002)(41300700001)(9686003)(6512007)(44832011)(186003)(38100700002)(8936002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EuxNI/sh9pOhgyZRTnE6m651p0qosFZ+YgUht5KMsHJqvO/kvjulH19L5RAX?= =?us-ascii?Q?PHEZ1IKDFUDF2PGeqe05x+b4ueJrydmZDiircehIAxXDo30GYKEzFI1Y764o?= =?us-ascii?Q?EFKDPJc/nBaJ4t3scrvajAXOTmKZJ3JiuBCsLqmkHFozvZBYxpNButLJszuW?= =?us-ascii?Q?X76+eP1oUM1UkwpZp8swzZhVF9OR3s6kSC2EYIBjZCv6iv2HZH1JMirWNVSH?= =?us-ascii?Q?CAEQ5p3k51D/odcSSDDslROPXFLKifm1cfLYVTYFW18rRv1+Xyy/EhgYLrRp?= =?us-ascii?Q?/TE3XQyZej1PCnA3q7Oe3sj+P2BEG0tsMDJIKG/FYkYTl9wcu0XoDf3upPFr?= =?us-ascii?Q?0VRO3zSpHrdRgOFmIU3T8vQdvIL0s80qfQ534n+4gxgD2JSFwT/tQzm5yiQA?= =?us-ascii?Q?okfz7ZKT5HE8mSDSxdkcx/LJJ3WDfKzsLIhYWB8vFkW3DyFgcbBftWwk5ZPK?= =?us-ascii?Q?oZ5auSCqPFbupQ7jBLPqkkxexzQQVYn+KuWfx+PXK8vGfuoncTPtKINQakeS?= =?us-ascii?Q?1CSmFbC9dzK9TiWB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9nTp?= =?us-ascii?Q?fZYm6VbmaNIuC+NuMvSmYwugODJWJ5Z0b7NTu9XyN6RYG9+Ijt1rlcYBVWdl?= =?us-ascii?Q?yLVRoEZNL+X7Uj8ZngRBJYwR2LVstDPjZxcloSC9UNmPFPtG4KBOmT8L1LIy?= =?us-ascii?Q?cGshu75XawXvHGTRRnQNii8Ay2FHS33SjdwBjzPxk10sRLSn98QVxjTEv9AN?= =?us-ascii?Q?4Q=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: e906f42e-3c8b-4554-ef51-08dabc3cb0b8 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2022 19:10:07.6878 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aw/6wk+hJXChy0DrqlJEScc/1Er7jk4YJu4obTivTC/0KofmJzTCNw5i2yaiKlpnW9JSvX1zoSYOaGmx0qZRnFpMgQSLsuROXJB2+KyDrHs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4319 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I'm trying to revive a product that runs on a Phytec OMAP 4460 SOM. I submitted a .dts RFC a month or so ago, and plan to perform the suggestions and resubmit, but I'm up against one main hurdle that seems to be related to flash OOB/ECC. (get_maintainers on drivers/mtd/nand/raw/omap2.c is how I got this email list) Barebox has "native" support for the Phytec SOM: https://git.pengutronix.de/cgit/barebox/tree/arch/arm/boards/phytec-phycore-omap4460 It seems like Barebox is writing and expecting ECC bits to start at an offset of 12 bytes, while the kernel (and Barebox comments suggest) the ECC bytes should start at 2. I'm seeing this with `nanddump -n -o -l 0x41000 -f mtdxnanddump /dev/mtdx` Barebox created partition with UBI (mtd3) ... 00000800 ff ff ff ff ff ff ff ff ff ff ff ff 56 49 fd 17 00000810 b2 25 60 1a 42 1d eb 56 5d ff ff ff ff ff ff ff ... Kernel created partition with UBI (mtd4) ... 00000800 ff ff 07 73 04 ac 57 6b 9b 1f 92 49 ab e0 b9 ff 00000810 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ... My question: Am I right to assume this is an issue in Barebox? Perhaps this is just a bug that has been fairly dormant for 15 years. If that is the case, I assume there's probably no hope in getting this mainlined, and "native" barebox support is just a ruse. If that isn't the case, is there a hidden "shift OOB by 10" config option that I'm missing? Or am I interpreting this data incorrectly? Any suggestions would be greatly appreciated. Thanks, Colin Foster