Skip to contentSkip to conversation

amd flash problem

DISCUSSION Pichai Raghavan 1 participant 1 message Dec 18, 2002 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi All,

I am using the 2.4.2 MTD driver code on my board that has AMD flash. I am noticing a bug in the write code. AMD flash driver makes use of unlock bypass mode for doing bulk write; when issuing the start and end of the unlock bypass commands;it does not check if the flash state is READY.(function cfi_amdstd_write() in cfi_cmdset_0002.c) In the meanwhile if the flash driver is doing an erase or write in the context of another process and has got scheduled out, then the flash gets into a unknown state.

This seems to be causing a problem when write to multiple partitions are written. Has this problem been fixed in later kernels? (Had a glance at 2.4.17 code and there also the same code is there)

Thanks
Raghav

This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

[email protected]
unknown local-part "lists-mtd" in domain "lists.infradead.org"

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from webmail31.rediffmail.com ([202.54.124.130] helo=rediffmail.com)

	by pentafluge.infradead.org with smtp (Exim 3.22 #1 (Red Hat Linux))
	id 18NvQO-0003sv-00
	for <[email protected]>; Mon, 16 Dec 2002 13:36:48 +0000

Received: (qmail 2799 invoked by uid 510); 16 Dec 2002 14:06:31 -0000
Date: 16 Dec 2002 14:06:31 -0000
Message-ID: <[email protected]>
Received: from unknown (164.164.83.140) by rediffmail.com via HTTP; 16 dec 2002 14:06:31 -0000
MIME-Version: 1.0
From: "Pichai Raghavan" <[email protected]>
Reply-To: "Pichai Raghavan" <[email protected]>
To: [email protected]
Subject: AMD CFI driver problem
Content-type: text/plain;
format=flowed
Content-Disposition: inline

Hi All,

I am using the 2.4.2 MTD driver code on my board that has AMD flash. I am noticing a bug in the write code. AMD flash driver makes use of unlock bypass mode for doing bulk write; when issuing the start and end of the unlock bypass commands;it does not check if the flash state is READY.(function cfi_amdstd_write() in cfi_cmdset_0002.c) In the meanwhile if the flash driver is doing an erase or write in the context of another process and has got scheduled out, then the flash gets into a unknown state.

This seems to be causing a problem when write to multiple partitions are written. Has this problem been fixed in later kernels? (Had a glance at 2.4.17 code and there also the same code is there)

Thanks
Raghav