Giter Club home page Giter Club logo

xdma-test's Introduction

xdma-test

The xdma-test application performs DMA operations between the BMC and the host. A PCI driver is needed on the host; this is provided in the host/ directory.

Setup

1) Install kernel sources (depends on linux distro)

Then usally found in /usr/src/kernels/

2) Compile driver

cd host/
make -C <path to kernel source> M=$PWD

3) Make sure to enable VGA device on BMC

4) Probe driver

If the existing ast graphics driver is running on the host (check for 'ast' with lsmod) it must first be removed.

To obtain the device name (probably "0002:02:00.0"):

ls /sys/bus/pci/drivers/ast/
echo <device name> > /sys/bus/pci/drivers/ast/unbind
rmmod ast

Then probe our driver:

insmod ast-bmc-pcie.ko

Finally, check dmesg for the host address to use with xdma-test, usually 0x60000000.

5) Use xdma-test

Compile the xdma-test under openbmc sdk and copy it to the BMC node. Run the test on BMC node.

xdma-test -a <host address> -p -w -s 4096

6) Verify

The host driver provides a device file to check the target memory space to verify that the transfer went through.

dd if=/dev/ast-bmc-mem of=/tmp/vga bs=1024 count=4; cat /tmp/vga | hexdump -C

xdma-test's People

Contributors

eddiejames avatar shenki avatar sannerd avatar ninadpalsule avatar

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.