From patchwork Wed Jun 1 22:27:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 9148591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4F9A60751 for ; Wed, 1 Jun 2016 22:28:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8449265F9 for ; Wed, 1 Jun 2016 22:28:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD2CD2714C; Wed, 1 Jun 2016 22:28:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BE43265F9 for ; Wed, 1 Jun 2016 22:28:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C3196EA5E; Wed, 1 Jun 2016 22:28:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-it0-x241.google.com (mail-it0-x241.google.com [IPv6:2607:f8b0:4001:c0b::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5505D6E299 for ; Wed, 1 Jun 2016 22:28:09 +0000 (UTC) Received: by mail-it0-x241.google.com with SMTP id i127so599665ita.3 for ; Wed, 01 Jun 2016 15:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hQ35LXSTbwcaR1LzPtGqSSV6RoSBwDR+JZeUWhzszP0=; b=q2BY7aaOFgarvn3+awq853dMICEzrM7M5Fp3cn4N3m9Mscz02cwuv9C6iwS+/zwePq 7zVzJxv5LqcV4wocBiIUIWBj0na78Vx9FaK3EOI6CaRIy0JY3DWwRkztg9IDpoaGONRg BAmXSnWZCtjbmBvO8prdJzaTgcLvlXuy/3hmsawdVrWe0rqzy/TjgUl7mN5dyWhzZHQG 879FBhoY/eX9xIJBaRn4tEAfH75Q+CyxU02AwtL2z9tw4FdcByeo5TDGcvRO7uoQ3dyq hMCXHr5ymYrPfXcgWbl9HwxfpSS6JwOiOT14q8RGZmUPBPiIlFH+sgaItRQJitbPkiMl RuOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hQ35LXSTbwcaR1LzPtGqSSV6RoSBwDR+JZeUWhzszP0=; b=FgzJEd3aAobRr6Flq1zECgPK1fsH3xBn7K2Ptp2WxMRhtfGrxi6dDdsiYmt93f7ig/ PY4iNiVKn9HC9TBTqAyMB9dU3MEzfSd+oxwrONtoefhz/UEd8/+IRrVP5fDpaFKb+Bo+ ycaIWAejzIt7snQ4uTcq/cY9k2usZQIuFe1K8d+tvHQAsc54+9MsNe3rrnG/gj3/BGD4 YW3DobskmqhV0tnMKTLpD92Vm2sKkkAJTn9dZS7f/GyrpHzPH+H+4SigrogB4fMiA3uk Qw2C8mGdQrCVbp/hoOETIYPzNGvo40/B6sksq+saQtoVKkkTe2iY9aAqjsu4/TY9HoyA fxaQ== X-Gm-Message-State: ALyK8tJ+8zmKkwoz9kdod0kASaV338KeZchwo0qD4JGN8UzvJhw8KEdQ3cEfrYtMp+SeoQ== X-Received: by 10.36.112.199 with SMTP id f190mr367627itc.6.1464820088335; Wed, 01 Jun 2016 15:28:08 -0700 (PDT) Received: from cm.amd.com ([165.204.55.251]) by smtp.gmail.com with ESMTPSA id e191sm9302113ioe.27.2016.06.01.15.28.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2016 15:28:07 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/4] drm/amdgpu: clear SA bo when created Date: Wed, 1 Jun 2016 18:27:56 -0400 Message-Id: <1464820078-18115-3-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464820078-18115-1-git-send-email-alexander.deucher@amd.com> References: <1464820078-18115-1-git-send-email-alexander.deucher@amd.com> MIME-Version: 1.0 Cc: Alex Deucher , Monk Liu X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Monk Liu This help fix reloading driver hang issue of SDMA ring Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c index 8bf84ef..48618ee 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c @@ -115,6 +115,7 @@ int amdgpu_sa_bo_manager_start(struct amdgpu_device *adev, return r; } r = amdgpu_bo_kmap(sa_manager->bo, &sa_manager->cpu_ptr); + memset(sa_manager->cpu_ptr, 0, sa_manager->size); amdgpu_bo_unreserve(sa_manager->bo); return r; }