Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
1f6bcee7
Commit
1f6bcee7
authored
Nov 13, 2009
by
Borislav Petkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amd64_edac: remove unneeded extract_error_address wrapper
Signed-off-by:
Borislav Petkov
<
borislav.petkov@amd.com
>
parent
44e9e2ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.c
+4
-18
No files found.
drivers/edac/amd64_edac.c
View file @
1f6bcee7
...
@@ -763,21 +763,6 @@ static void find_csrow_limits(struct mem_ctl_info *mci, int csrow,
...
@@ -763,21 +763,6 @@ static void find_csrow_limits(struct mem_ctl_info *mci, int csrow,
*
input_addr_max
=
base
|
mask
|
pvt
->
dcs_mask_notused
;
*
input_addr_max
=
base
|
mask
|
pvt
->
dcs_mask_notused
;
}
}
/*
* Extract error address from MCA NB Address Low (section 3.6.4.5) and MCA NB
* Address High (section 3.6.4.6) register values and return the result. Address
* is located in the info structure (nbeah and nbeal), the encoding is device
* specific.
*/
static
u64
extract_error_address
(
struct
mem_ctl_info
*
mci
,
struct
err_regs
*
info
)
{
struct
amd64_pvt
*
pvt
=
mci
->
pvt_info
;
return
pvt
->
ops
->
get_error_address
(
mci
,
info
);
}
/* Map the Error address to a PAGE and PAGE OFFSET. */
/* Map the Error address to a PAGE and PAGE OFFSET. */
static
inline
void
error_address_to_page_and_offset
(
u64
error_address
,
static
inline
void
error_address_to_page_and_offset
(
u64
error_address
,
u32
*
page
,
u32
*
offset
)
u32
*
page
,
u32
*
offset
)
...
@@ -2118,7 +2103,7 @@ static void amd64_handle_ce(struct mem_ctl_info *mci,
...
@@ -2118,7 +2103,7 @@ static void amd64_handle_ce(struct mem_ctl_info *mci,
return
;
return
;
}
}
sys_addr
=
extrac
t_error_address
(
mci
,
info
);
sys_addr
=
pvt
->
ops
->
ge
t_error_address
(
mci
,
info
);
amd64_mc_printk
(
mci
,
KERN_ERR
,
amd64_mc_printk
(
mci
,
KERN_ERR
,
"CE ERROR_ADDRESS= 0x%llx
\n
"
,
sys_addr
);
"CE ERROR_ADDRESS= 0x%llx
\n
"
,
sys_addr
);
...
@@ -2130,10 +2115,11 @@ static void amd64_handle_ce(struct mem_ctl_info *mci,
...
@@ -2130,10 +2115,11 @@ static void amd64_handle_ce(struct mem_ctl_info *mci,
static
void
amd64_handle_ue
(
struct
mem_ctl_info
*
mci
,
static
void
amd64_handle_ue
(
struct
mem_ctl_info
*
mci
,
struct
err_regs
*
info
)
struct
err_regs
*
info
)
{
{
struct
amd64_pvt
*
pvt
=
mci
->
pvt_info
;
struct
mem_ctl_info
*
log_mci
,
*
src_mci
=
NULL
;
int
csrow
;
int
csrow
;
u64
sys_addr
;
u64
sys_addr
;
u32
page
,
offset
;
u32
page
,
offset
;
struct
mem_ctl_info
*
log_mci
,
*
src_mci
=
NULL
;
log_mci
=
mci
;
log_mci
=
mci
;
...
@@ -2144,7 +2130,7 @@ static void amd64_handle_ue(struct mem_ctl_info *mci,
...
@@ -2144,7 +2130,7 @@ static void amd64_handle_ue(struct mem_ctl_info *mci,
return
;
return
;
}
}
sys_addr
=
extrac
t_error_address
(
mci
,
info
);
sys_addr
=
pvt
->
ops
->
ge
t_error_address
(
mci
,
info
);
/*
/*
* Find out which node the error address belongs to. This may be
* Find out which node the error address belongs to. This may be
...
...
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