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
ec6df24c
Commit
ec6df24c
authored
Jul 18, 2009
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7core: better document i7core_get_active_channels()
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
c77720b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+17
-1
No files found.
drivers/edac/i7core_edac.c
View file @
ec6df24c
...
@@ -333,7 +333,6 @@ static inline int numcol(u32 col)
...
@@ -333,7 +333,6 @@ static inline int numcol(u32 col)
return
cols
[
col
&
0x3
];
return
cols
[
col
&
0x3
];
}
}
/****************************************************************************
/****************************************************************************
Memory check routines
Memory check routines
****************************************************************************/
****************************************************************************/
...
@@ -355,6 +354,23 @@ static struct pci_dev *get_pdev_slot_func(u8 socket, unsigned slot,
...
@@ -355,6 +354,23 @@ static struct pci_dev *get_pdev_slot_func(u8 socket, unsigned slot,
return
NULL
;
return
NULL
;
}
}
/**
* i7core_get_active_channels() - gets the number of channels and csrows
* @socket: Quick Path Interconnect socket
* @channels: Number of channels that will be returned
* @csrows: Number of csrows found
*
* Since EDAC core needs to know in advance the number of available channels
* and csrows, in order to allocate memory for csrows/channels, it is needed
* to run two similar steps. At the first step, implemented on this function,
* it checks the number of csrows/channels present at one socket.
* this is used in order to properly allocate the size of mci components.
*
* It should be noticed that none of the current available datasheets explain
* or even mention how csrows are seen by the memory controller. So, we need
* to add a fake description for csrows.
* So, this driver is attributing one DIMM memory for one csrow.
*/
static
int
i7core_get_active_channels
(
u8
socket
,
unsigned
*
channels
,
static
int
i7core_get_active_channels
(
u8
socket
,
unsigned
*
channels
,
unsigned
*
csrows
)
unsigned
*
csrows
)
{
{
...
...
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