2010-07-19 21:50:20

by trapDoor

[permalink] [raw]
Subject: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

Dear kernel Developers,
I'd like to report a bug occurring on my machine with some of the
latest 2.6.35-rcX and the '-next' kernels. As I'm not sure what is the
problem related to I may have omitted relevant people among the
recipients. If it is so I'll be thankful if someone could cc them.
Also I must apologise for reporting this so late, when it's close to
the end of development cycle for 2.6.35.

I didn't try to bisect. I've never done it before and maybe someone
will able to reproduce the problem or see straight what's going on by
looking into attached log/config files. But if it is necessary I'll
try my hand at bisecting.

******
Description of the problem:

Affected kernels tested by me: 2.6.35-rc5-git3, 2.6.35-rc4-git5 and
2.6.35-rc4-next-20100712.
Kernel 2.6.34.1 works OK.

Briefly what happens is that my graphics card seems to loose
connection with the LCD screen (connected through DVI) during boot.
Initially it does show something - a blank screen with blinking cursor
but it lasts only for about 2-3 seconds and then the screen switches
to stand-by mode giving message 'No signal detected !'. The booting
process seems to continue though, and looking cursorily through
related dmesg and Xorg logs I can't see any suspicious messages
(comparing with the same logs produced when booting from working
kernel). I'm attaching the following files with this e-mail:
dmesg, Xorg.0.log - produced during successful boot with 2.6.34.1
dmesg.0, Xorg.0.log.old - these are for the failed boot with 2.6.35-rc5-git3

Also please find attached config files:
??? config-2.6.34.1 - for my current, working kernel
??? config-2.6.35-rc5-git3 - based on above, almost all new entries I
left undefined/disabled during making 'oldconfig'; particularly I
didn't touch any options related to PCI, graphics drivers, ACPI or
power management - these should be all the same as in config-2.6.34.1

All the kernels were compiled on the same PC and system, they have/had
radeon-kms enabled by default and these firmware files compiled in:
R600_rlc.bin, R700_rlc.bin

******
A brief specification of my system:

1) OS/software:

Ubuntu 10.04, amd64

Xorg, xserver, drm, mesa, drm and ati/radeon drivers installed from
the following Ubuntu PPA repository:
https://edge.launchpad.net/~xorg-edgers/+archive/ppa/

Current versions:
xorg:? 1:7.5+6ubuntu1~xorgedgers3~lucid
xserver:? 2:1.8.2+git20100705+server-1.8-branch.665aa7ce-0ubuntu0sarvatt2~lucid
xserver-xorg-video-ati:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
xserver-xorg-video-radeon:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
drm:? 1:2.4.20+git20100513.a3305b07-0ubuntu0sarvatt~lucid
mesa:? 7.9.0+git20100718.4eaf591d-0ubuntu0sarvatt~lucid

2) Hardvare:
MB: Asus M4A79T Deluxe with chipsets AMD 790FX/SB750
Processor: AMD Phenom II X4 810
Graphics Card: Asus EAH3650 SILENT/HTDI/512M - based on chipset RV635
PRO, port PCIEx2, connected with LCD through DVI

******
Please let me know if anyone requires additional details and if there
is any tracking/testing I could do on my end.

--
Regards
trapDoor


Attachments:
Xorg.0.log (60.04 kB)
Xorg.0.log.old (29.43 kB)
config-2.6.34.1 (95.23 kB)
config-2.6.35-rc4-next-20100712 (97.17 kB)
dmesg (48.92 kB)
dmesg.0 (48.04 kB)
Download all attachments

2010-07-20 07:10:05

by Alex Deucher

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

