U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Reading QSPI on zynq7 broken since commit 9bb02f7f4533
@ 2025-03-11  9:38 Mike Looijmans
  2025-03-12  4:05 ` Abbarapu, Venkatesh
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Looijmans @ 2025-03-11  9:38 UTC (permalink / raw)
  To: u-boot; +Cc: Venkatesh Yadav Abbarapu, Michal Simek

After a bisect session, turned out this causes my topic-miami board to 
fail to boot from QSPI:

Commit 9bb02f7f4533: "mtd: spi-nor: Fix the spi_nor_read() when config 
SPI_STACKED_PARALLEL is enabled"

I haven't determined yet what the bug is exactly. The board has a single 
QSPI chip attached to a 7-series Zynq. SPL fails to read from it since 
this commit.


-- 
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl




^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Reading QSPI on zynq7 broken since commit 9bb02f7f4533
  2025-03-11  9:38 Reading QSPI on zynq7 broken since commit 9bb02f7f4533 Mike Looijmans
@ 2025-03-12  4:05 ` Abbarapu, Venkatesh
  2025-03-12  8:39   ` Mike Looijmans
  2025-03-14 14:47   ` Mike Looijmans
  0 siblings, 2 replies; 4+ messages in thread
From: Abbarapu, Venkatesh @ 2025-03-12  4:05 UTC (permalink / raw)
  To: Mike Looijmans, u-boot@lists.denx.de; +Cc: Simek, Michal

[AMD Official Use Only - AMD Internal Distribution Only]

Hi Mike,
Can you try disabling the config SPI_STACKED_PARALLEL.
Is read getting failed?

Thanks
Venkatesh

> -----Original Message-----
> From: Mike Looijmans <mike.looijmans@topic.nl>
> Sent: Tuesday, March 11, 2025 3:08 PM
> To: u-boot@lists.denx.de
> Cc: Abbarapu, Venkatesh <venkatesh.abbarapu@amd.com>; Simek, Michal
> <michal.simek@amd.com>
> Subject: Reading QSPI on zynq7 broken since commit 9bb02f7f4533
>
> After a bisect session, turned out this causes my topic-miami board to fail to boot
> from QSPI:
>
> Commit 9bb02f7f4533: "mtd: spi-nor: Fix the spi_nor_read() when config
> SPI_STACKED_PARALLEL is enabled"
>
> I haven't determined yet what the bug is exactly. The board has a single QSPI chip
> attached to a 7-series Zynq. SPL fails to read from it since this commit.
>
>
> --
> Mike Looijmans
> System Expert
>
> TOPIC Embedded Products B.V.
> Materiaalweg 4, 5681 RJ Best
> The Netherlands
>
> T: +31 (0) 499 33 69 69
> E: mike.looijmans@topic.nl
> W: www.topic.nl
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Reading QSPI on zynq7 broken since commit 9bb02f7f4533
  2025-03-12  4:05 ` Abbarapu, Venkatesh
@ 2025-03-12  8:39   ` Mike Looijmans
  2025-03-14 14:47   ` Mike Looijmans
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Looijmans @ 2025-03-12  8:39 UTC (permalink / raw)
  To: Abbarapu, Venkatesh, u-boot@lists.denx.de; +Cc: Simek, Michal


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl

Please consider the environment before printing this e-mail
On 12-03-2025 05:05, Abbarapu, Venkatesh wrote:
> [AMD Official Use Only - AMD Internal Distribution Only]
?
> Hi Mike,
> Can you try disabling the config SPI_STACKED_PARALLEL.

That's already disabled, the board only has a single QSPI flash chip.


> Is read getting failed?

Fails in SPL, it gets an EIO error when it tries to read the u-boot.img from 
QSPI flash at offset 0x20000. Not much I can do then, since that causes a panic.

Simply reverting the aforementioned commit fixes the issue.


> Thanks
> Venkatesh
>
>> -----Original Message-----
>> From: Mike Looijmans <mike.looijmans@topic.nl>
>> Sent: Tuesday, March 11, 2025 3:08 PM
>> To: u-boot@lists.denx.de
>> Cc: Abbarapu, Venkatesh <venkatesh.abbarapu@amd.com>; Simek, Michal
>> <michal.simek@amd.com>
>> Subject: Reading QSPI on zynq7 broken since commit 9bb02f7f4533
>>
>> After a bisect session, turned out this causes my topic-miami board to fail to boot
>> from QSPI:
>>
>> Commit 9bb02f7f4533: "mtd: spi-nor: Fix the spi_nor_read() when config
>> SPI_STACKED_PARALLEL is enabled"
>>
>> I haven't determined yet what the bug is exactly. The board has a single QSPI chip
>> attached to a 7-series Zynq. SPL fails to read from it since this commit.
>>
>>
>>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Reading QSPI on zynq7 broken since commit 9bb02f7f4533
  2025-03-12  4:05 ` Abbarapu, Venkatesh
  2025-03-12  8:39   ` Mike Looijmans
@ 2025-03-14 14:47   ` Mike Looijmans
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Looijmans @ 2025-03-14 14:47 UTC (permalink / raw)
  To: Abbarapu, Venkatesh, u-boot@lists.denx.de; +Cc: Simek, Michal

On 12-03-2025 05:05, Abbarapu, Venkatesh wrote:
> [AMD Official Use Only - AMD Internal Distribution Only]
>
> Hi Mike,
> Can you try disabling the config SPI_STACKED_PARALLEL.
> Is read getting failed?
>
> Thanks
> Venkatesh
>
>> -----Original Message-----
>> From: Mike Looijmans <mike.looijmans@topic.nl>
>> Sent: Tuesday, March 11, 2025 3:08 PM
>> To: u-boot@lists.denx.de
>> Cc: Abbarapu, Venkatesh <venkatesh.abbarapu@amd.com>; Simek, Michal
>> <michal.simek@amd.com>
>> Subject: Reading QSPI on zynq7 broken since commit 9bb02f7f4533
>>
>> After a bisect session, turned out this causes my topic-miami board to fail to boot
>> from QSPI:
>>
>> Commit 9bb02f7f4533: "mtd: spi-nor: Fix the spi_nor_read() when config
>> SPI_STACKED_PARALLEL is enabled"
>>
>> I haven't determined yet what the bug is exactly. The board has a single QSPI chip
>> attached to a 7-series Zynq. SPL fails to read from it since this commit.
>>
I spent some time digging into this driver, but only got into a 10-year 
headache plan... The attempts at getting this specific Frankenstein 
hardware working has been a cycle of broken driver code and repairs and 
breaking again ever since its inception in the early zynq 7-series, in 
both Linux and U-boot. Makes me wonder what possesses the hardware 
designers to keep using it instead of simply slapping a octa-spi 
controller on the newer chips. And why the cadence folks thought that 
2x4=16.

For the time being I'll just revert the commit before building. If 
AMD/Xilinx ever come up with a decent fix I'll be happy to test it 
(though there should be plenty zynq7 boards that only have a single QSPI).


-- 
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-14 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11  9:38 Reading QSPI on zynq7 broken since commit 9bb02f7f4533 Mike Looijmans
2025-03-12  4:05 ` Abbarapu, Venkatesh
2025-03-12  8:39   ` Mike Looijmans
2025-03-14 14:47   ` Mike Looijmans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox