From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11011000.outbound.protection.outlook.com [52.101.65.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8A2120B7F4 for ; Thu, 28 Aug 2025 05:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.0 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756358702; cv=fail; b=P0FAPrDXzwq0c2kHjhaphC8zMBsCPwnkGNc9lEmi6+4C306+wzzPFNLfx45KcLzwf6qEoy6ZIa5jD10SSy+V8+amORIUkoQdkyjQs01l34mkN+LWYWkKxE2MAI0ihSBMFWbQ8MVsq8kge4pLK1Gts9eX0nzhmxPOgT+qb+BGy24= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756358702; c=relaxed/simple; bh=Q6NM34XdP2kld4QRYtH9CpK5NcHxayz8eExhvoQ19zY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MO5YhdEPPQE+xxbcVzW2QMrk+qbx7E0y9+7yoiDb5mMRVPHIf35W4gt+qctLxlGXoFORsIZcp5L/OV2FoQlpm4sL563zf7s6L7Zw97qsgX0dSfAp/ojpM/TOiWc69QMLgcWYcdEAG/Vixyxkp6pEUsv8UlI9gjdC3T92l8nBKmY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arri.de; spf=pass smtp.mailfrom=arri.de; dkim=pass (1024-bit key) header.d=arri.de header.i=@arri.de header.b=AmdVGF9i; arc=fail smtp.client-ip=52.101.65.0 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arri.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arri.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arri.de header.i=@arri.de header.b="AmdVGF9i" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kVCZ8ev7ZcHo/RaUaBTisVXdbIFc/ypcov9yuaQsr472Yvq4wBLi+4TuKb2GMVRqRGG8WNjXcbKDXlvQVJAiU6+Az3wVTaW4M4KKiIdMpas9NXLnXR508QlSxSzmckT7Rl/xahm9UfyId06ezF8jNC2kXObBn6w5YzhR6T0n8lwQJG/+8do9mCPK7IcBdYsxuoCv8Wb9zd+Gu6j4rvpJ4Fk+5S0e2KCXrzZl71Wp3EmWd/mRbQsyd6fBWk7cyuGYDPIB23G4tp360XvsijoVhvv3A2dEx3OeOoaFn+vp+agpXsQcEn8ocmBd3+YoDAdv27bMg9+NcDAPoqqgIt79hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Q6NM34XdP2kld4QRYtH9CpK5NcHxayz8eExhvoQ19zY=; b=cUYvfEUxUFAOoeWTTEH8FXgcdq7ycqA0DmlmEphUdDZ3TkZY5nVePROsiwH/TUH/vuDK5jZpB2wTE3Uh2Wr41m4ev9//EIeWQIOQETUeECkkKtpZXof1eYg59OwcAS+NYszc+b0pIUcLub6B3fW0nk+b366TWHFRUCJT7jeSJW9w2Xp8iY3+GwVvzbjjvduVNorSGL6t9gq9sx+L2jukoxx6DRhtn/0x8X3cVNTYBfzLDkKid+UCjef2r9qbxlc6gwuyWJ/AkD6WrCWuyg5sW7XDabb3GEx2HDkaKtL0tmCuP67yjq3+gWMnJF+W+xPvF4hwq16ZQcC+KBmgiBNS4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=bootlin.com smtp.mailfrom=arri.de; dmarc=fail (p=none sp=none pct=100) action=none header.from=arri.de; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arri.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q6NM34XdP2kld4QRYtH9CpK5NcHxayz8eExhvoQ19zY=; b=AmdVGF9ibyol5En67eyi9LohGjw73QAM1Qu1fR/AkQfscA4jHvnmfljx6Jj62GhSSGY8mpIdIXk8m0QUQ6UerllKJ1M4S9U1n6diLy0kaHunOQCx5QAaJijIa8bOHa1/B82sMa5W3maVhVUH2ZMFGwj1JlALeuX4VYQApGiLUb0= Received: from AM0PR04CA0096.eurprd04.prod.outlook.com (2603:10a6:208:be::37) by GV1PR03MB10519.eurprd03.prod.outlook.com (2603:10a6:150:162::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9073.13; Thu, 28 Aug 2025 05:24:51 +0000 Received: from AMS0EPF000001AD.eurprd05.prod.outlook.com (2603:10a6:208:be:cafe::e8) by AM0PR04CA0096.outlook.office365.com (2603:10a6:208:be::37) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9073.16 via Frontend Transport; Thu, 28 Aug 2025 05:24:50 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by AMS0EPF000001AD.mail.protection.outlook.com (10.167.16.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9073.11 via Frontend Transport; Thu, 28 Aug 2025 05:24:49 +0000 Received: from n9w6sw14.localnet (192.168.54.31) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.36; Thu, 28 Aug 2025 07:24:49 +0200 From: Christian Eggers To: Miquel Raynal CC: Richard Weinberger , , Subject: Re: mtd: rawnand: Inconsistent parameter page on Foresee FSNS8A002G ? Date: Thu, 28 Aug 2025 07:24:48 +0200 Message-ID: <4990592.OV4Wx5bFTl@n9w6sw14> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <87tt1whe19.fsf@bootlin.com> References: <3542795.LZWGnKmheA@n9w6sw14> <87tt1whe19.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001AD:EE_|GV1PR03MB10519:EE_ X-MS-Office365-Filtering-Correlation-Id: 572c1d8c-658f-4179-784e-08dde5f33599 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|1800799024|36860700013|13003099007; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?isqmfxp9qlnNl+mCu+wWGlD36jZKbN+Bfz7pKSCLWGHTD+y6Kd51Z0hHrk?= =?iso-8859-1?Q?0EdOznu/PDSU3aznUXj6UBmgdb/hcFfYTmxZYRkwys6Z99nktaFq9fTmX6?= =?iso-8859-1?Q?/ThLH6XKHhpJWgCrdvM8uggekC3/3mt8PibR8hshalzYJVUPxFSohrNMUZ?= =?iso-8859-1?Q?B8cdT+ZKy9Fwjx6bo5hrc6RY6Z6xPesP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gvRP7elfPbsJgC2mAchyC0WrQ01RyR0ZVAMRSb6ecYdd1iXept9qiEFu?= =?iso-8859-1?Q?xKJtV2VTCZlGeEZD76STCAjav/al6amtu5h6GMWPIBGB7B1gJENsGBM+IA?= =?iso-8859-1?Q?x//7Tb5+uioKQ7yXsuyEobDWB8pb1T+agZjGSuYTF5Ld8SNhSdYo8DQa4O?= =?iso-8859-1?Q?3CW19kmObx5Yrg3V3LKrxP++SZBNgBR9ORsPUnNM60j6VNtVBLcHt7GTm8?= =?iso-8859-1?Q?dv42eRWMaM3JApfnJEv/SKwab2Gd3D8zYX1S45T8YDeIq7mIAHUpsjSVIS?= =?iso-8859-1?Q?Qjq274RcoP4soJ967Y1m+WS/0ZhR2kK3ukPWQvoSjewKfBnmqSDvsy7vAd?= =?iso-8859-1?Q?qAwEx/LVhNXkDtktsSlmSh8Jvj8i9QAJ9vKxbFlk525MU/WSMDtECeEAoY?= =?iso-8859-1?Q?zzgzHGAEETCLKuqnH3DGeigeDN8TaXutOjhU/SlHysKg=3D=3D?= X-Forefront-Antispam-Report: CIP:217.111.95.7;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mta.arri.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(1800799024)(36860700013)(13003099007);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2025 05:24:49.5134 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 572c1d8c-658f-4179-784e-08dde5f33599 X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a;Ip=[217.111.95.7];Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001AD.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR03MB10519 Hi Miquel, On Sunday, 24 August 2025, 18:37:06 CEST, Miquel Raynal wrote: > Hi Christian, >=20 > On 18/08/2025 at 19:02:49 +02, Christian Eggers wrote: >=20 > > I try to use a Foresee FSNS8A002G SLC flash chip on an i.MX6 GPMI contr= oller: > > > > https://www.lcsc.com/datasheet/C5126835.pdf > > > > The kernel output looks promising, but one line looks suspicious: > > > > ... > > nand: device found, Manufacturer ID: 0xcd, Chip ID: 0xda > > nand: Foresee FSNS8A002G > > nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 > > nand: SDR timing mode 4 not acknowledged by the NAND chip > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Bad block table found at page 131008, version 0x01 > > Bad block table found at page 130944, version 0x01 > > 3 fixed-partitions partitions found on MTD device gpmi-nand > > ... > > > > According to the documentation of "Read Parameter Page", byte 129-130,= =20 > > SDR modes 0 to 5 should be supported (page 19 on the data sheet). > > But the documentation of the GET_FEATURE/SET_FEATURE operation misses > > the "Timing mode" register (data sheet, page 24). > > > > I saw that there is a quirk for some Macronix chips which also seem > > not to support getting/setting the timing mode (but declaring them > > in the parameter page). >=20 > Unfortunately, it happens that sometimes flash vendor mess up parameter > pages, so either the flash supports mode 5 and it is lying to you (you > can test it and add a quirk) or the flash does not because this batch > could not stand a faster rate (?). What does "lying" in this context mean? The message=20 "nand: SDR timing mode 4 not acknowledged by the NAND chip" implies to me, that the flash device doesn't respond to the mode setting command. I see 2 possible reasons: 1. The mode setting command is not supported (at least it isn't mentioned in the data sheet). 2. The selected mode is too fast for the flash/PCB, so the response from the flash is not correct received by the CPU. Would it make sense, trying to reapply the current mode (0) first in order to confirm that the flash supports the mode setting opcode at all? > > My main question is whether this is "normal variation within the flash > > market" or a serious issue. In contrast to another device I currently > > use, the Foresee chip also doesn't support "cached" operations. Is there > > much value writing a fix for Timing Mode issue, or should I better > > use another flash device? >=20 > I cannot tell for sure, I hope it is rare enough but we've already seen > variations between identical devices with the same ID... So it is up to > you to talk to your NAND vendor in order to know whether there's been a > change in their line or if this chip is special and decide what's > best. If you think a quirk is relevant, don't hesitate to submit that > (and yes, the Macronix NAND flash driver gives you an example of how to > do that). I am still waiting for the response of the manufacturer... >=20 > Thanks, > Miqu=E8l >=20 regards, Christian