Skip to content

Commit ce68f86

Browse files
kwachowsjlawryno
authored andcommitted
accel/ivpu: Do not fail when more than 1 tile is fused
Allow TILE_FUSE register to disable more than 1 tile. The driver should not prevent such configurations from being functional. Signed-off-by: Karol Wachowski <[email protected]> Reviewed-by: Jacek Lawrynowicz <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a2f5990 commit ce68f86

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

drivers/accel/ivpu/ivpu_hw_btrs.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,10 @@ static int read_tile_config_fuse(struct ivpu_device *vdev, u32 *tile_fuse_config
141141
}
142142

143143
config = REG_GET_FLD(VPU_HW_BTRS_LNL_TILE_FUSE, CONFIG, fuse);
144-
if (!tile_disable_check(config)) {
145-
ivpu_err(vdev, "Fuse: Invalid tile disable config (0x%x)\n", config);
146-
return -EIO;
147-
}
144+
if (!tile_disable_check(config))
145+
ivpu_warn(vdev, "More than 1 tile disabled, tile fuse config mask: 0x%x\n", config);
148146

149-
if (config)
150-
ivpu_dbg(vdev, MISC, "Fuse: %d tiles enabled. Tile number %d disabled\n",
151-
BTRS_LNL_TILE_MAX_NUM - 1, ffs(config) - 1);
152-
else
153-
ivpu_dbg(vdev, MISC, "Fuse: All %d tiles enabled\n", BTRS_LNL_TILE_MAX_NUM);
147+
ivpu_dbg(vdev, MISC, "Tile disable config mask: 0x%x\n", config);
154148

155149
*tile_fuse_config = config;
156150
return 0;

0 commit comments

Comments
 (0)