search for: dma_mask_overrid

Displaying 2 results from an estimated 2 matches for "dma_mask_overrid".

Did you mean: dma_mask_override
2023 Mar 23
0
[PATCH v3 virtio 1/8] virtio: allow caller to override device id and DMA mask
...d.vendor = pci_dev->subsystem_vendor; > > @@ -260,7 +267,12 @@ int vp_modern_probe(struct virtio_pci_modern_device *mdev) > return -EINVAL; > } > > - err = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(64)); > + if (mdev->dma_mask_override) > + err = dma_set_mask_and_coherent(&pci_dev->dev, > + mdev->dma_mask_override); > + else > + err = dma_set_mask_and_coherent(&pci_dev->dev, > +...
2023 Mar 17
0
[PATCH RFC v2 virtio 3/7] pds_vdpa: virtio bar setup for vdpa
...ion call seems a bit messy, > maybe add them to the struct virtio_pci_modern_device and the caller can > set them as overrides if needed? > > struct virtio_pci_modern_device { > > ... > > int (*device_id_check_override(struct pci_dev *pdev)); > u64 dma_mask_override; > } Looks fine. Thanks