Project

General

Profile

Actions

Bug #2853

closed

kms/radeon/Xorg (?) don't know, devices are detected differently as under freebsd

Added by arcade@b1t.name almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Driver
Target version:
Start date:
11/24/2015
Due date:
% Done:

100%

Estimated time:

Description

When I try to launch Xorg on my machine under DFly it selects resolution 1024x768, under FreeBSD I get 1920x1080.

FreeBSD Xorg.0.log:

[ 148.477] (II) RADEON: EDID for output DisplayPort-0
[ 148.581] (II) RADEON: EDID for output VGA-0
[ 148.619] (II) RADEON: Manufacturer: PHL Model: c0cf Serial#: 37236
[ 148.636] (II) RADEON: Year: 2014 Week: 8
[ 148.645] (II) RADEON: EDID Version: 1.3
[ 148.687] (II) RADEON: Analog Display Input, Input Voltage Level: 0.700/0.700 V
[ 148.761] (II) RADEON: Sync: Separate Composite SyncOnGreen
[ 149.787] (II) RADEON: Max Image Size [cm]: horiz.: 48 vert.: 27
[ 149.958] (II) RADEON: Gamma: 2.20
[ 149.965] (II) RADEON: DPMS capabilities: Off; RGB/Color Display
[ 150.162] (II) RADEON: First detailed timing is preferred mode
[ 150.228] (II) RADEON: redX: 0.633 redY: 0.351 greenX: 0.322 greenY: 0.630
[ 150.336] (II) RADEON: blueX: 0.152 blueY: 0.050 whiteX: 0.313 whiteY: 0.329
[ 150.418] (II) RADEON: Supported established timings:
[ 150.450] (II) RADEON: 720x400@70Hz
[ 150.467] (II) RADEON: 640x480@60Hz
[ 150.491] (II) RADEON: 640x480@67Hz
[ 150.499] (II) RADEON: 640x480@72Hz
[ 150.558] (II) RADEON: 640x480@75Hz
[ 150.617] (II) RADEON: 800x600@60Hz
[ 150.639] (II) RADEON: 800x600@75Hz
[ 150.651] (II) RADEON: 1024x768@60Hz
[ 150.658] (II) RADEON: 1024x768@75Hz
[ 150.666] (II) RADEON: 1280x1024@75Hz
[ 150.675] (II) RADEON: Manufacturer's mask: 0
[ 150.683] (II) RADEON: Supported standard timings:
[ 150.695] (II) RADEON: #0: hsize: 1920 vsize 1080 refresh: 60 vid: 49361
[ 150.706] (II) RADEON: #1: hsize: 1440 vsize 900 refresh: 60 vid: 149
[ 150.718] (II) RADEON: #2: hsize: 1440 vsize 900 refresh: 75 vid: 3989
[ 150.727] (II) RADEON: #3: hsize: 1680 vsize 1050 refresh: 60 vid: 179
[ 150.730] (II) RADEON: #4: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 150.739] (II) RADEON: #5: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 150.747] (II) RADEON: Supported detailed timing:
[ 150.783] (II) RADEON: clock: 148.5 MHz Image Size: 477 x 268 mm
[ 150.797] (II) RADEON: h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 150.816] (II) RADEON: v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 150.829] (II) RADEON: Serial No: UK01408037236
[ 150.838] (II) RADEON: Monitor name: PHL 223V5
[ 150.847] (II) RADEON: Ranges: V min: 56 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 175 MHz
[ 150.894] (II) RADEON: EDID (in hex):
[ 150.897] (II) RADEON: 00ffffffffffff00410ccfc074910000
[ 150.905] (II) RADEON: 081801036e301b782a3935a25952a127
[ 150.916] (II) RADEON: 0c5054bd4b00d1c09500950fb30081c0
[ 150.922] (II) RADEON: 818001010101023a801871382d40582c
[ 150.929] (II) RADEON: 4500dd0c1100001e000000ff00554b30
[ 150.939] (II) RADEON: 31343038303337323336000000fc0050
[ 150.978] (II) RADEON: 484c2032323356350a202020000000fd
[ 151.005] (II) RADEON: 00384c1e5311000a20202020202000b3
[ 151.017] (II) RADEON: Printing probed modes for output VGA-0
[ 151.023] (II) RADEON: Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz UeP)
[ 151.029] (II) RADEON: Modeline "1680x1050"x60.0 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[ 151.039] (II) RADEON: Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 151.048] (II) RADEON: Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 151.228] (II) RADEON: Modeline "1440x900"x75.0 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync (70.6 kHz e)
[ 151.239] (II) RADEON: Modeline "1440x900"x59.9 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz e)
[ 151.263] (II) RADEON: Modeline "1280x720"x60.0 74.44 1280 1336 1472 1664 720 721 724 746 -hsync +vsync (44.7 kHz)
[ 151.272] (II) RADEON: Modeline "1024x768"x75.1 78.80 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.1 kHz e)
[ 151.284] (II) RADEON: Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 151.289] (II) RADEON: Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 151.296] (II) RADEON: Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 151.306] (II) RADEON: Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 151.314] (II) RADEON: Modeline "640x480"x72.8 31.50 640 664 704 832 480 489 491 520 -hsync -vsync (37.9 kHz e)
[ 151.321] (II) RADEON: Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 151.328] (II) RADEON: Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 151.338] (II) RADEON: Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 151.347] (II) RADEON: EDID for output DVI-0
[ 151.356] (II) RADEON: Output DisplayPort-0 disconnected
[ 151.415] (II) RADEON: Output VGA-0 connected
[ 151.421] (II) RADEON: Output DVI-0 disconnected

DragonFly Xorg.0.log:

[ 500.454] Current Operating System: DragonFly 4.3-DEVELOPMENT DragonFly v4.3.1.1052.g21838-DE x86_64

[ 501.185] (II) RADEON: EDID for output DisplayPort-0
[ 501.218] (II) RADEON: EDID for output VGA-0
[ 501.218] (II) RADEON: Printing probed modes for output VGA-0
[ 501.219] (II) RADEON: Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 501.219] (II) RADEON: Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 501.219] (II) RADEON: Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 501.219] (II) RADEON: Modeline "848x480"x60.0 33.75 848 864 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz e)
[ 501.219] (II) RADEON: Modeline "640x480"x59.9 25.18 640 656 752 800 480 489 492 525 -hsync -vsync (31.5 kHz e)
[ 501.220] (II) RADEON: EDID for output DVI-0
[ 501.221] (II) RADEON: Output DisplayPort-0 disconnected
[ 501.221] (II) RADEON: Output VGA-0 connected
[ 501.221] (II) RADEON: Output DVI-0 disconnected

Looks like my monitor fails to be detected. What can I do to add required modelines or assist in fixing this?


Files

dmesg.dfly (108 KB) dmesg.dfly arcade@b1t.name, 11/30/2015 06:42 AM
dmesg.cl (4.43 KB) dmesg.cl arcade@b1t.name, 12/11/2015 04:08 AM
Xorg.vesa.log (5.73 KB) Xorg.vesa.log arcade@b1t.name, 12/18/2015 12:20 PM
Actions #1

Updated by arcade@b1t.name almost 9 years ago

Here's the difference in kernel output.

FreeBSD:

