While reviewing Nicholas Miell's patch 'drm/radeon/kms: fix cursor image off-by-one error', I noticed at least one other bug (fixed by patch 2, and one potential bug fixed by patch 3) and opportunities for cleanup.
Patch 1 is based on Nicholas' patch and can be dropped if he amends his patch along the same lines. [PATCH 1/3] drm/radeon: Simplify cursor x/yorigin calculation. [PATCH 2/3] drm/radeon: Update AVIVO cursor coordinate origin before [PATCH 3/3] drm/radeon: Set cursor x/y to 0 when x/yorigin > 0.