New error/warning: amd_gpio AMDI0030:00: Invalid config param 0014

I have a new error/warning in the journal with kernel 6.1.40 and 6.4.5:

kernel: amd_gpio AMDI0030:00: Invalid config param 0014

That error/warning shows up once every boot and it is new.

Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2 driver: X:
    loaded: amdgpu dri: radeonsi gpu: amdgpu resolution: 2560x1440~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.4 renderer: AMD Radeon RX 5600 XT (navi10
    LLVM 15.0.7 DRM 3.49 6.1.40-273.1-tkg-cfs)

I do not see any misbehaviour. Therefore I assume it is harmless. Nevertheless I want to mention it here.

4 Likes

I’m getting the same on my RX 590. I didn’t have this error messaging before.

[ricklinux@eos-plasma ~]$ journalctl -p 3 -b
Jul 24 21:22:38 eos-plasma kernel: amd_gpio AMDI0030:00: Invalid config param 0014
1 Like

I can confirm this as well.

Update:
A patch is already on the way.

https://lore.kernel.org/lkml/20230717201652.17168-1-mario.limonciello@amd.com/T/

4 Likes

Thanks for mentioning this patch.
I applied the patch to 6.1.41 and it works fine. Message is gone.

2 Likes

How does one apply the patch? Not sure i would be able to do it? Not something i have done before.

Edit: Not even sure i know exactly what the patch is?

@ricklinux I’m guessing that @mbod is referring to kernel live patching (which can be done with a tool called kpatch in the AUR) though I could be wrong.

I’m not familiar with the process so was just asking. :slightly_smiling_face:

3 Likes

Interesting. Wish i could understand it better. :wink:

same here :wink:

got the same warning on boot up here now… (on default arch kernel at least)

This is the patch:

dont-show-invalid-config-parms.patch
* [PATCH] pinctrl: amd: Don't show `Invalid config param` errors
@ 2023-07-17 20:16 Mario Limonciello
  2023-07-23 19:41 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Limonciello @ 2023-07-17 20:16 UTC (permalink / raw)
  To: linus.walleij
  Cc: Basavaraj.Natikar, Shyam-sundar.S-k, linux-gpio, linux-kernel,
	mario.limonciello

On some systems amd_pinconf_set() is called with parameters
0x8 (PIN_CONFIG_DRIVE_PUSH_PULL) or 0x14 (PIN_CONFIG_PERSIST_STATE)
which are not supported by pinctrl-amd.

Don't show an err message when called with an invalid parameter,
downgrade this to debug instead.

