Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp242675pxf; Wed, 10 Mar 2021 05:29:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDfWTVNMxW0oiXQH2GADyKfwqeZoS7P9alATQrszm9/1fXeGqRi0ubNPjH+Dy9YPdlK4We X-Received: by 2002:a17:906:819:: with SMTP id e25mr3764774ejd.292.1615382992636; Wed, 10 Mar 2021 05:29:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382992; cv=none; d=google.com; s=arc-20160816; b=WppZvfCQXY53veqzWcAq1Tlit1aJN3MJGOYmiQf5mDLqut9HweuSJbpI8wCS+LHy3s mtdATUuu0qgLmy9eddv9ar+BC2mI92QF7dPIN0GLw0F+LW6ustvtpvJ6N07DAI0fEb84 KS2wwmUFH0A5IXaIU5kBow/U853PVYQQeP4keldpYj/XiJITjk4ngiRccmHLc9F3JvC6 xLrYall4YeLs3jwyWMzbBPTR/htXqNLLnAJ7ZhBxj+t8oa+5Y3xOfoYIWtP54yTXQPDx ySWrJ3rXwalLHIXKzwvvvoMLvIvIRhCb183to4vzBtZHV4MvIbDPRqsSNIJFJhggc6Y5 LyWQ== 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=B4t6+iXLjpM0aukm6NH4xo1JOP1tzRQHf9ihDyPzKPY=; b=Etjqxdi3+99Zbln6wX99RgsrKL/o4YvlbXs50UbN795fyNXVv4lwuDvs/OZNJ7san9 XAktX/rj0FfGo/B0npGo2pYFkUIav43FpQB8eXgnDvyzeWGZ0i4mz3XPePom/gMBX7Hi 0BXT6jHk0dVneW+Y0/5xQvyAVwf3oxRUB3U2lom8KLNFvKlf/RAXmtNZDrXBQQWWNxF0 fW/ePZkXZN2BiN+BdDLb3v3AyGQ2D7sQovNDyjKNrz+yuJpsdxkTrnO2AK60yTpBgOH/ MFp5SjBC+p5CByacIKC5Vl0XTgPgIZ4iAEJqbr3bpTY8NIHsJV/sL0asnFPifTzRyJIz Do1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PNE1aZuE; 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 a17si8666007eju.485.2021.03.10.05.29.29; Wed, 10 Mar 2021 05:29:52 -0800 (PST) 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=PNE1aZuE; 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 S233632AbhCJN2c (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:47264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232815AbhCJNZO (ORCPT ); Wed, 10 Mar 2021 08:25:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 850A36500C; Wed, 10 Mar 2021 13:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382713; bh=Ont2uxVjwErKP8hvOvO2RYTJTb1cnh6siOu2Whel2VM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PNE1aZuEcA1XjeQYisT4rju2Ek0jBtMNjb5TPMvDOWiudI0uDqzFzCsYyF7dChc34 7nznm0pc8E+IoljRqbKoChYdLVki4StXXiHAXSUTj5S8KC/k23QjNYAq+Xo3mE++mG 0dGgQ23HC1AQR15f5MvAPX06kJSOgrNpQWObvFlc= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, AngeloGioacchino Del Regno , Jordan Crouse , Rob Clark , Sasha Levin Subject: [PATCH 5.10 38/49] drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register Date: Wed, 10 Mar 2021 14:23:49 +0100 Message-Id: <20210310132323.145707419@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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: Greg Kroah-Hartman From: AngeloGioacchino Del Regno [ Upstream commit 8f03c30cb814213e36032084a01f49a9e604a3e3 ] The PC_DBG_ECO_CNTL register on the Adreno A5xx family gets programmed to some different values on a per-model basis. At least, this is what we intend to do here; Unfortunately, though, this register is being overwritten with a static magic number, right after applying the GPU-specific configuration (including the GPU-specific quirks) and that is effectively nullifying the efforts. Let's remove the redundant and wrong write to the PC_DBG_ECO_CNTL register in order to retain the wanted configuration for the target GPU. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Jordan Crouse Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index 69ed2c609466..5e11cdb207d8 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -626,8 +626,6 @@ static int a5xx_hw_init(struct msm_gpu *gpu) if (adreno_gpu->info->quirks & ADRENO_QUIRK_TWO_PASS_USE_WFI) gpu_rmw(gpu, REG_A5XX_PC_DBG_ECO_CNTL, 0, (1 << 8)); - gpu_write(gpu, REG_A5XX_PC_DBG_ECO_CNTL, 0xc0200100); - /* Enable USE_RETENTION_FLOPS */ gpu_write(gpu, REG_A5XX_CP_CHICKEN_DBG, 0x02000000); -- 2.30.1