Re: [PATCH] drm/ttm: Fix a regression causing kernel oops'es

2023-01-12 Thread Christian König
Am 12.01.23 um 13:11 schrieb Zack Rusin: On Thu, 2023-01-12 at 08:01 +0100, Christian König wrote: !! External Email Am 11.01.23 um 18:50 schrieb Zack Rusin: From: Zack Rusin The branch is explicitly taken if ttm == NULL which means that to avoid a null pointer reference the ttm object can n

Re: [PATCH] drm/ttm: Fix a regression causing kernel oops'es

2023-01-12 Thread Zack Rusin
On Thu, 2023-01-12 at 08:01 +0100, Christian König wrote: > !! External Email > > Am 11.01.23 um 18:50 schrieb Zack Rusin: > > From: Zack Rusin > > > > The branch is explicitly taken if ttm == NULL which means that to avoid > > a null pointer reference the ttm object can not be used inside. Swit

Re: [PATCH] drm/ttm: Fix a regression causing kernel oops'es

2023-01-11 Thread Christian König
Am 11.01.23 um 18:50 schrieb Zack Rusin: From: Zack Rusin The branch is explicitly taken if ttm == NULL which means that to avoid a null pointer reference the ttm object can not be used inside. Switch back to dst_mem to avoid kernel oops'es. This fixes kernel oops'es with any buffer objects wh

Re: [PATCH] drm/ttm: Fix a regression causing kernel oops'es

2023-01-11 Thread Martin Krastev (VMware)
From: Martin Krastev LGTM! Reviewed-by: Martin Krastev Regards, Martin On 11.01.23 г. 19:50 ч., Zack Rusin wrote: From: Zack Rusin The branch is explicitly taken if ttm == NULL which means that to avoid a null pointer reference the ttm object can not be used inside. Switch back to dst_m

[PATCH] drm/ttm: Fix a regression causing kernel oops'es

2023-01-11 Thread Zack Rusin
From: Zack Rusin The branch is explicitly taken if ttm == NULL which means that to avoid a null pointer reference the ttm object can not be used inside. Switch back to dst_mem to avoid kernel oops'es. This fixes kernel oops'es with any buffer objects which don't have ttm_tt, e.g. with vram based