[Intel-gfx] [PATCH] drm/i915: Refactor dma mask usage to a common helper

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 17 15:42:31 UTC 2020


Quoting Michael J. Ruhl (2020-04-17 16:22:44)
> DMA_MASK bit values are different for different generations.
> 
> This will become more difficult to manage over time with the open
> coded usage of different versions of the device.
> 
> Fix by:
>   adding dma_mask_size to the device info configuration,
>   updating open code call sequence to the latest interface,
>   refactoring into a common function for setting the dma_mask
> 
> Note: GEN(5) and down is also set in intel_gmch_probe().

Assume we pull that code into i915.ko, we will one day.
-Chris


More information about the Intel-gfx mailing list