]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
accel/ivpu: Update FW BOOT API headers
authorWachowski, Karol <karol.wachowski@intel.com>
Tue, 11 Jun 2024 12:04:25 +0000 (14:04 +0200)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Fri, 14 Jun 2024 07:14:11 +0000 (09:14 +0200)
This commit bumps BOOT API version to 3.24

Signed-off-by: Wachowski, Karol <karol.wachowski@intel.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240611120433.1012423-9-jacek.lawrynowicz@linux.intel.com
drivers/accel/ivpu/vpu_boot_api.h

index 87cac7bc730ad530047435e47938b824746845cc..82954b91b7481c26bd6d2a68020cd512ee4fdee7 100644 (file)
@@ -27,7 +27,7 @@
  * Minor version changes when API backward compatibility is preserved.
  * Resets to 0 if Major version is incremented.
  */
-#define VPU_BOOT_API_VER_MINOR 22
+#define VPU_BOOT_API_VER_MINOR 24
 
 /*
  * API header changed (field names, documentation, formatting) but API itself has not been changed
@@ -80,6 +80,11 @@ struct vpu_firmware_header {
        u32 preemption_buffer_2_size;
        /* Space reserved for future preemption-related fields. */
        u32 preemption_reserved[6];
+       /* FW image read only section start address, 4KB aligned */
+       u64 ro_section_start_address;
+       /* FW image read only section size, 4KB aligned */
+       u32 ro_section_size;
+       u32 reserved;
 };
 
 /*
@@ -333,7 +338,14 @@ struct vpu_boot_params {
         * The KMD is required to update this value on every VPU reset.
         */
        u64 system_time_us;
-       u32 pad4[18];
+       u32 pad4[2];
+       /*
+        * The delta between device monotonic time and the current value of the
+        * HW timestamp register, in ticks. Written by the firmware during boot.
+        * Can be used by the KMD to calculate device time.
+        */
+       u64 device_time_delta_ticks;
+       u32 pad7[14];
        /* Warm boot information: 0x400 - 0x43F */
        u32 warm_boot_sections_count;
        u32 warm_boot_start_address_reference;