Displaying 11 results from an estimated 11 matches for "dev_dma_coherent".
2017 Feb 08
2
[PATCH] virtio: Try to untangle DMA coherency
...ts in the wild, maintain the old behaviour there.
>>>> */
>>>> - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
>>>> + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
>>>> + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
>>>> return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
>>>>
>>>> return false;
>>>
>>> This is exactly what I feared.
>>
>> Yes, sorry about this. It works fine for virtio-pci (where "dma-coherent"
>> is use...
2017 Feb 08
2
[PATCH] virtio: Try to untangle DMA coherency
...ts in the wild, maintain the old behaviour there.
>>>> */
>>>> - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
>>>> + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
>>>> + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
>>>> return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
>>>>
>>>> return false;
>>>
>>> This is exactly what I feared.
>>
>> Yes, sorry about this. It works fine for virtio-pci (where "dma-coherent"
>> is use...
2017 Feb 01
3
[PATCH] virtio: Try to untangle DMA coherency
...> > + * already exists in the wild, maintain the old behaviour there.
> > */
> > - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
> > + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
> > + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
> > return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
> >
> > return false;
>
> This is exactly what I feared.
Yes, sorry about this. It works fine for virtio-pci (where "dma-coherent"
is used) and it also works on the fastmodel if you disable cache-m...
2017 Feb 01
3
[PATCH] virtio: Try to untangle DMA coherency
...> > + * already exists in the wild, maintain the old behaviour there.
> > */
> > - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
> > + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
> > + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
> > return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
> >
> > return false;
>
> This is exactly what I feared.
Yes, sorry about this. It works fine for virtio-pci (where "dma-coherent"
is used) and it also works on the fastmodel if you disable cache-m...
2017 Feb 01
4
[PATCH] virtio: Try to untangle DMA coherency
...us, is going to break badly; since this situation
+ * already exists in the wild, maintain the old behaviour there.
*/
- if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
+ if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
+ device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
return false;
--
2.11.0.dirty
2017 Feb 01
4
[PATCH] virtio: Try to untangle DMA coherency
...us, is going to break badly; since this situation
+ * already exists in the wild, maintain the old behaviour there.
*/
- if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
+ if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
+ device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
return false;
--
2.11.0.dirty
2017 Feb 09
0
[PATCH] virtio: Try to untangle DMA coherency
...behaviour there.
> > > > > */
> > > > > - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
> > > > > + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
> > > > > + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
> > > > > return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
> > > > >
> > > > > return false;
> > > >
> > > > This is exactly what I feared.
> > >
> > > Yes, sorry about this. It works fine for virti...
2017 Feb 01
0
[PATCH] virtio: Try to untangle DMA coherency
...dly; since this situation
> + * already exists in the wild, maintain the old behaviour there.
> */
> - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
> + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
> + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
> return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
>
> return false;
This is exactly what I feared.
Could we identify fastboot and do the special dance just for it?
I'd like to do that instead. It's fastboot doing the unreasonable thing
here and deviating from what...
2017 Feb 01
0
[PATCH] virtio: Try to untangle DMA coherency
...ady exists in the wild, maintain the old behaviour there.
> > > */
> > > - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
> > > + if ((IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) &&
> > > + device_get_dma_attr(&vdev->dev) == DEV_DMA_COHERENT)
> > > return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
> > >
> > > return false;
> >
> > This is exactly what I feared.
>
> Yes, sorry about this. It works fine for virtio-pci (where "dma-coherent"
> is used) and it also works...
2019 Nov 22
16
[RFC 00/13] virtio-iommu on non-devicetree platforms
I'm seeking feedback on multi-platform support for virtio-iommu. At the
moment only devicetree (DT) is supported and we don't have a pleasant
solution for other platforms. Once we figure out the topology
description, x86 support is trivial.
Since the IOMMU manages memory accesses from other devices, the guest
kernel needs to initialize the IOMMU before endpoints start issuing DMA.
2019 Nov 22
16
[RFC 00/13] virtio-iommu on non-devicetree platforms
I'm seeking feedback on multi-platform support for virtio-iommu. At the
moment only devicetree (DT) is supported and we don't have a pleasant
solution for other platforms. Once we figure out the topology
description, x86 support is trivial.
Since the IOMMU manages memory accesses from other devices, the guest
kernel needs to initialize the IOMMU before endpoints start issuing DMA.