Re: [Intel-gfx] [PATCH] drm/i915: Refactor ttm ghost obj detection

2022-10-14 Thread Das, Nirmoy
On 10/14/2022 4:58 PM, Matthew Auld wrote: On 14/10/2022 14:14, Nirmoy Das wrote: Currently i915_ttm_to_gem() returns NULL for ttm ghost object which makes it unclear when we should add a NULL check for a caller of i915_ttm_to_gem() as ttm ghost objects are expected behaviour for certain cases

Re: [Intel-gfx] [PATCH] drm/i915: Refactor ttm ghost obj detection

2022-10-14 Thread Matthew Auld
On 14/10/2022 14:14, Nirmoy Das wrote: Currently i915_ttm_to_gem() returns NULL for ttm ghost object which makes it unclear when we should add a NULL check for a caller of i915_ttm_to_gem() as ttm ghost objects are expected behaviour for certain cases. Create a separate function to detect ttm gh

[Intel-gfx] [PATCH] drm/i915: Refactor ttm ghost obj detection

2022-10-14 Thread Nirmoy Das
Currently i915_ttm_to_gem() returns NULL for ttm ghost object which makes it unclear when we should add a NULL check for a caller of i915_ttm_to_gem() as ttm ghost objects are expected behaviour for certain cases. Create a separate function to detect ttm ghost object and use that in places where w