From: Marek Olšák Date: Sat, 1 Mar 2014 23:56:21 +0000 (+0100) Subject: drm/radeon: validate relocations in the order determined by userspace v3 X-Git-Tag: v3.15-rc1~51^2~58^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9b76548899cde2e729e3bca015d7e78ec5baad7;p=pandora-kernel.git drm/radeon: validate relocations in the order determined by userspace v3 Userspace should set the first 4 bits of drm_radeon_cs_reloc::flags to a number from 0 to 15. The higher the number, the higher the priority, which means a buffer with a higher number will be validated sooner. The old behavior is preserved: Buffers used for write are prioritized over read-only buffers if the userspace doesn't set the number. v2: add buffers to buckets directly, then concatenate them v3: use a stable sort Signed-off-by: Marek Olšák Reviewed-by: Christian König --- Reading git-diff-tree failed