Bug 30832

Summary: Radeon S-Video Out has become black and white. Works fine in 2.6.37
Product: Drivers Reporter: Arbit Rabbit (arbitrabbit)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: CLOSED CODE_FIX    
Severity: normal CC: florian, maciej.rutecki, rjw
Priority: P1    
Hardware: IA-64   
OS: Linux   
Kernel Version: 2.6.38-rc6 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 27352    
Attachments: Complete 2.6.38-rc6 kernel log
Complete 2.6.37 kernel log
possible fix

Description Arbit Rabbit 2011-03-09 18:28:57 UTC
The S-Video out of Radeon driver has become black and white in kernel 2.6.38.The regression happened around 2.6.37.2 as the driver worked fine in 2.6.37. I have a Radeon HD4850 card.

Here is the difference in the dmesg output from the two kernels. I can hardly notice any difference, other than timestamps. In kernel 2.6.38, initialization happens very quickly - maybe a timing issue? Other than the kernels, everything else is same.

2.6.38-6-generic

[    9.422549] [drm] Initialized drm 1.1.0 20060810
[   10.094022] [drm] radeon defaulting to kernel modesetting.
[   10.094024] [drm] radeon kernel modesetting enabled.
[   10.094105] fb: conflicting fb hw usage radeondrmfb vs VESA VGA - removing generic driver
[   10.095453] [drm] initializing kernel modesetting (RV770 0x1002:0x9442).
[   10.095475] [drm] register mmio base: 0xFDFE0000
[   10.095476] [drm] register mmio size: 65536
[   10.097903] [drm] Detected VRAM RAM=512M, BAR=256M
[   10.097906] [drm] RAM width 256bits DDR
[   10.098018] [drm] radeon: 512M of VRAM memory ready
[   10.098020] [drm] radeon: 512M of GTT memory ready.
[   10.098033] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[   10.098034] [drm] Driver supports precise vblank timestamp query.
[   10.098097] [drm] radeon: irq initialized.
[   10.098099] [drm] GART: num cpu pages 131072, num gpu pages 131072
[   10.098748] [drm] Loading RV770 Microcode
[   11.480076] [drm] ring test succeeded in 1 usecs
[   11.480146] [drm] radeon: ib pool ready.
[   11.480196] [drm] ib test succeeded in 0 usecs
[   11.480198] [drm] Enabling audio support
[   11.480389] [drm] Radeon Display Connectors
[   11.480390] [drm] Connector 0:
[   11.480391] [drm]   DVI-I
[   11.480392] [drm]   HPD1
[   11.480394] [drm]   DDC: 0x7e60 0x7e60 0x7e64 0x7e64 0x7e68 0x7e68 0x7e6c 0x7e6c
[   11.480395] [drm]   Encoders:
[   11.480396] [drm]     DFP1: INTERNAL_UNIPHY
[   11.480397] [drm]     CRT2: INTERNAL_KLDSCP_DAC2
[   11.480398] [drm] Connector 1:
[   11.480399] [drm]   DIN
[   11.480400] [drm]   Encoders:
[   11.480400] [drm]     TV1: INTERNAL_KLDSCP_DAC2
[   11.480401] [drm] Connector 2:
[   11.480402] [drm]   DVI-I
[   11.480403] [drm]   HPD2
[   11.480404] [drm]   DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28 0x7e2c 0x7e2c
[   11.480405] [drm]   Encoders:
[   11.480406] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[   11.480407] [drm]     DFP2: INTERNAL_KLDSCP_LVTMA
[   11.536188] [drm] Internal thermal controller with fan control
[   11.536219] [drm] radeon: power management initialized
[   11.638668] [drm] fb mappable at 0xD0142000
[   11.638669] [drm] vram apper at 0xD0000000
[   11.638670] [drm] size 8294400
[   11.638671] [drm] fb depth is 24
[   11.638672] [drm]    pitch is 7680
[   11.638789] fb0: radeondrmfb frame buffer device
[   11.638790] drm: registered panic notifier
[   11.638794] [drm] Initialized radeon 2.8.0 20080528 for 0000:01:00.0 on minor 0
[   22.170538] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id



2.6.37-020637-generic