On Mon, Jul 19, 2010 at 5:50 PM, trapDoor <[email protected]> wrote:
> Dear kernel Developers,
> I'd like to report a bug occurring on my machine with some of the
> latest 2.6.35-rcX and the '-next' kernels. As I'm not sure what is the
> problem related to I may have omitted relevant people among the
> recipients. If it is so I'll be thankful if someone could cc them.
> Also I must apologise for reporting this so late, when it's close to
> the end of development cycle for 2.6.35.
>
> I didn't try to bisect. I've never done it before and maybe someone
> will able to reproduce the problem or see straight what's going on by
> looking into attached log/config files. But if it is necessary I'll
> try my hand at bisecting.
>
> ******
> Description of the problem:
>
> Affected kernels tested by me: 2.6.35-rc5-git3, 2.6.35-rc4-git5 and
> 2.6.35-rc4-next-20100712.
> Kernel 2.6.34.1 works OK.
>
> Briefly what happens is that my graphics card seems to loose
> connection with the LCD screen (connected through DVI) during boot.
> Initially it does show something - a blank screen with blinking cursor
> but it lasts only for about 2-3 seconds and then the screen switches
> to stand-by mode giving message 'No signal detected !'. The booting
> process seems to continue though, and looking cursorily through
> related dmesg and Xorg logs I can't see any suspicious messages
> (comparing with the same logs produced when booting from working
> kernel). I'm attaching the following files with this e-mail:
> ? ?dmesg, Xorg.0.log - produced during successful boot with 2.6.34.1
> ? ?dmesg.0, Xorg.0.log.old - these are for the failed boot with 2.6.35-rc5-git3
>
> Also please find attached config files:
> ??? config-2.6.34.1 - for my current, working kernel
> ??? config-2.6.35-rc5-git3 - based on above, almost all new entries I
> left undefined/disabled during making 'oldconfig'; particularly I
> didn't touch any options related to PCI, graphics drivers, ACPI or
> power management - these should be all the same as in config-2.6.34.1
>
> All the kernels were compiled on the same PC and system, they have/had
> radeon-kms enabled by default and these firmware files compiled in:
> R600_rlc.bin, R700_rlc.bin
>
> ******
> A brief specification of my system:
>
> 1) OS/software:
>
> Ubuntu 10.04, amd64
>
> Xorg, xserver, drm, mesa, drm and ati/radeon drivers installed from
> the following Ubuntu PPA repository:
> https://edge.launchpad.net/~xorg-edgers/+archive/ppa/
>
> Current versions:
> xorg:? 1:7.5+6ubuntu1~xorgedgers3~lucid
> xserver:? 2:1.8.2+git20100705+server-1.8-branch.665aa7ce-0ubuntu0sarvatt2~lucid
> xserver-xorg-video-ati:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
> xserver-xorg-video-radeon:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
> drm:? 1:2.4.20+git20100513.a3305b07-0ubuntu0sarvatt~lucid
> mesa:? 7.9.0+git20100718.4eaf591d-0ubuntu0sarvatt~lucid
>
> 2) Hardvare:
> MB: Asus M4A79T Deluxe with chipsets AMD 790FX/SB750
> Processor: AMD Phenom II X4 810
> Graphics Card: Asus EAH3650 SILENT/HTDI/512M - based on chipset RV635
> PRO, port PCIEx2, connected with LCD through DVI
>
> ******
> Please let me know if anyone requires additional details and if there
> is any tracking/testing I could do on my end.

The driver is not able to detect any attached monitors with 2.6.35:

[ 1.980334] No connectors reported connected with modes
[ 1.980338] [drm] Cannot find any crtc or sizes - going 1024x768

[ 19.012] (II) RADEON(0): Output HDMI-0 disconnected
[ 19.012] (II) RADEON(0): Output VGA-0 disconnected
[ 19.012] (II) RADEON(0): Output DIN disconnected
[ 19.012] (II) RADEON(0): Output DVI-0 disconnected
[ 19.012] (WW) RADEON(0): Unable to find connected outputs -
setting 1024x768 initial framebuffer

I think the attached patch should fix the issue. if not, can you try
reverting b2ea4aa67bfd084834edd070e0a4a47857d6db59 ?

Alex


Attachments:
0001-drm-radeon-kms-fix-shared-ddc-harder.patch (3.41 kB)

2010-07-20 11:09:01

by trapDoor

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

