Browse Source

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 years ago
parent
commit
963e12e58f
1 changed files with 2 additions and 0 deletions
  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)) {
 		} else if (!strcmp("vidscfw", sinfo->name)) {
 			sinfo->subcache = llcc_slice_getd(LLCC_VIDFW);
 			sinfo->subcache = llcc_slice_getd(LLCC_VIDFW);
 		} else if (!strcmp("vidvsp", sinfo->name)) {
 		} else if (!strcmp("vidvsp", sinfo->name)) {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0))
 			sinfo->subcache = llcc_slice_getd(LLCC_VIDVSP);
 			sinfo->subcache = llcc_slice_getd(LLCC_VIDVSP);
+#endif
 		} else {
 		} else {
 			d_vpr_e("Invalid subcache name %s\n",
 			d_vpr_e("Invalid subcache name %s\n",
 					sinfo->name);
 					sinfo->name);