Herman Chen

Results 443 comments of Herman Chen

You can check which mpp library this binary is using. On /system/lib or /vendor/lib and lib64 The test case and library should match.

放头文件的外部目录也要一起更新

编译的 sdk 目录里是不是也在 mpp 目录之外放 mpp 的头文件?

是不是 32 位的程序,4G 的虚地址空间用完了?用 64 位程序试试

The device iova space is only 4G. So if the dma-buf attach to device is over 4G then it may have error. I will bring kernel guys in to check...

The device iova space is only 4G. So if the dma-buf attach to device is over 4G then it may have error. I will bring kernel guys in to check...

分 buffer 的时候还好,就是给硬件使用的时候,硬件的 iommu_domain 的 iova 是 32bit 的,不断把 buffer import 到 iommu_domain 之后超上限了

不是,分 buffer 的时候问题不大,板上有 8G 物理内存,超 4G 不是问题,buffer group 也不影响 是 buffer 在给内核驱动使用的时候,内核里的 iommu 给 buffer 建硬件访问用的 iova 表的时候,这个 iova 地址只有 32bit,总空间只有 4G

因为每次 buffer 导入 map 的时候需要去建 iova 表,建 iova 表的时间太长,为了优化目的,在使用完 buffer 之后不会去把 iova 表释放,就先缓存着,这样导致空间被占用着,一直累积下来,新的 buffer 再导入就失败了。