]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: drop register readback in cayman_cp_int_cntl_setup
authorLucas Stach <dev@lynxeye.de>
Mon, 24 Oct 2016 21:32:04 +0000 (23:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 17:57:22 +0000 (13:57 -0400)
commit45d237793157d047f8d627f4e409f5d9093b0306
tree486845448c30ac78338e471cea2e831dba5127ce
parent54ef581bc2ef6c3042312afe1add47c760b8a096
drm/radeon: drop register readback in cayman_cp_int_cntl_setup

The read is taking a considerable amount of time (about 50us on this
machine). The register does not ever hold anything other than the ring
ID that is updated in this exact function, so there is no need for
the read modify write cycle.

This chops off a big chunk of the time spent in hardirq disabled
context, as this function is called multiple times in the interrupt
handler. With this change applied radeon won't show up in the list
of the worst IRQ latency offenders anymore, where it was a regular
before.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/ni.c