Skip to contentSkip to conversation

accel/ivpu: Don't enable any tiles by default on VPU40xx

PATCH Superseded Jacek Lawrynowicz 3 participants 5 messages Feb 20, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/ivpu: Don't enable any tiles by default on VPU40xx

From: Andrzej Kacprowski <[email protected]>

There is no point in requesting 1 tile on VPU40xx as the FW will probably need more tiles to run workloads, so it will have to reconfigure PLL anyway. Don't enable any tiles and allow the FW to perform initial tile configuration.

This improves NPU boot stability as the tiles are always enabled only by the FW from the same initial state.

Fixes 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4")
---
 drivers/accel/ivpu/ivpu_hw_40xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/ivpu/ivpu_hw_40xx.c +1 -1
index 1c995307c113..a1523d0b1ef3 100644
@@ -24,7 +24,7 @@
 #define SKU_HW_ID_SHIFT              16u
 #define SKU_HW_ID_MASK               0xffff0000u
 
-#define PLL_CONFIG_DEFAULT           0x1
+#define PLL_CONFIG_DEFAULT           0x0
 #define PLL_CDYN_DEFAULT             0x80
 #define PLL_EPP_DEFAULT              0x80
 #define PLL_REF_CLK_FREQ	     (50 * 1000000)
Signature · 1 line
2.43.0
#1 lore raw
FYI: kernel test robot notices the stable kernel rule is not satisfied.

Hi,

Thanks for your patch.

FYI: kernel test robot notices the stable kernel rule is not satisfied.

The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Rule: add the tag "Cc: [email protected]" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH] accel/ivpu: Don't enable any tiles by default on VPU40xx

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#2 lore raw

PATCH v2 1/1 accel/ivpu: Don't enable any tiles by default on VPU40xx

In reply to Jacek Lawrynowicz

From: Andrzej Kacprowski <[email protected]>

There is no point in requesting 1 tile on VPU40xx as the FW will probably need more tiles to run workloads, so it will have to reconfigure PLL anyway. Don't enable any tiles and allow the FW to perform initial tile configuration.

This improves NPU boot stability as the tiles are always enabled only by the FW from the same initial state.

Fixes 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4")
---
 drivers/accel/ivpu/ivpu_hw_40xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/ivpu/ivpu_hw_40xx.c +1 -1
index 1c995307c113..a1523d0b1ef3 100644
@@ -24,7 +24,7 @@
 #define SKU_HW_ID_SHIFT              16u
 #define SKU_HW_ID_MASK               0xffff0000u
 
-#define PLL_CONFIG_DEFAULT           0x1
+#define PLL_CONFIG_DEFAULT           0x0
 #define PLL_CDYN_DEFAULT             0x80
 #define PLL_EPP_DEFAULT              0x80
 #define PLL_REF_CLK_FREQ	     (50 * 1000000)
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#3 lore raw
Quoted 7 lines · Jacek Lawrynowicz

From: Andrzej Kacprowski <[email protected]>

There is no point in requesting 1 tile on VPU40xx as the FW will probably need more tiles to run workloads, so it will have to reconfigure PLL anyway. Don't enable any tiles and allow the FW to perform initial tile configuration.

Quoted 8 lines

This improves NPU boot stability as the tiles are always enabled only by the FW from the same initial state.

Fixes 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4")

---

author Applied
#4 lore raw
In reply to Jacek Lawrynowicz

Applied to drm-misc-fixes

Quoted 31 lines · Jacek Lawrynowicz

From: Andrzej Kacprowski <[email protected]>

There is no point in requesting 1 tile on VPU40xx as the FW will probably need more tiles to run workloads, so it will have to reconfigure PLL anyway. Don't enable any tiles and allow the FW to perform initial tile configuration.

This improves NPU boot stability as the tiles are always enabled only by the FW from the same initial state.

Fixes 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4")
---
 drivers/accel/ivpu/ivpu_hw_40xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/ivpu/ivpu_hw_40xx.c +1 -1
index 1c995307c113..a1523d0b1ef3 100644
@@ -24,7 +24,7 @@
 #define SKU_HW_ID_SHIFT              16u
 #define SKU_HW_ID_MASK               0xffff0000u
 
-#define PLL_CONFIG_DEFAULT           0x1
+#define PLL_CONFIG_DEFAULT           0x0
 #define PLL_CDYN_DEFAULT             0x80
 #define PLL_EPP_DEFAULT              0x80
 #define PLL_REF_CLK_FREQ	     (50 * 1000000)