diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2009-12-13 10:53:12 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-12-16 02:04:48 -0500 |
commit | ef2bb506687a5f1cc8ef2fef370bb168b2808106 (patch) | |
tree | 5dbd6bbc7e2f6754be4e0875d532beae2456081b /drivers/gpu/drm/nouveau/nouveau_bios.c | |
parent | dc4a684ae80d914b2b7fe75b2733a3296a8b92d2 (diff) |
drm/nouveau: use drm debug levels
- Use driver level (0x2) for NV_DEBUG instead of all levels
- Create a NV_DEBUG_KMS for KMS level (0x4) and use them in modesetting code
- Remove a few odd NV_TRACE calls and replace some of them with NV_DEBUG_KMS or
NV_INFO
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bios.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 5eec5ed69489..62fadbbd1f40 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c | |||
@@ -3854,7 +3854,7 @@ nouveau_bios_run_display_table(struct drm_device *dev, struct dcb_entry *dcbent, | |||
3854 | * script tables is a pointer to the script to execute. | 3854 | * script tables is a pointer to the script to execute. |
3855 | */ | 3855 | */ |
3856 | 3856 | ||
3857 | NV_DEBUG(dev, "Searching for output entry for %d %d %d\n", | 3857 | NV_DEBUG_KMS(dev, "Searching for output entry for %d %d %d\n", |
3858 | dcbent->type, dcbent->location, dcbent->or); | 3858 | dcbent->type, dcbent->location, dcbent->or); |
3859 | otable = bios_output_config_match(dev, dcbent, table[1] + | 3859 | otable = bios_output_config_match(dev, dcbent, table[1] + |
3860 | bios->display.script_table_ptr, | 3860 | bios->display.script_table_ptr, |
@@ -3884,7 +3884,7 @@ nouveau_bios_run_display_table(struct drm_device *dev, struct dcb_entry *dcbent, | |||
3884 | if (pxclk == 0) { | 3884 | if (pxclk == 0) { |
3885 | script = ROM16(otable[6]); | 3885 | script = ROM16(otable[6]); |
3886 | if (!script) { | 3886 | if (!script) { |
3887 | NV_DEBUG(dev, "output script 0 not found\n"); | 3887 | NV_DEBUG_KMS(dev, "output script 0 not found\n"); |
3888 | return 1; | 3888 | return 1; |
3889 | } | 3889 | } |
3890 | 3890 | ||
@@ -3894,7 +3894,7 @@ nouveau_bios_run_display_table(struct drm_device *dev, struct dcb_entry *dcbent, | |||
3894 | if (pxclk == -1) { | 3894 | if (pxclk == -1) { |
3895 | script = ROM16(otable[8]); | 3895 | script = ROM16(otable[8]); |
3896 | if (!script) { | 3896 | if (!script) { |
3897 | NV_DEBUG(dev, "output script 1 not found\n"); | 3897 | NV_DEBUG_KMS(dev, "output script 1 not found\n"); |
3898 | return 1; | 3898 | return 1; |
3899 | } | 3899 | } |
3900 | 3900 | ||
@@ -3907,7 +3907,7 @@ nouveau_bios_run_display_table(struct drm_device *dev, struct dcb_entry *dcbent, | |||
3907 | else | 3907 | else |
3908 | script = 0; | 3908 | script = 0; |
3909 | if (!script) { | 3909 | if (!script) { |
3910 | NV_DEBUG(dev, "output script 2 not found\n"); | 3910 | NV_DEBUG_KMS(dev, "output script 2 not found\n"); |
3911 | return 1; | 3911 | return 1; |
3912 | } | 3912 | } |
3913 | 3913 | ||
@@ -3931,7 +3931,7 @@ nouveau_bios_run_display_table(struct drm_device *dev, struct dcb_entry *dcbent, | |||
3931 | if (script) | 3931 | if (script) |
3932 | script = clkcmptable(bios, script, -pxclk); | 3932 | script = clkcmptable(bios, script, -pxclk); |
3933 | if (!script) { | 3933 | if (!script) { |
3934 | NV_DEBUG(dev, "clock script 1 not found\n"); | 3934 | NV_DEBUG_KMS(dev, "clock script 1 not found\n"); |
3935 | return 1; | 3935 | return 1; |
3936 | } | 3936 | } |
3937 | 3937 | ||
@@ -5234,7 +5234,7 @@ parse_dcb_connector_table(struct nvbios *bios) | |||
5234 | int i; | 5234 | int i; |
5235 | 5235 | ||
5236 | if (!bios->bdcb.connector_table_ptr) { | 5236 | if (!bios->bdcb.connector_table_ptr) { |
5237 | NV_DEBUG(dev, "No DCB connector table present\n"); | 5237 | NV_DEBUG_KMS(dev, "No DCB connector table present\n"); |
5238 | return; | 5238 | return; |
5239 | } | 5239 | } |
5240 | 5240 | ||