Skip to contentSkip to conversation

accel/ivpu: Remove boot params address setting via MMIO register

PATCH Applied Andrzej Kacprowski 2 participants 3 messages Mar 5 – Mar 9

Subsystems (2)
lore
Share & tools
lore

Andrzej Kacprowski

author maintainer
#0 lore raw

PATCH 1/1 accel/ivpu: Remove boot params address setting via MMIO register

The NPU 60XX uses the default boot params location specified in the firmware image header, consistent with earlier generations. Remove the unnecessary MMIO register write, freeing the AON register for future use.

Fixes 44e4c88951fa ("accel/ivpu: Implement warm boot flow for NPU6 and unify boot handling")
---
 drivers/accel/ivpu/ivpu_hw_40xx_reg.h | 6 ------
 drivers/accel/ivpu/ivpu_hw_ip.c       | 1 -
 2 files changed, 7 deletions(-)
drivers/accel/ivpu/ivpu_hw_40xx_reg.h +0 -6
index 421242acb184..fc0ee8d637f9 100644
@@ -121,12 +121,6 @@
 #define VPU_50XX_HOST_SS_AON_PWR_ISLAND_STATUS_DLY			0x0003006cu
 #define VPU_50XX_HOST_SS_AON_PWR_ISLAND_STATUS_DLY_STATUS_DLY_MASK	GENMASK(7, 0)
 
