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
6b4c0bde
Commit
6b4c0bde
authored
Nov 12, 2009
by
Borislav Petkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amd64_edac: detect DDR3 memory type
Signed-off-by:
Borislav Petkov
<
borislav.petkov@amd.com
>
parent
239642fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.c
+4
-3
No files found.
drivers/edac/amd64_edac.c
View file @
6b4c0bde
...
...
@@ -1017,10 +1017,11 @@ static enum mem_type amd64_determine_memory_type(struct amd64_pvt *pvt)
enum
mem_type
type
;
if
(
boot_cpu_data
.
x86
>=
0x10
||
pvt
->
ext_model
>=
K8_REV_F
)
{
/* Rev F and later */
type
=
(
pvt
->
dclr0
&
BIT
(
16
))
?
MEM_DDR2
:
MEM_RDDR2
;
if
(
pvt
->
dchr0
&
DDR3_MODE
)
type
=
(
pvt
->
dclr0
&
BIT
(
16
))
?
MEM_DDR3
:
MEM_RDDR3
;
else
type
=
(
pvt
->
dclr0
&
BIT
(
16
))
?
MEM_DDR2
:
MEM_RDDR2
;
}
else
{
/* Rev E and earlier */
type
=
(
pvt
->
dclr0
&
BIT
(
18
))
?
MEM_DDR
:
MEM_RDDR
;
}
...
...
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