[Intel-gfx] [PATCH v2] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-06 Thread Cai Huoqing
This patch uses the already existing IDR mechanism to simplify and improve the dmabuf code. Using 'vgpu.object_idr' directly instead of 'dmabuf_obj_list_head' or 'dmabuf.list', because the dmabuf_obj can be found by 'idr_find' or 'idr_for_each_en

Re: [Intel-gfx] [PATCH] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-06 Thread Cai Huoqing
On 03 3月 23 15:12:16, Zhenyu Wang wrote: > On 2023.03.02 19:53:18 +0800, Cai Huoqing wrote: > > This patch uses the already existing IDR mechanism to simplify > > and improve the dmabuf code. > > > > Using 'vgpu.object_idr' directly instead of 'dmabuf_ob

[Intel-gfx] [PATCH] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-06 Thread Cai Huoqing
This patch uses the already existing IDR mechanism to simplify and improve the dmabuf code. Using 'vgpu.object_idr' directly instead of 'dmabuf_obj_list_head' or 'dmabuf.list', because the dmabuf_obj can be found by 'idr_find' or 'idr_for_each_entry&#x

Re: [Intel-gfx] [PATCH] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-06 Thread Cai Huoqing
On 02 3月 23 19:53:18, Cai Huoqing wrote: > This patch uses the already existing IDR mechanism to simplify > and improve the dmabuf code. > > Using 'vgpu.object_idr' directly instead of 'dmabuf_obj_list_head' > or 'dmabuf.list', because t

[Intel-gfx] [PATCH] drm/i915: Use direction definition DMA_BIDIRECTIONAL instead of PCI_DMA_BIDIRECTIONAL

2021-09-27 Thread Cai Huoqing
Replace direction definition PCI_DMA_BIDIRECTIONAL with DMA_BIDIRECTIONAL, because it helps to enhance readability and avoid possible inconsistency. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/i915/gt/intel_region_lmem.c | 4 ++-- drivers/gpu/drm/i915/gvt/gtt.c | 17

Re: [Intel-gfx] [PATCH] drm/i915: Fix typo in comments and Kconfig.debug

2021-08-02 Thread Cai,Huoqing
Hello Thanks for your reply. Exactly , the tools is base on codespell But it seems not working well > iff -Original Message- From: Lucas De Marchi Sent: 2021年7月31日 1:31 To: Cai,Huoqing Cc: jani.nik...@linux.intel.com; joonas.lahti...@linux.intel.com; rodrigo.v...@intel.com; a

[Intel-gfx] [PATCH] drm/i915: Fix typo in comments and Kconfig.debug

2021-07-30 Thread Cai Huoqing
us ==> contiguous *priorty ==> priority *priviliged ==> privileged *fullfilling ==> fulfilling *Timestmap ==> Timestamp *accesible ==> accessible *becaue ==> because *overriden ==> overridden *prarameter ==> parameter *the the ==> the Signed-off-by: Cai Huoqing --- dri