浏览代码

video-driver: Disabling VSP subcache for Halliday

VSP subcache support is not available in 5.10 kernel.
Hence needs to be disabled for Halliday.

Change-Id: I8e0905d537d8df3c72063b2e8dc5011d8e0ff785
Signed-off-by: Sachu George <[email protected]>
Sachu George 2 年之前
父节点
当前提交
963e12e58f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      driver/vidc/src/venus_hfi.c

+ 2 - 0
driver/vidc/src/venus_hfi.c

@@ -1742,7 +1742,9 @@ static int __init_subcaches(struct msm_vidc_core *core)
 		} else if (!strcmp("vidscfw", sinfo->name)) {
 			sinfo->subcache = llcc_slice_getd(LLCC_VIDFW);
 		} else if (!strcmp("vidvsp", sinfo->name)) {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0))
 			sinfo->subcache = llcc_slice_getd(LLCC_VIDVSP);
+#endif
 		} else {
 			d_vpr_e("Invalid subcache name %s\n",
 					sinfo->name);