All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
@ 2017-06-19 16:27 bugzilla-daemon
  2017-06-19 16:29 ` bugzilla-daemon
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-19 16:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1315 bytes --]

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

            Bug ID: 101499
           Summary: Black screen when detaching HDMI cable (AMD A10-9620P)
           Product: DRI
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: carlo@caione.org

Created attachment 132061
  --> https://bugs.freedesktop.org/attachment.cgi?id=132061&action=edit
journal_from_boot_to_HDMI_cable_detaching

We are working with new laptops that have the AMD Bristol Ridge
chipset with this SoC:

AMD A10-9620P RADEON R5, 10 COMPUTE CORES 4C+6G

When the HDMI cable is attached and then detached, the internal panel goes
black and the only way to have it back is switching to another TTY and then
back to xorg or doing 'xset dpms force off; xset dpms force on'.

This is reproducible also on the ~agd5f/drm-next-4.13-wip branch.

In the attachment the whole journal when booting the kernel compiled from
~agd5f/drm-next-4.13-wip, landing in xorg and then attaching and detaching the
HDMI cable.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2791 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
@ 2017-06-19 16:29 ` bugzilla-daemon
  2017-06-20  4:02 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-19 16:29 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 395 bytes --]

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

--- Comment #1 from Carlo Caione <carlo@caione.org> ---
Created attachment 132062
  --> https://bugs.freedesktop.org/attachment.cgi?id=132062&action=edit
dmps_off_on

This is what we have in the log when we give 'xset dpms force off; xset dpms
force on'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1299 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
  2017-06-19 16:29 ` bugzilla-daemon
@ 2017-06-20  4:02 ` bugzilla-daemon
  2017-06-20  6:11 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  4:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 394 bytes --]

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

--- Comment #2 from Michel Dänzer <michel@daenzer.net> ---
> Jun 19 17:09:49 endless kernel: [drm] Detected VRAM RAM=32M, BAR=32M

I suspect the core problem is that there's only 32 MB of VRAM available. Is it
possible to increase this in the BIOS setup?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1219 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
  2017-06-19 16:29 ` bugzilla-daemon
  2017-06-20  4:02 ` bugzilla-daemon
@ 2017-06-20  6:11 ` bugzilla-daemon
  2017-06-20  6:15 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  6:11 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 378 bytes --]

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

--- Comment #3 from Carlo Caione <carlo@caione.org> ---
> I suspect the core problem is that there's only 32 MB of VRAM available.
> Is it possible to increase this in the BIOS setup?
It is not. There is nothing in the BIOS related to VRAM.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1202 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-06-20  6:11 ` bugzilla-daemon
@ 2017-06-20  6:15 ` bugzilla-daemon
  2017-06-20  6:21 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  6:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 384 bytes --]

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

--- Comment #4 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Carlo Caione from comment #3)
> There is nothing in the BIOS related to VRAM.

FWIW, it wouldn't say "VRAM" but rather "integrated graphics memory" or
something like that.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1269 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-06-20  6:15 ` bugzilla-daemon
@ 2017-06-20  6:21 ` bugzilla-daemon
  2017-06-20  6:24 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  6:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 441 bytes --]

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

--- Comment #5 from Carlo Caione <carlo@caione.org> ---
> FWIW, it wouldn't say "VRAM" but rather "integrated graphics memory" or
> something like that.
Yeah :) Let me put this way: there is nothing in the BIOS related to graphic
controller / GPU / video in general.

FWIW the BIOS is InsydeH20 v0.09

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1285 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-06-20  6:21 ` bugzilla-daemon
@ 2017-06-20  6:24 ` bugzilla-daemon
  2017-06-20  6:38 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  6:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 774 bytes --]

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

--- Comment #6 from Carlo Caione <carlo@caione.org> ---
Also I guess you are looking at the wrong controller:

[    2.111381] amdgpu 0000:00:01.0: VRAM: 32M 0x000000F400000000 -
0x000000F401FFFFFF (32M used)
[    2.111390] [drm] Detected VRAM RAM=32M, BAR=32M
[    2.111511] [drm] amdgpu: 32M of VRAM memory ready
[    6.560772] amdgpu 0000:03:00.0: VRAM: 2048M 0x000000F400000000 -
0x000000F47FFFFFFF (2048M used)
[    6.560785] [drm] Detected VRAM RAM=2048M, BAR=256M
[    6.560805] [drm] amdgpu: 2048M of VRAM memory ready

So I guess in this laptop there is an integrated controller with 32MB of VRAM
and the GPU with 2GB?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1564 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-06-20  6:24 ` bugzilla-daemon
@ 2017-06-20  6:38 ` bugzilla-daemon
  2017-06-20  6:45 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  6:38 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 501 bytes --]

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

--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
There are two GPUs, the integrated one in the APU (Carrizo family) and a
dedicated one (Polaris 12 family). Xorg is using the integrated one, and
there's no way around that, because only the integrated GPU has display outputs
hooked up. The dedicated GPU could only be used via PRIME render offloading.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1295 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-06-20  6:38 ` bugzilla-daemon
@ 2017-06-20  6:45 ` bugzilla-daemon
  2017-06-20  7:24 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  6:45 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 900 bytes --]

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

--- Comment #8 from Carlo Caione <carlo@caione.org> ---
Interesting. Ok then, back to square one: no BIOS options to tweak the
integrated graphics memory / controller.

On a side note: is it normal so many error messages in the journal? Like:

kernel: amdgpu 0000:00:01.0: ffff9cccade4d800 pin failed
kernel: [drm:amdgpu_crtc_page_flip_target [amdgpu]] *ERROR* failed to pin new
abo buffer before flip
gdm-Xorg-:0[672]: (WW) AMDGPU(0): flip queue failed: Cannot allocate memory
gdm-Xorg-:0[672]: (WW) AMDGPU(0): Page flip failed: Cannot allocate memory
gdm-Xorg-:0[672]: (EE) AMDGPU(0): present flip failed
...
gdm-Xorg-:0[672]: (WW) AMDGPU(0): get vblank counter failed: Invalid argument

or

kernel: amdgpu: [powerplay] min_core_set_clock not set

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1690 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (7 preceding siblings ...)
  2017-06-20  6:45 ` bugzilla-daemon
