drm/atomic-helper: Skip vblank waits for unchanged fbs
drm/atomic-helper: Skip vblank waits for unchanged fbs

Especially with legacy cursor ioctls existing userspace assumes that
you can pile up lots of updates in one go. The super-proper way to
support this would be a special commit mode which overwrites the last
update. But getting there will be quite a bit of work.

Meanwhile do what pretty much all the drivers have done for the plane
update functions: Simply skip the vblank wait for the buffer cleanup
if the buffer is the same. Since the universal cursor plane code will
not recreate framebuffers needlessly this allows us to not slow down
legacy pageflip events while someone moves the cursor around.

v2: Drop the async plane update hunk from a previous attempt at this
issue.

v3: Fix up kerneldoc.

v4: Don't oops so badly. Reported by Jasper.

Cc: Rob Clark <915c10c999604870200b6defbe633d857c856ca0@gmail.com>
Cc: "Jasper St. Pierre" <5d8f4442e5d567aed616eebcfe54d707f2ec5349@mecheye.net>
Reviewed-by: Rob Clark <915c10c999604870200b6defbe633d857c856ca0@gmail.com>
Reviewed-by: Jasper St. Pierre <5d8f4442e5d567aed616eebcfe54d707f2ec5349@mecheye.net>
Tested-by: Jasper St. Pierre <5d8f4442e5d567aed616eebcfe54d707f2ec5349@mecheye.net>
Signed-off-by: Daniel Vetter <c1b6782c4af8f0673da8923a0702a1832e5940f4@intel.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs