flygoast / flygoast.github.io Goto Github PK
View Code? Open in Web Editor NEWflygoast's blog
Home Page: http://just4coding.com
flygoast's blog
Home Page: http://just4coding.com
您好,在使用您的 ivshmem 驱动时发生问题:
[ 110.400099] ivpci 0000:00:04.0: [IVPCI] device 237:0, revision: 1
[ 110.400102] ivpci 0000:00:04.0: [IVPCI] BAR0: 0xc1031000, 256
[ 110.400105] ivpci 0000:00:04.0: [IVPCI] BAR1: 0x0, 0
[ 110.400107] ivpci 0000:00:04.0: [IVPCI] BAR2: 0x0, 16777216
[ 110.400134] ------------[ cut here ]------------
[ 110.400136] ioremap on RAM at 0x0000000000000000 - 0x0000000000ffffff
可以注意到 ivpci_private
中如下成员只有 32 位
unsigned int bar0_addr;
unsigned int bar0_len;
unsigned int bar1_addr;
unsigned int bar1_len;
unsigned int bar2_addr;
unsigned int bar2_len;
在改成 unsigned long
与并修改相应 printk 格式后可以正常工作
[ 171.841741] [IVPCI] module loading
[ 171.841790] [IVPCI] major: 237, minor: 0
[ 171.841832] ivpci 0000:00:04.0: [IVPCI] probing for device: 0000:00:04.0
[ 171.841962] ivpci 0000:00:04.0: [IVPCI] device 237:0, revision: 1
[ 171.841965] ivpci 0000:00:04.0: [IVPCI] BAR0: 0xc1031000, 256
[ 171.841968] ivpci 0000:00:04.0: [IVPCI] BAR1: 0x0, 0
[ 171.841970] ivpci 0000:00:04.0: [IVPCI] BAR2: 0x800000000, 16777216
[ 171.841992] ivpci 0000:00:04.0: [IVPCI] BAR2 map: 0000000079ecba09
[ 171.842202] ivpci 0000:00:04.0: [IVPCI] device ivposition: 0, MSI-X: no
[ 171.842205] ivpci 0000:00:04.0: [IVPCI] device probed: 0000:00:04.0
[ 171.842260] [IVPCI] module loaded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.