NvMapMemCacheMaint Bad parameter

I have a camera driver that is using the argus library to read images from a camera and do some operations on them with the NvBuffer* functions. When I run it “NvMapMemCacheMaint Bad parameter” is being printed. The program is multithreaded so it is difficult to tell which function call is producing this print statement. Does anyone know what function call might produce this message and what the meaning of it is?

Looks like it’s printed from the NvMapMemCacheMaint() itself.

NvMapMemCacheMaint(

{

     if (!pMapping || !hMem || !(Writeback || Invalidate)) {
          NvOsDebugPrintf("%s Bad parameter\n", __func__);
       

Which file is this in?

This file didn’t public. Looks like your parameter incorrect cause the problem.