Skip to contentSkip to conversation

WARNING: CPU: 0 PID: 487 at drivers/gpu/drm/amd/amdgpu/../display /dc/gpio/gpio_base.c:64 dal_gpio_open_ex+0xc/0x30 [amdgpu]

Bug 105725 [email protected] 1 participant 18 messages Mar 24, 2018 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 105725
           Summary: WARNING: CPU: 0 PID: 487 at
                    drivers/gpu/drm/amd/amdgpu/../display
                    /dc/gpio/gpio_base.c:64 dal_gpio_open_ex+0xc/0x30
                    [amdgpu]
           Product: DRI
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 138331
--> https://bugs.freedesktop.org/attachment.cgi?id=138331&action=edit
Dmesg output with the two "WARNINGS of admgpu"

Using Linux kernel 4.15.11 I get two warnings during a boot. I am using the "amdgpu.dc=1" to get sound.
I have a RX550 video card.

Could these message be related to a "hang" I sometimes have?

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

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

#1 lore raw

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

[email protected] changed:

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

           Hardware|Other                       |x86-64 (AMD64)
                 CC|                            |[email protected]
                 OS|All                         |Linux (All)
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#2 lore raw
In reply to [email protected]

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

--- Comment #1 from Harry Wentland <[email protected]> --- I'm not sure, but I think they could be related to a hang.

A couple questions:
* Do you see a hang a boot, or in a different scenario?
* What display are you using?
* What's your distribution?
* Are you able to try the drm-next-4.17-wip branch from
https://cgit.freedesktop.org/~agd5f/linux/ ?

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

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

#3 lore raw
In reply to [email protected]

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

--- Comment #2 from [email protected] ---
Is there a guide a build the 4.15.x kernel using the drm-4.17-wip? I can try to compile/test it next weekend.

The problem I have is that when I display a certain png with "imagemagick display" X11 hangs.
The screen is not longer updated and only a reboot helps.

When I run the program using strace the last system call displayed is:

