[PATCH] drm: fix sysfs symlinks between driver and module

2015-03-06 Thread Akinobu Mita
/pci:i915 -> ../../../bus/pci/drivers/i915 Signed-off-by: Akinobu Mita Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_pci.c | 14 +- include/drm/drmP.h| 5 - 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_pci

[PATCH] drm/radeon: Use hweight32

2012-11-12 Thread Akinobu Mita
Use hweight32 instead of counting for each bit Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: David Airlie airl...@linux.ie Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/radeon/r600.c| 8 +--- drivers/gpu/drm/radeon/r600_cp.c | 7 +-- 2 files changed, 2 insertions

[PATCH] drm: use memchr_inv()

2012-11-12 Thread Akinobu Mita
Use memchr_inv() to check the specified memory region is filled with zero. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: David Airlie airl...@linux.ie Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH] drm/ttm: remove unneeded preempt_disable/enable

2012-11-12 Thread Akinobu Mita
It is unnecessary to disable preemption explicitly while calling copy_highpage(). Because copy_highpage() will do it again through kmap_atomic/kunmap_atomic. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: dri-devel@lists.freedesktop.org Cc: David Airlie airl...@linux.ie --- drivers/gpu

[PATCH] drm/ttm: remove unneeded preempt_disable/enable

2012-11-09 Thread Akinobu Mita
It is unnecessary to disable preemption explicitly while calling copy_highpage(). Because copy_highpage() will do it again through kmap_atomic/kunmap_atomic. Signed-off-by: Akinobu Mita Cc: dri-devel at lists.freedesktop.org Cc: David Airlie --- drivers/gpu/drm/ttm/ttm_tt.c | 4 1 file

[PATCH] drm: use memchr_inv()

2012-11-09 Thread Akinobu Mita
Use memchr_inv() to check the specified memory region is filled with zero. Signed-off-by: Akinobu Mita Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b

[PATCH] drm/radeon: Use hweight32

2012-11-09 Thread Akinobu Mita
Use hweight32 instead of counting for each bit Signed-off-by: Akinobu Mita Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/radeon/r600.c| 8 +--- drivers/gpu/drm/radeon/r600_cp.c | 7 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git

[PATCH] gpu/drm/ttm: use copy_highpage

2012-09-26 Thread Akinobu Mita
Use copy_highpage() to copy from one page to another. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: David Airlie airl...@linux.ie Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/ttm/ttm_tt.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git

[PATCH] gpu/drm/ttm: use copy_highpage

2012-09-25 Thread Akinobu Mita
Use copy_highpage() to copy from one page to another. Signed-off-by: Akinobu Mita Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/ttm/ttm_tt.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b