On Tue, Jul 20, 2010 at 8:09 AM, Alex Deucher <[email protected]> wrote:
> On Mon, Jul 19, 2010 at 5:50 PM, trapDoor <[email protected]> wrote:
>> Dear kernel Developers,
>> I'd like to report a bug occurring on my machine with some of the
>> latest 2.6.35-rcX and the '-next' kernels. As I'm not sure what is the
>> problem related to I may have omitted relevant people among the
>> recipients. If it is so I'll be thankful if someone could cc them.
>> Also I must apologise for reporting this so late, when it's close to
>> the end of development cycle for 2.6.35.
>>
>> I didn't try to bisect. I've never done it before and maybe someone
>> will able to reproduce the problem or see straight what's going on by
>> looking into attached log/config files. But if it is necessary I'll
>> try my hand at bisecting.
>>
>> ******
>> Description of the problem:
>>
>> Affected kernels tested by me: 2.6.35-rc5-git3, 2.6.35-rc4-git5 and
>> 2.6.35-rc4-next-20100712.
>> Kernel 2.6.34.1 works OK.
>>
>> Briefly what happens is that my graphics card seems to loose
>> connection with the LCD screen (connected through DVI) during boot.
>> Initially it does show something - a blank screen with blinking cursor
>> but it lasts only for about 2-3 seconds and then the screen switches
>> to stand-by mode giving message 'No signal detected !'. The booting
>> process seems to continue though, and looking cursorily through
>> related dmesg and Xorg logs I can't see any suspicious messages
>> (comparing with the same logs produced when booting from working
>> kernel). I'm attaching the following files with this e-mail:
>> ? ?dmesg, Xorg.0.log - produced during successful boot with 2.6.34.1
>> ? ?dmesg.0, Xorg.0.log.old - these are for the failed boot with 2.6.35-rc5-git3
>>
>> Also please find attached config files:
>> ??? config-2.6.34.1 - for my current, working kernel
>> ??? config-2.6.35-rc5-git3 - based on above, almost all new entries I
>> left undefined/disabled during making 'oldconfig'; particularly I
>> didn't touch any options related to PCI, graphics drivers, ACPI or
>> power management - these should be all the same as in config-2.6.34.1
>>
>> All the kernels were compiled on the same PC and system, they have/had
>> radeon-kms enabled by default and these firmware files compiled in:
>> R600_rlc.bin, R700_rlc.bin
>>
>> ******
>> A brief specification of my system:
>>
>> 1) OS/software:
>>
>> Ubuntu 10.04, amd64
>>
>> Xorg, xserver, drm, mesa, drm and ati/radeon drivers installed from
>> the following Ubuntu PPA repository:
>> https://edge.launchpad.net/~xorg-edgers/+archive/ppa/
>>
>> Current versions:
>> xorg:? 1:7.5+6ubuntu1~xorgedgers3~lucid
>> xserver:? 2:1.8.2+git20100705+server-1.8-branch.665aa7ce-0ubuntu0sarvatt2~lucid
>> xserver-xorg-video-ati:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
>> xserver-xorg-video-radeon:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
>> drm:? 1:2.4.20+git20100513.a3305b07-0ubuntu0sarvatt~lucid
>> mesa:? 7.9.0+git20100718.4eaf591d-0ubuntu0sarvatt~lucid
>>
>> 2) Hardvare:
>> MB: Asus M4A79T Deluxe with chipsets AMD 790FX/SB750
>> Processor: AMD Phenom II X4 810
>> Graphics Card: Asus EAH3650 SILENT/HTDI/512M - based on chipset RV635
>> PRO, port PCIEx2, connected with LCD through DVI
>>
>> ******
>> Please let me know if anyone requires additional details and if there
>> is any tracking/testing I could do on my end.
>
> The driver is not able to detect any attached monitors with 2.6.35:
>
> [ ? ?1.980334] No connectors reported connected with modes
> [ ? ?1.980338] [drm] Cannot find any crtc or sizes - going 1024x768
>
> [ ? ?19.012] (II) RADEON(0): Output HDMI-0 disconnected
> [ ? ?19.012] (II) RADEON(0): Output VGA-0 disconnected
> [ ? ?19.012] (II) RADEON(0): Output DIN disconnected
> [ ? ?19.012] (II) RADEON(0): Output DVI-0 disconnected
> [ ? ?19.012] (WW) RADEON(0): Unable to find connected outputs -
> setting 1024x768 initial framebuffer
>
> I think the attached patch should fix the issue. ?if not, can you try
> reverting b2ea4aa67bfd084834edd070e0a4a47857d6db59 ?
>
> Alex
>

Hi Alex,
Thanks for looking into this. I feel quite embarrassed that I didn't
notice those messages from my logs you quoted ..

Your patch (applied to 2.6.35-rc5-git3) has fixed the problem.
However, Xorg.0.log says now that:

[ 17.780] (II) RADEON(0): Output HDMI-0 connected
[ 17.780] (II) RADEON(0): Output VGA-0 disconnected
[ 17.780] (II) RADEON(0): Output DIN disconnected
[ 17.780] (II) RADEON(0): Output DVI-0 disconnected
[ 17.780] (II) RADEON(0): Using exact sizes for initial modes
[ 17.780] (II) RADEON(0): Output HDMI-0 using initial mode 1920x1080

