Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240923pxf; Wed, 10 Mar 2021 05:27:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg2lUDiYP7Mto8d4T7ztP763sLHNRbZvvoshIvKATkvqY+A67D3xUp+ldi7XV7vfzImlOZ X-Received: by 2002:a50:fe17:: with SMTP id f23mr3363892edt.258.1615382838137; Wed, 10 Mar 2021 05:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382838; cv=none; d=google.com; s=arc-20160816; b=u8kJjNgtJ6wWhK1v+3p2xoAGnHKPr83/3eWozoGFD5ZyOgypkGuZkRoVA6Y27re1ti KwvBxYgqcKHzkC5bnTveOSKbOjXOiRHexrEVjKv7DFr5ykBZu5Rkwe9rQ36I8kKFsh6F Rllx0KL4FE/d9K3gX3EptRbJc3bjEqrQIys2quRUlQCbKA1OLCcJ3+KXLgXV6jQVgi6R jCvYCUTt05l6AGNamO7EQfYOOvGmh1ztQCxi0RayrRRkz2eEpXDL8qp+OspM6r4u8piG Mc7RluJpmw7lxqp2XW+rAvo6xUwz8tNVGcsO5dN6ks5m1/ibY+wCuyp2zHNoOle/8ll+ DtHw== 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=z4ehBn/Nb4D9SMHhrIExBUsVzF7EuW3Fb+dbogI2HmU=; b=zs9DHX6vNmr+lK5rk6c8zR/tIy2U3xty++cH+6pQvex82dMODdCJhFieTVx4F/DmA9 a8cf9g1anhe9SL0MuPVR4U92BJJXfmuBbZtRbnnxTKneLuyC9X+wWuq2kirtVYschR82 qGSdjd0qYhhwYh170wJwXgEX+6aAHsHvqhuyowUf78nYxB2MocvawHC6dwAooD6XRmFD yBV07qHDcGSN/sig/NlKrGuBqV4vbZ54ubitkZzTkNBcTfpsZK+MSt+1CwMS04B2YHUo jL8knJzlR8G9SVq4zRzfGhBaDCQ6mbMifte4dxqXDSKGxn6WiDorb6rlVVnwRZ+ekI+d qrOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EIsQ7hto; 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 g8si12117682edp.540.2021.03.10.05.26.54; Wed, 10 Mar 2021 05:27:18 -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=EIsQ7hto; 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 S233627AbhCJNZ7 (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:45866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhCJNYi (ORCPT ); Wed, 10 Mar 2021 08:24:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id ADFAF64FEE; Wed, 10 Mar 2021 13:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382678; bh=t4wbKQkHr8VOj+KN5S17ImvrnH2z89sbylzR7oz7Ua8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EIsQ7htotejzn2T64ePQ50LVKYdlibbZp/G+FaQf0B4CEfePF063aVkeie6dw/2x4 F1pZjGIlvpeFvPNTAAyM+ZI1gRwKItw7uB2zLzNGqcYP/lLEZx24T/SHzCnrdbalKZ 3S0SZ6sa5HyAAT4W9e+iU/aywNv5UyZXfZiNQIxs= 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.11 24/36] drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register Date: Wed, 10 Mar 2021 14:23:37 +0100 Message-Id: <20210310132321.263411845@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.510840709@linuxfoundation.org> References: <20210310132320.510840709@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 a5af223eaf50..81506d2539b0 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