[PATCH] drm: Add a generic function to change connector type/id of connector dynamically

2010-01-26 Thread yakui . zhao
From: Zhao Yakui Sometimes one connector can support more than one connector type. And it will switch the connector type/id dynamically according to the external connected device. Add a generic function to change connector type/id of the connector dynamically. Signed-off-by: Zhao Yakui --- One

[PATCH] drm: disable all the possible outputs/crtcs before entering KMS mode

2009-12-08 Thread yakui . zhao
From: Zhao Yakui Sometimes we will use a crtc for integerated LVDS, which is different with that assigned by BIOS. If we want to get flicker-free transitions, then we could read out the current state for it and set our current state accordingly. But it is true that if we aren't reading current s

[PATCH] drm: Disable all the possibles output/crtcs before entering KMS mode

2009-12-04 Thread yakui . zhao
From: Zhao Yakui Disable all the possible outputs/crtcs before entering KMS mode. Signed-off-by: Zhao Yakui --- drivers/gpu/drm/drm_crtc_helper.c | 32 include/drm/drm_crtc_helper.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git

[Patch] drm: Add the basic check for the detailed timing in EDID

2009-10-14 Thread yakui . zhao
From: Zhao Yakui Sometimes we will get the incorrect display modeline when parsing the detailed timing in EDID. For example: >hsync/vsync width is zero >sync is beyond the blank. So add the basic check for the detailed timing in EDID to avoid the incorrect display modeline. Signed-off-b

[Patch] drm: Add the basic check for the detailed timing in EDID

2009-10-10 Thread yakui . zhao
From: Zhao Yakui Sometimes we will get the incorrect display modeline when parsing the detailed timing in EDID. For example: >hsync/vsync width is zero >sync is beyond the blank. So add the basic check for the detailed timing in EDID to avoid the incorrect display modeline. Signed-off-b

[Patch] drm: Delete the DRM_DEBUG_KMS in drm_mode_cursor_ioctl

2009-09-30 Thread yakui . zhao
From: Zhao Yakui We can get the corresponding info by adding the boot option of "drm.debug= 0x07". But On some boxes it will print the following message many times in course of moving mouse. In such case the useful DRM debug info will be flushed. >[drm:drm_mode_cursor_ioctl], Avoid using the

[Patch 4/4] DRM/I915: Add the default mode for CRT output without EDID

2009-09-02 Thread yakui . zhao
From: Zhao Yakui Add the default mode for the CRT output without EDID. But we only add the mode which visible part is equal to or less than 1024x768. Signed-off-by: Zhao Yakui --- drivers/gpu/drm/i915/intel_crt.c |8 1 file changed, 8 insertions(+) Index: linux-2.6/drivers/gpu/dr

[Patch 2/4] DRM: try to find the std mode in DMT table

2009-09-02 Thread yakui . zhao
From: Zhao Yakui When we need to add the standard timing mode, we will firstly check whether it can be found in DMT table by comparing the hdisplay/vdisplay/vfresh_rate. If it can't be found, then we will use the cvt/gtf to add the required mode. If it can be found, it will be returned. At the s

[Patch 1/4] DRM: Add the default mode table

2009-09-02 Thread yakui . zhao
From: Zhao Yakui When we add a standard timing mode in UMS, we will first check whether it can be found in default mode table. If it can't be found, then we will use cvt/gtf to add the standard timing mode. Add the default mode table so that we can check whether the given mode can be found in the

[Patch 3/4] DRM: add a function that can add the mode for the output device without EDID

2009-09-02 Thread yakui . zhao
From: Zhao Yakui Add a function that can be used to add the default mode for the output device without EDID. It will add the default mode that meets with the requirements of given hdisplay/vdisplay limit. Signed-off-by: Zhao Yakui --- drivers/gpu/drm/drm_edid.c | 46 +

[Patch] DRM: Parse the detailed time info in CEA-EDID

2009-08-26 Thread yakui . zhao
From: Zhao Yakui Sometimes we can obtain the EDID with multiple blocks from the display device. For example: HDMI monitor. When the CEA-EDID block is detected, we should also parse the detailed timing info from it. Otherwise we will lose some modes for the display device. The first step is check

[Patch 3/4] DRM: Add the explanation about DRM debug level

2009-07-20 Thread yakui . zhao
From: Zhao Yakui Add the explanation about DRM debug level in the drmP header file. This is to explain how/where to use the different DRM debug level. Signed-off-by: Zhao Yakui --- include/drm/drmP.h | 31 +++ 1 file changed, 31 insertions(+) Index: linux-2.6/inc

[PATCH 4/4] DRM :Add the debug info in generic drm mode by using DRM_DEBUG_KMS