[   15.278388] [drm] Initialized drm 1.1.0 20060810
[   15.654177] [drm] radeon defaulting to kernel modesetting.
[   15.654178] [drm] radeon kernel modesetting enabled.
[   15.654692] fb: conflicting fb hw usage radeondrmfb vs VESA VGA - removing generic driver
[   15.656087] [drm] initializing kernel modesetting (RV770 0x1002:0x9442).
[   15.660089] [drm] register mmio base: 0xFDFE0000
[   15.660090] [drm] register mmio size: 65536
[   15.662457] [drm] Detected VRAM RAM=512M, BAR=256M
[   15.662460] [drm] RAM width 256bits DDR
[   15.670407] [drm] radeon: 512M of VRAM memory ready
[   15.670408] [drm] radeon: 512M of GTT memory ready.
[   15.670477] [drm] radeon: irq initialized.
[   15.670479] [drm] GART: num cpu pages 131072, num gpu pages 131072
[   15.671039] [drm] Loading RV770 Microcode
[   15.870579] [drm] ring test succeeded in 1 usecs
[   15.870647] [drm] radeon: ib pool ready.
[   15.870699] [drm] ib test succeeded in 0 usecs
[   15.870701] [drm] Enabling audio support
[   15.870886] [drm] Radeon Display Connectors
[   15.870887] [drm] Connector 0:
[   15.870888] [drm]   DVI-I
[   15.870889] [drm]   HPD1
[   15.870890] [drm]   DDC: 0x7e60 0x7e60 0x7e64 0x7e64 0x7e68 0x7e68 0x7e6c 0x7e6c
[   15.870891] [drm]   Encoders:
[   15.870892] [drm]     DFP1: INTERNAL_UNIPHY
[   15.870893] [drm]     CRT2: INTERNAL_KLDSCP_DAC2
[   15.870894] [drm] Connector 1:
[   15.870895] [drm]   DIN
[   15.870896] [drm]   Encoders:
[   15.870897] [drm]     TV1: INTERNAL_KLDSCP_DAC2
[   15.870898] [drm] Connector 2:
[   15.870898] [drm]   DVI-I
[   15.870899] [drm]   HPD2
[   15.870901] [drm]   DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28 0x7e2c 0x7e2c
[   15.870902] [drm]   Encoders:
[   15.870903] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[   15.870904] [drm]     DFP2: INTERNAL_KLDSCP_LVTMA
[   15.936495] [drm] Internal thermal controller with fan control
[   15.936529] [drm] radeon: power management initialized
[   16.028673] [drm] fb mappable at 0xD0142000
[   16.028674] [drm] vram apper at 0xD0000000
[   16.028675] [drm] size 8294400
[   16.028676] [drm] fb depth is 24
[   16.028677] [drm]    pitch is 7680
[   16.028790] fb0: radeondrmfb frame buffer device
[   16.028792] drm: registered panic notifier
[   16.028795] [drm] Initialized radeon 2.7.0 20080528 for 0000:01:00.0 on minor 0
[   20.216393] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
[   20.981880] Modules linked in: nfs lockd fscache nfs_acl auth_rpcgss sunrpc snd_hda_codec_hdmi tuner_simple tuner_types wm8775 tda9887 tda8290 snd_hda_codec_realtek tuner radeon cx25840 snd_hda_intel ivtv cx2341x snd_hda_codec snd_seq_midi btusb bluetooth v4l2_common snd_rawmidi videodev snd_hwdep snd_seq_midi_event v4l1_compat v4l2_compat_ioctl32 tveeprom snd_pcm snd_seq ttm joydev hid_topseed drm_kms_helper serio_raw drm hid_logitech i2c_piix4 ff_memless lp ppdev parport_pc parport snd_seq_device snd_timer i2c_algo_bit k10temp edac_core edac_mce_amd cdc_acm usblp shpchp snd soundcore snd_page_alloc usbhid hid usb_storage uas firewire_ohci ahci firewire_core crc_itu_t r8169 pata_atiixp libahci
Comment 1 Arbit Rabbit 2011-03-09 18:31:50 UTC
I am running AMD64 version of the kernel by the way
Comment 2 Arbit Rabbit 2011-03-10 11:26:04 UTC
Created attachment 50562 [details]
Complete 2.6.38-rc6 kernel log
Comment 3 Arbit Rabbit 2011-03-10 11:26:46 UTC
Created attachment 50572 [details]
Complete 2.6.37 kernel log
Comment 4 Alex Deucher 2011-03-16 23:16:33 UTC
Created attachment 50992 [details]
possible fix

Does this patch help?  Both pal and ntsc work for me, but my monitor is pretty forgiving.
Comment 5 Arbit Rabbit 2011-03-22 00:09:34 UTC
Seems to work for me, thanks.
Comment 6 Rafael J. Wysocki 2011-03-27 20:04:16 UTC
Fixed by commit 64146f8b2af1ba77fe3c21d9d6d7213b9bb72b40 .