Repository navigation
spi: apple-qspi: admit the J773g's GigaDevice boot NOR - #2625
DjDeveloperr wants to merge 1 commit into
Conversation
The J773g entry assumed the J713's Winbond W25Q64 (ef6517). A Mac mini (M4, J773g) reads a GigaDevice GD25UF64E instead: flash_status: jedec=c88317 sr1=00 sr2=02 sr3=20 so every program or erase failed the JEDEC check with -ENODEV and asahi-bless could not save the NVRAM, even after read_only=N. Admit the GD25UF64E as the J773g's part and keep the W25Q64 as the second ID, as the J616s and J700 entries do. The GigaDevice status rule already covers this part: SR1 has no block protection set and SR2 has only QE, so bp_ok stays 0. Add that status to the KUnit cases. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
|
Looks right. The GD25UF64E is 8 MiB, so the 1 MiB window at 0x700000 fits. It uses the same 05h/35h/15h status registers and program/erase commands as the parts already admitted, and the existing GigaDevice rule reads SR1 0x00 / SR2 0x02 as unprotected, which the new KUnit case pins down. Keeping the W25Q64 as the second ID follows the J616s and J700 entries, and every other T8132 board keeps the J713's part. The before/after Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge-train adversarial review (MERGETRAIN-LINUX2) at aff2742: NO BLOCKERS. Code read only, nothing built here. Before the merge it still needs Dj's verdict at this head; the missing rows are listed below. Full review#2625 spi: apple-qspi: admit the J773g's GigaDevice boot NOR @aff2742bVERDICT: NO BLOCKERS Blockers: none. What I checked:
Nits:
Missing rows:
|
The J773g (Mac mini, M4) entry in the boot NOR table assumed the J713's Winbond W25Q64 (
ef6517). A J773g actually carries a GigaDevice GD25UF64E:apple_qspi_nvram_modify()therefore refused every program and erase with-ENODEV, soasahi-blesscould not save the NVRAM on the mini, even withread_only=N.This PR admits the GD25UF64E as the J773g's part and keeps the W25Q64 as the second ID, the same pattern as the J616s and J700 entries. The existing GigaDevice status rule already covers the part: SR1 has no block protection and SR2 has only QE, so
bp_okstays 0. A KUnit case for that status is added.Tested on a J773g (27.2 firmware, 7.3.0-ARCH-m4drv8)
The patched file is byte-identical to the mini kernel's, apart from this change. It was built as an external module against that kernel, signed with its key and swapped in at runtime.
flash_status, same/dev/mtd2rohash.read_only=N:asahi-bless --next --set-boot "Macintosh HD" -yreturned 0, and--get-boot --nextread backMacintosh HD(defaultTrace).asahi-bless --clear-next -yreturned 0, and--get-boot --nextread backTrace.read_onlywas set back toYafterwards. A full NVRAM backup was taken first.Before the fix, the same
asahi-bless --nextfailed with ENODEV on save and left the NVRAM unchanged.Superseded by #2817 and #3099, which admit the J773g NVRAM partition and its GigaDevice boot NOR through the generic QSPI policy.