[PATCH v5 1/5] mtd: spi-nor: core: add manufacturer flags
Tudor Ambarus
tudor.ambarus at linaro.org
Mon Sep 23 07:18:28 PDT 2024
On 9/23/24 2:01 PM, Erez wrote:
cut
>>>
>>> mx25l12805d has two OTP regions of 128 KiB and 384 KiB (yes asymmetric).
>>> While mx25l12833f has two OTP regions of 512 KiB.
>>
>> Ok, so you want to add support for mx25l12833f which shares the same ID
>> as mx25l12805d and has different OTP settings. Is that correct?
>
> My patch purpose was initially adding Mactronix OTP.
support needs to be added per flash, not per manufacturer.
> After reading a lot of Mactronix datasheets, I suggest also reading
> all SFDP to all Mactronix chips.
Why? It seems too invasive. Generally it is not recommended to issue
unsupported commands to flashes. Change just the flash that you use and
can test.
cut
>> Which flash do you have at hand, both, none, just one of them?
>
> When I started working on the OTP code, I used MX25L12833F.
> But later I left the company.
> So I use my beaglebone black and connect it to a MX25L3233F.
I understand mx25l12805d and mx25l12833f share the same ID. How is
mx25l3233f related, does it share the same ID as the previous two?
>
>>>
>>> How do we handle it?
>>> I would gladly remove the obsolete mx25l12805d.
>>> And skp compatibles all together."
>>
>> I need to understand first what you're trying to do. Don't assume that I
>> remember what we discussed one month ago. Describe the why in the commit
>> message.
>
> "Add support for SPI-NOR Macronix OTP."
> I wrote in the cover letter.
> No, I do not expect you to remember everything.
> I did write my intention in the cover letter.
>
I already read your cover letter and it didn't explain the challenges
that you're facing.
cut
>>>
>>> You keep sending me contradictory messages.
>>
>> when? Please accept my apologies if that's the case, it's not in my
>> intention. Provide better commit message, help me help you.
>
> I tried adding a new compatibility.
> You say you do not want new compatibility.
I said new compatibility will be introduced as a last resort only if we
can't differentiate the flashes at run-time. You haven't proved me yet
that this is the case.
> You ask if it is possible to deduce it from JEDEC ID and SFDP,
> I answer that this is not possible, at least in some cases..
I'm interested just about your case, not all the possible cases.
> I try to add OTP parameters in DT. You do not like it, fair enough.
> What am I to do?
> Seems like a dead end.
>
You can better explain what are the challenges you have and answer the
questions that we're asking ...
> Erez
>
>
>>
>>>
>>> I told you we can not "guess" OTP settings based on JEDEC ID and SFDP existence.
>>
>> When? And more importantly, why?
>
> I send you example of 3/4 chips that using JEDEC ID and SFDP existence
> is not enough.
Why? Do they have the exact SFDP tables? Prove me, drop them all.
Any bit that differs in the SFDP tables is enough to differentiate the
flavors of flashes. Vendor tables included ;)
>
>>
>>> It may be partial and Macronix may add new chips in the future.
>>
>> I don't understand what you mean by partial, please elaborate.
>
> I think Kernel like using bullet proof methods.
> methods that will produce a working results.
> If I find one example we can not probe the OTP parameters this way, it
> means this method is NOT bullet proof.
>
>>
>> And we don't add support for what we assume new chips will look like.
>
> This is not what I ask for.
> Just trying to guess OTP parameters in current chips will break with new chips.
>
Again, I'm interested just in the flashes that you use and can test. I'm
not interested in addressing theoretical problems.
>
>>
>>> They reuse JEDEC ID only retaining flash size and blocks.
>>
>> Yes, I know macronix shares flash IDs among flavors of flashes or new
>> chips altogether.
>
> I am glad you know.
I sense some rage and I find this inappropriate. I'm just trying to help.
cut
>>
>> And I think I already said that you can differentiate between the two
>> based on SFDP presence. mx25l12833f has SFDP, thus when SFDP present use
>> the mx25l12833f-OTP configuration. When SFDP is not presence one may add
>> support for the mx25l12805d-OTP configuration.
>
> No, we have 3 chips.
> 2 are using the same JEDEC ID and both using SFDP, yet they use a different OTP.
Which ones are these?
I guess mx25l12805d is non-SFDP. Then mx25l12833f and mx25l3233f define
some SFDP tables. Do mx25l12833f and mx25l3233f have the same OTP
organization?
> So, the problem is here, and probably be bigger in the future, despite
> you "do not care".
>
I hear about your problem just here, after 3 emails exchanged and at
least one hour wasted of my time.
I want to address problems one step at a time. We can address the bigger
theoretical problems in the future, if they'll ever become real.
>
>>
>> Is there any case that I miss?
>
> According to your reply, I would say pretty much most.
This is again inappropriate ... I will read your next email as well, but
I'm not going to tolerate such replies anymore.
More information about the linux-mtd
mailing list