]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: Schedule host path read cache flush through the ring V2
authorJerome Glisse <jglisse@redhat.com>
Thu, 7 Jan 2010 11:39:21 +0000 (12:39 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:09:59 +0000 (13:09 +1000)
commitd4ebb391faea60861275dd977bb709d4cfbfb181
treea3e15eabffd6e10bed1ef639fc2f2e087c67b047
parentfe20f9a0a61cd11840f35a14c4355ce323f84de4
drm/radeon/kms: Schedule host path read cache flush through the ring V2

R300 family will hard lockup if host path read cache flush is
done through MMIO to HOST_PATH_CNTL. But scheduling same flush
through ring seems harmless. This patch remove the hdp_flush
callback and add a flush after each fence emission which means
a flush after each IB schedule. Thus we should have same behavior
without the hard lockup.

Tested on R100,R200,R300,R400,R500,R600,R700 family.

V2: Adjust fence counts in r600_blit_prepare_copy()

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
13 files changed:
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/r420.c
drivers/gpu/drm/radeon/r520.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_blit_kms.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/rs400.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rs690.c
drivers/gpu/drm/radeon/rv515.c