@ 2017-06-20  7:24 ` bugzilla-daemon
  2017-06-20  9:10 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  7:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1033 bytes --]

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

--- Comment #9 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Carlo Caione from comment #8)
> On a side note: is it normal so many error messages in the journal? Like:
> 
> kernel: amdgpu 0000:00:01.0: ffff9cccade4d800 pin failed
> kernel: [drm:amdgpu_crtc_page_flip_target [amdgpu]] *ERROR* failed to pin
> new abo buffer before flip
> gdm-Xorg-:0[672]: (WW) AMDGPU(0): flip queue failed: Cannot allocate memory
> gdm-Xorg-:0[672]: (WW) AMDGPU(0): Page flip failed: Cannot allocate memory
> gdm-Xorg-:0[672]: (EE) AMDGPU(0): present flip failed
> ...
> gdm-Xorg-:0[672]: (WW) AMDGPU(0): get vblank counter failed: Invalid argument

I think all of these are triggered by VRAM being too small to fit the scanout
buffers covering the laptop panel + external monitor.


> kernel: amdgpu: [powerplay] min_core_set_clock not set

Not sure about this one, might be harmless.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1956 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (8 preceding siblings ...)
  2017-06-20  7:24 ` bugzilla-daemon
@ 2017-06-20  9:10 ` bugzilla-daemon
  2017-06-20  9:25 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  9:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]

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

--- Comment #10 from Carlo Caione <carlo@caione.org> ---
> I think all of these are triggered by VRAM being too small to fit the
> scanout buffers covering the laptop panel + external monitor.
Probably I'm missing something, but when the HDMI is connected everything works
fine, with the scanout buffer correctly displayed on the laptop panel +
external monitor. The problem starts when we _disconnect_ the HDMI cable.

Also if it was a problem with VRAM being too small, why toggling the DPMS makes
the laptop panel working fine again?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1504 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (9 preceding siblings ...)
  2017-06-20  9:10 ` bugzilla-daemon