ioctl(6, DRM_IOCTL_AMDGPU_WAIT_CS.

That is why I am thinking it might have to do with the amdgpu.

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

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

#4 lore raw
In reply to [email protected]

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

--- Comment #3 from Harry Wentland <[email protected]> --- The warnings are likely not related to the hang in this case.

Installing or building the kernel might depend on your distribution. You should be able to find a guide by googling "building a custom kernel <distroname>".

In general you might want to
* mkdir mybuilddir
* git clone git://people.freedesktop.org/~agd5f/linux
* cd linux
* cp /boot/config-<your-current-config> .config
* if you're on ubuntu/debian:
* make deb-pkg
* sudo dpkg -i <path to custom kernel .deb from your install>

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

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

#5 lore raw
In reply to [email protected]

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

--- Comment #4 from [email protected] ---
Harry,

I have build a kernel using the:

git clone -b drm-next-4.17-wip git://people.freedesktop.org/~agd5f/linux

I did the clone about 2018-29-03 20:00 UTC

The warnings are still there.

root@hjp2:~# dmesg | grep -i Warning
[    0.000000] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has
valid Length but zero Address: 0x0000000000000000/0x1 (20180105/tbfadt-658)
[    5.351226] WARNING: CPU: 1 PID: 491 at
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_base.c:64
dal_gpio_open_ex+0xc/0x30 [amdgpu]
[    5.353376] WARNING: CPU: 1 PID: 491 at
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:487
dal_ddc_open+0x2c/0xd0 [amdgpu]

I never get the hang during a boot. I will report that as a separate bug.

The display I am using is a IIYama Prolite XUB2792QSU using Displayport. It it a 27" 2560x1440 monitor.
The distrubution is Slackware-current. ("pre 15.0")

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

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

#6 lore raw
In reply to [email protected]

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

--- Comment #5 from [email protected] ---
Created attachment 138448
--> https://bugs.freedesktop.org/attachment.cgi?id=138448&action=edit
dmesg of drm-next-4.17-wip (date of clone 2018-03-29)

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

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

#7 lore raw
In reply to [email protected]

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

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from [email protected] ---
running 4.17.1 on a asus rx480 i also get this

I do not see any hang or problem due to this warning/oops

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

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

#8 lore raw
In reply to [email protected]

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

Marc Thomas <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Marc Thomas <[email protected]> --- I also see the WARNING messages in 4.17.10 and 4.18-rc6:

# grep WARNING dmesg.4.18.0-rc6
[    9.167769] WARNING: CPU: 4 PID: 1133 at
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_base.c:64
dal_gpio_open_ex+0xc/0x30 [amdgpu]
[    9.184735] WARNING: CPU: 4 PID: 1133 at
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:488
dal_ddc_open+0x31/0xe0 [amdgpu]
[    9.246097] WARNING: CPU: 10 PID: 1134 at
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:88
dm_dp_aux_transfer+0xa5/0xb0 [amdgpu]
[    9.411094] WARNING: CPU: 4 PID: 1133 at
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:88
dm_dp_aux_transfer+0xa5/0xb0 [amdgpu]

This is on an Ryzen 2700x based system with an RX480 GPU, connected to an IIyama ProLite XB2380HS via DVI.

I'm also running Slackware-current Linux, so I wonder whether it's something in Slackware's kernel config.

PS: This may be the same as Bug 106164.

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

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

#9 lore raw
In reply to [email protected]

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

--- Comment #8 from Marc Thomas <[email protected]> --- After some testing/experimentation/and scouring the internet, I've found that blacklisting modules gpio_amdpt (gpio-amdpt.ko) & pinctrl_amd (pinctrl-amd.ko) greatly reduce the likelihood of the gpio_base.c:64 & gpio_service.c:488 dmesg warnings. I suspect some kind of race condition during boot as the modules may load in any order.

In Slackware-current I think pinctrl_amd was compiled in, so I had to change the Kernel config and re-compile:

-CONFIG_PINCTRL_AMD=y
+CONFIG_PINCTRL_AMD=m

The blacklist was achieved by creating this file:

root@deepthought:~# cat /etc/modprobe.d/gpio_amdpt.conf 
blacklist gpio_amdpt
blacklist pinctrl_amd

NB: I found that once I'd had these kernel warnings I needed to reset the hardware (front panel reset button or power cycle) to clear them, even with the blacklist in place. A reboot didn't seem to be enough.

Finally, I do still get this warning (in 4.18-rc6 & 4.17.10), but I think the cause is something else:

root@deepthought:~# dmesg | grep WARNING
[    9.260098] WARNING: CPU: 15 PID: 1138 at
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:88
dm_dp_aux_transfer+0xa5/0xb0 [amdgpu]
[    9.260163] WARNING: CPU: 4 PID: 1142 at
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:88
dm_dp_aux_transfer+0xa5/0xb0 [amdgpu]
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#10 lore raw
In reply to [email protected]

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

--- Comment #9 from Alex Deucher <[email protected]> --- (In reply to Marc Thomas from comment #8)

Quoted 5 lines

After some testing/experimentation/and scouring the internet, I've found that blacklisting modules gpio_amdpt (gpio-amdpt.ko) & pinctrl_amd (pinctrl-amd.ko) greatly reduce the likelihood of the gpio_base.c:64 & gpio_service.c:488 dmesg warnings. I suspect some kind of race condition during boot as the modules may load in any order.

It's possible that there are issues with gpio-amdpt and pinctrl-amd that lead to general system stability issues, but it should be noted the the gpio stuff in amdgpu is completely unrelated to those modules.

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

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

#11 lore raw
In reply to [email protected]

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

--- Comment #10 from Marc Thomas <[email protected]> --- (In reply to Alex Deucher from comment #9)

Quoted 3 lines

It's possible that there are issues with gpio-amdpt and pinctrl-amd that lead to general system stability issues, but it should be noted the the gpio stuff in amdgpu is completely unrelated to those modules.

I think you're right - I still do get these warnings in 4.18.9 even with the modules blacklisted; just not all the time.

Interestingly I found the other warning I get from amdgpu_dm/amdgpu_dm_mst_types.c can be provoked by running "xcmddc -lv". It seems udevd does this during boot. See also bug 107456.

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

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

#13 lore raw
In reply to [email protected]

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

Petr Cvek <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #12 from Petr Cvek <[email protected]> --- Created attachment 142485
--> https://bugs.freedesktop.org/attachment.cgi?id=142485&action=edit
Suggested fix with a semaphore

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

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

#14 lore raw
In reply to [email protected]

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

--- Comment #13 from Petr Cvek <[email protected]> --- Comment on attachment 142485
--> https://bugs.freedesktop.org/attachment.cgi?id=142485
Suggested fix with a semaphore

It seems there is a race condition between multiple threads which calls dal_ddc_open(). With attached patch (testing only, ugly) there are no warnings anymore.

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

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

#15 lore raw
In reply to [email protected]

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

--- Comment #14 from [email protected] ---
I am now running 4.19.4 and did not get the messages anymore. The messages where there from 4.5.11 to 4.18.16

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

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

#16 lore raw
In reply to [email protected]

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

--- Comment #15 from Petr Cvek <[email protected]> --- (In reply to hjpriester from comment #14)

Quoted 2 lines

I am now running 4.19.4 and did not get the messages anymore. The messages where there from 4.5.11 to 4.18.16

I've got the warnings with vanilla 4.20-rc2 (-next-20181113) on RX460 card.

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

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

#17 lore raw
In reply to [email protected]

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

Martin Peres <[email protected]> changed:

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

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

--- Comment #16 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/drm/amd/issues/336.

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

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