... but there is no HDMI port in my card. It has 2 DVI's and one Video
output, that's all.
The card does support HDMI though, via DVI to HDMI adaptor. But
currently I've got
one monitor plugged directly into one of the DVI's - a yellow one,
where the other port
is white. There must be a reason that both ports are coloured
differently. Maybe the
DVI to HDMI adapter is supported only in the yellow DVI port and
that's why is recognised
as HDMI in my system?

Anyway, whether the Xorg log says true or not, it works fine for me,
no display issues and
resolution is set correctly. The only problem I see now is a
noticeable 3D performance
regression on this kernel (2.6.35-rc5-git3+your-patch) comparing to
2.6.34.1. I should make
some tests, gather details and send that in a separate report soon ..

--
Regards
trapDoor

2010-07-20 15:24:17

by Alex Deucher

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

On Tue, Jul 20, 2010 at 7:08 AM, trapDoor <[email protected]> wrote:
> On Tue, Jul 20, 2010 at 8:09 AM, Alex Deucher <[email protected]> wrote:
>> On Mon, Jul 19, 2010 at 5:50 PM, trapDoor <[email protected]> wrote:
>>> Dear kernel Developers,
>>> I'd like to report a bug occurring on my machine with some of the
>>> latest 2.6.35-rcX and the '-next' kernels. As I'm not sure what is the
>>> problem related to I may have omitted relevant people among the
>>> recipients. If it is so I'll be thankful if someone could cc them.
>>> Also I must apologise for reporting this so late, when it's close to
>>> the end of development cycle for 2.6.35.
>>>
>>> I didn't try to bisect. I've never done it before and maybe someone
>>> will able to reproduce the problem or see straight what's going on by
>>> looking into attached log/config files. But if it is necessary I'll
>>> try my hand at bisecting.
>>>
>>> ******
>>> Description of the problem:
>>>
>>> Affected kernels tested by me: 2.6.35-rc5-git3, 2.6.35-rc4-git5 and
>>> 2.6.35-rc4-next-20100712.
>>> Kernel 2.6.34.1 works OK.
>>>
>>> Briefly what happens is that my graphics card seems to loose
>>> connection with the LCD screen (connected through DVI) during boot.
>>> Initially it does show something - a blank screen with blinking cursor
>>> but it lasts only for about 2-3 seconds and then the screen switches
>>> to stand-by mode giving message 'No signal detected !'. The booting
>>> process seems to continue though, and looking cursorily through
>>> related dmesg and Xorg logs I can't see any suspicious messages
>>> (comparing with the same logs produced when booting from working
>>> kernel). I'm attaching the following files with this e-mail:
>>> ? ?dmesg, Xorg.0.log - produced during successful boot with 2.6.34.1
>>> ? ?dmesg.0, Xorg.0.log.old - these are for the failed boot with 2.6.35-rc5-git3
>>>
>>> Also please find attached config files:
>>> ??? config-2.6.34.1 - for my current, working kernel
>>> ??? config-2.6.35-rc5-git3 - based on above, almost all new entries I
>>> left undefined/disabled during making 'oldconfig'; particularly I
>>> didn't touch any options related to PCI, graphics drivers, ACPI or
>>> power management - these should be all the same as in config-2.6.34.1
>>>
>>> All the kernels were compiled on the same PC and system, they have/had
>>> radeon-kms enabled by default and these firmware files compiled in:
>>> R600_rlc.bin, R700_rlc.bin
>>>
>>> ******
>>> A brief specification of my system:
>>>
>>> 1) OS/software:
>>>
>>> Ubuntu 10.04, amd64
>>>
>>> Xorg, xserver, drm, mesa, drm and ati/radeon drivers installed from
>>> the following Ubuntu PPA repository:
>>> https://edge.launchpad.net/~xorg-edgers/+archive/ppa/
>>>
>>> Current versions:
>>> xorg:? 1:7.5+6ubuntu1~xorgedgers3~lucid
>>> xserver:? 2:1.8.2+git20100705+server-1.8-branch.665aa7ce-0ubuntu0sarvatt2~lucid
>>> xserver-xorg-video-ati:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
>>> xserver-xorg-video-radeon:? 1:6.13.99+git20100716.cdeb1949-0ubuntu0sarvatt~lucid
>>> drm:? 1:2.4.20+git20100513.a3305b07-0ubuntu0sarvatt~lucid
>>> mesa:? 7.9.0+git20100718.4eaf591d-0ubuntu0sarvatt~lucid
>>>
>>> 2) Hardvare:
>>> MB: Asus M4A79T Deluxe with chipsets AMD 790FX/SB750
>>> Processor: AMD Phenom II X4 810
>>> Graphics Card: Asus EAH3650 SILENT/HTDI/512M - based on chipset RV635
>>> PRO, port PCIEx2, connected with LCD through DVI
>>>
>>> ******
>>> Please let me know if anyone requires additional details and if there
>>> is any tracking/testing I could do on my end.
>>
>> The driver is not able to detect any attached monitors with 2.6.35:
>>
>> [ ? ?1.980334] No connectors reported connected with modes
>> [ ? ?1.980338] [drm] Cannot find any crtc or sizes - going 1024x768
>>
>> [ ? ?19.012] (II) RADEON(0): Output HDMI-0 disconnected
>> [ ? ?19.012] (II) RADEON(0): Output VGA-0 disconnected
>> [ ? ?19.012] (II) RADEON(0): Output DIN disconnected
>> [ ? ?19.012] (II) RADEON(0): Output DVI-0 disconnected
>> [ ? ?19.012] (WW) RADEON(0): Unable to find connected outputs -
>> setting 1024x768 initial framebuffer
>>
>> I think the attached patch should fix the issue. ?if not, can you try
>> reverting b2ea4aa67bfd084834edd070e0a4a47857d6db59 ?
>>
>> Alex
>>
>
> Hi Alex,
> Thanks for looking into this. I feel quite embarrassed that I didn't
> notice those messages from my logs you quoted ..
>
> Your patch (applied to 2.6.35-rc5-git3) has fixed the problem.
> However, Xorg.0.log says now that:
>
> [ ? ?17.780] (II) RADEON(0): Output HDMI-0 connected
> [ ? ?17.780] (II) RADEON(0): Output VGA-0 disconnected
> [ ? ?17.780] (II) RADEON(0): Output DIN disconnected
> [ ? ?17.780] (II) RADEON(0): Output DVI-0 disconnected
> [ ? ?17.780] (II) RADEON(0): Using exact sizes for initial modes
> [ ? ?17.780] (II) RADEON(0): Output HDMI-0 using initial mode 1920x1080
>
> ... but there is no HDMI port in my card. It has 2 DVI's and one Video
> output, that's all.
> The card does support HDMI though, via DVI to HDMI adaptor. But
> currently I've got
> one monitor plugged directly into one of the DVI's - a yellow one,
> where the other port
> is white. There must be a reason that both ports are coloured
> differently. Maybe the
> DVI to HDMI adapter is supported only in the yellow DVI port and
> that's why is recognised
> as HDMI in my system?
>

