MGS-1274-2 gpu: Integrate 5.0.11.p8 kernel driver
authorXianzhong <b07117@freescale.com>
Thu, 31 Dec 2015 09:32:44 +0000 (17:32 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:38 +0000 (14:49 -0500)
Integrate the kernel part for 5.0.11.p8 gpu driver release

Signed-off-by: Xianzhong <b07117@freescale.com>
drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_enum.h
drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_version.h
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_probe.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.config

index cf85fdc..a6e55cb 100644 (file)
@@ -322,6 +322,8 @@ typedef enum _gceFEATURE
     gcvFEATURE_PE_DITHER_FIX2,
     gcvFEATURE_LOD_FIX_FOR_BASELEVEL,
 
+    gcvFEATURE_MSAA_OQ_FIX,
+
     /* Insert features above this comment only. */
     gcvFEATURE_COUNT                /* Not a feature. */
 }
@@ -341,7 +343,7 @@ gceSWWA;
 
 
 /* Option Set*/
-typedef enum _gceOPITON
+typedef enum _gceOPTION
 {
     /* HW setting we take PREFER */
     gcvOPTION_PREFER_MULTIPIPE_RS = 0,
index ee29658..98d8245 100644 (file)
@@ -64,6 +64,6 @@
 
 #define gcvVERSION_BUILD     41671
 
-#define gcvVERSION_STRING    "5.0.11.p8.pre.41671"
+#define gcvVERSION_STRING    "5.0.11.p8.pre2.41671"
 
 #endif /* __gc_hal_version_h_ */
index 3ebdfc6..468e0d8 100644 (file)
@@ -139,7 +139,10 @@ static ulong registerMemSizeDEC300 = 2 << 10;
 module_param(registerMemSizeDEC300, ulong, 0644);
 #endif
 
-static ulong contiguousSize = 0;
+#ifndef gcdDEFAULT_CONTIGUOUS_SIZE
+#define gcdDEFAULT_CONTIGUOUS_SIZE (4 << 20)
+#endif
+static ulong contiguousSize = gcdDEFAULT_CONTIGUOUS_SIZE;
 module_param(contiguousSize, ulong, 0644);
 
 static ulong contiguousBase = 0;
index 1c144e7..fd2f44a 100644 (file)
@@ -105,8 +105,8 @@ extern int unregister_thermal_notifier(struct notifier_block *nb);
 #endif
 #endif
 
-#ifndef gcdDEFAULT_CONTIGUOUS_SIZE
-#define gcdDEFAULT_CONTIGUOUS_SIZE (4 << 20)
+#ifndef gcdFSL_CONTIGUOUS_SIZE
+#define gcdFSL_CONTIGUOUS_SIZE (4 << 20)
 #endif
 
 static int initgpu3DMinClock = 1;
@@ -449,7 +449,7 @@ gckPLATFORM_AdjustParam(
     {
         if( Args->contiguousBase == 0 )
            Args->contiguousBase = res->start;
-        if( Args->contiguousSize == 0 )
+        if( Args->contiguousSize == ~0U )
            Args->contiguousSize = res->end - res->start + 1;
     }
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
@@ -466,11 +466,11 @@ gckPLATFORM_AdjustParam(
        Args->contiguousSize = pdata->reserved_mem_size;
      }
 #endif
-    if (Args->contiguousSize == 0)
+    if (Args->contiguousSize == ~0U)
     {
        gckOS_Print("Warning: No contiguous memory is reserverd for gpu.!\n ");
-       gckOS_Print("Warning: Will use default value(%d) for the reserved memory!\n ",gcdDEFAULT_CONTIGUOUS_SIZE);
-       Args->contiguousSize = gcdDEFAULT_CONTIGUOUS_SIZE;
+       gckOS_Print("Warning: Will use default value(%d) for the reserved memory!\n ",gcdFSL_CONTIGUOUS_SIZE);
+       Args->contiguousSize = gcdFSL_CONTIGUOUS_SIZE;
     }
 
     Args->gpu3DMinClock = initgpu3DMinClock;
index 3adb9bf..0b2cb43 100644 (file)
@@ -1,4 +1,5 @@
-EXTRA_CFLAGS += -DgcdDEFAULT_CONTIGUOUS_SIZE=134217728
+EXTRA_CFLAGS += -DgcdDEFAULT_CONTIGUOUS_SIZE=~0U
+EXTRA_CFLAGS += -DgcdFSL_CONTIGUOUS_SIZE=134217728
 
 ifneq ($(CONFIG_ANDROID),)
 # build for android