mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-07 03:56:41 +07:00
drm/i915: Add some debug spam for intialising SDVO
During SDVO initialisation it would be useful to a have a record of the individual devices we try to enable and later probe - in particular to be able to see which fail. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
aec347ab19
commit
46a3f4a314
@ -539,7 +539,7 @@ static bool intel_sdvo_read_response(struct intel_sdvo *intel_sdvo,
|
|||||||
goto log_fail;
|
goto log_fail;
|
||||||
|
|
||||||
while ((status == SDVO_CMD_STATUS_PENDING ||
|
while ((status == SDVO_CMD_STATUS_PENDING ||
|
||||||
status == SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED) && --retry) {
|
status == SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED) && --retry) {
|
||||||
if (retry < 10)
|
if (retry < 10)
|
||||||
msleep(15);
|
msleep(15);
|
||||||
else
|
else
|
||||||
@ -1773,6 +1773,9 @@ static void intel_sdvo_get_ddc_modes(struct drm_connector *connector)
|
|||||||
{
|
{
|
||||||
struct edid *edid;
|
struct edid *edid;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
|
||||||
|
connector->base.id, drm_get_connector_name(connector));
|
||||||
|
|
||||||
/* set the bus switch and get the modes */
|
/* set the bus switch and get the modes */
|
||||||
edid = intel_sdvo_get_edid(connector);
|
edid = intel_sdvo_get_edid(connector);
|
||||||
|
|
||||||
@ -1868,6 +1871,9 @@ static void intel_sdvo_get_tv_modes(struct drm_connector *connector)
|
|||||||
uint32_t reply = 0, format_map = 0;
|
uint32_t reply = 0, format_map = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
|
||||||
|
connector->base.id, drm_get_connector_name(connector));
|
||||||
|
|
||||||
/* Read the list of supported input resolutions for the selected TV
|
/* Read the list of supported input resolutions for the selected TV
|
||||||
* format.
|
* format.
|
||||||
*/
|
*/
|
||||||
@ -1902,6 +1908,9 @@ static void intel_sdvo_get_lvds_modes(struct drm_connector *connector)
|
|||||||
struct drm_i915_private *dev_priv = connector->dev->dev_private;
|
struct drm_i915_private *dev_priv = connector->dev->dev_private;
|
||||||
struct drm_display_mode *newmode;
|
struct drm_display_mode *newmode;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
|
||||||
|
connector->base.id, drm_get_connector_name(connector));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fetch modes from VBT. For SDVO prefer the VBT mode since some
|
* Fetch modes from VBT. For SDVO prefer the VBT mode since some
|
||||||
* SDVO->LVDS transcoders can't cope with the EDID mode.
|
* SDVO->LVDS transcoders can't cope with the EDID mode.
|
||||||
@ -1933,7 +1942,6 @@ static void intel_sdvo_get_lvds_modes(struct drm_connector *connector)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int intel_sdvo_get_modes(struct drm_connector *connector)
|
static int intel_sdvo_get_modes(struct drm_connector *connector)
|
||||||
@ -2397,6 +2405,8 @@ intel_sdvo_dvi_init(struct intel_sdvo *intel_sdvo, int device)
|
|||||||
struct intel_connector *intel_connector;
|
struct intel_connector *intel_connector;
|
||||||
struct intel_sdvo_connector *intel_sdvo_connector;
|
struct intel_sdvo_connector *intel_sdvo_connector;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("initialising DVI device %d\n", device);
|
||||||
|
|
||||||
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
||||||
if (!intel_sdvo_connector)
|
if (!intel_sdvo_connector)
|
||||||
return false;
|
return false;
|
||||||
@ -2445,6 +2455,8 @@ intel_sdvo_tv_init(struct intel_sdvo *intel_sdvo, int type)
|
|||||||
struct intel_connector *intel_connector;
|
struct intel_connector *intel_connector;
|
||||||
struct intel_sdvo_connector *intel_sdvo_connector;
|
struct intel_sdvo_connector *intel_sdvo_connector;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("initialising TV type %d\n", type);
|
||||||
|
|
||||||
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
||||||
if (!intel_sdvo_connector)
|
if (!intel_sdvo_connector)
|
||||||
return false;
|
return false;
|
||||||
@ -2482,6 +2494,8 @@ intel_sdvo_analog_init(struct intel_sdvo *intel_sdvo, int device)
|
|||||||
struct intel_connector *intel_connector;
|
struct intel_connector *intel_connector;
|
||||||
struct intel_sdvo_connector *intel_sdvo_connector;
|
struct intel_sdvo_connector *intel_sdvo_connector;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("initialising analog device %d\n", device);
|
||||||
|
|
||||||
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
||||||
if (!intel_sdvo_connector)
|
if (!intel_sdvo_connector)
|
||||||
return false;
|
return false;
|
||||||
@ -2513,6 +2527,8 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)
|
|||||||
struct intel_connector *intel_connector;
|
struct intel_connector *intel_connector;
|
||||||
struct intel_sdvo_connector *intel_sdvo_connector;
|
struct intel_sdvo_connector *intel_sdvo_connector;
|
||||||
|
|
||||||
|
DRM_DEBUG_KMS("initialising LVDS device %d\n", device);
|
||||||
|
|
||||||
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
intel_sdvo_connector = kzalloc(sizeof(*intel_sdvo_connector), GFP_KERNEL);
|
||||||
if (!intel_sdvo_connector)
|
if (!intel_sdvo_connector)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user