Probably the oem made two similar boards one with dual DVI and one
with DVI + VGA + HDMI and used the same connector table since the
encoder routing is still correct even if the connectors are named
wrong. We can add a quirk to fix it.

> Anyway, whether the Xorg log says true or not, it works fine for me,
> no display issues and
> resolution is set correctly. The only problem I see now is a
> noticeable 3D performance
> regression on this kernel (2.6.35-rc5-git3+your-patch) comparing to
> 2.6.34.1. I should make
> some tests, gather details and send that in a separate report soon ..

So the patch fixes the issue? I'll send it on then. Looks like your
systems needs a connector table quirk. Can you send me the pci ids
for your GPU (lspci -vnn) and a copy of your vbios? To dump your
vbios (as root):

cd /sys/bus/pci/devices/<pci bus id>
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom

As to the performance regressions, 2.6.35 added proper support for the
glx vblank stuff, so you are likely seeing apps synchronized to the
vrefresh.

Thanks,

Alex

2010-07-20 16:47:59

by trapDoor

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

Hi Alex,

>
> Probably the oem made two similar boards one with dual DVI and one
> with DVI + VGA + HDMI and used the same connector table since the
> encoder routing is still correct even if the connectors are named
> wrong. ?We can add a quirk to fix it.
>

I plugged my monitor into the other (white) DVI port and now system
recognises it as DVI:

[ 18.418] (II) RADEON(0): Output HDMI-0 disconnected
[ 18.418] (II) RADEON(0): Output VGA-0 disconnected
[ 18.418] (II) RADEON(0): Output DIN disconnected
[ 18.418] (II) RADEON(0): Output DVI-0 connected

As I mentioned before, I guess that on my card HDMI signal is
supported only on the yellow DVI port (through DVI > HDMI adapter),
and even if a device is connected to it directly the system will still
recognise it as HDMI.

