diff options
Diffstat (limited to 'kernel/gsp_phys_boot.c')
| -rw-r--r-- | kernel/gsp_phys_boot.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kernel/gsp_phys_boot.c b/kernel/gsp_phys_boot.c index 59e7966..598bb7b 100644 --- a/kernel/gsp_phys_boot.c +++ b/kernel/gsp_phys_boot.c @@ -182,28 +182,28 @@ static int gsp_phys_fb_size_decode(void __iomem *bar0, u64 fw_image_size, if (ecc) fb_size = fb_size / 16 * 15; - pr_info("gsp-phys-boot: FB size register[0x%06x]=0x%08x lowerMag=%u lowerScale=%u ecc=%u -> real usable FB size 0x%llx (%llu GiB)\n", + pr_info("vgsp-boot: FB size register[0x%06x]=0x%08x lowerMag=%u lowerScale=%u ecc=%u -> real usable FB size 0x%llx (%llu GiB)\n", GSP_PHYS_FB_LOCAL_MEMORY_RANGE, reg, mag, scale, (unsigned int)ecc, fb_size, fb_size >> 30); if (!mag || !fb_size) { - pr_err("gsp-phys-boot: FB size register decodes to zero (reg=0x%08x mag=%u scale=%u); refusing layout\n", + pr_err("vgsp-boot: FB size register decodes to zero (reg=0x%08x mag=%u scale=%u); refusing layout\n", reg, mag, scale); return -EINVAL; } if (fb_size < GSP_PHYS_FB_SIZE_MIN || fb_size > GSP_PHYS_FB_SIZE_MAX) { - pr_err("gsp-phys-boot: decoded real FB size 0x%llx outside sane range [0x%llx..0x%llx]; refusing layout\n", + pr_err("vgsp-boot: decoded real FB size 0x%llx outside sane range [0x%llx..0x%llx]; refusing layout\n", fb_size, (u64)GSP_PHYS_FB_SIZE_MIN, (u64)GSP_PHYS_FB_SIZE_MAX); return -ERANGE; } if (!IS_ALIGNED(fb_size, GSP_PHYS_PAGE_SIZE)) { - pr_err("gsp-phys-boot: decoded real FB size 0x%llx is not page-aligned; refusing layout\n", + pr_err("vgsp-boot: decoded real FB size 0x%llx is not page-aligned; refusing layout\n", fb_size); return -ERANGE; } if (fw_image_size && fb_size <= fw_image_size) { - pr_err("gsp-phys-boot: decoded real FB size 0x%llx does not fit the staged GSP-RM image (0x%llx); refusing layout\n", + pr_err("vgsp-boot: decoded real FB size 0x%llx does not fit the staged GSP-RM image (0x%llx); refusing layout\n", fb_size, fw_image_size); return -ERANGE; } @@ -257,34 +257,34 @@ static bool gsp_phys_wpr_layout_valid(const struct gsp_phys_wpr_meta *m) static void gsp_phys_wpr_meta_dump(const struct gsp_phys_wpr_meta *m) { - pr_info("gsp-phys-boot: GspFwWprMeta sizeof=%zu (must be 256) magic=0x%llx revision=%llu flags=0x%x\n", + pr_info("vgsp-boot: GspFwWprMeta sizeof=%zu (must be 256) magic=0x%llx revision=%llu flags=0x%x\n", sizeof(*m), (u64)m->magic, (u64)m->revision, m->flags); - pr_info("gsp-phys-boot: fbSize=0x%llx vgaWorkspace=0x%llx - 0x%llx (0x%llx)\n", + pr_info("vgsp-boot: fbSize=0x%llx vgaWorkspace=0x%llx - 0x%llx (0x%llx)\n", m->fb_size, m->vga_workspace_offset, m->vga_workspace_offset + m->vga_workspace_size - 1, m->vga_workspace_size); - pr_info("gsp-phys-boot: gspFwRsvdStart=0x%llx\n", m->gsp_fw_rsvd_start); - pr_info("gsp-phys-boot: nonWprHeap=0x%llx - 0x%llx (0x%llx)\n", + pr_info("vgsp-boot: gspFwRsvdStart=0x%llx\n", m->gsp_fw_rsvd_start); + pr_info("vgsp-boot: nonWprHeap=0x%llx - 0x%llx (0x%llx)\n", m->non_wpr_heap_offset, m->non_wpr_heap_offset + m->non_wpr_heap_size - 1, m->non_wpr_heap_size); - pr_info("gsp-phys-boot: gspFwWprStart=0x%llx\n", m->gsp_fw_wpr_start); - pr_info("gsp-phys-boot: gspFwHeap=0x%llx - 0x%llx (0x%llx)\n", + pr_info("vgsp-boot: gspFwWprStart=0x%llx\n", m->gsp_fw_wpr_start); + pr_info("vgsp-boot: gspFwHeap=0x%llx - 0x%llx (0x%llx)\n", m->gsp_fw_heap_offset, m->gsp_fw_heap_offset + m->gsp_fw_heap_size - 1, m->gsp_fw_heap_size); - pr_info("gsp-phys-boot: gspFwOffset=0x%llx - 0x%llx (0x%llx)\n", + pr_info("vgsp-boot: gspFwOffset=0x%llx - 0x%llx (0x%llx)\n", m->gsp_fw_offset, m->gsp_fw_offset + m->size_of_radix3_elf - 1, m->size_of_radix3_elf); - pr_info("gsp-phys-boot: bootBinOffset=0x%llx - 0x%llx (0x%llx)\n", + pr_info("vgsp-boot: bootBinOffset=0x%llx - 0x%llx (0x%llx)\n", m->boot_bin_offset, m->boot_bin_offset + m->size_of_bootloader - 1, m->size_of_bootloader); - pr_info("gsp-phys-boot: frtsOffset=0x%llx - 0x%llx (0x%llx)\n", + pr_info("vgsp-boot: frtsOffset=0x%llx - 0x%llx (0x%llx)\n", m->frts_offset, m->frts_offset + m->frts_size - 1, m->frts_size); - pr_info("gsp-phys-boot: gspFwWprEnd=0x%llx bootCount=%llu verified=%llu\n", + pr_info("vgsp-boot: gspFwWprEnd=0x%llx bootCount=%llu verified=%llu\n", m->gsp_fw_wpr_end, (u64)m->boot_count, (u64)m->verified); - pr_info("gsp-phys-boot: stubs: sysmemAddrOfRadix3Elf/Bootloader/Signature=0 crashReportQueue=0 (image not staged in 3b), bootloader offsets=0\n"); + pr_info("vgsp-boot: stubs: sysmemAddrOfRadix3Elf/Bootloader/Signature=0 crashReportQueue=0 (image not staged in 3b), bootloader offsets=0\n"); } /* @@ -315,29 +315,29 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, BUILD_BUG_ON(sizeof(struct gsp_phys_wpr_meta) != 256); - pr_info("gsp-phys-boot: stage 3b layout+allocation on %s (BAR0 read-only, no device writes)\n", + pr_info("vgsp-boot: stage 3b layout+allocation on %s (BAR0 read-only, no device writes)\n", pci_name(pdev)); ret = gsp_phys_fb_size_decode(bar0, fw_image_size, &usable_fb_size); if (ret) return ret; - pr_info("gsp-phys-boot: real FB size = 0x%llx (%llu GiB), replacing the BAR1-aperture approximation\n", + pr_info("vgsp-boot: real FB size = 0x%llx (%llu GiB), replacing the BAR1-aperture approximation\n", usable_fb_size, usable_fb_size >> 30); - pr_info("gsp-phys-boot: BAR1 aperture = 0x%llx (%llu MiB); decoded real FB size difference %+lld bytes\n", + pr_info("vgsp-boot: BAR1 aperture = 0x%llx (%llu MiB); decoded real FB size difference %+lld bytes\n", (u64)bar1_len, (u64)bar1_len >> 20, (long long)((s64)usable_fb_size - (s64)bar1_len)); - pr_info("gsp-phys-boot: staged GSP-RM image (.fwimage) size = 0x%llx\n", + pr_info("vgsp-boot: staged GSP-RM image (.fwimage) size = 0x%llx\n", fw_image_size); - pr_info("gsp-phys-boot: stub: boot binary size assumed 0x%x (boot ucode is compiled-in bindata, not a .fwimage section)\n", + pr_info("vgsp-boot: stub: boot binary size assumed 0x%x (boot ucode is compiled-in bindata, not a .fwimage section)\n", GSP_PHYS_BOOTLOADER_SIZE_STUB); - pr_info("gsp-phys-boot: wprEndMargin=0 (reference normal first-boot path; no override/retry margin)\n"); + pr_info("vgsp-boot: wprEndMargin=0 (reference normal first-boot path; no override/retry margin)\n"); boot->wpr_meta_size = GSP_PHYS_PAGE_SIZE; boot->wpr_meta_va = dma_alloc_coherent(&pdev->dev, boot->wpr_meta_size, &boot->wpr_meta_dma, GFP_KERNEL); if (!boot->wpr_meta_va) { - pr_err("gsp-phys-boot: WPR meta page allocation failed\n"); + pr_err("vgsp-boot: WPR meta page allocation failed\n"); ret = -ENOMEM; goto err; } @@ -345,7 +345,7 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, boot->libos_args_va = dma_alloc_coherent(&pdev->dev, boot->libos_args_size, &boot->libos_args_dma, GFP_KERNEL); if (!boot->libos_args_va) { - pr_err("gsp-phys-boot: libos init arguments allocation failed\n"); + pr_err("vgsp-boot: libos init arguments allocation failed\n"); ret = -ENOMEM; goto err; } @@ -353,17 +353,17 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, boot->gsp_args_va = dma_alloc_coherent(&pdev->dev, boot->gsp_args_size, &boot->gsp_args_dma, GFP_KERNEL); if (!boot->gsp_args_va) { - pr_err("gsp-phys-boot: GSP/bootloader arguments allocation failed\n"); + pr_err("vgsp-boot: GSP/bootloader arguments allocation failed\n"); ret = -ENOMEM; goto err; } - pr_info("gsp-phys-boot: WPR meta page 0x%zx bytes dma=0x%llx va=%p (coherent/uncached, zeroed)\n", + pr_info("vgsp-boot: WPR meta page 0x%zx bytes dma=0x%llx va=%p (coherent/uncached, zeroed)\n", boot->wpr_meta_size, (u64)boot->wpr_meta_dma, boot->wpr_meta_va); - pr_info("gsp-phys-boot: libos args 0x%zx bytes dma=0x%llx va=%p (coherent, zeroed; filled in a later stage)\n", + pr_info("vgsp-boot: libos args 0x%zx bytes dma=0x%llx va=%p (coherent, zeroed; filled in a later stage)\n", boot->libos_args_size, (u64)boot->libos_args_dma, boot->libos_args_va); - pr_info("gsp-phys-boot: gsp args 0x%zx bytes dma=0x%llx va=%p (coherent, zeroed; filled in a later stage)\n", + pr_info("vgsp-boot: gsp args 0x%zx bytes dma=0x%llx va=%p (coherent, zeroed; filled in a later stage)\n", boot->gsp_args_size, (u64)boot->gsp_args_dma, boot->gsp_args_va); meta = boot->wpr_meta_va; @@ -401,7 +401,7 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, post_wpr_heap); if (meta->gsp_fw_offset < pre_wpr_heap + wpr_heap_size) { - pr_err("gsp-phys-boot: real FB size 0x%llx too small: image (0x%llx) + WPR heap (0x%llx) + pre-WPR regions (0x%llx) do not fit below the VGA workspace\n", + pr_err("vgsp-boot: real FB size 0x%llx too small: image (0x%llx) + WPR heap (0x%llx) + pre-WPR regions (0x%llx) do not fit below the VGA workspace\n", usable_fb_size, meta->size_of_radix3_elf, wpr_heap_size, pre_wpr_heap); ret = -ERANGE; @@ -436,13 +436,13 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, meta->magic = GSP_PHYS_WPR_META_MAGIC; meta->flags = GSP_PHYS_WPR_META_FLAG_CLOCK_BOOST; - pr_info("gsp-phys-boot: FW heap size = 0x%llx (pre=0x%llx post=0x%llx, min %uMB max %uMB, pre-scrubbed top 0x%llx)\n", + pr_info("vgsp-boot: FW heap size = 0x%llx (pre=0x%llx post=0x%llx, min %uMB max %uMB, pre-scrubbed top 0x%llx)\n", wpr_heap_size, pre_wpr_heap, post_wpr_heap, GSP_PHYS_FW_HEAP_MIN_MB, GSP_PHYS_FW_HEAP_MAX_MB, (u64)GSP_PHYS_PRESCRUBBED_TOP_FB); if (!gsp_phys_wpr_layout_valid(meta)) { - pr_err("gsp-phys-boot: computed layout is inconsistent (frame too small for image/heap?)\n"); + pr_err("vgsp-boot: computed layout is inconsistent (frame too small for image/heap?)\n"); ret = -EINVAL; goto err; } @@ -467,7 +467,7 @@ int gsp_phys_boot_layout_init(struct gsp_phys_boot *boot, struct pci_dev *pdev, boot->gsp_fw_rsvd_start = meta->gsp_fw_rsvd_start; boot->initialized = true; - pr_info("gsp-phys-boot: stage 3b complete: boot args allocated, WPR meta filled (no device writes)\n"); + pr_info("vgsp-boot: stage 3b complete: boot args allocated, WPR meta filled (no device writes)\n"); return 0; err: @@ -497,7 +497,7 @@ void gsp_phys_boot_layout_fini(struct gsp_phys_boot *boot, struct pci_dev *pdev) boot->libos_args_va = NULL; boot->gsp_args_va = NULL; boot->initialized = false; - pr_info("gsp-phys-boot: boot-argument pages freed\n"); + pr_info("vgsp-boot: boot-argument pages freed\n"); } int gsp_phys_boot_meta_set_sysmem(struct gsp_phys_boot *boot, @@ -511,7 +511,7 @@ int gsp_phys_boot_meta_set_sysmem(struct gsp_phys_boot *boot, return -EINVAL; if (!radix3_dma || !radix3_size || !fmc_dma || !fmc_size || !sig_dma || !sig_size) { - pr_err("gsp-phys-boot: refusing to write zero sysmem addresses into the WPR meta (radix3=0x%llx fmc=0x%llx sig=0x%llx)\n", + pr_err("vgsp-boot: refusing to write zero sysmem addresses into the WPR meta (radix3=0x%llx fmc=0x%llx sig=0x%llx)\n", radix3_dma, fmc_dma, sig_dma); return -EINVAL; } @@ -534,11 +534,11 @@ int gsp_phys_boot_meta_set_sysmem(struct gsp_phys_boot *boot, meta->sysmem_addr_of_signature != sig_dma || meta->size_of_bootloader != fmc_size || meta->size_of_signature != sig_size) { - pr_err("gsp-phys-boot: WPR meta sysmem readback mismatch\n"); + pr_err("vgsp-boot: WPR meta sysmem readback mismatch\n"); return -EIO; } - pr_info("gsp-phys-boot: WPR meta sysmem addrs: radix3=0x%llx (0x%llx), bootloader=0x%llx (0x%llx), signature=0x%llx (0x%llx), crashReportQueue=0/0, bootloader offsets=0\n", + pr_info("vgsp-boot: WPR meta sysmem addrs: radix3=0x%llx (0x%llx), bootloader=0x%llx (0x%llx), signature=0x%llx (0x%llx), crashReportQueue=0/0, bootloader offsets=0\n", radix3_dma, radix3_size, fmc_dma, fmc_size, sig_dma, sig_size); return 0; } |
