Am 03.02.21 um 21:20 schrieb Suren Baghdasaryan:
[SNIP] If there is a reason to set this flag other than historical use of carveout memory then we wanted to catch such cases and fix the drivers that moved to using dmabuf heaps. However maybe there are other reasons and if so I would be very grateful if someone could explain them. That would help me to come up with a better solution.
Well one major reason for this is to prevent accounting of DMA-buf pages.
So you are going in circles here and trying to circumvent an intentional behavior.
Daniel is right that this is the completely wrong approach and we need to take a step back and think about it on a higher level.
Going to replay to his mail as well.
Regards, Christian.