>
> So the patch fixes the issue? ?I'll send it on then. ?Looks like your
> systems needs a connector table quirk. ?Can you send me the pci ids
> for your GPU (lspci -vnn) and a copy of your vbios? ?To dump your
> vbios (as root):
> cd /sys/bus/pci/devices/<pci bus id>
> echo 1 > rom
> cat rom > /tmp/vbios.rom
> echo 0 > rom
>

Yes, I confirm it does fix it.
Full lspci output attached and below pasting what's related to my graphics card:
--------------
04:00.0 VGA compatible controller [0300]: ATI Technologies Inc
Mobility Radeon HD 3600 Series [1002:9598]
Subsystem: ASUSTeK Computer Inc. Device [1043:01e4]
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fbfe0000 (64-bit, non-prefetchable) [size=64K]
I/O ports at e000 [size=256]
Expansion ROM at fbfc0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: radeon

04:00.1 Audio device [0403]: ATI Technologies Inc RV635 Audio device
[Radeon HD 3600 Series] [1002:aa20]
Subsystem: ASUSTeK Computer Inc. Device [1043:aa20]
Flags: bus master, fast devsel, latency 0, IRQ 45
Memory at fbffc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
--------------

Vbios dump for bus ID 0000:04:00.0 attached.

>
> As to the performance regressions, 2.6.35 added proper support for the
> glx vblank stuff, so you are likely seeing apps synchronized to the
> vrefresh.
>

I guess you were referring to the glxgears 'test tool' that used to
show (before 2.6.35-rc) much higher number of fps than it does now
when it corresponds to vertical-refresh like it's supposed to. I
noticed the change and assumed it is correct. And I never considered
glxgears as a proper performance test anyway so I wouldn't rely on the
results it gives.

Where I see a real 3D performance drop now is for example Armagetron
Advanced - a game I use just for testing. I enabled certain features
using 3D in it. Without going into details I just say that with kernel
2.6.34.1 the overall 3D performance in AA is about twice better. The
game runs quite smooth, number of fps doesn't go under 60. With kernel
2.6.35-rc5-git3 on the same system, with the same drivers, mesa, drm
etc., the game runs slower and not so smooth, certain details look
slightly worse and I won't get more than 35 fps.

Apart from that I don't notice any regressions on my desktop, with
compiz effects etc. I'd run some other tests if you could recommend
some tools, but not too complex and rather some specialised software
just for testing purposes, not games.

--
Regards,
trapDoor


Attachments:
lspci-output (8.00 kB)
0000:04:00.0_vbios.rom (63.00 kB)
Download all attachments

2010-07-20 17:21:49

by Alex Deucher

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

On Tue, Jul 20, 2010 at 12:47 PM, trapDoor <[email protected]> wrote:
> Hi Alex,
>
>>
>> Probably the oem made two similar boards one with dual DVI and one
>> with DVI + VGA + HDMI and used the same connector table since the
>> encoder routing is still correct even if the connectors are named
>> wrong. ?We can add a quirk to fix it.
>>
>
> I plugged my monitor into the other (white) DVI port and now system
> recognises it as DVI:
>
> [ ? ?18.418] (II) RADEON(0): Output HDMI-0 disconnected
> [ ? ?18.418] (II) RADEON(0): Output VGA-0 disconnected
> [ ? ?18.418] (II) RADEON(0): Output DIN disconnected
> [ ? ?18.418] (II) RADEON(0): Output DVI-0 connected
>
> As I mentioned before, I guess that on my card HDMI signal is
> supported only on the yellow DVI port (through DVI > HDMI adapter),
> and even if a device is connected to it directly the system will still
> recognise it as HDMI.
>
>>
>> So the patch fixes the issue? ?I'll send it on then. ?Looks like your
>> systems needs a connector table quirk. ?Can you send me the pci ids
>> for your GPU (lspci -vnn) and a copy of your vbios? ?To dump your
>> vbios (as root):
>> cd /sys/bus/pci/devices/<pci bus id>
>> echo 1 > rom
>> cat rom > /tmp/vbios.rom
>> echo 0 > rom
>>
>
> Yes, I confirm it does fix it.

Good.

