Re: [PATCH v19 15/30] drm/shmem-helper: Avoid lockdep warning when pages are released

2024-01-25 Thread Boris Brezillon
On Fri, 5 Jan 2024 21:46:09 +0300 Dmitry Osipenko wrote: > All drivers will be moved to get/put pages explicitly and then the last > put_pages() will be invoked during gem_free() time by some drivers. > We can't touch reservation lock when GEM is freed because that will cause > a spurious

[PATCH v19 15/30] drm/shmem-helper: Avoid lockdep warning when pages are released

2024-01-05 Thread Dmitry Osipenko
All drivers will be moved to get/put pages explicitly and then the last put_pages() will be invoked during gem_free() time by some drivers. We can't touch reservation lock when GEM is freed because that will cause a spurious warning from lockdep when shrinker support will be added. Lockdep doesn't