Skip to content

Commit e543b3a

Browse files
committed
parisc: Retrieve and display the PDC PAT capabilities
Signed-off-by: Helge Deller <[email protected]>
1 parent 4c5fe5d commit e543b3a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

arch/parisc/include/asm/pdc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extern int parisc_narrow_firmware;
1111
extern int pdc_type;
1212
extern unsigned long parisc_cell_num; /* cell number the CPU runs on (PAT) */
1313
extern unsigned long parisc_cell_loc; /* cell location of CPU (PAT) */
14+
extern unsigned long parisc_pat_pdc_cap; /* PDC capabilities (PAT) */
1415

1516
/* Values for pdc_type */
1617
#define PDC_TYPE_ILLEGAL -1

arch/parisc/kernel/inventory.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ int pdc_type __read_mostly = PDC_TYPE_ILLEGAL;
4343
/* cell number and location (PAT firmware only) */
4444
unsigned long parisc_cell_num __read_mostly;
4545
unsigned long parisc_cell_loc __read_mostly;
46+
unsigned long parisc_pat_pdc_cap __read_mostly;
4647

4748

4849
void __init setup_pdc(void)
@@ -81,12 +82,21 @@ void __init setup_pdc(void)
8182
#ifdef CONFIG_64BIT
8283
status = pdc_pat_cell_get_number(&cell_info);
8384
if (status == PDC_OK) {
85+
unsigned long legacy_rev, pat_rev;
8486
pdc_type = PDC_TYPE_PAT;
8587
pr_cont("64 bit PAT.\n");
8688
parisc_cell_num = cell_info.cell_num;
8789
parisc_cell_loc = cell_info.cell_loc;
8890
pr_info("PAT: Running on cell %lu and location %lu.\n",
8991
parisc_cell_num, parisc_cell_loc);
92+
status = pdc_pat_pd_get_pdc_revisions(&legacy_rev,
93+
&pat_rev, &parisc_pat_pdc_cap);
94+
pr_info("PAT: legacy revision 0x%lx, pat_rev 0x%lx, pdc_cap 0x%lx, S-PTLB %d, HPMC_RENDEZ %d.\n",
95+
legacy_rev, pat_rev, parisc_pat_pdc_cap,
96+
parisc_pat_pdc_cap
97+
& PDC_PAT_CAPABILITY_BIT_SIMULTANEOUS_PTLB ? 1:0,
98+
parisc_pat_pdc_cap
99+
& PDC_PAT_CAPABILITY_BIT_PDC_HPMC_RENDEZ ? 1:0);
90100
return;
91101
}
92102
#endif

0 commit comments

Comments
 (0)