> Full lspci output attached and below pasting what's related to my graphics card:
> --------------
> 04:00.0 VGA compatible controller [0300]: ATI Technologies Inc
> Mobility Radeon HD 3600 Series [1002:9598]
> ? ? ? ?Subsystem: ASUSTeK Computer Inc. Device [1043:01e4]
> ? ? ? ?Flags: bus master, fast devsel, latency 0, IRQ 43
> ? ? ? ?Memory at d0000000 (64-bit, prefetchable) [size=256M]
> ? ? ? ?Memory at fbfe0000 (64-bit, non-prefetchable) [size=64K]
> ? ? ? ?I/O ports at e000 [size=256]
> ? ? ? ?Expansion ROM at fbfc0000 [disabled] [size=128K]
> ? ? ? ?Capabilities: <access denied>
> ? ? ? ?Kernel driver in use: radeon
>
> 04:00.1 Audio device [0403]: ATI Technologies Inc RV635 Audio device
> [Radeon HD 3600 Series] [1002:aa20]
> ? ? ? ?Subsystem: ASUSTeK Computer Inc. Device [1043:aa20]
> ? ? ? ?Flags: bus master, fast devsel, latency 0, IRQ 45
> ? ? ? ?Memory at fbffc000 (64-bit, non-prefetchable) [size=16K]
> ? ? ? ?Capabilities: <access denied>
> ? ? ? ?Kernel driver in use: HDA Intel
> --------------
>
> Vbios dump for bus ID 0000:04:00.0 attached.
>

The attached patch should fix the connectors to report properly.
There are a number of similar ASUS cards with the same quirk.

>>
>> As to the performance regressions, 2.6.35 added proper support for the
>> glx vblank stuff, so you are likely seeing apps synchronized to the
>> vrefresh.
>>
>
> I guess you were referring to the glxgears 'test tool' that used to
> show (before 2.6.35-rc) much higher number of fps than it does now
> when it corresponds to vertical-refresh like it's supposed to. I
> noticed the change and assumed it is correct. And I never considered
> glxgears as a proper performance test anyway so I wouldn't rely on the
> results it gives.
>
> Where I see a real 3D performance drop now is for example Armagetron
> Advanced - a game I use just for testing. I enabled certain features
> using 3D in it. Without going into details I just say that with kernel
> 2.6.34.1 the overall 3D performance in AA is about twice better. The
> game runs quite smooth, number of fps doesn't go under 60. With kernel
> 2.6.35-rc5-git3 on the same system, with the same drivers, mesa, drm
> etc., the game runs slower and not so smooth, certain details look
> slightly worse and I won't get more than 35 fps.
>
> Apart from that I don't notice any regressions on my desktop, with
> compiz effects etc. I'd run some other tests if you could recommend
> some tools, but not too complex and rather some specialised software
> just for testing purposes, not games.

If it's just the kernel that changed is there any chance you could
bisect what caused the performance regression?

Alex


Attachments:
0001-drm-radeon-kms-add-quirk-for-ASUS-HD-3600-board.patch (1.22 kB)

2010-07-20 22:00:22

by trapDoor

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

> The attached patch should fix the connectors to report properly.
> There are a number of similar ASUS cards with the same quirk.
>

Right. I have applied your second patch on top of 2.6.35-rc5-git4 +
0001-drm-radeon-kms-fix-shared-ddc-harder.patch

After successful boot from the new kernel, these lines in Xorg.0.log
corresponds now to the outputs I have on my card:

### for LCD connected to the first DVI port:
[ 19.582] (II) RADEON(0): Output DVI-0 connected
[ 19.582] (II) RADEON(0): Output DIN disconnected
[ 19.582] (II) RADEON(0): Output DVI-1 disconnected
[ 19.582] (II) RADEON(0): Using exact sizes for initial modes
[ 19.582] (II) RADEON(0): Output DVI-0 using initial mode 1920x1080

### LCD connected to the other DVI port:
[ 18.068] (II) RADEON(0): Output DVI-0 disconnected
[ 18.068] (II) RADEON(0): Output DIN disconnected
[ 18.068] (II) RADEON(0): Output DVI-1 connected
[ 18.068] (II) RADEON(0): Using exact sizes for initial modes
[ 18.068] (II) RADEON(0): Output DVI-1 using initial mode 1920x1080

HDMI output isn't listed any more. So that's seems good. Thanks a lot
for fixing this.

I'm just wondering now what will happen if I connect some HDMI device
via DVI > HDMI adaptor. Should it work? Is HDMI still supported on my
card after applying the last patch? Unfortunately I don't own any
device I could test it on.

Do you expect any problems with applying this patch onto 2.6.34.1? If
not, I could do it as on that kernel the first DVI port is still shown
as HDMI. If the patch works OK on 2.6.34.1, it could be submitted
upstream to the stable branch ?

