NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57079: videcards from the radeon oland family have no VCE



>Number:         57079
>Category:       kern
>Synopsis:       videcards from the radeon oland family have no VCE
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Nov 09 20:00:00 +0000 2022
>Originator:     Onno van der Linden <o.vd.linden%quicknet.nl@localhost>
>Release:        NetBSD 9.99.104
>Environment:
System: NetBSD sheep 9.99.104 NetBSD 9.99.104 (SHEEPRAD) #0: Tue Nov 8 19:55:36 CET 2022 root@sheep:/usr/src/sys/arch/amd64/compile/SHEEPRAD amd64
Architecture: x86_64
Machine: amd64
>Description:
Booting current with an AMD Radeon R7 240 videocard in a machine with
an Intel Haswell chipset gives me 2 errors:

[     3.686110] radeon0: autoconfiguration error: error: failed VCE resume (-60).

and

[     3.686110] [drm] radeon: irq initialized.
[     3.966110] {drm:netbsd:r600_ring_test+0x244} *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[     3.966110] radeon0: autoconfiguration error: error: disabling GPU acceleration

No idea yet about the last error, fix for the first one was fairly easy to find.

>How-To-Repeat:

Boot my machine.

>Fix:
https://cgit.freedesktop.org/drm/drm-tip/patch/drivers/gpu/drm/radeon?id=7e6435c14a426ccb7bedea179fe0e8666c4ea1b8

--- /usr/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_asic.c.orig	2021-12-19 00:45:43.000000000 +0100
+++ /usr/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_asic.c	2022-11-09 19:30:35.964524655 +0100
@@ -2504,6 +2504,9 @@
 		if (rdev->family == CHIP_HAINAN) {
 			rdev->has_uvd = false;
 			rdev->has_vce = false;
+		} else if (rdev->family == CHIP_OLAND) {
+			rdev->has_uvd = true;
+			rdev->has_vce = false;
 		} else {
 			rdev->has_uvd = true;
 			rdev->has_vce = true;
--- /usr/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_vce.c.orig	2021-12-19 00:45:43.000000000 +0100
+++ /usr/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_vce.c	2022-11-09 19:21:19.305588662 +0100
@@ -111,7 +111,6 @@
 	case CHIP_TAHITI:
 	case CHIP_PITCAIRN:
 	case CHIP_VERDE:
-	case CHIP_OLAND:
 	case CHIP_ARUBA:
 		fw_name = FIRMWARE_TAHITI;
 		break;
--- /usr/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_vce_v1_0.c.orig	2021-12-19 00:45:43.000000000 +0100
+++ /usr/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_vce_v1_0.c	2022-11-09 19:22:02.565502470 +0100
@@ -173,7 +173,6 @@
 		chip_id = 0x01000015;
 		break;
 	case CHIP_PITCAIRN:
-	case CHIP_OLAND:
 		chip_id = 0x01000016;
 		break;
 	case CHIP_ARUBA:

>Unformatted:
 Submitter-Id:	net
 Originator:	
 Organization:
 Confidential:	no
 Synopsis: videcards from the radeon oland family have no VCE



Home | Main Index | Thread Index | Old Index