summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-11-29 10:28:29 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-14 10:55:02 -0500
commita018298ff850effd3a8494c839449150aef0934a (patch)
treebffd11fbe5066be0eb151b0f77cb1a6d63c5734b /drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c
parent3f4e3a282e1235a9ab46d063b0902c00b6afc6a9 (diff)
downloadop-kernel-dev-a018298ff850effd3a8494c839449150aef0934a.zip
op-kernel-dev-a018298ff850effd3a8494c839449150aef0934a.tar.gz
drm/amd/display: Add disclaimer to BW and DML code provided by HW
This code can sometimes look troubling but we trust it as it comes from HW teams with a guarantee of correctness. Add a note to these files to explain this. v2: thing -> things Signed-off-by: Harry Wentland <harry.wentland@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/display/dc/dml/display_rq_dlg_calc.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c b/drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c
index 8ba962d..325dd2b 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_calc.c
@@ -27,6 +27,15 @@
#include "display_mode_vba.h"
#include "display_rq_dlg_calc.h"
+/*
+ * NOTE:
+ * This file is gcc-parseable HW gospel, coming straight from HW engineers.
+ *
+ * It doesn't adhere to Linux kernel style and sometimes will do things in odd
+ * ways. Unless there is something clearly wrong with it the code should
+ * remain as-is as it provides us with a guarantee from HW that it is correct.
+ */
+
static void calculate_ttu_cursor(struct display_mode_lib *mode_lib,
double *refcyc_per_req_delivery_pre_cur,
double *refcyc_per_req_delivery_cur,
OpenPOWER on IntegriCloud