Skip to contentSkip to conversation

Xorg fails with radeonfb and KMS

Bug 89808 [email protected] 1 participant 5 messages Mar 29, 2015 – Mar 31, 2015

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=89808

Bug ID: 89808
Summary: [Radeon 9600 r300] Xorg fails with radeonfb and KMS
Product: DRI
Version: unspecified
Hardware: x86 (IA32)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: [email protected]
Reporter: [email protected]

A recent 3.19.0 kernel with radeonfb and KMS results in hang and corrupt video display after Xorg loads. It seems that radeonfb and KMS together will not work (?), but I could not find any information about this apart from this discussion:

"I believe we will enforce to either have radeon KMS or radeonfb the latter being depreciated. Note we need to wait few years (5 maybe more) before we can do rm radeonfb at least this is my understanding of kernel rules."
http://www.phoronix.com/forums/showthread.php?14828-KMS-and-radeonfb

So KMS and radeonfb should be mutually exclusive build options, or perhaps radeonfb should be finally removed as suggested (the suggestion to remove it in a few years was made in 2009)?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=89808

--- Comment #1 from Chris Bainbridge <[email protected]> --- Just found bug #10259 which confirms that radeonfb and DRI are incompatible on
r300: "This will probably never be fixed without KMS, which should provide more or less the same features as radeonfb anyway."

Solution would be either a runtime error "this is unsupported and does not work" or compile time mutually exclusion or drop radeonfb.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89808

--- Comment #2 from Michel Dänzer <[email protected]> ---
I think you're jumping to conclusions here. The conflict between radeonfb and radeon KMS is such that one being active prevents the other one from initializing at all. "Hang and corrupt video display" sounds like a different problem.

Please provide /var/log/Xorg.0.log and the output of dmesg corresponding to the problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89808

--- Comment #3 from Chris Bainbridge <[email protected]> --- I retested and it isn't an actual hang. It is this issue:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762047 (not sure why I saw some kind of pink corrupt image before, but now it is just black).

When both radeonfb and KMS are in the kernel, lightdm will boot to a black screen. As you said in the Debian bug, this can be worked around by forcing X to another colour depth (/etc/lightdm/lightdm.conf [SeatDefaults] xserver-command=X -depth 24)

- If KMS is now preferred, would it be more useful to default to using it rather than have to manually specify 'video=radeonfb:off' ?

- With radeonfb and KMS, dmesg shows:

[    4.292750] [drm] Initialized drm 1.1.0 20060810
[    4.292866] [drm] radeon kernel modesetting enabled.

This is confusing given that KMS isn't enabled. It would be more informative to print a warning like "KMS disabled because you have radeonfb enabled".

- Is there any point in having CONFIG_FB_RADEON on a modern kernel? If not, it would be informative if the kernel config for CONFIG_FB_RADEON stated that it was deprecated, and enabling it will cause KMS to be disabled. It isn't obvious that it isn't desirable to enable that config option, or that enabling it will cause KMS to be disabled by default.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89808

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #4 from Michel Dänzer <[email protected]> --- (In reply to Chris Bainbridge from comment #3)

Quoted 2 lines

I retested and it isn't an actual hang. It is this issue:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762047

So it's a lightdm bug, resolving accordingly.

Quoted 7 lines

- With radeonfb and KMS, dmesg shows:

[    4.292750] [drm] Initialized drm 1.1.0 20060810
[    4.292866] [drm] radeon kernel modesetting enabled.

This is confusing given that KMS isn't enabled. It would be more informative to print a warning like "KMS disabled because you have radeonfb enabled".

This message is printed by the radeon driver, which I'm not sure has that information.

Quoted 1 line

- Is there any point in having CONFIG_FB_RADEON on a modern kernel?

Yes, e.g. radeon KMS doesn't support suspend/resume yet on Apple PowerPC laptops.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel