[PATCH 9/9] virtio: virtio-pci: restrict MIPS support to MMU configuration

Antony Pavlov antonynpavlov at gmail.com
Tue Mar 2 14:28:14 GMT 2021


On Sun, 28 Feb 2021 20:08:36 +0100
Ahmad Fatoum <ahmad at a3f.at> wrote:

Hi!

> MMU-less MIPS doesn't play along nicely with VIRTIO_PCI.
> e.g. Reading from a virtio-rng, will return clearly bogus data.
> Document this in the Kconfig, so no one else trips over this.
> 
> Eventually, this should be fixed..


Please describe, how can I reproduce the problem.


> 
> Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
> ---
>  drivers/virtio/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
> index ecf66987b3ed..91a89d3e1b89 100644
> --- a/drivers/virtio/Kconfig
> +++ b/drivers/virtio/Kconfig
> @@ -28,6 +28,7 @@ config VIRTIO_MMIO
>  config VIRTIO_PCI
>  	tristate "PCI driver for virtio devices"
>  	depends on PCI && HAS_DMA
> +	depends on MMU && MIPS || !MIPS
>  	select VIRTIO
>  	help
>  	  This driver provides support for virtio based paravirtual device
> -- 
> 2.30.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list