Skip to content

Commit 63c625d

Browse files
priyankg22gfxbot
authored andcommitted
Fix aux mapping issue
Change-Id: I0414bcab07012a718a27e35987e28774948418d2
1 parent d4028a1 commit 63c625d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/GmmLib/TranslationTable/GmmAuxTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ GMM_STATUS GmmLib::AuxTable::InvalidateTable(GMM_UMD_SYNCCONTEXT *UmdContext, GM
519519
{
520520
// Clear valid bit of L2 entry
521521
L2e.Valid = 0;
522-
((GMM_AUXTTL2e *)L2GfxAddress)[L2eIdx].Valid = 0;
522+
((GMM_AUXTTL2e *)L2CPUAddress)[L2eIdx].Valid = 0;
523523
}
524524
if(DoNotWait)
525525
{

Source/GmmLib/TranslationTable/GmmPageTableMgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ GMM_STATUS GmmLib::__GmmDeviceAlloc(GmmClientContext * pClientContext,
6969
}
7070

7171
pAlloc->GfxVA = Alloc.gfxAddr;
72-
pAlloc->CPUVA = Alloc.gfxAddr;
72+
pAlloc->CPUVA = (GMM_GFX_ADDRESS) Alloc.cpuAddr;
7373
pAlloc->Handle = (HANDLE)Alloc.bo;
7474
}
7575

0 commit comments

Comments
 (0)