Skip to contentSkip to conversation

New: Reverse Prime corruption with nouveau using radeon outputs

Bug 94832 [email protected] 1 participant 13 messages Apr 5, 2016 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 94832
Summary: Reverse Prime corruption with nouveau using radeon
outputs
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 122732
--> https://bugs.freedesktop.org/attachment.cgi?id=122732&action=edit
photo with screen corruption

I have these two (old) GPUs:

00:0d.0 VGA compatible controller: NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300]

After startup my desktop runs on the nvidia gpu.
I enable prime with these commands:

xrandr --setprovideroutputsource radeon nouveau
xrandr --output VGA-2 --auto --output DVI-1-0 --right-of VGA-2 --mode 1280x1024

It seems to almost work, but the monitor connected to the radeon gpu is very corrupted, see attached image.

Software:

linux 4.5
xf86-video-nouveau 1.0.12
xf86-video-ati 1:7.6.1
xorg-server 1.18.3
xfwm4 4.12.3 with compositor enabled

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): bug-94832-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

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

--- Comment #1 from Christoph Haag <[email protected]> --- Created attachment 122733
--> https://bugs.freedesktop.org/attachment.cgi?id=122733&action=edit
screenshot with no corruption

On a screenshot there is no corruption visible.

Some artifacts were visible when I first had different resolutions for the monitors and dragged a window, there would be some artifacts left where the window was, but the windows itself looked fine.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

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

 Attachment #122732|text/plain                  |image/jpeg
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

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

 Attachment #122733|text/plain                  |image/png
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #2 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- I'm confused by what's going on in your setup... can you also include the output of 'xrandr' and your Xorg log? That should clear things up.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #3 from Christoph Haag <[email protected]> --- Created attachment 122734
--> https://bugs.freedesktop.org/attachment.cgi?id=122734&action=edit
xrandr commands

These are the commands I enter. I run X on an nvidia GPU and then I want to use a monitor that is connected to a radeon GPU.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #4 from Christoph Haag <[email protected]> --- Created attachment 122735
--> https://bugs.freedesktop.org/attachment.cgi?id=122735&action=edit
xorg log

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #5 from Christoph Haag <[email protected]> --- Created attachment 122736
--> https://bugs.freedesktop.org/attachment.cgi?id=122736&action=edit
dmesg

Somehow I forgot to check dmesg.

I guess the

[   39.172099] nouveau 0000:00:0d.0: bus: MMIO write of 007c0001 FAULT at

00b010
indicate a problem...

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- (In reply to Christoph Haag from comment #5)

Quoted 9 lines

Created attachment 122736 [details]
dmesg

Somehow I forgot to check dmesg.

I guess the

[   39.172099] nouveau 0000:00:0d.0: bus: MMIO write of 007c0001 FAULT at

00b010
indicate a problem...

Nope, that's expected. Something weird with the PMPEG unit on the cards. Although usually the errors happen just once at boot... dunno.

And to further clarify, you get the corruption as in the photo no matter what once you enable the second screen? Given what the photo looks like, seems like there's an issue with strides... perhaps the fb stride isn't being propagated properly? All the dispnv04 code is pretty much stuck in antiquity unfortunately =/ And none of the PRIME stuff has been tested with pre-G80 GPUs.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #7 from Christoph Haag <[email protected]> --- Created attachment 122737
--> https://bugs.freedesktop.org/attachment.cgi?id=122737&action=edit
journal from running reverse prime from radeon

This may be a different problem, but when I try it the other way around by adding /etc/X11/xorg.conf.d/20-radeon.conf with

Section "Device"

    Identifier     "Device0"
    Driver         "radeon"
    BusID          "PCI:2:0:0"
EndSection
Section "Device"
    Identifier     "Device1"
    Driver         "nouveau"
    BusID          "PCI:0:0:d"

EndSection

then X starts on my radeon gpu. Then I can do
xrandr --setprovideroutputsource radeon nouveau
and then
xrandr --output VGA-1-2 --auto --output DVI-0 --right-of VGA-1-2 --mode 1280x1024
then I get pretty gruesome messages in dmesg.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #8 from Christoph Haag <[email protected]> --- (In reply to Ilia Mirkin from comment #6)

Quoted 2 lines

And to further clarify, you get the corruption as in the photo no matter what once you enable the second screen?

Looks like it. Well, I am not *really* going to use that computer, I am just experimenting with PRIME. So if there are no real users, it might not be worth the time to debug this.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

--- Comment #9 from [email protected] ---
Same problem here, try build a multi monitor setup with a 6600 LE (nouveau) and a Radeon 2400 Pro (radeon). Xinemara works fine, but Reverse PRIME does not.

When i try to render nouveau -> radeon i get a segfault.
When i try to render radeon -> nouveau i get glitches, similar to the one Christoph Haag posted.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw

[Bug 94832] Reverse Prime corruption with nouveau using radeon outputs

In reply to a message not in the archive

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

Martin Peres <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #10 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/261.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau