[PATCH 4/9] drm/amdgpu:keep bo pinned in prefered domain

Grazvydas Ignotas notasas at gmail.com
Sun Oct 2 21:14:35 UTC 2016


Hi,

this patch causes failure on my polaris10 card:
[drm:gfx_v8_0_ring_test_ring] *ERROR* amdgpu: ring 0 test failed
(scratch(0xC040)=0xCAFEDEAD)
[drm:amdgpu_init] *ERROR* hw_init of IP block <gfx_v8_0> failed -22
amdgpu 0000:01:00.0: amdgpu_init failed

GraÅžvydas

On Wed, Sep 28, 2016 at 11:36 AM, Monk Liu <Monk.Liu at amd.com> wrote:
> From: Frank Min <Frank.Min at amd.com>
>
> Change-Id: I87fae602a2277771902f58f61069c18930627012
> Signed-off-by: Frank Min <Frank.Min at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  mode change 100644 => 100755 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
> old mode 100644
> new mode 100755
> index ab2d7fb..7f79323
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
> @@ -240,7 +240,7 @@ static int amdgpu_cgs_gmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t h
>         r = amdgpu_bo_reserve(obj, false);
>         if (unlikely(r != 0))
>                 return r;
> -       r = amdgpu_bo_pin_restricted(obj, AMDGPU_GEM_DOMAIN_GTT,
> +       r = amdgpu_bo_pin_restricted(obj, obj->prefered_domains,
>                                      min_offset, max_offset, mcaddr);
>         amdgpu_bo_unreserve(obj);
>         return r;
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list