@ 2017-06-20  9:25 ` bugzilla-daemon
  2017-06-20  9:46 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  9:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1381 bytes --]

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

--- Comment #11 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Carlo Caione from comment #10)
> Probably I'm missing something, but when the HDMI is connected everything
> works fine, with the scanout buffer correctly displayed on the laptop panel
> + external monitor. The problem starts when we _disconnect_ the HDMI cable.

At least some of the errors you referenced in comment 8 already happen before
that. They're related to failed attempts at page flipping. xf86-video-amdgpu
manages to chug along regardless.

When you unplug the HDMI cable is presumably when

> Jun 19 17:10:31 endless gdm-Xorg-:0[672]: (EE) AMDGPU(0): failed to set mode: Invalid argument

appears, i.e. drmModeSetCrtc() fails, presumably (not 100% sure about this part
though) because the new, smaller scanout buffer cannot fit into VRAM while the
old, larger one is still being scanned out.

> Also if it was a problem with VRAM being too small, why toggling the DPMS
> makes the laptop panel working fine again?

Toggling DPMS off disables scanout, which allows the old scanout buffer to be
moved out of VRAM, so the new one can be moved in.


Some details might differ from the above, but that should be roughly what's
happening.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2359 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (10 preceding siblings ...)
  2017-06-20  9:25 ` bugzilla-daemon
@ 2017-06-20  9:46 ` bugzilla-daemon
  2017-06-20 16:15 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20  9:46 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 635 bytes --]

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

--- Comment #12 from Carlo Caione <carlo@caione.org> ---
Created attachment 132081
  --> https://bugs.freedesktop.org/attachment.cgi?id=132081&action=edit
Corruption using xf86-video-amdgpu HEAD

Interesting. Thank you for explaining this and your time.

I just tried the HEAD of xf86-video-amdgpu and now instead of having a black
screen I have the image corruption as shown in the picture.

Anything I can do to debug / have this fixed? Is it something I need to fix
with the ODM (acer)?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1596 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (11 preceding siblings ...)
  2017-06-20  9:46 ` bugzilla-daemon
@ 2017-06-20 16:15 ` bugzilla-daemon
  2017-06-21  8:14 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-20 16:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

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

--- Comment #13 from Carlo Caione <carlo@caione.org> ---
> I just tried the HEAD of xf86-video-amdgpu and now instead of
> having a black screen I have the image corruption as shown
> in the picture.
Just FYI this is due to commit b09fde0d81 ("Use reference counting for tracking
KMS framebuffer lifetimes").

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1286 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (12 preceding siblings ...)
  2017-06-20 16:15 ` bugzilla-daemon
@ 2017-06-21  8:14 ` bugzilla-daemon
  2017-06-21 15:28 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-21  8:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1251 bytes --]

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

--- Comment #14 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Carlo Caione from comment #12)
> I just tried the HEAD of xf86-video-amdgpu and now instead of having a black
> screen I have the image corruption as shown in the picture.

Without seeing the corresponding Xorg log, I guess that's just a different
symptom triggered by the same issue.


> Anything I can do to debug / have this fixed?

We need to make scanout work with buffers outside of VRAM somehow. I've kicked
off an internal discussion about this.

With an amd-staging-* kernel branch and DC enabled, you can try tweaking
dce_v11_0_crtc_do_set_base to pass AMDGPU_GEM_DOMAIN_GTT instead of / in
addition to AMDGPU_GEM_DOMAIN_VRAM to amdgpu_bo_pin. The DC code should already
handle this correctly, but we're not sure whether or not there are additional
constraints on system memory used for scanout. If there are, it probably won't
work correctly yet.


> Is it something I need to fix with the ODM (acer)?

If you can get a BIOS which allows setting up larger VRAM, that might allow you
to move forward faster.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2183 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (13 preceding siblings ...)
  2017-06-21  8:14 ` bugzilla-daemon
@ 2017-06-21 15:28 ` bugzilla-daemon
  2017-06-22  8:23 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-21 15:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1364 bytes --]

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

--- Comment #15 from Carlo Caione <carlo@caione.org> ---
Created attachment 132118
  --> https://bugs.freedesktop.org/attachment.cgi?id=132118&action=edit
journal_HDMI_detaching_corruption

> Without seeing the corresponding Xorg log, I guess that's just
> a different symptom triggered by the same issue.
Attached the log. Yeah, not much different.

> With an amd-staging-* kernel branch and DC enabled, you can try tweaking
> dce_v11_0_crtc_do_set_base to pass AMDGPU_GEM_DOMAIN_GTT instead of / in
> addition to AMDGPU_GEM_DOMAIN_VRAM to amdgpu_bo_pin. The DC code should
> already handle this correctly, but we're not sure whether or not there are
> additional constraints on system memory used for scanout. If there are, it
> probably won't work correctly yet.
I tried amd-staging-4.11 and interestingly dce_v11_0_crtc_do_set_base is called
only when DC is disabled. When DRM_AMD_DC=y the function is never called.

I tried also to make the s/AMDGPU_GEM_DOMAIN_VRAM/AMDGPU_GEM_DOMAIN_GTT/ change
with DC disabled. What I get is that I have some kind of intermittent display
corruption when _connecting_ the HDMI cable on both the screens but on
detaching at least everything is fine on the laptop panel.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (14 preceding siblings ...)
  2017-06-21 15:28 ` bugzilla-daemon
