Do I need to “enable” a PCIe memory region in a Linux 3.12 driver?

后端 未结 2 2024
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 05:19

I have code, called from the probe() function of my PCIe driver (loosely based on this post):

EDIT: Based on Andreas Bombe\'s response, I changed th

2条回答
  •  醉酒成梦
    2021-02-10 05:45

    To Enable the memory you can try out the below command directly.

    setpci -s COMMAND=0x02 -s : Used for device selection COMMAND : Asks for the word-sized command register, 0x02 is to enable memory

    lspci Output : 0000:01:00.0 RAM memory: Xilinx Corporation Default PCIe endpoint ID 0001:02:00.0 Memory controller: Xilinx Corporation Device 8011 Example : setpci -s 0001:02:00.0 COMMAND=0x02

提交回复
热议问题