-#define VPU_40XX_HOST_SS_AON_RETENTION0                                 0x0003000cu
-#define VPU_40XX_HOST_SS_AON_RETENTION1                                 0x00030010u
-#define VPU_40XX_HOST_SS_AON_RETENTION2                                 0x00030014u
-#define VPU_40XX_HOST_SS_AON_RETENTION3                                 0x00030018u
-#define VPU_40XX_HOST_SS_AON_RETENTION4                                 0x0003001cu
-
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN					0x00030200u
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN_EN_MASK				BIT_MASK(0)
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN_HW_PG_EN_MASK			BIT_MASK(1)
drivers/accel/ivpu/ivpu_hw_ip.c +0 -1
index 959984c54341..37f95a0551ed 100644
@@ -931,7 +931,6 @@ static int soc_cpu_boot_40xx(struct ivpu_device *vdev)
 
 static int soc_cpu_boot_60xx(struct ivpu_device *vdev)
 {
-	REGV_WR64(VPU_40XX_HOST_SS_AON_RETENTION1, vdev->fw->mem_bp->vpu_addr);
 	soc_cpu_set_entry_point_40xx(vdev, vdev->fw->cold_boot_entry_point);
 
 	return 0;
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 34 lines · Andrzej Kacprowski

The NPU 60XX uses the default boot params location specified in the firmware image header, consistent with earlier generations. Remove the unnecessary MMIO register write, freeing the AON register for future use.

Fixes 44e4c88951fa ("accel/ivpu: Implement warm boot flow for NPU6 and unify boot handling")
---
 drivers/accel/ivpu/ivpu_hw_40xx_reg.h | 6 ------
 drivers/accel/ivpu/ivpu_hw_ip.c       | 1 -
 2 files changed, 7 deletions(-)
drivers/accel/ivpu/ivpu_hw_40xx_reg.h +0 -6
index 421242acb184..fc0ee8d637f9 100644
@@ -121,12 +121,6 @@
 #define VPU_50XX_HOST_SS_AON_PWR_ISLAND_STATUS_DLY			0x0003006cu
 #define VPU_50XX_HOST_SS_AON_PWR_ISLAND_STATUS_DLY_STATUS_DLY_MASK	GENMASK(7, 0)
 
-#define VPU_40XX_HOST_SS_AON_RETENTION0                                 0x0003000cu
-#define VPU_40XX_HOST_SS_AON_RETENTION1                                 0x00030010u
-#define VPU_40XX_HOST_SS_AON_RETENTION2                                 0x00030014u
-#define VPU_40XX_HOST_SS_AON_RETENTION3                                 0x00030018u
-#define VPU_40XX_HOST_SS_AON_RETENTION4                                 0x0003001cu
-
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN					0x00030200u
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN_EN_MASK				BIT_MASK(0)
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN_HW_PG_EN_MASK			BIT_MASK(1)
drivers/accel/ivpu/ivpu_hw_ip.c +0 -0
index 959984c54341..37f95a0551ed 100644

drivers/accel/ivpu/ivpu_hw_ip.c static int soc_cpu_boot_40xx(struct ivpu_device *vdev) · line 936

Quoted 7 lines
drivers/accel/ivpu/ivpu_hw_ip.c +0 -1
@@ -931,7 +931,6 @@ static int soc_cpu_boot_40xx(struct ivpu_device *vdev)
 
 static int soc_cpu_boot_60xx(struct ivpu_device *vdev)
 {
-	REGV_WR64(VPU_40XX_HOST_SS_AON_RETENTION1, vdev->fw->mem_bp->vpu_addr);
 	soc_cpu_set_entry_point_40xx(vdev, vdev->fw->cold_boot_entry_point);
 
 	return 0;
maintainer Applied
#2 lore raw
Quoted 36 lines · Karol Wachowski
Quoted 35 lines · Andrzej Kacprowski

The NPU 60XX uses the default boot params location specified in the firmware image header, consistent with earlier generations. Remove the unnecessary MMIO register write, freeing the AON register for future use.

Fixes 44e4c88951fa ("accel/ivpu: Implement warm boot flow for NPU6 and unify boot handling")
---
 drivers/accel/ivpu/ivpu_hw_40xx_reg.h | 6 ------
 drivers/accel/ivpu/ivpu_hw_ip.c       | 1 -
 2 files changed, 7 deletions(-)
drivers/accel/ivpu/ivpu_hw_40xx_reg.h +0 -6
index 421242acb184..fc0ee8d637f9 100644
@@ -121,12 +121,6 @@
 #define VPU_50XX_HOST_SS_AON_PWR_ISLAND_STATUS_DLY			0x0003006cu
 #define VPU_50XX_HOST_SS_AON_PWR_ISLAND_STATUS_DLY_STATUS_DLY_MASK	GENMASK(7, 0)
 
-#define VPU_40XX_HOST_SS_AON_RETENTION0                                 0x0003000cu
-#define VPU_40XX_HOST_SS_AON_RETENTION1                                 0x00030010u
-#define VPU_40XX_HOST_SS_AON_RETENTION2                                 0x00030014u
-#define VPU_40XX_HOST_SS_AON_RETENTION3                                 0x00030018u
-#define VPU_40XX_HOST_SS_AON_RETENTION4                                 0x0003001cu
-
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN					0x00030200u
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN_EN_MASK				BIT_MASK(0)
 #define VPU_40XX_HOST_SS_AON_IDLE_GEN_HW_PG_EN_MASK			BIT_MASK(1)
drivers/accel/ivpu/ivpu_hw_ip.c +0 -0
index 959984c54341..37f95a0551ed 100644
@@ -931,7 +931,6 @@ static int soc_cpu_boot_40xx(struct ivpu_device *vdev)
 
Quoted 7 lines

drivers/accel/ivpu/ivpu_hw_ip.c static int soc_cpu_boot_40xx(struct ivpu_device *vdev) · line 936

Quoted 6 lines
drivers/accel/ivpu/ivpu_hw_ip.c +0 -1
 static int soc_cpu_boot_60xx(struct ivpu_device *vdev)
 {
-	REGV_WR64(VPU_40XX_HOST_SS_AON_RETENTION1, vdev->fw->mem_bp->vpu_addr);
 	soc_cpu_set_entry_point_40xx(vdev, vdev->fw->cold_boot_entry_point);
 
 	return 0;

Pushed to drm-misc-next, thanks.