parisc: Enhance CPU detection code on PAT machines
This patch fixes the debug code which runs during the inventory scan on machines with PAT firmware. Additionally print out the relationship between the detected logical CPU number and it's physical location and physical cpu number. This leads to information which can be used to feed numa-structures in the kernel in later patches. An example output is from my single-CPU (2 cores) C8000 machine is: Logical CPU #0 is physical cpu #0 at 0xffff0000ffff15, hpa 0xfffffffffe780000 Logical CPU #1 is physical cpu #1 at 0xffff0000ffff15, hpa 0xfffffffffe781000 Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
@@ -216,9 +216,9 @@ pat_query_module(ulong pcell_loc, ulong mod_index)
|
||||
register_parisc_device(dev); /* advertise device */
|
||||
|
||||
#ifdef DEBUG_PAT
|
||||
pdc_pat_cell_mod_maddr_block_t io_pdc_cell;
|
||||
/* dump what we see so far... */
|
||||
switch (PAT_GET_ENTITY(dev->mod_info)) {
|
||||
pdc_pat_cell_mod_maddr_block_t io_pdc_cell;
|
||||
unsigned long i;
|
||||
|
||||
case PAT_ENTITY_PROC:
|
||||
@@ -259,9 +259,9 @@ pat_query_module(ulong pcell_loc, ulong mod_index)
|
||||
pa_pdc_cell->mod[4 + i * 3]); /* finish (ie end) */
|
||||
printk(KERN_DEBUG
|
||||
" IO_VIEW %ld: 0x%016lx 0x%016lx 0x%016lx\n",
|
||||
i, io_pdc_cell->mod[2 + i * 3], /* type */
|
||||
io_pdc_cell->mod[3 + i * 3], /* start */
|
||||
io_pdc_cell->mod[4 + i * 3]); /* finish (ie end) */
|
||||
i, io_pdc_cell.mod[2 + i * 3], /* type */
|
||||
io_pdc_cell.mod[3 + i * 3], /* start */
|
||||
io_pdc_cell.mod[4 + i * 3]); /* finish (ie end) */
|
||||
}
|
||||
printk(KERN_DEBUG "\n");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user