>>
>> Where I see a real 3D performance drop now is for example Armagetron
>> Advanced - a game I use just for testing. I enabled certain features
>> using 3D in it. Without going into details I just say that with kernel
>> 2.6.34.1 the overall 3D performance in AA is about twice better. The
>> game runs quite smooth, number of fps doesn't go under 60. With kernel
>> 2.6.35-rc5-git3 on the same system, with the same drivers, mesa, drm
>> etc., the game runs slower and not so smooth, certain details look
>> slightly worse and I won't get more than 35 fps.
>>
>> Apart from that I don't notice any regressions on my desktop, with
>> compiz effects etc. I'd run some other tests if you could recommend
>> some tools, but not too complex and rather some specialised software
>> just for testing purposes, not games.
>
> If it's just the kernel that changed is there any chance you could
> bisect what caused the performance regression?
>

I could find some time for bisecting tomorrow around evening. Prior to
that I'd need a quick look into some manuals ..


--
Regards
trapDoor

2010-07-20 22:05:01

by Alex Deucher

[permalink] [raw]
Subject: Re: Blank (disconnected) screen during boot with latest 2.6.35-rcX kernels

On Tue, Jul 20, 2010 at 5:54 PM, trapDoor <[email protected]> wrote:
>> The attached patch should fix the connectors to report properly.
>> There are a number of similar ASUS cards with the same quirk.
>>
>
> Right. I have applied your second patch on top of 2.6.35-rc5-git4 +
> 0001-drm-radeon-kms-fix-shared-ddc-harder.patch
>
> After successful boot from the new kernel, these lines in Xorg.0.log
> corresponds now to the outputs I have on my card:
>
> ### for LCD connected to the first DVI port:
> [ ? ?19.582] (II) RADEON(0): Output DVI-0 connected
> [ ? ?19.582] (II) RADEON(0): Output DIN disconnected
> [ ? ?19.582] (II) RADEON(0): Output DVI-1 disconnected
> [ ? ?19.582] (II) RADEON(0): Using exact sizes for initial modes
> [ ? ?19.582] (II) RADEON(0): Output DVI-0 using initial mode 1920x1080
>
> ### LCD connected to the other DVI port:
> [ ? ?18.068] (II) RADEON(0): Output DVI-0 disconnected
> [ ? ?18.068] (II) RADEON(0): Output DIN disconnected
> [ ? ?18.068] (II) RADEON(0): Output DVI-1 connected
> [ ? ?18.068] (II) RADEON(0): Using exact sizes for initial modes
> [ ? ?18.068] (II) RADEON(0): Output DVI-1 using initial mode 1920x1080
>
> HDMI output isn't listed any more. So that's seems good. Thanks a lot
> for fixing this.

Thanks for testing.

>
> I'm just wondering now what will happen if I connect some HDMI device
> via DVI > HDMI adaptor. Should it work? Is HDMI still supported on my
> card after applying the last patch? Unfortunately I don't own any
> device I could test it on.

It will not affect your ability to use HDMI. It only affects the naming.

>
> Do you expect any problems with applying this patch onto 2.6.34.1? If
> not, I could do it as on that kernel the first DVI port is still shown
> as HDMI. If the patch works OK on 2.6.34.1, it could be submitted
> upstream to the stable branch ?

I'll CC stable.

>
>>>
>>> Where I see a real 3D performance drop now is for example Armagetron
>>> Advanced - a game I use just for testing. I enabled certain features
>>> using 3D in it. Without going into details I just say that with kernel
>>> 2.6.34.1 the overall 3D performance in AA is about twice better. The
>>> game runs quite smooth, number of fps doesn't go under 60. With kernel
>>> 2.6.35-rc5-git3 on the same system, with the same drivers, mesa, drm
>>> etc., the game runs slower and not so smooth, certain details look
>>> slightly worse and I won't get more than 35 fps.
>>>
>>> Apart from that I don't notice any regressions on my desktop, with
>>> compiz effects etc. I'd run some other tests if you could recommend
>>> some tools, but not too complex and rather some specialised software
>>> just for testing purposes, not games.
>>
>> If it's just the kernel that changed is there any chance you could
>> bisect what caused the performance regression?
>>
>
> I could find some time for bisecting tomorrow around evening. Prior to
> that I'd need a quick look into some manuals ..
>

Sounds good.

Alex

>
> --
> Regards
> trapDoor
>