summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2017-07-05 15:33:00 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-07-14 11:06:26 -0400
commit9b7b8154cdb8225cbef2f470285fd97ddbd34a44 (patch)
treeaef77ef82712940cb9a93c85aa85253de00a4fd7 /drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
parent209ee27e9ba35c53e18284c7bb5ac2ba6a2fcd22 (diff)
downloadtalos-obmc-linux-9b7b8154cdb8225cbef2f470285fd97ddbd34a44.tar.gz
talos-obmc-linux-9b7b8154cdb8225cbef2f470285fd97ddbd34a44.zip
drm/amd/powerplay: added didt support for vega10
Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc/pp_debug.h')
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/pp_debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h b/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
index f3f9ebb631a5..822cd8b5bf90 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
@@ -42,6 +42,12 @@
} \
} while (0)
+#define PP_ASSERT(cond, msg) \
+ do { \
+ if (!(cond)) { \
+ pr_warn("%s\n", msg); \
+ } \
+ } while (0)
#define PP_DBG_LOG(fmt, ...) \
do { \
OpenPOWER on IntegriCloud