Giter Site home page Giter Site logo

flygoast.github.io's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

flygoast.github.io's Issues

ivshmem pci 驱动中的地址应为 64 位

您好,在使用您的 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.