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.
Signature · 10 lines
Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl
[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
Quoted 31 lines
-----Original Message-----
From: Mike Looijmans <[email protected]>
Sent: Tuesday, March 11, 2025 3:08 PM
To: [email protected]
Cc: Abbarapu, Venkatesh <[email protected]>; Simek, Michal <[email protected]>
Subject: Reading QSPI on zynq7 broken since commit9bb02f7f4533After a bisect session, turned out this causes my topic-miami board to fail to boot from QSPI:
Commit
9bb02f7f4533: "mtd: spi-nor: Fix thespi_nor_read()when configSPI_STACKED_PARALLELis 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 ExpertTOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The NetherlandsT: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl
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: [email protected]
W: www.topic.nl
Please consider the environment before printing this e-mail
Quoted 1 line · Venkatesh
[AMD Official Use Only - AMD Internal Distribution Only]
?
Quoted 2 lines
Hi Mike,
Can you try disabling the configSPI_STACKED_PARALLEL.
That's already disabled, the board only has a single QSPI flash chip.
Quoted 1 line
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.
Quoted 22 lines
Thanks
VenkateshQuoted 19 lines
-----Original Message-----
From: Mike Looijmans <[email protected]>
Sent: Tuesday, March 11, 2025 3:08 PM
To: [email protected]
Cc: Abbarapu, Venkatesh <[email protected]>; Simek, Michal <[email protected]>
Subject: Reading QSPI on zynq7 broken since commit9bb02f7f4533After a bisect session, turned out this causes my topic-miami board to fail to boot from QSPI:
Commit
9bb02f7f4533: "mtd: spi-nor: Fix thespi_nor_read()when configSPI_STACKED_PARALLELis 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.
Quoted 26 lines · Venkatesh
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mike,
Can you try disabling the configSPI_STACKED_PARALLEL. Is read getting failed?Thanks
VenkateshQuoted 17 lines
-----Original Message-----
From: Mike Looijmans <[email protected]>
Sent: Tuesday, March 11, 2025 3:08 PM
To: [email protected]
Cc: Abbarapu, Venkatesh <[email protected]>; Simek, Michal <[email protected]>
Subject: Reading QSPI on zynq7 broken since commit9bb02f7f4533After a bisect session, turned out this causes my topic-miami board to fail to boot from QSPI:
Commit
9bb02f7f4533: "mtd: spi-nor: Fix thespi_nor_read()when configSPI_STACKED_PARALLELis 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).
Signature · 10 lines
Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl