diff options
| author | Karol Wachowski <karol.wachowski@linux.intel.com> | 2026-10-12 10:09:33 +0200 |
|---|---|---|
| committer | Karol Wachowski <karol.wachowski@linux.intel.com> | 2026-10-14 08:02:27 +0200 |
| commit | f1e5c3a046e61b0dbfcba2e91bc7a94d115d9ace (patch) | |
| tree | 68cc546804c58f1f1d266478a5a622ee97301b7d /include | |
| parent | 34081b8bbbbfb9adbe04f764f718de04df23a84a (diff) | |
accel/ivpu: Cache FW API version and simplify API check macros
Copy the API version array from the firmware image header into
struct ivpu_fw_info while the header is being parsed, and use the
cached copy afterwards. This way the raw firmware image header is only
accessed during image parsing, which is a step towards releasing the
firmware image once it has been loaded.
Since the API version is now available in vdev->fw before the
compatibility checks run, drop the redundant fw_hdr parameter from
IVPU_FW_CHECK_API_COMPAT(), IVPU_FW_CHECK_API_VER_LT() and the helpers
behind them, as well as from ivpu_fw_sched_mode_select().
Also make DRM_IVPU_PARAM_FW_API_VERSION read the cached copy instead of
dereferencing the firmware image directly.
No functional change.
Co-developed-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://patch.msgid.link/20261012080933.2771862-1-karol.wachowski@linux.intel.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
