Error installing ATG drives

0

Hello,
I'm trying to run Using-PCIM-Port example from https://github.com/awslabs/aws-fpga-app-notes/tree/master/Using-PCIM-Port

Following the read me, I was able to Load AFI, (agfi-0d132ece5c8010bf7) build ATG drivers and by the time I install I hit on a Error

sudo insmod atg_driver.ko slot=0x0f
insmod: ERROR: could not insert module atg_driver.ko: Device or resource busy.

dmesg logs:
[ 181.293259] IPv6: ADDRCONF(NETDEV_UP): ens3: link is not ready
[ 181.388658] IPv6: ADDRCONF(NETDEV_UP): ens3: link is not ready
[ 181.749638] IPv6: ADDRCONF(NETDEV_CHANGE): ens3: link becomes ready
[ 182.766973] tun: Universal TUN/TAP device driver, 1.6
[ 182.771777] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 182.778610] virbr0: port 1(virbr0-nic) entered blocking state
[ 182.783989] virbr0: port 1(virbr0-nic) entered disabled state
[ 182.789778] device virbr0-nic entered promiscuous mode
[ 182.955985] virbr0: port 1(virbr0-nic) entered blocking state
[ 182.961290] virbr0: port 1(virbr0-nic) entered listening state
[ 182.966475] IPv6: ADDRCONF(NETDEV_UP): virbr0: link is not ready
[ 183.013277] virbr0: port 1(virbr0-nic) entered disabled state
[ 838.922911] Installing atg module
[ 838.926951] vendor: 1d0f, device: f001
[ 838.931777] Enable result: 0
[ 838.935241] xdma 0000:00:0f.0: BAR 0: can't reserve [mem 0xc4000000-0xc5ffffff]
[ 838.943842] atg_driver: cannot obtain the OCL region

How can I fix this ?
I'm using a x16 card on centos.

Edited by: TJ25 on Mar 30, 2020 9:02 AM

TJ25
asked 4 years ago192 views
1 Answer
0

Hi TJ25,

Could you check if xdma is inserted at this point?

lsmod | grep xdma

If it is, try removing it and you should be able to insert the atg driver.

sudo rmmod xdma;
sudo insmod atg_driver.ko slot=0x0f;

-Deep

Deep_P
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions