mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-16 20:32:19 +02:00
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:
@@ -60,6 +60,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "log2.h"
|
||||
#if defined(__KERNEL__)
|
||||
#include "pvrsrv.h"
|
||||
#include "srvcore.h"
|
||||
#else
|
||||
#include "srvcore_intern.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -184,7 +187,9 @@ FreeSyncPrimitiveBlock(SYNC_PRIM_BLOCK *psSyncBlk)
|
||||
|
||||
DevmemReleaseCpuVirtAddr(psSyncBlk->hMemDesc);
|
||||
DevmemFree(psSyncBlk->hMemDesc);
|
||||
BridgeFreeSyncPrimitiveBlock(GetBridgeHandle(psContext->hDevConnection),
|
||||
(void) DestroyServerResource(psContext->hDevConnection,
|
||||
NULL,
|
||||
BridgeFreeSyncPrimitiveBlock,
|
||||
psSyncBlk->hServerSyncPrimBlock);
|
||||
OSFreeMem(psSyncBlk);
|
||||
}
|
||||
@@ -308,16 +313,19 @@ static void SyncPrimLocalFree(SYNC_PRIM *psSyncInt, IMG_BOOL bFreeFirstSyncPrim)
|
||||
#endif
|
||||
{
|
||||
PVRSRV_ERROR eError;
|
||||
IMG_HANDLE hBridge =
|
||||
GetBridgeHandle(psSyncInt->u.sLocal.psSyncBlock->psContext->hDevConnection);
|
||||
SHARED_DEV_CONNECTION hDevConnection =
|
||||
psSyncInt->u.sLocal.psSyncBlock->psContext->hDevConnection;
|
||||
|
||||
if (GetInfoPageDebugFlags(psSyncInt->u.sLocal.psSyncBlock->psContext->hDevConnection) & DEBUG_FEATURE_FULL_SYNC_TRACKING_ENABLED)
|
||||
if (GetInfoPageDebugFlags(hDevConnection) & DEBUG_FEATURE_FULL_SYNC_TRACKING_ENABLED)
|
||||
{
|
||||
if (psSyncInt->u.sLocal.hRecord)
|
||||
{
|
||||
/* remove this sync record */
|
||||
eError = BridgeSyncRecordRemoveByHandle(hBridge,
|
||||
psSyncInt->u.sLocal.hRecord);
|
||||
eError = DestroyServerResource(hDevConnection,
|
||||
NULL,
|
||||
BridgeSyncRecordRemoveByHandle,
|
||||
psSyncInt->u.sLocal.hRecord);
|
||||
PVR_LOG_IF_ERROR(eError, "BridgeSyncRecordRemoveByHandle");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -325,7 +333,7 @@ static void SyncPrimLocalFree(SYNC_PRIM *psSyncInt, IMG_BOOL bFreeFirstSyncPrim)
|
||||
IMG_UINT32 ui32FWAddr = psSyncBlock->ui32FirmwareAddr +
|
||||
SyncPrimGetOffset(psSyncInt);
|
||||
|
||||
eError = BridgeSyncFreeEvent(hBridge, ui32FWAddr);
|
||||
eError = BridgeSyncFreeEvent(GetBridgeHandle(hDevConnection), ui32FWAddr);
|
||||
PVR_LOG_IF_ERROR(eError, "BridgeSyncFreeEvent");
|
||||
}
|
||||
#if defined(PVRSRV_ENABLE_SYNC_POISONING)
|
||||
|
||||
Reference in New Issue
Block a user