robert@axium.co.nz

  • Content Count

    4
  • Joined

  • Last visited

About robert@axium.co.nz

  • Rank
    Newbie

Recent Profile Visitors

659 profile views
  1. With the Orange Pi One and the mainline kernel, I can't get it to work optimally when plugged into a gigabit switch. The eth interface on the Pi One is 100Mb/s and it works perfectly when attached to a switch that is 100Mb/s. When attached to a 1000Mb/s switch: [112776.347520] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off When attached to a 100Mb/s switch: [112882.431555] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
  2. On the whole the driver is good. One thing I noticed on the Orange Pi One was it doesn't work optimally when plugged into a gigabit switch. The eth interface on the Pi One is 100Mb/s and it works perfect when attached to a switch that is 100Mb/s. When attached to a 1000Mb/s switch: [112776.347520] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off When attached to a 100Mb/s switch: [112882.431555] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx Tested on kernels 4.13 - 4.14. Not sure where to do
  3. Using the dev build of Armbian for the OrangePi One, does the SPI driver in the mainline kernel support DMA? According to the mainline status page the work on SPI is done, and DMA has been supported since 4.2 I have enabled the spi interface in the device tree and my driver initialises properly with the master. But in my kernel driver I attempt to allocate some memory with dma_alloc_coherent and it fails. The driver works fine with the legacy kernel and with alternative hardware (raspberry pi). Is there some additional configuration needed or does anyone have an
  4. In my spi protocol driver I send large buffers of data to be transferred. I am not interested in the data received so I leave the rx_buf as NULL. In the controller driver they have code to implement this use case: https://github.com/allwinner-zh/linux-3.4-sunxi/blob/6964d467510849e3e262518cb87bff7ef92e01f5/drivers/spi/spi-sunxi.c#L1003 However the transfer never completes and the kernel logs a time out for each transfer after 120 seconds. I have tried modifying the driver with various options like disabling the SPI_GC_TP_EN, which pauses transmit when the receive fifo is full, but