Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e543b3a6
Commit
e543b3a6
authored
Oct 19, 2018
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Retrieve and display the PDC PAT capabilities
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
4c5fe5db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
arch/parisc/include/asm/pdc.h
arch/parisc/include/asm/pdc.h
+1
-0
arch/parisc/kernel/inventory.c
arch/parisc/kernel/inventory.c
+10
-0
No files found.
arch/parisc/include/asm/pdc.h
View file @
e543b3a6
...
...
@@ -11,6 +11,7 @@ extern int parisc_narrow_firmware;
extern
int
pdc_type
;
extern
unsigned
long
parisc_cell_num
;
/* cell number the CPU runs on (PAT) */
extern
unsigned
long
parisc_cell_loc
;
/* cell location of CPU (PAT) */
extern
unsigned
long
parisc_pat_pdc_cap
;
/* PDC capabilities (PAT) */
/* Values for pdc_type */
#define PDC_TYPE_ILLEGAL -1
...
...
arch/parisc/kernel/inventory.c
View file @
e543b3a6
...
...
@@ -43,6 +43,7 @@ int pdc_type __read_mostly = PDC_TYPE_ILLEGAL;
/* cell number and location (PAT firmware only) */
unsigned
long
parisc_cell_num
__read_mostly
;
unsigned
long
parisc_cell_loc
__read_mostly
;
unsigned
long
parisc_pat_pdc_cap
__read_mostly
;
void
__init
setup_pdc
(
void
)
...
...
@@ -81,12 +82,21 @@ void __init setup_pdc(void)
#ifdef CONFIG_64BIT
status
=
pdc_pat_cell_get_number
(
&
cell_info
);
if
(
status
==
PDC_OK
)
{
unsigned
long
legacy_rev
,
pat_rev
;
pdc_type
=
PDC_TYPE_PAT
;
pr_cont
(
"64 bit PAT.
\n
"
);
parisc_cell_num
=
cell_info
.
cell_num
;
parisc_cell_loc
=
cell_info
.
cell_loc
;
pr_info
(
"PAT: Running on cell %lu and location %lu.
\n
"
,
parisc_cell_num
,
parisc_cell_loc
);
status
=
pdc_pat_pd_get_pdc_revisions
(
&
legacy_rev
,
&
pat_rev
,
&
parisc_pat_pdc_cap
);
pr_info
(
"PAT: legacy revision 0x%lx, pat_rev 0x%lx, pdc_cap 0x%lx, S-PTLB %d, HPMC_RENDEZ %d.
\n
"
,
legacy_rev
,
pat_rev
,
parisc_pat_pdc_cap
,
parisc_pat_pdc_cap
&
PDC_PAT_CAPABILITY_BIT_SIMULTANEOUS_PTLB
?
1
:
0
,
parisc_pat_pdc_cap
&
PDC_PAT_CAPABILITY_BIT_PDC_HPMC_RENDEZ
?
1
:
0
);
return
;
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment