Skip to content

Commit

Permalink
driver:gpu: memset pagearray before use it by cacheable addr
Browse files Browse the repository at this point in the history
memset pageArray befor use it  to fix up fw load error
and grainy screen

Signed-off-by: shanlong.li <[email protected]>
  • Loading branch information
shanlong.li authored and MichaIng committed May 6, 2024
1 parent 2d78103 commit 604dfe4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ _AllocOSPages_Fast(PMR_OSPAGEARRAY_DATA *psPageArrayData)
{
eError = _MemsetPageArray(uiOSPagesToAlloc - uiDevPagesFromPool,
ppsPageAttributeArray, PAGE_KERNEL,
PVRSRV_ZERO_VALUE, 0);
PVRSRV_ZERO_VALUE, 1);
if (eError != PVRSRV_OK)
{
PVR_DPF((PVR_DBG_ERROR, "Failed to zero pages (fast)"));
Expand All @@ -1971,14 +1971,14 @@ _AllocOSPages_Fast(PMR_OSPAGEARRAY_DATA *psPageArrayData)
* can point to different allocations: first for pages obtained from
* the pool and then the remaining pages */
eError = _MemsetPageArray(uiDevPagesFromPool, ppsPageArray, PAGE_KERNEL,
PVRSRV_POISON_ON_ALLOC_VALUE, 0);
PVRSRV_POISON_ON_ALLOC_VALUE, 1);
if (eError != PVRSRV_OK)
{
PVR_DPF((PVR_DBG_ERROR, "Failed to poison pages (fast)"));
}
eError = _MemsetPageArray(uiOSPagesToAlloc - uiDevPagesFromPool,
ppsPageAttributeArray, PAGE_KERNEL,
PVRSRV_POISON_ON_ALLOC_VALUE, 0);
PVRSRV_POISON_ON_ALLOC_VALUE, 1);
if (eError != PVRSRV_OK)
{
PVR_DPF((PVR_DBG_ERROR, "Failed to poison pages (fast)"));
Expand Down

0 comments on commit 604dfe4

Please sign in to comment.