Files
linux/drivers/gpu/drm/xe
Lucas De Marchi 459a0ce8dc drm/xe/pcode: Rework error mapping
The sparse array used for error decoding from is unnecessarily big. It
should be better handled by a switch statement that will also allow us
to more easily improve this code.

Add a CASE_ERR() macro to keep the table compact and use it instead of
the 256-entries array, which saves some space:

	$ bloat-o-meter xe_pcode.o.old xe_pcode.o
	add/remove: 0/1 grow/shrink: 2/0 up/down: 190/-4096 (-3906)
	Function                                     old     new   delta
	__pcode_mailbox_rw                           363     465    +102
	__pcode_mailbox_rw.cold                       58     146     +88
	err_decode                                  4096       -   -4096
	Total: Before=7890, After=3984, chg -49.51%

Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://patch.msgid.link/20251110-pcode-errmap-v2-1-cb18c8f54238@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
2025-11-12 08:57:27 -08:00
..
2025-11-04 09:04:29 -08:00
2024-05-09 21:28:25 +02:00
2025-10-15 15:27:43 +01:00
2025-10-21 13:23:16 +02:00
2025-06-27 14:52:31 -07:00
2025-07-01 13:58:50 -07:00
2025-09-02 22:23:08 -07:00
2025-11-04 09:04:29 -08:00
2024-05-13 21:36:50 +02:00
2025-11-04 09:04:29 -08:00
2025-06-27 14:52:31 -07:00
2024-05-22 12:03:55 +02:00
2025-10-23 07:11:38 -07:00
2025-11-10 10:03:58 -05:00
2025-11-12 08:57:27 -08:00
2025-01-27 08:54:06 -08:00
2025-09-23 08:07:05 -07:00
2025-02-03 11:51:26 -08:00
2024-05-13 21:36:52 +02:00
2025-11-04 09:04:29 -08:00
2025-06-27 14:52:31 -07:00
2025-07-28 10:22:28 -04:00
2025-09-15 17:51:07 +10:00