Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC - Software
Commits
665dc9b9
Commit
665dc9b9
authored
Oct 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel, doc: add show_sdb parameter, disabled by default
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
1bce0491
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
spec-sw.in
doc/spec-sw.in
+13
-0
spec-fmc.c
kernel/spec-fmc.c
+5
-1
wr-nic-core.c
kernel/wr-nic-core.c
+6
-1
No files found.
doc/spec-sw.in
View file @
665dc9b9
...
...
@@ -212,6 +212,11 @@ The module can receive the following parameters to customize its operation:
If not zero, this parameter requests to @i
{
printk
}
the content
of the FMC eeprom, for diagnostic purposes.
@item show
_
sdb
If not zero, the SDB internal structure of the golden binary
is reported through kernel messages. It is disabled by default.
@end table
Any mezzanine-specific action must be performed by the driver for the
...
...
@@ -271,6 +276,14 @@ please look at @i{spec-trivial.c}.
all cards; otherwise the identifiers and gateware names are
paired one by one, in the order specified.
@item show
_
sdb=
For modules supporting it, this parameter asks sub-modules to
show the SDB internal structure to kernel messages. It is
disabled by default because those lines tend to hide more
important messages when you look at the system console while
loading the drivers.
@end table
For example, if you are using the trivial driver to load two different
...
...
kernel/spec-fmc.c
View file @
665dc9b9
...
...
@@ -17,6 +17,9 @@
static
int
spec_test_irq
;
module_param_named
(
test_irq
,
spec_test_irq
,
int
,
0444
);
static
int
spec_show_sdb
;
module_param_named
(
show_sdb
,
spec_show_sdb
,
int
,
0444
);
/* The main role of this file is offering the fmc_operations for the spec */
static
int
spec_validate
(
struct
fmc_device
*
fmc
,
struct
fmc_driver
*
drv
)
...
...
@@ -284,7 +287,8 @@ static int check_golden(struct fmc_device *fmc)
dev_err
(
&
spec
->
pdev
->
dev
,
"unsexpected device in SDB
\n
"
);
return
-
ENODEV
;
}
fmc_show_sdb_tree
(
fmc
);
if
(
spec_show_sdb
)
fmc_show_sdb_tree
(
fmc
);
return
0
;
}
...
...
kernel/wr-nic-core.c
View file @
665dc9b9
...
...
@@ -25,6 +25,10 @@ module_param_named(file, wrn_filename, charp, 0444);
static
char
*
wrn_wrc_filename
=
WRN_WRC_DEFAULT_NAME
;
module_param_named
(
wrc
,
wrn_wrc_filename
,
charp
,
0444
);
static
int
wrn_show_sdb
;
module_param_named
(
show_sdb
,
wrn_show_sdb
,
int
,
0444
);
static
int
wrn_load_wrc
(
struct
fmc_device
*
fmc
,
char
*
name
,
unsigned
long
ram
,
unsigned
long
ramsize
)
{
...
...
@@ -87,7 +91,8 @@ int wrn_fmc_probe(struct fmc_device *fmc)
dev_err
(
dev
,
"scan fmc failed %i
\n
"
,
ret
);
goto
out
;
}
fmc_show_sdb_tree
(
fmc
);
if
(
wrn_show_sdb
)
fmc_show_sdb_tree
(
fmc
);
/*
* The gateware may not be including the WRC code, or the
...
...
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