diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2022-09-29 22:09:01 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2022-10-03 06:45:35 -0700 |
commit | c3d5cfe7b978acea8c0613fb3a068d376ad93463 (patch) | |
tree | 1bf933cfb6dbc97b3e187ece3cb695be50d0ee03 /drivers/fpga/socfpga.c | |
parent | dbb2ffbfd708b2d0f1b7fe0083c5e3333d0fe35b (diff) | |
download | linux-stable-c3d5cfe7b978acea8c0613fb3a068d376ad93463.tar.gz linux-stable-c3d5cfe7b978acea8c0613fb3a068d376ad93463.tar.bz2 linux-stable-c3d5cfe7b978acea8c0613fb3a068d376ad93463.zip |
drm/i915: Fix __gen125_emit_bb_start() without WA
ce->wa_bb_page is allocated only for graphics version 12. However
__gen125_emit_bb_start() is used for any graphics version >= 12.50. For
the currently supported platforms this is not an issue, but for future
ones there's a mismatch causing the jump to
`wa_offset + DG2_PREDICATE_RESULT_BB` to be invalid since wa_offset is
not correct.
As in other places in the driver, check for graphics version "greater or
equal" to future-proof the support for new platforms.
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220930050903.3479619-2-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/fpga/socfpga.c')
0 files changed, 0 insertions, 0 deletions