info: [drm] Initialized drm 1.1.0 20060810
drmn0: <Trinity [Radeon HD 7560D]> on vgapci0
info: [drm] RADEON_IS_PCIE
info: [drm] initializing kernel modesetting (ARUBA 0x1002:0x9904 0x1462:0x7793).
info: [drm] register mmio base: 0xFEB00000
info: [drm] register mmio size: 262144
info: [drm] radeon_atrm_get_bios: ===> Try ATRM...
info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method...
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: 0xc0000000
info: [drm] igp_read_bios_from_vram: Map address: 0xfffff800c0000000 (262144 bytes)
info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0xFFFF
info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM...
info: [drm] radeon_read_bios: Map address: 0xfffff800000c0000 (131072 bytes)
info: [drm] ATOM BIOS: 113
drmn0: info: VRAM: 768M 0x0000000000000000 - 0x000000002FFFFFFF (768M used)
drmn0: info: GTT: 512M 0x0000000030000000 - 0x000000004FFFFFFF
info: [drm] Detected VRAM RAM=768M, BAR=256M
info: [drm] RAM width 64bits DDR
[TTM] Zone kernel: Available graphics memory: 7963278 kiB
[TTM] Zone dma32: Available graphics memory: 2097152 kiB
[TTM] Initializing pool allocator
info: [drm] radeon: 768M of VRAM memory ready
info: [drm] radeon: 512M of GTT memory ready.
info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
info: [drm] Driver supports precise vblank timestamp query.
info: [drm] MSI enabled 1 message(s)
drmn0: info: radeon: using MSI.
info: [drm] radeon: irq initialized.
info: [drm] GART: num cpu pages 131072, num gpu pages 131072
info: [drm] Loading ARUBA Microcode
info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
drmn0: info: WB enabled
drmn0: info: fence driver on ring 0 use gpu addr 0x0000000030000c00 and cpu addr 0x0xfffff8020d7a7c00
drmn0: info: fence driver on ring 1 use gpu addr 0x0000000030000c04 and cpu addr 0x0xfffff8020d7a7c04
drmn0: info: fence driver on ring 2 use gpu addr 0x0000000030000c08 and cpu addr 0x0xfffff8020d7a7c08
drmn0: info: fence driver on ring 3 use gpu addr 0x0000000030000c0c and cpu addr 0x0xfffff8020d7a7c0c
drmn0: info: fence driver on ring 4 use gpu addr 0x0000000030000c10 and cpu addr 0x0xfffff8020d7a7c10
info: [drm] ring test on 0 succeeded in 3 usecs
info: [drm] ring test on 3 succeeded in 2 usecs
info: [drm] ring test on 4 succeeded in 1 usecs
info: [drm] ib test on ring 0 succeeded in 0 usecs
info: [drm] ib test on ring 3 succeeded in 0 usecs
info: [drm] ib test on ring 4 succeeded in 1 usecs
info: [drm] radeon_device_init: Taking over the fictitious range 0xc0000000-0xd0000000
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
iicbus4: <Philips I2C bus> on iicbb4 addr 0x0
iic4: <I2C generic I/O> on iicbus4
iicbus5: <Philips I2C bus> on iicbb5 addr 0x0
iic5: <I2C generic I/O> on iicbus5
info: [drm] Radeon Display Connectors
info: [drm] Connector 0:
info: [drm] DP-1
info: [drm] HPD1
info: [drm] DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
info: [drm] Encoders:
info: [drm] DFP1: INTERNAL_UNIPHY2
info: [drm] Connector 1:
info: [drm] VGA-1
info: [drm] HPD2
info: [drm] DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c
info: [drm] Encoders:
info: [drm] CRT1: INTERNAL_UNIPHY2
info: [drm] CRT1: NUTMEG
info: [drm] Connector 2:
info: [drm] DVI-D-1
info: [drm] HPD3
info: [drm] DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c
info: [drm] Encoders:
info: [drm] DFP2: INTERNAL_UNIPHY
info: [drm] Internal thermal controller without fan control
info: [drm] radeon: power management initialized
info: [drm] Connector DP-1: get mode from tunables:
info: [drm] - kern.vt.fb.modes.DP-1
info: [drm] - kern.vt.fb.default_mode
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] Connector DVI-D-1: get mode from tunables:
info: [drm] - kern.vt.fb.modes.DVI-D-1
info: [drm] - kern.vt.fb.default_mode
info: [drm] fb mappable at 0xC114C000
info: [drm] vram apper at 0xC0000000
info: [drm] size 8294400
info: [drm] fb depth is 24
info: [drm] pitch is 7680
fbd0 on drmn0
VT: Replacing driver "vga" with new "fb".
info: [drm] Initialized radeon 2.29.0 20080528 for drmn0 on minor 0

