[PATCH] drm/xe: Fix build error in xe_ggtt.c

Thomas Hellström thomas.hellstrom at linux.intel.com
Mon Feb 26 09:05:58 UTC 2024


On Sat, 2024-02-24 at 16:14 -0800, Matthew Brost wrote:
> Need to include io-64-nonatomic-lo-hi.h for writeq function.

As I understand it, the choice of header here determines the dword
write order on 32-bit systems that don't have an atomic writeq(),

So is writing the low dword first the correct order in this case?
Perhaps add a motivation in the commit message?

/Thomas


> 
> Fixes: 3121fed0c51b drm/xe: ("Cleanup some layering in GGTT")
> Reported-by: kernel test robot <lkp at intel.com>
> Closes:
> https://lore.kernel.org/oe-kbuild-all/202402241903.R5J8hKVI-lkp@intel.com/
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_ggtt.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c
> b/drivers/gpu/drm/xe/xe_ggtt.c
> index 5d46958e3144..717d0e76277a 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -5,6 +5,7 @@
>  
>  #include "xe_ggtt.h"
>  
> +#include <linux/io-64-nonatomic-lo-hi.h>
>  #include <linux/sizes.h>
>  
>  #include <drm/drm_managed.h>



More information about the Intel-xe mailing list