accel/ivpu: Print information about used workarounds
[platform/kernel/linux-starfive.git] / drivers / accel / ivpu / ivpu_drv.h
index 2adc349..6853dfe 100644 (file)
 
 #define IVPU_WA(wa_name) (vdev->wa.wa_name)
 
+#define IVPU_PRINT_WA(wa_name) do {                                    \
+       if (IVPU_WA(wa_name))                                           \
+               ivpu_dbg(vdev, MISC, "Using WA: " #wa_name "\n");       \
+} while (0)
+
 struct ivpu_wa_table {
        bool punit_disabled;
        bool clear_runtime_mem;