Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Configuration Space
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FPGA Configuration Space
Commits
2458cbbe
Commit
2458cbbe
authored
4 years ago
by
A. Hahn
Browse files
Options
Downloads
Patches
Plain Diff
pcie-wb: added support for kernel 5+ (experimental)
parent
4d96c292
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pcie-wb/pcie_wb.c
+6
-1
6 additions, 1 deletion
pcie-wb/pcie_wb.c
with
6 additions
and
1 deletion
pcie-wb/pcie_wb.c
+
6
−
1
View file @
2458cbbe
...
...
@@ -313,7 +313,12 @@ static int setup_bar(struct pci_dev* pdev, struct pcie_wb_resource* res, int bar
return
-
ENOMEM
;
}
res
->
addr
=
ioremap_nocache
(
res
->
start
,
res
->
size
);
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0)
res
->
addr
=
ioremap_nocache
(
res
->
start
,
res
->
size
);
#else
#warning Using ioremap_cache (instead of ioremap_nocache)
res
->
addr
=
ioremap_cache
(
res
->
start
,
res
->
size
);
#endif
if
(
debug
)
printk
(
KERN_ALERT
PCIE_WB
"/BAR%d: ioremap to %lx
\n
"
,
bar
,
(
unsigned
long
)
res
->
addr
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment