Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7151361ybi; Mon, 8 Jul 2019 15:40:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP/+aQ+APL1fUG9fm9W8UE+FNhL5GtNOMPt2TDFtMetSWr0B6jL9ZrA2aXqgbEvQr3muoA X-Received: by 2002:a63:2355:: with SMTP id u21mr25886737pgm.205.1562625651723; Mon, 08 Jul 2019 15:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625651; cv=none; d=google.com; s=arc-20160816; b=dWEjTtpSW6SjwaaUJhmotdynXRBskACRhW7dTdQ7Tz1/aDxWdHq2Y+EmiBVSZGhMuJ oGOGbR77qdA6WKpgewPNnuN+aTXFuRQTdoNEZQaByD5cFBoAqutq2kF0rriJO8n6Df6F B79XF/AjX96JXwf+g2xFjYbPiSP/cP+vTdm6sFmUH1vcZzwUrTJCTZjicBZ23z/iYU2G L3NyLp90+DNrH/XYdR8APHFRUeekm68Y3A9NfNUORp7g4ZtKJthPdxQB08zQJKCBPhuV /fyZK/xArx4gExdF9A3hC2I3qg+2wZRFjUFbfj7G9W0GT110gVjJYy+zFNWC2zCRT3I1 LWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=h35DLpq59VrlJ2oVcqAnP83RpYN7geel3TrcwXFL6wY=; b=IH75xGVsFaMZKxZP0k3tGO5BZs+rbtA84yfxd4fwA0drpJ1jXs8l6kkS8rzSu3k3BZ SgGf2g+7kQOjlJVU1naa78HW8FGH6QTUu8Xg+RZE1b9siWUtk68bBNAwiEQ7hc8PMlED ZsZ9XlD6cZoXruybkNiw8DOMSZQP3jr6++czMfR3S/ahbxXXEQrFMwMlKDz0UOZn4ddj uurGS8YmgXOcvtdIH8QsTLpvWkgJbo5ju+xqBM04aybumGJ7S0zwnSXdXwpDZ/fMhmUe D2OhHPlBdwJPlTGAI9QBUsX/tQHbG5cTXKur2z7Uq75CxgpsvKPOPwrPBQ7YxmLJyGpY VnLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="sW/vQYMm"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci19si19291053plb.165.2019.07.08.15.40.37; Mon, 08 Jul 2019 15:40:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="sW/vQYMm"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403801AbfGHPm5 (ORCPT + 99 others); Mon, 8 Jul 2019 11:42:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:52322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728834AbfGHPY7 (ORCPT ); Mon, 8 Jul 2019 11:24:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F2B92173C; Mon, 8 Jul 2019 15:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599498; bh=Ty4aiqji0oUjcxojs8aLHf5ZYylEYqKOuDuYN2qOtUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sW/vQYMmCjavUtOHqNXpQFCwzKpSw9CIIDdUAmwnOhGFYQakLTXEnFcEMLzj1zH87 KeCHg5MnAQm4xjHl1/unGCRE62SIckhqgVybPz4quYT+B0Z90U1f3prNfks8AiVs5d 08ZCtRRHFJkiHkAmbyfdbxmCJOp4zihrHiX3h7T8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Deucher , Huang Rui Subject: [PATCH 4.14 35/56] drm/amdgpu/gfx9: use reset default for PA_SC_FIFO_SIZE Date: Mon, 8 Jul 2019 17:13:27 +0200 Message-Id: <20190708150523.171670023@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Deucher commit 25f09f858835b0e9a06213811031190a17d8ab78 upstream. Recommended by the hw team. Reviewed-and-Tested-by: Huang Rui Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 19 ------------------- 1 file changed, 19 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -1534,25 +1534,6 @@ static void gfx_v9_0_gpu_init(struct amd mutex_unlock(&adev->srbm_mutex); gfx_v9_0_init_compute_vmid(adev); - - mutex_lock(&adev->grbm_idx_mutex); - /* - * making sure that the following register writes will be broadcasted - * to all the shaders - */ - gfx_v9_0_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff); - - WREG32_SOC15(GC, 0, mmPA_SC_FIFO_SIZE, - (adev->gfx.config.sc_prim_fifo_size_frontend << - PA_SC_FIFO_SIZE__SC_FRONTEND_PRIM_FIFO_SIZE__SHIFT) | - (adev->gfx.config.sc_prim_fifo_size_backend << - PA_SC_FIFO_SIZE__SC_BACKEND_PRIM_FIFO_SIZE__SHIFT) | - (adev->gfx.config.sc_hiz_tile_fifo_size << - PA_SC_FIFO_SIZE__SC_HIZ_TILE_FIFO_SIZE__SHIFT) | - (adev->gfx.config.sc_earlyz_tile_fifo_size << - PA_SC_FIFO_SIZE__SC_EARLYZ_TILE_FIFO_SIZE__SHIFT)); - mutex_unlock(&adev->grbm_idx_mutex); - } static void gfx_v9_0_wait_for_rlc_serdes(struct amdgpu_device *adev)