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
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
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
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
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
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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
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
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
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
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
23 matches
Mail list logo