public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Zhihao Cheng <chengzhihao1@huawei.com>
To: Rickard X Andersson <rickaran@axis.com>, <richard@nod.at>,
	<linux-mtd@lists.infradead.org>
Cc: <rickard314.andersson@gmail.com>
Subject: Re: Lots of fastmap writes
Date: Fri, 14 Jun 2024 20:28:27 +0800	[thread overview]
Message-ID: <a8bf10e3-009f-3d4b-fa4b-43bbc6e1bebc@huawei.com> (raw)
In-Reply-To: <aad1b520-ee9e-476f-911b-45be9eb09195@axis.com>

在 2024/6/14 19:42, Rickard X Andersson 写道:
> On 6/4/24 03:52, Zhihao Cheng wrote:

[...]
>>
>> BTW, after applying the patches, the kernel should run on a new flash, 
>> the improved wear-leveling algorithm cannot rescue the worn out image.
>>
> 
> Thanks for the patches!
> 
> I have backported the patches to Linux kernel 6.1. Do you think the 
> patches are safe to apply to Linux kernel 6.1?

Yes, it's okay. I have backported the patches to our product(kernel 
v5.10) and it works fine.
> 
> Another thing, would it not be possible to rescue that particular worn 
> out device by simply turning fastmap off on that device?
> 

Can I regard the rescuing as making erase counters become normal 
again(max - min <= UBI_WL_THRESHOLD)? If so, I'm afraid that not all 
PEBs can be rescued, according to get_peb_for_wl().
For example: PB, PC cannot be rescued, unless PA is taken for writing 
and then wl is just right scheduled.

ubi->free tree:
      29600(PB)
1(PA)        29600(PC)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2024-06-14 12:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03  8:55 Lots of fastmap writes Rickard x Andersson
2024-06-04  1:41 ` Zhihao Cheng
2024-06-04  1:52   ` Zhihao Cheng
2024-06-14 11:42     ` Rickard X Andersson
2024-06-14 12:28       ` Zhihao Cheng [this message]
2024-06-17 11:20         ` Rickard x Andersson
2024-06-17 13:21           ` Zhihao Cheng
2024-06-17 13:48             ` Rickard x Andersson
2024-06-17 13:55               ` Zhihao Cheng
2024-06-04  6:47   ` Richard Weinberger
2024-06-14 11:45     ` Rickard X Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8bf10e3-009f-3d4b-fa4b-43bbc6e1bebc@huawei.com \
    --to=chengzhihao1@huawei.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=rickaran@axis.com \
    --cc=rickard314.andersson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox