]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
parisc: Enhance debug code for PAT firmware
authorHelge Deller <deller@gmx.de>
Fri, 6 Feb 2026 20:39:15 +0000 (21:39 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 6 Feb 2026 23:45:19 +0000 (00:45 +0100)
Enhance output when running PAT firmware, which is helpful when
developing the QEMU emulator. The added code is behind an ifdef,
so no performance overhead for normal kernels.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/inventory.c

index 7ab2f2a54400102b287e4ffcd3ac5bfbdb768bee..05798355cff4e1f1a22e2779fb86c4c100771bb8 100644 (file)
@@ -207,6 +207,19 @@ pat_query_module(ulong pcell_loc, ulong mod_index)
                return status;
        }
 
+#ifdef DEBUG_PAT
+       pr_debug("PAT INDEX: %lu: cba 0x%lx, "
+               "mod_info 0x%lx, mod_location 0x%lx, "
+               "mod: 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx "
+               "0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx\n",
+               mod_index + 1, pa_pdc_cell->cba,
+               pa_pdc_cell->mod_info, pa_pdc_cell->mod_location,
+               pa_pdc_cell->mod[0], pa_pdc_cell->mod[1], pa_pdc_cell->mod[2],
+               pa_pdc_cell->mod[3], pa_pdc_cell->mod[4], pa_pdc_cell->mod[5],
+               pa_pdc_cell->mod[6], pa_pdc_cell->mod[7], pa_pdc_cell->mod[8],
+               pa_pdc_cell->mod[9], pa_pdc_cell->mod[10], pa_pdc_cell->mod[11]);
+#endif
+
        temp = pa_pdc_cell->cba;
        dev = alloc_pa_dev(PAT_GET_CBA(temp), &(pa_pdc_cell->mod_path));
        if (!dev) {