When setting the island up for OSPM_GL3_CACHE_ISLAND the code was not
protected when the config is not enabled
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Reviewed-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
u32 cnt = 0;
unsigned long flags;
+#ifndef CONFIG_MDFD_GL3
+ hw_islands &= ~OSPM_GL3_CACHE_ISLAND;
+#endif
if (hw_islands & (OSPM_GRAPHICS_ISLAND | OSPM_VIDEO_ENC_ISLAND |
OSPM_VIDEO_DEC_ISLAND | OSPM_GL3_CACHE_ISLAND |
OSPM_ISP_ISLAND)) {
u32 cnt = 0;
unsigned long flags;
+#ifndef CONFIG_MDFD_GL3
+ islands &= ~OSPM_GL3_CACHE_ISLAND;
+#endif
+
g_hw_power_status_mask &= ~islands;
if (islands & OSPM_GRAPHICS_ISLAND) {