From 8065d67e9a7e2f22490406755e4df429b89136d0 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Thu, 1 Oct 2026 00:55:56 -0400 Subject: gsp-phys: decode the real FB size for the boot layout (stage 3b-prime) --- kernel/gsp_phys_boot.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'kernel/gsp_phys_boot.h') diff --git a/kernel/gsp_phys_boot.h b/kernel/gsp_phys_boot.h index 8ab203a..3f6ad6e 100644 --- a/kernel/gsp_phys_boot.h +++ b/kernel/gsp_phys_boot.h @@ -8,8 +8,10 @@ /* * Real-GSP boot bring-up stage 3b: boot-argument DMA memory and the computed * WPR/FB layout. Allocated and filled by gsp_phys_boot.c while the module owns - * the physical GPU. Stage 3b writes no device registers; the WPR metadata page - * is filled in host memory only, ready for the later FWSEC/booter stages. + * the physical GPU. Stage 3b writes no device registers; the only device + * access is a read-only sample of the video-memory-size register in BAR0, and + * the WPR metadata page is filled in host memory only, ready for the later + * FWSEC/booter stages. */ struct gsp_phys_boot { bool initialized; @@ -46,7 +48,8 @@ struct gsp_phys_boot { bool gsp_phys_layout_enabled(void); int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, - u64 fw_image_size, resource_size_t usable_fb_size); + void __iomem *bar0, u64 fw_image_size, + resource_size_t bar1_len); void gsp_phys_boot_layout_fini(struct gsp_phys_boot *boot, struct pci_dev *pdev); #endif /* GSP_PHYS_BOOT_H */ -- cgit v1.2.3