mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 06:02:38 +00:00
drm/nouveau: silence modesetting spam on pre-gf8 chipsets
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
8f0d8163b5
commit
cee59f15a6
@ -220,7 +220,7 @@ out:
|
|||||||
NVWriteVgaCrtc(dev, 0, NV_CIO_CR_MODE_INDEX, saved_cr_mode);
|
NVWriteVgaCrtc(dev, 0, NV_CIO_CR_MODE_INDEX, saved_cr_mode);
|
||||||
|
|
||||||
if (blue == 0x18) {
|
if (blue == 0x18) {
|
||||||
NV_INFO(drm, "Load detected on head A\n");
|
NV_DEBUG(drm, "Load detected on head A\n");
|
||||||
return connector_status_connected;
|
return connector_status_connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,8 +338,8 @@ nv17_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector)
|
|||||||
|
|
||||||
if (nv17_dac_sample_load(encoder) &
|
if (nv17_dac_sample_load(encoder) &
|
||||||
NV_PRAMDAC_TEST_CONTROL_SENSEB_ALLHI) {
|
NV_PRAMDAC_TEST_CONTROL_SENSEB_ALLHI) {
|
||||||
NV_INFO(drm, "Load detected on output %c\n",
|
NV_DEBUG(drm, "Load detected on output %c\n",
|
||||||
'@' + ffs(dcb->or));
|
'@' + ffs(dcb->or));
|
||||||
return connector_status_connected;
|
return connector_status_connected;
|
||||||
} else {
|
} else {
|
||||||
return connector_status_disconnected;
|
return connector_status_disconnected;
|
||||||
@ -413,9 +413,9 @@ static void nv04_dac_commit(struct drm_encoder *encoder)
|
|||||||
|
|
||||||
helper->dpms(encoder, DRM_MODE_DPMS_ON);
|
helper->dpms(encoder, DRM_MODE_DPMS_ON);
|
||||||
|
|
||||||
NV_INFO(drm, "Output %s is running on CRTC %d using output %c\n",
|
NV_DEBUG(drm, "Output %s is running on CRTC %d using output %c\n",
|
||||||
drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base),
|
drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base),
|
||||||
nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
||||||
}
|
}
|
||||||
|
|
||||||
void nv04_dac_update_dacclk(struct drm_encoder *encoder, bool enable)
|
void nv04_dac_update_dacclk(struct drm_encoder *encoder, bool enable)
|
||||||
@ -461,8 +461,8 @@ static void nv04_dac_dpms(struct drm_encoder *encoder, int mode)
|
|||||||
return;
|
return;
|
||||||
nv_encoder->last_dpms = mode;
|
nv_encoder->last_dpms = mode;
|
||||||
|
|
||||||
NV_INFO(drm, "Setting dpms mode %d on vga encoder (output %d)\n",
|
NV_DEBUG(drm, "Setting dpms mode %d on vga encoder (output %d)\n",
|
||||||
mode, nv_encoder->dcb->index);
|
mode, nv_encoder->dcb->index);
|
||||||
|
|
||||||
nv04_dac_update_dacclk(encoder, mode == DRM_MODE_DPMS_ON);
|
nv04_dac_update_dacclk(encoder, mode == DRM_MODE_DPMS_ON);
|
||||||
}
|
}
|
||||||
|
@ -476,9 +476,9 @@ static void nv04_dfp_commit(struct drm_encoder *encoder)
|
|||||||
|
|
||||||
helper->dpms(encoder, DRM_MODE_DPMS_ON);
|
helper->dpms(encoder, DRM_MODE_DPMS_ON);
|
||||||
|
|
||||||
NV_INFO(drm, "Output %s is running on CRTC %d using output %c\n",
|
NV_DEBUG(drm, "Output %s is running on CRTC %d using output %c\n",
|
||||||
drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base),
|
drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base),
|
||||||
nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
|
static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
|
||||||
@ -520,8 +520,8 @@ static void nv04_lvds_dpms(struct drm_encoder *encoder, int mode)
|
|||||||
return;
|
return;
|
||||||
nv_encoder->last_dpms = mode;
|
nv_encoder->last_dpms = mode;
|
||||||
|
|
||||||
NV_INFO(drm, "Setting dpms mode %d on lvds encoder (output %d)\n",
|
NV_DEBUG(drm, "Setting dpms mode %d on lvds encoder (output %d)\n",
|
||||||
mode, nv_encoder->dcb->index);
|
mode, nv_encoder->dcb->index);
|
||||||
|
|
||||||
if (was_powersaving && is_powersaving_dpms(mode))
|
if (was_powersaving && is_powersaving_dpms(mode))
|
||||||
return;
|
return;
|
||||||
@ -565,8 +565,8 @@ static void nv04_tmds_dpms(struct drm_encoder *encoder, int mode)
|
|||||||
return;
|
return;
|
||||||
nv_encoder->last_dpms = mode;
|
nv_encoder->last_dpms = mode;
|
||||||
|
|
||||||
NV_INFO(drm, "Setting dpms mode %d on tmds encoder (output %d)\n",
|
NV_DEBUG(drm, "Setting dpms mode %d on tmds encoder (output %d)\n",
|
||||||
mode, nv_encoder->dcb->index);
|
mode, nv_encoder->dcb->index);
|
||||||
|
|
||||||
nv04_dfp_update_backlight(encoder, mode);
|
nv04_dfp_update_backlight(encoder, mode);
|
||||||
nv04_dfp_update_fp_control(encoder, mode);
|
nv04_dfp_update_fp_control(encoder, mode);
|
||||||
|
@ -75,8 +75,8 @@ static void nv04_tv_dpms(struct drm_encoder *encoder, int mode)
|
|||||||
struct nv04_mode_state *state = &nv04_display(dev)->mode_reg;
|
struct nv04_mode_state *state = &nv04_display(dev)->mode_reg;
|
||||||
uint8_t crtc1A;
|
uint8_t crtc1A;
|
||||||
|
|
||||||
NV_INFO(drm, "Setting dpms mode %d on TV encoder (output %d)\n",
|
NV_DEBUG(drm, "Setting dpms mode %d on TV encoder (output %d)\n",
|
||||||
mode, nv_encoder->dcb->index);
|
mode, nv_encoder->dcb->index);
|
||||||
|
|
||||||
state->pllsel &= ~(PLLSEL_TV_CRTC1_MASK | PLLSEL_TV_CRTC2_MASK);
|
state->pllsel &= ~(PLLSEL_TV_CRTC1_MASK | PLLSEL_TV_CRTC2_MASK);
|
||||||
|
|
||||||
@ -167,9 +167,8 @@ static void nv04_tv_commit(struct drm_encoder *encoder)
|
|||||||
|
|
||||||
helper->dpms(encoder, DRM_MODE_DPMS_ON);
|
helper->dpms(encoder, DRM_MODE_DPMS_ON);
|
||||||
|
|
||||||
NV_INFO(drm, "Output %s is running on CRTC %d using output %c\n",
|
NV_DEBUG(drm, "Output %s is running on CRTC %d using output %c\n",
|
||||||
drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base), nv_crtc->index,
|
drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base), nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
||||||
'@' + ffs(nv_encoder->dcb->or));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nv04_tv_destroy(struct drm_encoder *encoder)
|
static void nv04_tv_destroy(struct drm_encoder *encoder)
|
||||||
|
Loading…
Reference in New Issue
Block a user