feat: update gpu to Linux_SDK_V1.2.1

This version update involves a lot of content, so the previous version
has been deleted and the new version has been re-merged into the kernel.

The configuration file for the GPU driver originates from a previous
version.

Signed-off-by: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
This commit is contained in:
Mingzheng Xing
2023-08-30 21:19:50 +08:00
committed by Han Gao
parent 807db9d981
commit f72e7cd077
250 changed files with 10635 additions and 7697 deletions

View File

@@ -154,7 +154,14 @@ size_t StringLCopy(IMG_CHAR *pszDest, const IMG_CHAR *pszSrc, size_t uDataSize);
@Input c the number of bytes to be set to the given value
@Return Pointer to the destination memory.
*/ /**************************************************************************/
#define OSDeviceMemSet(a,b,c) memset((a), (b), (c))
#define OSDeviceMemSet(a,b,c) \
do { \
if ((c) != 0) \
{ \
(void) memset((a), (b), (c)); \
(void) *(volatile IMG_UINT32*)((void*)(a)); \
} \
} while (false)
/**************************************************************************/ /*!
@Function OSDeviceMemCopy
@@ -167,7 +174,14 @@ size_t StringLCopy(IMG_CHAR *pszDest, const IMG_CHAR *pszSrc, size_t uDataSize);
@Input c the number of bytes to be copied
@Return Pointer to the destination memory.
*/ /**************************************************************************/
#define OSDeviceMemCopy(a,b,c) memcpy((a), (b), (c))
#define OSDeviceMemCopy(a,b,c) \
do { \
if ((c) != 0) \
{ \
memcpy((a), (b), (c)); \
(void) *(volatile IMG_UINT32*)((void*)(a)); \
} \
} while (false)
#endif /* (defined(__arm64__) || defined(__aarch64__) || defined(PVRSRV_DEVMEM_TEST_SAFE_MEMSETCPY)) */
@@ -181,7 +195,7 @@ size_t StringLCopy(IMG_CHAR *pszDest, const IMG_CHAR *pszSrc, size_t uDataSize);
@Input c the number of bytes to be set to the given value
@Return Pointer to the destination memory.
*/ /**************************************************************************/
#define OSCachedMemSet(a,b,c) memset((a), (b), (c))
#define OSCachedMemSet(a,b,c) (void) memset((a), (b), (c))
/**************************************************************************/ /*!
@Function OSCachedMemCopy
@@ -210,12 +224,22 @@ size_t StringLCopy(IMG_CHAR *pszDest, const IMG_CHAR *pszSrc, size_t uDataSize);
@Input c the number of bytes to be set to the given value
@Return Pointer to the destination memory.
*/ /**************************************************************************/
#if !defined(SERVICES_SC)
#define OSCachedMemSetWMB(a,b,c) \
do { \
if ((c) != 0) \
{ \
(void) memset((a), (b), (c)); \
OSWriteMemoryBarrier(a); \
} \
} while (false)
#else
#define OSCachedMemSetWMB(a,b,c) \
do { \
(void) memset((a), (b), (c)); \
OSWriteMemoryBarrier(); \
} while (0)
} while (false)
#endif /* !defined(SERVICES_SC) */
/**************************************************************************/ /*!
@Function OSCachedMemCopy
@Description Copy values from one area of memory, to another, when both
@@ -228,12 +252,22 @@ size_t StringLCopy(IMG_CHAR *pszDest, const IMG_CHAR *pszSrc, size_t uDataSize);
@Input c the number of bytes to be copied
@Return Pointer to the destination memory.
*/ /**************************************************************************/
#if !defined(SERVICES_SC)
#define OSCachedMemCopyWMB(a,b,c) \
do { \
if ((c) != 0) \
{ \
(void) memcpy((a), (b), (c)); \
OSWriteMemoryBarrier(a); \
} \
} while (false)
#else
#define OSCachedMemCopyWMB(a,b,c) \
do { \
(void) memcpy((a), (b), (c)); \
OSWriteMemoryBarrier(); \
} while (0)
} while (false)
#endif /* !defined(SERVICES_SC) */
#endif /* defined(__KERNEL__) */
/**************************************************************************/ /*!