2009-07-20 Thread yakui . zhao
From: Zhao Yakui Add the debug info in generic drm mode by using DRM_DEBUG_KMS Signed-off-by: Zhao Yakui --- drivers/gpu/drm/drm_crtc.c| 29 + drivers/gpu/drm/drm_crtc_helper.c | 44 -- 2 files changed, 40 insertions(+), 3

[PATCH 1/4] DRM: Remove the unused prefix in DRM_DEBUG_KMS/DRIVER/MODE

2009-07-20 Thread yakui . zhao
From: Zhao Yakui We will have to add a prefix when using the macro defintion of DRM_DEBUG_KMS /DRM_DEBUG_DRIVER/MODE. It is not convenient. We should use the DRM_NAME as default prefix. So remove the prefix in the macro definition of DRM_DEBUG_KMS/DRIVER/MODE. Signed-off-by: Zhao Yakui Acked-by

[Patch 2/4] drm: Remove the macro defintion of DRM_DEBUG_MODE

2009-07-20 Thread yakui . zhao
From: Zhao Yakui Two macro definitions of DRM_DEBUG_KMS/MODE can be used to add the debug info related with KMS. It is confusing. So remove the macro definition of DRM_DEBUG_MODE. Instead it can be replaced by the DRM_DEBUG_KMS. Signed-off-by: Zhao Yakui Acked-by: Ian Romanick --- drivers/gpu

[Patch 3/4] DRM: Add the explanation about DRM debug level

2009-07-16 Thread yakui . zhao
From: Zhao Yakui Add the explanation about DRM debug level in the drmP header file. This is to explain how/where to use the different DRM debug level. Signed-off-by: Zhao Yakui --- include/drm/drmP.h | 31 +++ 1 file changed, 31 insertions(+) Index: linux-2.6/inc

[PATCH 4/4] DRM :Add the debug info in generic drm mode by using DRM_DEBUG_KMS

2009-07-16 Thread yakui . zhao
From: Zhao Yakui Add the debug info in generic drm mode by using DRM_DEBUG_KMS Signed-off-by: Zhao Yakui --- drivers/gpu/drm/drm_crtc.c| 29 + drivers/gpu/drm/drm_crtc_helper.c | 44 -- 2 files changed, 40 insertions(+), 3

[Patch 2/4] drm: Remove the macro defintion of DRM_DEBUG_MODE

2009-07-16 Thread yakui . zhao
From: Zhao Yakui Two macro definitions of DRM_DEBUG_KMS/MODE can be used to add the debug info related with KMS. It is confusing. So remove the macro definition of DRM_DEBUG_MODE. Instead it can be replaced by the DRM_DEBUG_KMS. Signed-off-by: Zhao Yakui --- drivers/gpu/drm/drm_modes.c |4

[PATCH 1/4] DRM: Remove the unused prefix in DRM_DEBUG_KMS/DRIVER/MODE

2009-07-16 Thread yakui . zhao
From: Zhao Yakui We will have to add a prefix when using the macro defintion of DRM_DEBUG_KMS /DRM_DEBUG_DRIVER/MODE. It is not convenient. We should use the DRM_NAME as default prefix. So remove the prefix in the macro definition of DRM_DEBUG_KMS/DRIVER/MODE. Signed-off-by: Zhao Yakui --- dri

[PATCH 1/2][DRM]: Add the explanation about DRM debug level

2009-07-10 Thread yakui . zhao
From: Zhao Yakui Add the explanation about DRM debug level in the drmP header file. This is to explain how/where to use the different DRM debug level. Signed-off-by: Zhao Yakui --- include/drm/drmP.h | 40 1 files changed, 40 insertions(+), 0 deletion

[PATCH 2/2] [DRM]: Use the DRM_DEBUG_MODE to add the debug info for generic DRM modes

2009-07-10 Thread yakui . zhao
From: Zhao Yakui Use the DRM_DEBUG_MODE to add the debug info in generic DRM modes Signed-off-by: Zhao Yakui --- drivers/gpu/drm/drm_crtc.c| 36 +--- drivers/gpu/drm/drm_crtc_helper.c | 65 ++-- 2 files changed, 63 insertions(+), 38 d

[Intel-gfx][Patch 2/2 _v2] DRM/I915: Sync the panel fitting property with 2D driver

2009-04-01 Thread yakui . zhao
This covers: a. create the scaling mode property and attach it to LVDS b. add the support of panel fitting property for LVDS c. update the display mode according to the panel fitting mode v2: the drm_calloc/drm_free is replaced by kzalloc/kfree based on Eric's suggesti

[Intel-gfx][Patch 1/2_V2]DRM: Sync the mode validation for INTERLACE/DBLSCAN

2009-04-01 Thread yakui . zhao
This covers: Check whether the INTERLACE/DBLSCAN is supported by output device. If not, the mode containing the flag of INTERLACE/DBLSCAN will be marked as unsupported. v2: Fix the code-style and several minor issues based on Eric's suggestion Signed-off-by: Zhao Yakui --- d