disabling CONFIG_NET_DMA

847 views Asked by At

I'm facing the exact problem mentioned in the following thread :-

Using DMA API in linux kernel but channel is never available

I'm not able to see any DMA channel in /sys/class/dma. The solution for this has been suggested as to disable the CONFIG_NET_DMA. But can you guys tell me how I can disable this particular thing? I checked in make menuconfig but got no idea how to do it.

1

There are 1 answers

5
Federico On BEST ANSWER

Output from the search function in menuconfig (type /)

Symbol: NET_DMA [=y] 
Type  : boolean  
Prompt: Network: TCP receive copy offload
  Defined at drivers/dma
  Kconfig:304 
  Depends on: DMADEVICES [=y] && DMA_ENGINE [=y] && NET [=y]  
  Location:
   -> Device Drivers
     -> DMA Engine support (DMADEVICES [=y])

So you enter ne menu Device Driver and then the sub-menu DMA Engine Support. So, press N on Network: TCP receive copy offload

I took this from a kernel 3.6, but you should be able to find it on any other version.

Probably you can also open the .config file and just remove the line CONFIG_NET_DMA; it should not have other dependent modules