Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp242710pxf; Wed, 10 Mar 2021 05:29:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMUQu8J3fKtViqHqN3tM9vPLfW+Nkz/jYnWeDjX0IRVZwnvv0sEvDcUf6PYRnVzzSWtBvZ X-Received: by 2002:a05:6402:3075:: with SMTP id bs21mr3293449edb.274.1615382996818; Wed, 10 Mar 2021 05:29:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382996; cv=none; d=google.com; s=arc-20160816; b=ov3gt6J11Pa4ikhTaq4a6EzGLWZkT5p9RnNV6zr2ziM0kTaccUmreARzfxZRTLOZ1E Yf4eMRxSIrtVPcAXJA2nD5Tr04iUlmq/DqQCqdqjZxjB5wG1mFDiuDC46rVGDd5tnIWm Qb2V/6eVKsNf79fABJEkdzuMocEu1sDrA0Pp1ozMhQwlOqvEBlV+lf1e58KV0cIbjhK+ EkEL8IXKnWTeAUkZvwZNfzIx+L6tUWQaCyuIbCyxfmm2Gq/kf0yNINqHjE8wIPt7Rqmb zdpzijuG3saMZVKLoRp66DC/WMFIT1O2pS9hkkyRbfry9Cgufs0/FIaPojdY0RWuivFh j03w== 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=0iGj7yDkZAux6F9a6U+sk6n5W3m/BgYA3DZfJ03I0Q8=; b=OdEv1ZvbWWOilnlOLDIejtLb5XpVE+KIldNUS0sLsavyZy1YS3mN/IlRcIo0nPSZKQ hBn6PyxfOcVTsNdAfpubJ5G1O/KkUqtwyhRxXobo9Z1UVLmOKEe6nXT+/cEss6yckPMm S6Z20qHs0xGVW4l+0wWL4JouU7iGx2lbaKKCiQmkiRm0D0TO+ZkKg5IWDaFSt2886zda hyC8lALyoGURTtbmW7kYREWDwUTTmZY0Lfob3I2tYe/4nef70+Fg6qu5F3pugpHsZQs3 md2sC3YPeqhrtLc8XMIlZWQ9Og5XCtmMqH3NWYTVClokzDfQUY7YAzTdX5zQlJkb8wtd nKNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qe0qsiBf; 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 a2si11578381edt.289.2021.03.10.05.29.33; Wed, 10 Mar 2021 05:29:56 -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=Qe0qsiBf; 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 S234002AbhCJN2f (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:47332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233259AbhCJNZP (ORCPT ); Wed, 10 Mar 2021 08:25:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4FFD265005; Wed, 10 Mar 2021 13:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382714; bh=alXxyctQwJyr63kQCuiCallA0rbzKGfcMoDbfGoenso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qe0qsiBf3ayjCI3bhchmGmNk8WzGWNnjt/QXhY4iBw1Z5IbU4y9QFLc5bnq5Y/4Zq 6ci4kfuG5py2JYW+h/Ne+hnxGmqe0NaMmzYGdYIx773pQVelfPXFbuMJLF7I0Bv/gh HJWbQ/9lJD1Rf4bviP7cRUAx074O2x3Dnqkq800A= 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.4 20/24] drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register Date: Wed, 10 Mar 2021 14:24:32 +0100 Message-Id: <20210310132321.162185461@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.550932445@linuxfoundation.org> References: <20210310132320.550932445@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 c8fb21cc0d6f..f84049119f1c 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -581,8 +581,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