Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/kboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -4851,7 +4851,7 @@ int kboot_boot(void *kernel)
if (dt_remain < SZ_16K)
printf("FDT: free dt buffer space low, %u bytes left\n", dt_remain);
}
ret = chip_id == T8142 ? dapf_init_fdt(dt) : dapf_init_all();
ret = (chip_id == T8142 || chip_id == T6041) ? dapf_init_fdt(dt) : dapf_init_all();
if (ret < 0 && chip_id == T8140) {
printf("kboot: refusing T8140 handoff after DAPF failure\n");
pcie_shutdown();
Expand Down
4 changes: 4 additions & 0 deletions src/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ bool nvme_init(void)
if (chip_id == T8140 && nvmmu_base == 0x38dcc0000 && nvme_base == 0x3cdcc0000 &&
nvme_size == 0x10000)
nvme_size = 0x30000;
/* J616C (T6041) has the same split layout: 64 KiB advertised, LSQ at +0x24908. */
if (chip_id == T6041 && nvmmu_base == 0x40dcc0000 && nvme_base == 0x44dcc0000 &&
nvme_size == 0x10000)
nvme_size = 0x30000;
if (nvmmu_size < NVMMU_TCB_STAT + sizeof(u32) ||
nvme_size < NVME_DB_LINEAR_IOSQ + sizeof(u32) || nvmmu_base > UINT64_MAX - nvmmu_size ||
nvme_base > UINT64_MAX - nvme_size ||
Expand Down