Bug 114031 - Radeon Kernel Mode Setting sets wrong mode on Acer Z5610
Summary: Radeon Kernel Mode Setting sets wrong mode on Acer Z5610
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-08 16:32 UTC by Massimo Burcheri
Modified: 2016-03-23 18:32 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.3.6
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (6.48 KB, application/x-xz)
2016-03-08 16:54 UTC, Massimo Burcheri
Details
dmesg (24.26 KB, application/octet-stream)
2016-03-08 16:56 UTC, Massimo Burcheri
Details
Xorg.log (35.75 KB, text/x-log)
2016-03-08 16:56 UTC, Massimo Burcheri
Details
vbios.rom (61.50 KB, application/octet-stream)
2016-03-08 17:09 UTC, Massimo Burcheri
Details
add debugging output (2.36 KB, patch)
2016-03-08 17:34 UTC, Alex Deucher
Details | Diff
dmesg with debugging patch (26.01 KB, application/octet-stream)
2016-03-08 17:56 UTC, Massimo Burcheri
Details
possible fix 1/2 (3.94 KB, patch)
2016-03-08 18:23 UTC, Alex Deucher
Details | Diff
possible fix 2/2 (1.03 KB, patch)
2016-03-08 18:24 UTC, Alex Deucher
Details | Diff

Description Massimo Burcheri 2016-03-08 16:32:05 UTC
This is an All-in-One PC, model Acer Z5610.

$ lspci |grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV730/M96-XT [Mobility Radeon HD 4670]

As of current kernel 4.3.6, all recent kernels beginning from >3.18.0 are setting wrong KMS modes:

head -n1 /sys/class/drm/card0-LVDS-1/modes 
1680x1050

This should be the native 1980x1080 resolution.

Last kernel doing that right: 3.18.0




$ xrandr --verbose
Screen 0: minimum 320 x 200, current 1400 x 1050, maximum 8192 x 8192
LVDS connected 1400x1050+0+0 (0x54) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x51
	Timestamp:  24630
	Subpixel:   horizontal rgb
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	scaling mode: Full 
		supported: None, Full, Center, Full aspect
  1680x1050 (0x53) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1400x1050 (0x54) 121.750MHz -HSync +VSync *current
        h: width  1400 start 1488 end 1632 total 1864 skew    0 clock  65.32KHz
        v: height 1050 start 1053 end 1057 total 1089           clock  59.98Hz
  1280x1024 (0x55) 109.000MHz -HSync +VSync
        h: width  1280 start 1368 end 1496 total 1712 skew    0 clock  63.67KHz
        v: height 1024 start 1027 end 1034 total 1063           clock  59.89Hz
  1440x900 (0x56) 106.500MHz -HSync +VSync
        h: width  1440 start 1528 end 1672 total 1904 skew    0 clock  55.93KHz
        v: height  900 start  903 end  909 total  934           clock  59.89Hz
  1280x960 (0x57) 101.250MHz -HSync +VSync
        h: width  1280 start 1360 end 1488 total 1696 skew    0 clock  59.70KHz
        v: height  960 start  963 end  967 total  996           clock  59.94Hz
  1280x854 (0x58) 89.250MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  53.12KHz
        v: height  854 start  857 end  867 total  887           clock  59.89Hz
  1280x800 (0x59) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1280x720 (0x5a) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1152x768 (0x5b) 71.750MHz -HSync +VSync
        h: width  1152 start 1216 end 1328 total 1504 skew    0 clock  47.71KHz
        v: height  768 start  771 end  781 total  798           clock  59.78Hz
  1024x768 (0x5c) 63.500MHz -HSync +VSync
        h: width  1024 start 1072 end 1176 total 1328 skew    0 clock  47.82KHz
        v: height  768 start  771 end  775 total  798           clock  59.92Hz
  800x600 (0x5d) 38.250MHz -HSync +VSync
        h: width   800 start  832 end  912 total 1024 skew    0 clock  37.35KHz
        v: height  600 start  603 end  607 total  624           clock  59.86Hz
  848x480 (0x5e) 31.500MHz -HSync +VSync
        h: width   848 start  872 end  952 total 1056 skew    0 clock  29.83KHz
        v: height  480 start  483 end  493 total  500           clock  59.66Hz
  720x480 (0x5f) 26.750MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock  29.85KHz
        v: height  480 start  483 end  493 total  500           clock  59.71Hz
  640x480 (0x60) 23.750MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock  29.69KHz
        v: height  480 start  483 end  487 total  500           clock  59.38Hz
Comment 1 Alex Deucher 2016-03-08 16:35:30 UTC
Please attach your xorg log, xorg config (if you are using one), and dmesg output.
Comment 2 Massimo Burcheri 2016-03-08 16:53:11 UTC
Hm, I think xorg is not even involved in the issue..

No xorg.config but these snippets:

$ cat /etc/X11/xorg.conf.d/*
Section "Files"
EndSection
Section "Module"
    Load    "vnc"
EndSection
Section "Screen"
    Identifier  "Default Screen"
    Option      "PasswordFile"  "/root/.vnc/passwd"
EndSection
Section "InputClass"
        Identifier "keyboard-all"
        Driver "evdev"
        Option "XkbLayout" "de"
        MatchIsKeyboard "on"
EndSection
Comment 3 Massimo Burcheri 2016-03-08 16:54:30 UTC
Created attachment 208241 [details]
dmesg
Comment 4 Massimo Burcheri 2016-03-08 16:56:08 UTC
Created attachment 208251 [details]
dmesg
Comment 5 Massimo Burcheri 2016-03-08 16:56:54 UTC
Created attachment 208261 [details]
Xorg.log
Comment 6 Alex Deucher 2016-03-08 17:05:43 UTC
Can you attach a copy if your vbios?

(as root)
(use lspci to get the bus id)
cd /sys/bus/pci/devices/<pci bus id>
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom
Comment 7 Massimo Burcheri 2016-03-08 17:06:20 UTC
Current workaround is using CONFIG_DRM_LOAD_EDID_FIRMWARE and the generic EDID by kernel command:
drm_kms_helper.edid_firmware=edid/1920x1080.bin
Comment 8 Massimo Burcheri 2016-03-08 17:09:04 UTC
Created attachment 208271 [details]
vbios.rom
Comment 9 Alex Deucher 2016-03-08 17:34:12 UTC
Created attachment 208281 [details]
add debugging output

Can you attach your dmesg output with the attached debugging patch applied?
Comment 10 Massimo Burcheri 2016-03-08 17:56:43 UTC
Created attachment 208291 [details]
dmesg with debugging patch
Comment 11 Alex Deucher 2016-03-08 18:23:41 UTC
Created attachment 208301 [details]
possible fix 1/2

Odd. it looks like the 1920x1080 mode is getting added.  Do either of these patches help?
Comment 12 Alex Deucher 2016-03-08 18:24:01 UTC
Created attachment 208311 [details]
possible fix 2/2
Comment 13 Massimo Burcheri 2016-03-09 14:18:07 UTC
I applied both, first the 2/2, then additionally the 1/2. None of them solved it.

Note You need to log in before you can comment on or make changes to this bug.