On Thursday 2010-05-27 14:34, Clemens Ladisch wrote:
Clemens Ladisch wrote:
Please do not assume that the "HDMI" device is the right one, since you never got either one to work in Linux.
Hmm, that computer is separate from the actual LCD, which has an HDMI input, so it's possible that the HDMI output would be correct.
In that case, it's likely that you've run into this bug: https://bugs.freedesktop.org/show_bug.cgi?id=28030
You might try the patch mentioned there, or radeonhd, or fglrx.
Cc'ing drm.
I conclude further tests.
* Linux 2.6.35-rc2 - fbcon:radeondrmfb using "modprobe radeon modeset=1" - sound ok - Xorg (7.4) with 'radeonhd' - fbcon ok, no sound in Xorg - I figure radeonhd is obsolete - Xorg with 'radeon' - fbcon ok, xorg ok. There is a small breakdown when switching between fbcon and xorg
* Linux 2.6.33.5 - like 2.6.35-rc2, but had a bug that prevented radeon.ko to go into graphics mode when initially loaded; workaround: modprobe fglrx; rmmod fglrx; modprobe radeon modeset=1 - or fglrx, also makes sound work
- fglrx bug aside: switching from Xorg to console (either 80x25 or radeondrmfb) makes a fugly "pop" noise, and if the target is radeomdrmfb, display is garbled.
So I'm happy. Conclusive questions however:
* Why is it that I am only allowed to have sound in graphics mode?
* The radeon.ko module does not have any PCI IDs defined, thus does not get autoloaded like i915.ko. Is this intentional? It also seems to default to modeset=0.
On Mon, Jun 7, 2010 at 8:49 AM, Jan Engelhardt jengelh@medozas.de wrote:
On Thursday 2010-05-27 14:34, Clemens Ladisch wrote:
Clemens Ladisch wrote:
Please do not assume that the "HDMI" device is the right one, since you never got either one to work in Linux.
Hmm, that computer is separate from the actual LCD, which has an HDMI input, so it's possible that the HDMI output would be correct.
In that case, it's likely that you've run into this bug: https://bugs.freedesktop.org/show_bug.cgi?id=28030
You might try the patch mentioned there, or radeonhd, or fglrx.
Cc'ing drm.
I conclude further tests.
- Linux 2.6.35-rc2
- fbcon:radeondrmfb using "modprobe radeon modeset=1"
- sound ok
- Xorg (7.4) with 'radeonhd'
- fbcon ok, no sound in Xorg - I figure radeonhd is obsolete
- Xorg with 'radeon'
- fbcon ok, xorg ok. There is a small breakdown when switching between fbcon and xorg
- Linux 2.6.33.5
- like 2.6.35-rc2, but had a bug that prevented radeon.ko to go into
graphics mode when initially loaded; workaround: modprobe fglrx; rmmod fglrx; modprobe radeon modeset=1
or fglrx, also makes sound work
fglrx bug aside: switching from Xorg to console (either 80x25 or
radeondrmfb) makes a fugly "pop" noise, and if the target is radeomdrmfb, display is garbled.
So I'm happy. Conclusive questions however:
- Why is it that I am only allowed to have sound in graphics mode?
HDMI audio is only enabled on active outputs during modeset.
- The radeon.ko module does not have any PCI IDs defined, thus does not
get autoloaded like i915.ko. Is this intentional? It also seems to default to modeset=0.
What kernel are you using? It definitely has pci ids and autoloads just fine.
Alex
On Monday 2010-06-07 17:03, Alex Deucher wrote:
- Why is it that I am only allowed to have sound in graphics mode?
HDMI audio is only enabled on active outputs during modeset.
Bleh. If it shows text, that seems pretty active to me.
- The radeon.ko module does not have any PCI IDs defined, thus does not
get autoloaded like i915.ko. Is this intentional? It also seems to default to modeset=0.
What kernel are you using? It definitely has pci ids and autoloads just fine.
17:20 lxwks:~ > modinfo radeon filename: /lib/modules/2.6.31.12-jen93-rt/kernel/drivers/gpu/drm/radeon/radeon.ko license: GPL and additional rights description: ATI Radeon author: Gareth Hughes, Keith Whitwell, others. srcversion: D95F7F85D05C72112F277F3 depends: drm vermagic: 2.6.31.12-jen93-rt SMP preempt mod_unload modversions 686 parm: no_wb:Disable AGP writeback for scratch registers (int)
17:23 samsung:~ # modinfo radeon filename: /lib/modules/2.6.35-rc2-default+/kernel/drivers/gpu/drm/radeon/radeon.ko license: GPL and additional rights description: ATI Radeon author: Gareth Hughes, Keith Whitwell, others. firmware: radeon/R520_cp.bin firmware: radeon/RS600_cp.bin firmware: radeon/RS690_cp.bin firmware: radeon/R420_cp.bin firmware: radeon/R300_cp.bin firmware: radeon/R200_cp.bin firmware: radeon/R100_cp.bin firmware: radeon/RV710_me.bin firmware: radeon/RV710_pfp.bin firmware: radeon/RV730_me.bin firmware: radeon/RV730_pfp.bin firmware: radeon/RV770_me.bin firmware: radeon/RV770_pfp.bin firmware: radeon/RS780_me.bin firmware: radeon/RS780_pfp.bin firmware: radeon/RV670_me.bin firmware: radeon/RV670_pfp.bin firmware: radeon/RV635_me.bin firmware: radeon/RV635_pfp.bin firmware: radeon/RV620_me.bin firmware: radeon/RV620_pfp.bin firmware: radeon/RV630_me.bin firmware: radeon/RV630_pfp.bin firmware: radeon/RV610_me.bin firmware: radeon/RV610_pfp.bin firmware: radeon/R600_me.bin firmware: radeon/R600_pfp.bin firmware: radeon/R520_cp.bin firmware: radeon/RS600_cp.bin firmware: radeon/RS690_cp.bin firmware: radeon/R420_cp.bin firmware: radeon/R300_cp.bin firmware: radeon/R200_cp.bin firmware: radeon/R100_cp.bin firmware: radeon/CYPRESS_rlc.bin firmware: radeon/CYPRESS_me.bin firmware: radeon/CYPRESS_pfp.bin firmware: radeon/JUNIPER_rlc.bin firmware: radeon/JUNIPER_me.bin firmware: radeon/JUNIPER_pfp.bin firmware: radeon/REDWOOD_rlc.bin firmware: radeon/REDWOOD_me.bin firmware: radeon/REDWOOD_pfp.bin firmware: radeon/CEDAR_rlc.bin firmware: radeon/CEDAR_me.bin firmware: radeon/CEDAR_pfp.bin firmware: radeon/R700_rlc.bin firmware: radeon/R600_rlc.bin firmware: radeon/RV710_me.bin firmware: radeon/RV710_pfp.bin firmware: radeon/RV730_me.bin firmware: radeon/RV730_pfp.bin firmware: radeon/RV770_me.bin firmware: radeon/RV770_pfp.bin firmware: radeon/RS780_me.bin firmware: radeon/RS780_pfp.bin firmware: radeon/RV670_me.bin firmware: radeon/RV670_pfp.bin firmware: radeon/RV635_me.bin firmware: radeon/RV635_pfp.bin firmware: radeon/RV620_me.bin firmware: radeon/RV620_pfp.bin firmware: radeon/RV630_me.bin firmware: radeon/RV630_pfp.bin firmware: radeon/RV610_me.bin firmware: radeon/RV610_pfp.bin firmware: radeon/R600_me.bin firmware: radeon/R600_pfp.bin srcversion: DF143D97DD12F63E6EEAF3F depends: drm,drm_kms_helper,ttm,i2c-core,i2c-algo-bit vermagic: 2.6.35-rc2-default+ SMP mod_unload modversions parm: no_wb:Disable AGP writeback for scratch registers (int) parm: modeset:Disable/Enable modesetting (int) parm: dynclks:Disable/Enable dynamic clocks (int) parm: r4xx_atom:Enable ATOMBIOS modesetting for R4xx (int) parm: vramlimit:Restrict VRAM for testing (int) parm: agpmode:AGP Mode (-1 == PCI) (int) parm: gartsize:Size of PCIE/IGP gart to setup in megabytes (32,64, etc) (int) parm: benchmark:Run benchmark (int) parm: test:Run tests (int) parm: connector_table:Force connector table (int) parm: tv:TV enable (0 = disable) (int) parm: new_pll:Select new PLL code (int) parm: audio:Audio enable (0 = disable) (int) parm: disp_priority:Display Priority (0 = auto, 1 = normal, 2 = high) (int) parm: hw_i2c:hw i2c engine enable (0 = disable) (int) 17:24 samsung:~/linux-2.6 # git describe v2.6.35-rc2-1-g386f40c 17:25 samsung:../gpu/drm # git grep PCI_DEVICE_TABLE radeon/ 17:25 samsung:../gpu/drm #
On Mon, Jun 7, 2010 at 11:25 AM, Jan Engelhardt jengelh@medozas.de wrote:
On Monday 2010-06-07 17:03, Alex Deucher wrote:
- Why is it that I am only allowed to have sound in graphics mode?
HDMI audio is only enabled on active outputs during modeset.
Bleh. If it shows text, that seems pretty active to me.
Do you mean vga console prior to loading radeon or fb console after loading radeon? The driver needs to be loaded. Also, the attached monitor has to announce itself as hdmi for audio to be enabled.
- The radeon.ko module does not have any PCI IDs defined, thus does not
get autoloaded like i915.ko. Is this intentional? It also seems to default to modeset=0.
What kernel are you using? It definitely has pci ids and autoloads just fine.
17:20 lxwks:~ > modinfo radeon filename: /lib/modules/2.6.31.12-jen93-rt/kernel/drivers/gpu/drm/radeon/radeon.ko license: GPL and additional rights description: ATI Radeon author: Gareth Hughes, Keith Whitwell, others. srcversion: D95F7F85D05C72112F277F3 depends: drm vermagic: 2.6.31.12-jen93-rt SMP preempt mod_unload modversions 686 parm: no_wb:Disable AGP writeback for scratch registers (int)
17:23 samsung:~ # modinfo radeon filename: /lib/modules/2.6.35-rc2-default+/kernel/drivers/gpu/drm/radeon/radeon.ko license: GPL and additional rights description: ATI Radeon author: Gareth Hughes, Keith Whitwell, others. firmware: radeon/R520_cp.bin firmware: radeon/RS600_cp.bin firmware: radeon/RS690_cp.bin firmware: radeon/R420_cp.bin firmware: radeon/R300_cp.bin firmware: radeon/R200_cp.bin firmware: radeon/R100_cp.bin firmware: radeon/RV710_me.bin firmware: radeon/RV710_pfp.bin firmware: radeon/RV730_me.bin firmware: radeon/RV730_pfp.bin firmware: radeon/RV770_me.bin firmware: radeon/RV770_pfp.bin firmware: radeon/RS780_me.bin firmware: radeon/RS780_pfp.bin firmware: radeon/RV670_me.bin firmware: radeon/RV670_pfp.bin firmware: radeon/RV635_me.bin firmware: radeon/RV635_pfp.bin firmware: radeon/RV620_me.bin firmware: radeon/RV620_pfp.bin firmware: radeon/RV630_me.bin firmware: radeon/RV630_pfp.bin firmware: radeon/RV610_me.bin firmware: radeon/RV610_pfp.bin firmware: radeon/R600_me.bin firmware: radeon/R600_pfp.bin firmware: radeon/R520_cp.bin firmware: radeon/RS600_cp.bin firmware: radeon/RS690_cp.bin firmware: radeon/R420_cp.bin firmware: radeon/R300_cp.bin firmware: radeon/R200_cp.bin firmware: radeon/R100_cp.bin firmware: radeon/CYPRESS_rlc.bin firmware: radeon/CYPRESS_me.bin firmware: radeon/CYPRESS_pfp.bin firmware: radeon/JUNIPER_rlc.bin firmware: radeon/JUNIPER_me.bin firmware: radeon/JUNIPER_pfp.bin firmware: radeon/REDWOOD_rlc.bin firmware: radeon/REDWOOD_me.bin firmware: radeon/REDWOOD_pfp.bin firmware: radeon/CEDAR_rlc.bin firmware: radeon/CEDAR_me.bin firmware: radeon/CEDAR_pfp.bin firmware: radeon/R700_rlc.bin firmware: radeon/R600_rlc.bin firmware: radeon/RV710_me.bin firmware: radeon/RV710_pfp.bin firmware: radeon/RV730_me.bin firmware: radeon/RV730_pfp.bin firmware: radeon/RV770_me.bin firmware: radeon/RV770_pfp.bin firmware: radeon/RS780_me.bin firmware: radeon/RS780_pfp.bin firmware: radeon/RV670_me.bin firmware: radeon/RV670_pfp.bin firmware: radeon/RV635_me.bin firmware: radeon/RV635_pfp.bin firmware: radeon/RV620_me.bin firmware: radeon/RV620_pfp.bin firmware: radeon/RV630_me.bin firmware: radeon/RV630_pfp.bin firmware: radeon/RV610_me.bin firmware: radeon/RV610_pfp.bin firmware: radeon/R600_me.bin firmware: radeon/R600_pfp.bin srcversion: DF143D97DD12F63E6EEAF3F depends: drm,drm_kms_helper,ttm,i2c-core,i2c-algo-bit vermagic: 2.6.35-rc2-default+ SMP mod_unload modversions parm: no_wb:Disable AGP writeback for scratch registers (int) parm: modeset:Disable/Enable modesetting (int) parm: dynclks:Disable/Enable dynamic clocks (int) parm: r4xx_atom:Enable ATOMBIOS modesetting for R4xx (int) parm: vramlimit:Restrict VRAM for testing (int) parm: agpmode:AGP Mode (-1 == PCI) (int) parm: gartsize:Size of PCIE/IGP gart to setup in megabytes (32,64, etc) (int) parm: benchmark:Run benchmark (int) parm: test:Run tests (int) parm: connector_table:Force connector table (int) parm: tv:TV enable (0 = disable) (int) parm: new_pll:Select new PLL code (int) parm: audio:Audio enable (0 = disable) (int) parm: disp_priority:Display Priority (0 = auto, 1 = normal, 2 = high) (int) parm: hw_i2c:hw i2c engine enable (0 = disable) (int) 17:24 samsung:~/linux-2.6 # git describe v2.6.35-rc2-1-g386f40c 17:25 samsung:../gpu/drm # git grep PCI_DEVICE_TABLE radeon/ 17:25 samsung:../gpu/drm #
The pci ids are in include/drm/drm_pciids.h
modinfo radeon ... srcversion: 0D187768753F1469A0E118E alias: pci:v00001002d00009715sv*sd*bc*sc*i* alias: pci:v00001002d00009714sv*sd*bc*sc*i* alias: pci:v00001002d00009713sv*sd*bc*sc*i* alias: pci:v00001002d00009712sv*sd*bc*sc*i* alias: pci:v00001002d00009711sv*sd*bc*sc*i* alias: pci:v00001002d00009710sv*sd*bc*sc*i* alias: pci:v00001002d00009616sv*sd*bc*sc*i* alias: pci:v00001002d00009615sv*sd*bc*sc*i* alias: pci:v00001002d00009614sv*sd*bc*sc*i* alias: pci:v00001002d00009613sv*sd*bc*sc*i* alias: pci:v00001002d00009612sv*sd*bc*sc*i* alias: pci:v00001002d00009611sv*sd*bc*sc*i* alias: pci:v00001002d00009610sv*sd*bc*sc*i* alias: pci:v00001002d000095CFsv*sd*bc*sc*i* alias: pci:v00001002d000095CEsv*sd*bc*sc*i* alias: pci:v00001002d000095CDsv*sd*bc*sc*i* ...
Alex
On Mon, Jun 7, 2010 at 14:49:16 +0200, Jan Engelhardt wrote:
- The radeon.ko module does not have any PCI IDs defined, thus does not
get autoloaded like i915.ko. Is this intentional? It also seems to default to modeset=0.
It only defines PCI IDs (and gets autoloaded) if CONFIG_DRM_RADEON_KMS=y.
Cheers, Julien
dri-devel@lists.freedesktop.org