@ 2017-06-22  8:23 ` bugzilla-daemon
  2017-06-22  9:00 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-22  8:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 651 bytes --]

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

--- Comment #16 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Carlo Caione from comment #15)
> > With an amd-staging-* kernel branch and DC enabled, you can try tweaking
> > dce_v11_0_crtc_do_set_base to pass AMDGPU_GEM_DOMAIN_GTT instead of / in
> > addition to AMDGPU_GEM_DOMAIN_VRAM to amdgpu_bo_pin. [...]
> I tried amd-staging-4.11 and interestingly dce_v11_0_crtc_do_set_base is
> called only when DC is disabled.

Right, sorry, with DC you need to tweak dm_plane_helper_prepare_fb instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1539 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (15 preceding siblings ...)
  2017-06-22  8:23 ` bugzilla-daemon
@ 2017-06-22  9:00 ` bugzilla-daemon
  2017-06-27  8:21 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-22  9:00 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]

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

--- Comment #17 from Carlo Caione <carlo@caione.org> ---
Created attachment 132130
  --> https://bugs.freedesktop.org/attachment.cgi?id=132130&action=edit
dm_plane_helper_prepare_fb with AMDGPU_GEM_DOMAIN_GTT

> Right, sorry, with DC you need to tweak dm_plane_helper_prepare_fb instead.
Yup, I tried this but not much luck. In attachment what I get when using
AMDGPU_GEM_DOMAIN_GTT. Using AMDGPU_GEM_DOMAIN_GTT | AMDGPU_GEM_DOMAIN_VRAM is
pretty much the same but the cursor is correctly displayed (even though I
cannot move it).

The log is filled with:

[drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer

/me scratch his head

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1824 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (16 preceding siblings ...)
  2017-06-22  9:00 ` bugzilla-daemon
@ 2017-06-27  8:21 ` bugzilla-daemon
  2017-06-27  8:29 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-27  8:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 548 bytes --]

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

--- Comment #18 from Carlo Caione <carlo@caione.org> ---
We have found another laptop with exactly the same issue (and again 32MB of
VRAM for the embedded video controller). We have also requested to ACER a new
BIOS with a bigger size of VRAM, waiting to receive it (hopefully).

Any news about the internal discussion about this issue? We are available to
test any fix / workaround / proposal :)

Thanks,

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1339 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (17 preceding siblings ...)
  2017-06-27  8:21 ` bugzilla-daemon
@ 2017-06-27  8:29 ` bugzilla-daemon
  2017-06-27 10:29 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-27  8:29 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 602 bytes --]

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

--- Comment #19 from Michel Dänzer <michel@daenzer.net> ---
No news I'm afraid.

(In reply to Carlo Caione from comment #17)
> In attachment what I get when using AMDGPU_GEM_DOMAIN_GTT.
[...]
> [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer

Do you also get those errors with AMDGPU_GEM_DOMAIN_GTT? If so, it might be
interesting to track down the origin of the errors. Otherwise, it looks like
there's still something missing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1500 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (18 preceding siblings ...)
  2017-06-27  8:29 ` bugzilla-daemon
@ 2017-06-27 10:29 ` bugzilla-daemon
  2017-06-30  7:43 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-27 10:29 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1582 bytes --]

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

Carlo Caione <carlo@caione.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #132130|0                           |1
        is obsolete|                            |

--- Comment #20 from Carlo Caione <carlo@caione.org> ---
Created attachment 132281
  --> https://bugs.freedesktop.org/attachment.cgi?id=132281&action=edit
dm_plane_helper_prepare_fb with AMDGPU_GEM_DOMAIN_GTT

> Do you also get those errors with AMDGPU_GEM_DOMAIN_GTT? If so, it might be 
> interesting to track down the origin of the errors. Otherwise, it looks like
> there's still something missing.

The error is not reproducible anymore using the latest amd-staging-4.11 branch
and the master HEAD of xf86-video-amdgpu using AMDGPU_GEM_DOMAIN_GTT in
dm_plane_helper_prepare_fb, but I still have the weird corruption with a white
background screen and a corrupted square as pointer as in the previous
attachment. In the attachment the journal when attaching and detaching the HDMI
cable.

The only concerning errors I can see in there are:

[drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from
Adapter Service for connector index:2!                                    
[drm:hwss_wait_for_blank_complete [amdgpu]] *ERROR* DC: failed to blank crtc!   
[drm:dc_create [amdgpu]] *ERROR* DC: Number of connectors is zero!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3129 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (19 preceding siblings ...)
  2017-06-27 10:29 ` bugzilla-daemon
