radeonkms console is grayscale

Andrew Daugherity adaugherity at tamu.edu
Fri Feb 5 21:13:58 UTC 2016


I decided to try out the new VT framebuffer console on a 10.2/amd64 server.  It works properly with VT+VGA, but after loading radeonkms all colored text (e.g. in vim, 'ls -G', etc.) is now just various shades of gray.  It does switch to a higher resolution and seems plenty fast, so the lack of color seems to be the only problem.  Loading radeonkms after boot vs. in loader.conf does not affect this problem.

Video hardware is the onboard ES1000 (aka RV100/Radeon 7000) on a Dell PowerEdge SC1435; the firmware loaded is radeonkmsfw_R100_cp.  pciconf output:
vgapci0 at pci0:0:4:0:	class=0x030000 card=0x01eb1028 chip=0x515e1002 rev=0x02 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD] nee ATI'
    device     = 'ES1000'
    class      = display
    subclass   = VGA
    bar   [10] = type Prefetchable Memory, range 32, base 0xe0000000, size 134217728, enabled
    bar   [14] = type I/O Port, range 32, base 0xcc00, size 256, enabled
    bar   [18] = type Memory, range 32, base 0xef9f0000, size 65536, enabled
    cap 01[50] = powerspec 2  supports D0 D1 D2 D3  current D0

I also tried an 11.0-current (r294912) live USB, which aside from using VT by default even in BIOS mode, has the same problem.  It boots in VGA mode with color, then after 'kldload radeonkms' everything is grayscale.

I do not have xorg installed at all, so apologies if this is the wrong list, but this seemed to be the place for kms issues.

-Andrew


dmesg:
Copyright (c) 1992-2015 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.2-RELEASE-p9 #0: Thu Jan 14 01:32:46 UTC 2016
    root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
