summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAditya Swarup <aditya.swarup@intel.com>2020-12-03 10:23:59 +0300
committerLucas De Marchi <lucas.demarchi@intel.com>2020-12-18 05:24:19 +0300
commit0a982c15711ec03d77a6f11b33559be76323fb16 (patch)
treef99a6e4bb530ce301b774cbc3be672dfe975fdd9 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent83dbd74f8243f020d1ad8a3a3b3cd0795067920e (diff)
downloadlinux-0a982c15711ec03d77a6f11b33559be76323fb16.tar.xz
drm/i915/tgl: Add bound checks and simplify TGL REVID macros
Add bound checks for TGL REV ID array. Since, there might be a possibility of using older kernels on latest platform revisions, resulting in out of bounds access for rev ID array. In this scenario, use the latest rev ID available and apply those WAs. Also, modify GT macros for TGL rev ID to reuse tgl_revids_get(). Cc: José Roberto de Souza <jose.souza@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Jani Nikula <jani.nikula@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Aditya Swarup <aditya.swarup@intel.com> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201203072359.156682-2-aditya.swarup@intel.com
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions