Re: [PATCH] drm/vmwgfx: fix a warning due to missing dma_parms

From: hch@xxxxxx
Date: Fri May 24 2019 - 10:13:37 EST


On Fri, May 24, 2019 at 11:57:04AM +0000, Thomas Hellstrom wrote:
> It's a PCI device. The struct device * used in dma_map_sg() is the same
> as the &pci_dev->dev handed to the probe() callback. But at probe time,
> the struct device::dma_parms is non-NULL, at least on my system so
> there shouldn't really be a need to kzalloc() it.

Then there is something really odd going on in the OPs setup..