]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/radeon/kms: remove benchmarks shorter than one page
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Tue, 31 Jan 2012 14:35:25 +0000 (09:35 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Feb 2012 09:32:30 +0000 (09:32 +0000)
commit6d75e83ee31c146c8a3d56c762d3e15c483dc40e
tree5a2179287c5d2283e6e524fe7802783a803fa585
parent86a4d69c0ad62ced87a74bbd43f2acefc66a97b0
drm/radeon/kms: remove benchmarks shorter than one page

copy_blit operation works only on integral number of pages
so benchmarks shorter than one page size (4K) do not make sense

v2: use RADEON_GPU_PAGE_SIZE instead of "magic" 1024 number and
    sweep sizes between 1 * <page_size> to 16K * <page_size> doubling
    the size in each iteration; we get the same coverage, as
    in the original benchmark, but guarantee integer multiples
    of page size

v3: add whitespace between '*' operator per review received from
    zajec5@gmail.com

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_benchmark.c