Cc: stable@vger.kernel.org # 6.1
Fixes: 635a750d958e1 ("pinctrl: amd: Use amd_pinconf_set() for all config options")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/pinctrl/pinctrl-amd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
index 4a8c1b57a90d6..20bd97a603d9c 100644
--- a/drivers/pinctrl/pinctrl-amd.c
+++ b/drivers/pinctrl/pinctrl-amd.c
@@ -748,7 +748,7 @@ static int amd_pinconf_get(struct pinctrl_dev *pctldev,
 		break;
 
 	default:
-		dev_err(&gpio_dev->pdev->dev, "Invalid config param %04x\n",
+		dev_dbg(&gpio_dev->pdev->dev, "Invalid config param %04x\n",
 			param);
 		return -ENOTSUPP;
 	}
@@ -798,7 +798,7 @@ static int amd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
 			break;
 
 		default:
-			dev_err(&gpio_dev->pdev->dev,
+			dev_dbg(&gpio_dev->pdev->dev,
 				"Invalid config param %04x\n", param);
 			ret = -ENOTSUPP;
 		}
-- 
2.34.1

It is basically the email from the LKML.

I am using the linux-tkg kernel as my default kernel: https://github.com/Frogging-Family/linux-tkg
And the linux-tkg kernel build process provides an option to apply user patches. That’s it. Very simple. Very convenient.

By the way: Why do I use the linux-tkg kernel? I like the zen kernel. Specifically the changes it does to the CFS scheduler. But there is no zen kernel for the linux-lts branch. Here comes the linux-tkg kernel. It provides “zenify” patches for linux-lts.

5 Likes

Maybe not related but I’ve had tons of these GPU soft resets lately with x5600+RX6600.

 kernel: amdgpu 0000:08:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32770, for process pic>
 kernel: amdgpu 0000:08:00.0: amdgpu:   in page starting at address 0x000080050489f000 from client 0x1b (UTCL2)
 kernel: amdgpu 0000:08:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00101031
 kernel: amdgpu 0000:08:00.0: amdgpu:          Faulty UTCL2 client ID: TCP (0x8)
 kernel: amdgpu 0000:08:00.0: amdgpu:          MORE_FAULTS: 0x1
 kernel: amdgpu 0000:08:00.0: amdgpu:          WALKER_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          PERMISSION_FAULTS: 0x3
 kernel: amdgpu 0000:08:00.0: amdgpu:          MAPPING_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          RW: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32770, for process pic>
 kernel: amdgpu 0000:08:00.0: amdgpu:   in page starting at address 0x000080050424e000 from client 0x1b (UTCL2)
 kernel: amdgpu 0000:08:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000
 kernel: amdgpu 0000:08:00.0: amdgpu:          Faulty UTCL2 client ID: CB/DB (0x0)
 kernel: amdgpu 0000:08:00.0: amdgpu:          MORE_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          WALKER_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          PERMISSION_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          MAPPING_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          RW: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32770, for process pic>
 kernel: amdgpu 0000:08:00.0: amdgpu:   in page starting at address 0x000080050489e000 from client 0x1b (UTCL2)
 kernel: amdgpu 0000:08:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000
 kernel: amdgpu 0000:08:00.0: amdgpu:          Faulty UTCL2 client ID: CB/DB (0x0)
 kernel: amdgpu 0000:08:00.0: amdgpu:          MORE_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          WALKER_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          PERMISSION_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          MAPPING_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          RW: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32770, for process pic>
 kernel: amdgpu 0000:08:00.0: amdgpu:   in page starting at address 0x000080050489a000 from client 0x1b (UTCL2)
 kernel: amdgpu 0000:08:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000
 kernel: amdgpu 0000:08:00.0: amdgpu:          Faulty UTCL2 client ID: CB/DB (0x0)
 kernel: amdgpu 0000:08:00.0: amdgpu:          MORE_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          WALKER_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          PERMISSION_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          MAPPING_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          RW: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32770, for process pic>
 kernel: amdgpu 0000:08:00.0: amdgpu:   in page starting at address 0x000080050489b000 from client 0x1b (UTCL2)
 kernel: amdgpu 0000:08:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000
 kernel: amdgpu 0000:08:00.0: amdgpu:          Faulty UTCL2 client ID: CB/DB (0x0)
 kernel: amdgpu 0000:08:00.0: amdgpu:          MORE_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          WALKER_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          PERMISSION_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          MAPPING_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          RW: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32770, for process pic>
 kernel: amdgpu 0000:08:00.0: amdgpu:   in page starting at address 0x0000800108e6e000 from client 0x1b (UTCL2)
 kernel: amdgpu 0000:08:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000
 kernel: amdgpu 0000:08:00.0: amdgpu:          Faulty UTCL2 client ID: CB/DB (0x0)
 kernel: amdgpu 0000:08:00.0: amdgpu:          MORE_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          WALKER_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          PERMISSION_FAULTS: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          MAPPING_ERROR: 0x0
 kernel: amdgpu 0000:08:00.0: amdgpu:          RW: 0x0
 kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, but soft recovered


These are nothing new with this GPU but lately they have been happening more frequently than usual.

In this case failing “process” is Picom but it happens also without compositor and then culprit can be almost any active process. This is only a wild guess after last 2-3 Firefox versions I’ve had lots of more these crashes.

Could be bad memory getting worse.

Yeah could be vram or anything, It is really hard to debug :frowning_face: My brother has RX6700 and he has lot’s of hard reset even on windblows. The only positive thing is that these resets never happen while gaming, no matter how demanding it is.

Have you checked for any UEFI Bios updates?

UEFI it is latest and greatest. If I remember correctly those errors started soon after kernel 5.19, before that it was stable. Also in Gitlab there are hundreds of posts about same kind of problems with 6600-series cards.

Possibly it’s probably firmware/kernel related. On my RX 590 all of dmesg is pristine and same with journalctl. I only have a couple of Kde related messages in the journal.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.