Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3942974pxj; Mon, 21 Jun 2021 09:53:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+xhSS0Q9kw69c4DiBUj794bKmy91AFdosXWgBPWBBKaPvrU28hjjaDWWk48uVQKW5Dzou X-Received: by 2002:a6b:3b05:: with SMTP id i5mr20716184ioa.135.1624294394620; Mon, 21 Jun 2021 09:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624294394; cv=none; d=google.com; s=arc-20160816; b=tkeJytqWQg2ByJvUiL/rg6DLBwiQaLHLrwq6kBe2Qu6XL+HlvqQbXTq2XIWd5bomNi MaIxAA2ggzPFlV2eKVU4ZFbPSaQ+sN5llus2UEwPx4FFFvSImTOTKFuYvHA7ksDaWFGT RlXvkDlbsda5AL42j7LGh1FhZG9uY6yhJ+W9Z1WGsdGyU9qYn21cV47rmiR3St0ju08u qoR0apOl5YlZJt/aJMhpAr0aezmn2+aQqvWorqhqvdFmNu0xsJJoX2+MiSdKXvX66neh XBIt2FBGa1HgyGDJHqmxpA4xggDkvsiTS6sVzpqGSRIC0JVwDAljKD2U8BD13rl6Jh2g lrYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=j/errLF5X7bWkrno9hbRoTvOFLNEo6DIpD7kZFLjnqU=; b=WlJY9P6sBjv1DwOHBprp60DXkzZQXa78HEzeKrX8Q8k2YWYW5PagynzvpoDYbF3HtJ T3Zlv9p/5piXuFhPaT9pOQF82ZGbhfiTT2AaE5yiJR00Ry5CfF02y4PgTXPTsRH2PThO egq3gPoE/oskaTBoxrt30JkjBe0L5z1LaccFyrkASg16s+6pvPhDZTEApLHojUO46RX0 6L1JyhuTZfCPJK0lDWYXIrbLQcoXSDUV6IlN0kEdyE53CalNTK1pOc5a2vkJOlMcVXUd BkQ6G5qFW3HFrpLTSq5u0MNxDYH00veSkriTZpp+qirjdnbd8yIYO+hARunBTwNnQbUX kw3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MKpcePWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si13446017ilh.26.2021.06.21.09.53.02; Mon, 21 Jun 2021 09:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MKpcePWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232375AbhFUQxX (ORCPT + 99 others); Mon, 21 Jun 2021 12:53:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:38072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233220AbhFUQt0 (ORCPT ); Mon, 21 Jun 2021 12:49:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C6FB76135F; Mon, 21 Jun 2021 16:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293270; bh=PHgznUSYVoPoUrpq/y7cvEtA798xYL1bTieH9MaufaE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MKpcePWHWzyRPzfN8K1vr+ygeaHeCMHQo7fFR4RNwUuxyzQHrpnIFw2M5FpmuFh+d foJuXucmkcg1EY/iysB2xXyHYkTwWEuOrc6yHhy8v3kbW8Krj5vzZyK4jkCOBUlCpe WMqU7cPHvQqbEJyfscTuDs9Lma2DULYAs0JGCRXU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yifan Zhang , Felix Kuehling , Alex Deucher Subject: [PATCH 5.12 160/178] drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell. Date: Mon, 21 Jun 2021 18:16:14 +0200 Message-Id: <20210621154928.197689890@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yifan Zhang commit 1c0b0efd148d5b24c4932ddb3fa03c8edd6097b3 upstream. If GC has entered CGPG, ringing doorbell > first page doesn't wakeup GC. Enlarge CP_MEC_DOORBELL_RANGE_UPPER to workaround this issue. Signed-off-by: Yifan Zhang Reviewed-by: Felix Kuehling Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -6769,8 +6769,12 @@ static int gfx_v10_0_kiq_init_register(s if (ring->use_doorbell) { WREG32_SOC15(GC, 0, mmCP_MEC_DOORBELL_RANGE_LOWER, (adev->doorbell_index.kiq * 2) << 2); + /* If GC has entered CGPG, ringing doorbell > first page doesn't + * wakeup GC. Enlarge CP_MEC_DOORBELL_RANGE_UPPER to workaround + * this issue. + */ WREG32_SOC15(GC, 0, mmCP_MEC_DOORBELL_RANGE_UPPER, - (adev->doorbell_index.userqueue_end * 2) << 2); + (adev->doorbell.size - 4)); } WREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL,