diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_display.c')
| -rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 12c5ee63495..a9263d92a23 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -188,7 +188,7 @@ nv50_display_init(struct drm_device *dev)  	uint64_t start;  	int ret, i; -	NV_DEBUG(dev, "\n"); +	NV_DEBUG_KMS(dev, "\n");  	nv_wr32(dev, 0x00610184, nv_rd32(dev, 0x00614004));  	/* @@ -232,7 +232,7 @@ nv50_display_init(struct drm_device *dev)  	nv_wr32(dev, NV50_PDISPLAY_UNK_380, 0);  	/* RAM is clamped to 256 MiB. */  	ram_amount = nouveau_mem_fb_amount(dev); -	NV_DEBUG(dev, "ram_amount %d\n", ram_amount); +	NV_DEBUG_KMS(dev, "ram_amount %d\n", ram_amount);  	if (ram_amount > 256*1024*1024)  		ram_amount = 256*1024*1024;  	nv_wr32(dev, NV50_PDISPLAY_RAM_AMOUNT, ram_amount - 1); @@ -398,7 +398,7 @@ static int nv50_display_disable(struct drm_device *dev)  	struct drm_crtc *drm_crtc;  	int ret, i; -	NV_DEBUG(dev, "\n"); +	NV_DEBUG_KMS(dev, "\n");  	list_for_each_entry(drm_crtc, &dev->mode_config.crtc_list, head) {  		struct nouveau_crtc *crtc = nouveau_crtc(drm_crtc); @@ -469,7 +469,7 @@ int nv50_display_create(struct drm_device *dev)  	uint32_t connector[16] = {};  	int ret, i; -	NV_DEBUG(dev, "\n"); +	NV_DEBUG_KMS(dev, "\n");  	/* init basic kernel modesetting */  	drm_mode_config_init(dev); @@ -573,7 +573,7 @@ int nv50_display_destroy(struct drm_device *dev)  {  	struct drm_nouveau_private *dev_priv = dev->dev_private; -	NV_DEBUG(dev, "\n"); +	NV_DEBUG_KMS(dev, "\n");  	drm_mode_config_cleanup(dev); @@ -617,7 +617,7 @@ nv50_display_irq_head(struct drm_device *dev, int *phead,  	 * CRTC separately, and submission will be blocked by the GPU  	 * until we handle each in turn.  	 */ -	NV_DEBUG(dev, "0x610030: 0x%08x\n", unk30); +	NV_DEBUG_KMS(dev, "0x610030: 0x%08x\n", unk30);  	head = ffs((unk30 >> 9) & 3) - 1;  	if (head < 0)  		return -EINVAL; @@ -661,7 +661,7 @@ nv50_display_irq_head(struct drm_device *dev, int *phead,  		or = i;  	} -	NV_DEBUG(dev, "type %d, or %d\n", type, or); +	NV_DEBUG_KMS(dev, "type %d, or %d\n", type, or);  	if (type == OUTPUT_ANY) {  		NV_ERROR(dev, "unknown encoder!!\n");  		return -1; @@ -811,7 +811,7 @@ nv50_display_unk20_handler(struct drm_device *dev)  	pclk = nv_rd32(dev, NV50_PDISPLAY_CRTC_P(head, CLOCK)) & 0x3fffff;  	script = nv50_display_script_select(dev, dcbent, pclk); -	NV_DEBUG(dev, "head %d pxclk: %dKHz\n", head, pclk); +	NV_DEBUG_KMS(dev, "head %d pxclk: %dKHz\n", head, pclk);  	if (dcbent->type != OUTPUT_DP)  		nouveau_bios_run_display_table(dev, dcbent, 0, -2); @@ -870,7 +870,7 @@ nv50_display_irq_handler_bh(struct work_struct *work)  		uint32_t intr0 = nv_rd32(dev, NV50_PDISPLAY_INTR_0);  		uint32_t intr1 = nv_rd32(dev, NV50_PDISPLAY_INTR_1); -		NV_DEBUG(dev, "PDISPLAY_INTR_BH 0x%08x 0x%08x\n", intr0, intr1); +		NV_DEBUG_KMS(dev, "PDISPLAY_INTR_BH 0x%08x 0x%08x\n", intr0, intr1);  		if (intr1 & NV50_PDISPLAY_INTR_1_CLK_UNK10)  			nv50_display_unk10_handler(dev); @@ -974,7 +974,7 @@ nv50_display_irq_handler(struct drm_device *dev)  		uint32_t intr1 = nv_rd32(dev, NV50_PDISPLAY_INTR_1);  		uint32_t clock; -		NV_DEBUG(dev, "PDISPLAY_INTR 0x%08x 0x%08x\n", intr0, intr1); +		NV_DEBUG_KMS(dev, "PDISPLAY_INTR 0x%08x 0x%08x\n", intr0, intr1);  		if (!intr0 && !(intr1 & ~delayed))  			break;  |