Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243948pxf; Wed, 10 Mar 2021 05:31:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKRu96iNMKpgBRjFRzLOJwnVG9zfS6K/LwzggMGSU+bFrfZyPI9EqZ6sUkNvn3eghVs92Y X-Received: by 2002:a17:906:d787:: with SMTP id pj7mr3566071ejb.257.1615383098122; Wed, 10 Mar 2021 05:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383098; cv=none; d=google.com; s=arc-20160816; b=dGbySMgFp9M6P12ydzXl2Y8Lj5K23tR1dzuVWyJ/MNCmrpeEP14yPIBw6w3Cm4QPtN Nt0okjpLgdfYDl+gZyMF0ljvyccc+1YdRTDfiyauUQfGtiFsfwpCk1/iJ8G4Eo6RUkue FyXhirxKERdDmq8mXqL6Uy6DC3fnJO4xVxGmk68v8FuLX/ySPmy12lovGYwnqzSLSR8d Lq2ZmWIYH9ceY8xpDQmjzyAOoQvL5+LDGRX581VHrIqcbaHaIBsFnEUiDNEdM9TcEQsE gAy/e4a0mlvvqqFdWjS55ZXBpPlj9WK7noPIiA1+EpYBgyPUwh1hpuvJi0V+u+FxrThe XlTQ== 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=7dKirF8bH0hhYyUkzEc53AEpMlU7ZJckE6cErInIKfo=; b=SNHu3IRJ8K7blb1H7IEHUh6PkTAgGe2VcWpMYGO4+Y2dI5yKfPC7OH3kGDWhwPM46l isbrplaGK3uB9K8+qTnUu4zcMi/p6F6RE8ijhpH4cisWBUVMxwjg8mBdSGFRdjJu3q7U wy4+BBAxLAk6PASYIri70wh4NAAx9fI42qLsjTRCC11KcvKZ4OV3ptkIOyCtMzz8kEIg zqkwvPBkF2mCmQI9+nT6eA+MOkmU0tG4FVJngdekpAuFBzveruLwXD2vsHwDZMe3B7s0 CSFyzgGvznTbRIT65zpAnaxY8O5jiWPW41P9V6PridJQyOzw4vm0slhvtWmQv6JNZR0H dbgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KlOAno1z; 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 gb41si1623473ejc.90.2021.03.10.05.31.13; Wed, 10 Mar 2021 05:31:38 -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=KlOAno1z; 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 S233044AbhCJNaG (ORCPT + 99 others); Wed, 10 Mar 2021 08:30:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:48030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbhCJNZg (ORCPT ); Wed, 10 Mar 2021 08:25:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C315E65030; Wed, 10 Mar 2021 13:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382734; bh=pldkc3PeVu0vad+lRb2KazC6M/zc/VeFmGew+OzjY34=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KlOAno1zby23VBLPLPgOwkVfbC89mm0j+hpGHvLqsQI73qG/SI4lXMkfqAWFgGHQT 0jcEbdq62svc7PIMZw7fnSCk3z++rdpD3tZxDnw+d2dQmf89DQIoA9cTFUd93UzTgD tjtlAD4/QL5I0xB+TkYCmX8lJx9c65WB0BEIvX6I= 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 4.14 20/20] drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register Date: Wed, 10 Mar 2021 14:24:57 +0100 Message-Id: <20210310132321.159204059@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.512307035@linuxfoundation.org> References: <20210310132320.512307035@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 f1aaa76cc2e4..92e767f3cc16 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -472,8 +472,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