VT: running with driver "vga".
info: [drm] Initialized drm 1.1.0 20060810
CPU: Quad-Core AMD Opteron(tm) Processor 2360 SE (2493.81-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x100f23  Family=0x10  Model=0x2  Stepping=3
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS>
  SVM: NP,NAsids=64
  TSC: P-state invariant
real memory  = 6442450944 (6144 MB)
avail memory = 6188843008 (5902 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <DELL   PE_SC3  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0: Changing APIC ID to 4
ioapic1: Changing APIC ID to 5
ioapic2: Changing APIC ID to 6
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 32-47 on motherboard
ioapic2 <Version 1.1> irqs 64-79 on motherboard
ispfw: registered firmware <isp_1040>
ispfw: registered firmware <isp_1040_it>
ispfw: registered firmware <isp_1080>
ispfw: registered firmware <isp_1080_it>
ispfw: registered firmware <isp_12160>
ispfw: registered firmware <isp_12160_it>
ispfw: registered firmware <isp_2100>
ispfw: registered firmware <isp_2200>
ispfw: registered firmware <isp_2300>
ispfw: registered firmware <isp_2322>
ispfw: registered firmware <isp_2400>
ispfw: registered firmware <isp_2400_multi>
ispfw: registered firmware <isp_2500>
ispfw: registered firmware <isp_2500_multi>
random: <Software, Yarrow> initialized
module_register_init: MOD_LOAD (vesa, 0xffffffff80db8ea0, 0) error 19
kbd1 at kbdmux0
acpi0: <DELL PE_SC3> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x5f irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x7f irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci3: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 13.0 on pci3
pci4: <ACPI PCI bus> on pcib2
atapci0: <ServerWorks HT1000 SATA150 controller> port 0xecb0-0xecb7,0xeca0-0xeca3,0xecb8-0xecbf,0xeca4-0xeca7,0xece0-0xecef mem 0xefbfe000-0xefbfffff irq 11 at device 14.0 on pci3
ata2: <ATA channel> at channel 0 on atapci0
ata3: <ATA channel> at channel 1 on atapci0
ata4: <ATA channel> at channel 2 on atapci0
ata5: <ATA channel> at channel 3 on atapci0
atapci1: <ServerWorks HT1000 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8c0-0x8cf at device 2.1 on pci0
ata0: <ATA channel> at channel 0 on atapci1
ata1: <ATA channel> at channel 1 on atapci1
isab0: <PCI-ISA bridge> at device 2.2 on pci0
isa0: <ISA bus> on isab0
ohci0: <OHCI (generic) USB controller> port 0xc000-0xc0ff mem 0xef9ed000-0xef9edfff irq 11 at device 3.0 on pci0
usbus0 on ohci0
ohci1: <OHCI (generic) USB controller> port 0xc400-0xc4ff mem 0xef9ee000-0xef9eefff irq 11 at device 3.1 on pci0
usbus1 on ohci1
ehci0: <EHCI (generic) USB 2.0 controller> port 0xc800-0xc8ff mem 0xef9ef000-0xef9effff irq 11 at device 3.2 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci0
vgapci0: <VGA-compatible display> port 0xcc00-0xccff mem 0xe0000000-0xe7ffffff,0xef9f0000-0xef9fffff irq 44 at device 4.0 on pci0
drmn0: <ATI ES1000 RN50> on vgapci0
info: [drm] RADEON_IS_PCI
info: [drm] initializing kernel modesetting (RV100 0x1002:0x515E 0x1028:0x01EB).
info: [drm] register mmio base: 0xEF9F0000
info: [drm] register mmio size: 65536
info: [drm] radeon_atrm_get_bios: ===> Try ATRM...
info: [drm] radeon_atrm_get_bios: pci_find_class() found: 0:0:4:0, vendor=1002, device=515e
info: [drm] radeon_atrm_get_bios: Get ACPI device handle
info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT...
info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table
info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND
info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM...
info: [drm] igp_read_bios_from_vram: VRAM base address: 0xe0000000
info: [drm] igp_read_bios_from_vram: Map address: 0xfffff800e0000000 (262144 bytes)
info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x0000
info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM...
info: [drm] radeon_read_bios: Map address: 0xfffff800000c0000 (131072 bytes)
drmn0: info: VRAM: 128M 0x00000000E0000000 - 0x00000000E7FFFFFF (16M used)
drmn0: info: GTT: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF
info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
info: [drm] Driver supports precise vblank timestamp query.
info: [drm] radeon: irq initialized.
info: [drm] Detected VRAM RAM=128M, BAR=128M
info: [drm] RAM width 64bits SDR
[TTM] Zone  kernel: Available graphics memory: 3129244 kiB
[TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[TTM] Initializing pool allocator
info: [drm] radeon: 16M of VRAM memory ready
info: [drm] radeon: 512M of GTT memory ready.
info: [drm] GART: num cpu pages 131072, num gpu pages 131072
info: [drm] PCI GART of 512M enabled (table at 0x0000000002234000).
drmn0: info: WB disabled
drmn0: info: fence driver on ring 0 use gpu addr 0x00000000c0000000 and cpu addr 0x0xfffff800050bc000
info: [drm] Loading R100 Microcode
info: [drm] radeon: ring at 0x00000000C0001000
info: [drm] ring test succeeded in 2 usecs
info: [drm] ib test succeeded in 0 usecs
info: [drm] radeon_device_init: Taking over the fictitious range 0xe0000000-0xe4000000
iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
iic0: <I2C generic I/O> on iicbus0
iicbus1: <Philips I2C bus> on iicbb1 addr 0x0
iic1: <I2C generic I/O> on iicbus1
iicbus2: <Philips I2C bus> on iicbb2 addr 0x0
iic2: <I2C generic I/O> on iicbus2
iicbus3: <Philips I2C bus> on iicbb3 addr 0x0
iic3: <I2C generic I/O> on iicbus3
info: [drm] Radeon Display Connectors
info: [drm] Connector 0:
info: [drm]   VGA-1
info: [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
info: [drm]   Encoders:
info: [drm]     CRT1: INTERNAL_DAC1
info: [drm] Connector VGA-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.VGA-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] fb mappable at 0xE0040000
info: [drm] vram apper at 0xE0000000
info: [drm] size 786432
info: [drm] fb depth is 8
info: [drm]    pitch is 1024
fbd0 on drmn0
VT: Replacing driver "vga" with new "fb".
info: [drm] Initialized radeon 2.29.0 20080528 for drmn0 on minor 0
vgapci0: Boot video device
pcib3: <ACPI PCI-PCI bridge> irq 32 at device 7.0 on pci0
ACPI Warning: \134_SB_.PCI0.EXB0._PRT: Return Package has no elements (empty) (20150515/nsprepkg-137)
pci5: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 33 at device 8.0 on pci0
pci1: <ACPI PCI bus> on pcib4
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x004201> mem 0xefcf0000-0xefcfffff irq 33 at device 0.0 on pci1
bge0: CHIP ID 0x00004201; ASIC REV 0x04; CHIP REV 0x42; PCI-E
miibus0: <MII bus> on bge0
brgphy0: <BCM5750 1000BASE-T media interface> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bge0: Ethernet address: 00:1e:c9:52:43:33
pcib5: <ACPI PCI-PCI bridge> irq 37 at device 9.0 on pci0
pci2: <ACPI PCI bus> on pcib5
bge1: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x004201> mem 0xefdf0000-0xefdfffff irq 37 at device 0.0 on pci2
bge1: CHIP ID 0x00004201; ASIC REV 0x04; CHIP REV 0x42; PCI-E
miibus1: <MII bus> on bge1
brgphy1: <BCM5750 1000BASE-T media interface> PHY 1 on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bge1: Ethernet address: 00:1e:c9:52:43:34
pcib6: <ACPI PCI-PCI bridge> irq 35 at device 10.0 on pci0
pci6: <ACPI PCI bus> on pcib6
isp0: <Qlogic ISP 2432 PCI FC-AL Adapter> port 0xdc00-0xdcff mem 0xefffc000-0xefffffff irq 35 at device 0.0 on pci6
pcib7: <ACPI PCI-PCI bridge> irq 36 at device 11.0 on pci0
ACPI Warning: \134_SB_.PCI0.EXB4._PRT: Return Package has no elements (empty) (20150515/nsprepkg-137)
pci7: <ACPI PCI bus> on pcib7
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc8fff,0xec000-0xeffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
random: unblocking device.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
ugen2.1: <0x1166> at usbus2
uhub0: <0x1166 EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen1.1: <0x1166> at usbus1
uhub1: <0x1166 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <0x1166> at usbus0
uhub2: <0x1166 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub2: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
da0 at isp0 bus 0 scbus6 target 0 lun 0
da0: <WDC WD1002F9YZ-09H1J R001> Fixed Direct Access SPC-3 SCSI device
da0: Serial Number WD-WMC5K0D08F80
da0: 400.000MB/s transfers WWNN 0x20000004d960cd95 WWPN 0x21000004d960cd95 PortID 0x2
da0: Command Queueing enabled
da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
[ snipped a bunch of other SAN disks listed here... ]
ada0 at ata2 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD1601ABYS-18C0A0 06.06H05> ATA8-ACS SATA 2.x device
ada0: Serial Number WD-WCAS25059041
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada0: 152587MB (312500000 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
ada1 at ata3 bus 0 scbus1 target 0 lun 0
ada1: <Hitachi HDP725016GLA380 GMBOA5BA> ATA8-ACS SATA 2.x device
ada1: Serial Number GEK854RS0PL38G
ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada1: 152587MB (312500000 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad6
cd0 at ata0 bus 0 scbus4 target 0 lun 0
cd0: <TSSTcorp CDRWDVD TSL462D DE07> Removable CD-ROM SCSI device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
Timecounter "TSC-low" frequency 1246902571 Hz quality 800
Root mount waiting for: usbus2
uhub0: 4 ports with 4 removable, self powered
Root mount waiting for: usbus2
ugen0.2: <Avocent> at usbus0
ukbd0: <EP1 Interrupt> on usbus0
kbd2 at ukbd0
ugen2.2: <vendor 0x413c> at usbus2
uhub3: <vendor 0x413c product 0xa001, class 9/0, rev 2.00/0.00, addr 2> on usbus2
uhub3: MTT enabled
uhub3: 2 ports with 2 removable, self powered
Trying to mount root from zfs:zroot/ROOT/default []...
ums0: <EP2 Interrupt> on usbus0
ums0: 5 buttons and [XYZ] coordinates ID=1


More information about the freebsd-x11 mailing list