@ 2017-06-30  7:43 ` bugzilla-daemon
  2017-06-30  9:44 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-30  7:43 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 654 bytes --]

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

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harry.wentland@amd.com

--- Comment #21 from Michel Dänzer <michel@daenzer.net> ---
Sounds like either DC is still missing something for scanning out from GTT, or
there may indeed be additional constraints on the system memory used for it.

Harry, have you guys tested GTT scanout?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2001 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (20 preceding siblings ...)
  2017-06-30  7:43 ` bugzilla-daemon
@ 2017-06-30  9:44 ` bugzilla-daemon
  2017-07-02 19:21 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-06-30  9:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 293 bytes --]

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

--- Comment #22 from Carlo Caione <carlo@caione.org> ---
Just to keep you updated we have verified that with a bigger VRAM this is not
reproducible anymore.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1084 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (21 preceding siblings ...)
  2017-06-30  9:44 ` bugzilla-daemon
@ 2017-07-02 19:21 ` bugzilla-daemon
  2017-07-03  3:23 ` bugzilla-daemon
  2019-11-19  8:19 ` bugzilla-daemon
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-07-02 19:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 315 bytes --]

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

--- Comment #23 from Harry Wentland <harry.wentland@amd.com> ---
Michel, I don't remember trying GTT scanout. Not sure even what that really
means for DC. Is that scatter/gather?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1114 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (22 preceding siblings ...)
  2017-07-02 19:21 ` bugzilla-daemon
@ 2017-07-03  3:23 ` bugzilla-daemon
  2019-11-19  8:19 ` bugzilla-daemon
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2017-07-03  3:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 331 bytes --]

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

--- Comment #24 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Harry Wentland from comment #23)
> Not sure even what that really means for DC. Is that scatter/gather?

Yes, exactly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P)
  2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
                   ` (23 preceding siblings ...)
  2017-07-03  3:23 ` bugzilla-daemon
@ 2019-11-19  8:19 ` bugzilla-daemon
  24 siblings, 0 replies; 26+ messages in thread
From: bugzilla-daemon @ 2019-11-19  8:19 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 806 bytes --]

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

Martin Peres <martin.peres@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #25 from Martin Peres <martin.peres@free.fr> ---
-- 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/drm/amd/issues/194.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2388 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2019-11-19  8:19 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-19 16:27 [Bug 101499] Black screen when detaching HDMI cable (AMD A10-9620P) bugzilla-daemon
2017-06-19 16:29 ` bugzilla-daemon
2017-06-20  4:02 ` bugzilla-daemon
2017-06-20  6:11 ` bugzilla-daemon
2017-06-20  6:15 ` bugzilla-daemon
2017-06-20  6:21 ` bugzilla-daemon
2017-06-20  6:24 ` bugzilla-daemon
2017-06-20  6:38 ` bugzilla-daemon
2017-06-20  6:45 ` bugzilla-daemon
2017-06-20  7:24 ` bugzilla-daemon
2017-06-20  9:10 ` bugzilla-daemon
2017-06-20  9:25 ` bugzilla-daemon
2017-06-20  9:46 ` bugzilla-daemon
2017-06-20 16:15 ` bugzilla-daemon
2017-06-21  8:14 ` bugzilla-daemon
2017-06-21 15:28 ` bugzilla-daemon
2017-06-22  8:23 ` bugzilla-daemon
2017-06-22  9:00 ` bugzilla-daemon
2017-06-27  8:21 ` bugzilla-daemon
2017-06-27  8:29 ` bugzilla-daemon
2017-06-27 10:29 ` bugzilla-daemon
2017-06-30  7:43 ` bugzilla-daemon
2017-06-30  9:44 ` bugzilla-daemon
2017-07-02 19:21 ` bugzilla-daemon
2017-07-03  3:23 ` bugzilla-daemon
2019-11-19  8:19 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.