DragonFly:

info: [drm] Initialized drm 1.1.0 20060810
drm0: <Trinity [Radeon HD 7560D]> on vgapci0
info: [drm] RADEON_IS_PCIE
info: [drm] initializing kernel modesetting (ARUBA 0x1002:0x9904 0x1462:0x7793).
info: [drm] register mmio base: 0xFEB00000
info: [drm] register mmio size: 262144
info: [drm] radeon_atrm_get_bios: ===> Try ATRM...
info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method...
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...
_pci_get_rle: dinfo was NULL, trying again with parent
pci_resource_start(0x9904, 0x10) = 0xc0000000
info: [drm] igp_read_bios_from_vram: VRAM base address: 0xc0000000
info: [drm] igp_read_bios_from_vram: Map address: 0xffffffe1ab540000 (262144 bytes)
info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x6F07
info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM...
info: [drm] radeon_read_bios: Map address: 0xffffffe1ab540000 (131072 bytes)
info: [drm] ATOM BIOS: 113
_pci_get_rle: dinfo was NULL, trying again with parent
pci_resource_start(0x9904, 0x10) = 0xc0000000
_pci_get_rle: dinfo was NULL, trying again with parent
pci_resource_len(0x9904, 0x10) = 0x10000000
drm0: info: VRAM: 768M 0x0000000000000000 - 0x000000002FFFFFFF (768M used)
drm0: info: GTT: 1024M 0x0000000030000000 - 0x000000006FFFFFFF
info: [drm] Detected VRAM RAM=768M, BAR=256M
info: [drm] RAM width 64bits DDR
[TTM] (struct ttm_mem_global *)0xffffffe048b81b90
[TTM] Zone kernel: Available graphics memory: 65536 kiB
[TTM] Zone dma32: Available graphics memory: 65536 kiB
[TTM] Initializing pool allocator
info: [drm] radeon: 768M of VRAM memory ready
info: [drm] radeon: 1024M of GTT memory ready.
info: [drm] Loading ARUBA Microcode
info: [drm] Internal thermal controller without fan control
info: [drm] radeon: dpm initialized
info: [drm] GART: num cpu pages 262144, num gpu pages 262144
info: [drm] PCIE GART of 1024M enabled (table at 0x0000000000277000).
drm0: info: WB enabled
drm0: info: fence driver on ring 0 use gpu addr 0x0000000030000c00 and cpu addr 0x0xffffdf80036b1c00
drm0: info: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0x0xffffffe1ab5b5a18
drm0: info: fence driver on ring 1 use gpu addr 0x0000000030000c04 and cpu addr 0x0xffffdf80036b1c04
drm0: info: fence driver on ring 2 use gpu addr 0x0000000030000c08 and cpu addr 0x0xffffdf80036b1c08
drm0: info: fence driver on ring 3 use gpu addr 0x0000000030000c0c and cpu addr 0x0xffffdf80036b1c0c
drm0: info: fence driver on ring 4 use gpu addr 0x0000000030000c10 and cpu addr 0x0xffffdf80036b1c10
info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
info: [drm] Driver supports precise vblank timestamp query.
info: [drm] radeon: irq initialized.
info: [drm] ring test on 0 succeeded in 2 usecs
info: [drm] ring test on 3 succeeded in 2 usecs
info: [drm] ring test on 4 succeeded in 2 usecs
info: [drm] ring test on 5 succeeded in 1 usecs
info: [drm] UVD initialized successfully.
info: [drm] ib test on ring 0 succeeded in 0 usecs
info: [drm] ib test on ring 3 succeeded in 0 usecs
info: [drm] ib test on ring 4 succeeded in 0 usecs
info: [drm] ib test on ring 5 succeeded
info: [drm] radeon_device_init: Taking over the fictitious range 0xc0000000-0xd0000000
iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
iicbus1: <Philips I2C bus> on iicbb1 addr 0xff
iicbus2: <Philips I2C bus> on iicbb2 addr 0xff
iicbus3: <Philips I2C bus> on iicbb3 addr 0xff
iicbus4: <Philips I2C bus> on iicbb4 addr 0xff
iicbus5: <Philips I2C bus> on iicbb5 addr 0xff
looking up kenv for "drm.video.dp1"
didn't find value for kenv drm.video.dp1
looking up kenv for "drm.video.vga1"
didn't find value for kenv drm.video.vga1
looking up kenv for "drm.video.dvid1"
didn't find value for kenv drm.video.dvid1
info: [drm] Radeon Display Connectors
info: [drm] Connector 0:
info: [drm] DP-1
info: [drm] HPD1
info: [drm] DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
info: [drm] Encoders:
info: [drm] DFP1: INTERNAL_UNIPHY2
info: [drm] Connector 1:
info: [drm] VGA-1
info: [drm] HPD2
info: [drm] DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c
info: [drm] Encoders:
info: [drm] CRT1: INTERNAL_UNIPHY2
info: [drm] CRT1: NUTMEG
info: [drm] Connector 2:
info: [drm] DVI-D-1
info: [drm] HPD3
info: [drm] DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c
info: [drm] Encoders:
info: [drm] DFP2: INTERNAL_UNIPHY
info: [drm] fb mappable at 0xC047B000
info: [drm] vram apper at 0xC0000000
info: [drm] size 3145728
info: [drm] fb depth is 24
info: [drm] pitch is 4096
kms console: xpixels 1024 ypixels 768
kms console: scale-to 8x16 cols=128 rows=48
info: [drm] Initialized radeon 2.40.0 20080528

