Re: [PATCH] drm/qxl: pass a device into ttm init.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 Jan 2024 12:20:15 +1000
Dave Airlie <airlied@xxxxxxxxx> wrote:

> From: Dave Airlie <airlied@xxxxxxxxxx>
> 
> ttm init was changed to look at numa node, but that needed a device.
> 
> Only qxl appears to not hand in a device, so just fix that.
> 
> Fixes: b0a7ce53d494 ("drm/ttm: Schedule delayed_delete worker closer")
> Reported-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

My tests seem to get past the crash with this patch and not my "fix".

Tested-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>

-- Steve

> Cc: Rajneesh Bhardwaj <rajneesh.bhardwaj@xxxxxxx>
> Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>
> ---
>  drivers/gpu/drm/qxl/qxl_ttm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
> index 1a82629bce3f..1876419ea237 100644
> --- a/drivers/gpu/drm/qxl/qxl_ttm.c
> +++ b/drivers/gpu/drm/qxl/qxl_ttm.c
> @@ -195,7 +195,7 @@ int qxl_ttm_init(struct qxl_device *qdev)
>  	int num_io_pages; /* != rom->num_io_pages, we include surface0 */
>  
>  	/* No others user of address space so set it to 0 */
> -	r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, NULL,
> +	r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, qdev->ddev.dev,
>  			    qdev->ddev.anon_inode->i_mapping,
>  			    qdev->ddev.vma_offset_manager,
>  			    false, false);




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux