radeonsi: disable the constant engine (CE) on Carrizo and Stoney
authorMarek Olšák <marek.olsak@amd.com>
Wed, 7 Dec 2016 22:01:56 +0000 (23:01 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 8 Dec 2016 14:54:38 +0000 (15:54 +0100)
It must be disabled until the kernel bug is fixed, and then we'll enable CE
based on the DRM version.

Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 71fc5570d60bd988f50417f063c19e43c0477a8a..88685f9ada887f4ad99b43334634a61b4603a52a 100644 (file)
@@ -187,7 +187,10 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
 
        /* SI + AMDGPU + CE = GPU hang */
        if (!(sscreen->b.debug_flags & DBG_NO_CE) && ws->cs_add_const_ib &&
-           sscreen->b.chip_class != SI) {
+           sscreen->b.chip_class != SI &&
+           /* These can't use CE due to a power gating bug in the kernel. */
+           sscreen->b.family != CHIP_CARRIZO &&
+           sscreen->b.family != CHIP_STONEY) {
                sctx->ce_ib = ws->cs_add_const_ib(sctx->b.gfx.cs);
                if (!sctx->ce_ib)
                        goto fail;