Actions #2

Updated by ftigeot almost 9 years ago

Which versions of DragonFly and FreeBSD are you using ?

Actions #3

Updated by arcade@b1t.name almost 9 years ago

FreeBSD 10-STABLE like 2/3 days old (minor patches for threads/swap/-O3 for everything), DragonFly master like 2 days old, already retested after recent EDID commit.

Actions #4

Updated by arcade@b1t.name almost 9 years ago

Rebuilt DragonFly yesterday after new EDID commit by zrj, still no luck. I'll track the master.

Actions #5

Updated by ftigeot almost 9 years ago

Updating to master will allow you to force the use of a specific EDID block but it won't allow your monitor to be detected by itself.

As far as I know, the FreeBSD version you tested is partly based on Linux 3.8 and DragonFly on Linux 3.18.
It would be interesting to know if a Linux 3.18 kernel has the same behavior on your hardware.

Another thing you could try to get more information is to add a new line containing drm.debug=1 in /boot/loader.conf and reboot.
The drm subsystem will then add more information messages to the dmesg buffer.

Actions #6

Updated by arcade@b1t.name almost 9 years ago

Attached full dmesg with drm.debug=1.

Any pointers to a linux distro with 3.18?

Actions #7

Updated by ftigeot almost 9 years ago

Actions #8

Updated by arcade@b1t.name almost 9 years ago

Tried with Calculate Linux 15 (kernel 3.18.20) - everything works ok. I'll attach dmesg when I find another thumb drive.

Actions #9

Updated by arcade@b1t.name almost 9 years ago

I tried substituting EDID via firmware from dports/sysutils/devedid-data and my monitor works well. On the other hand sysutils/edid-decode reports problems with my monitor edid:

EDID block does NOT conform to EDID 1.3!
Detailed block string not properly terminated

dmesg from linux attached.

Actions #10

Updated by arcade@b1t.name almost 9 years ago

One more funny thing. When I switch driver to VESA it reads EDID from monitor correctly even under DragonFly:

Actions #11

Updated by arcade@b1t.name over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Works now after recent radeonkms fixes.

Actions

Also available in: Atom PDF