Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2390760lqp; Sun, 24 Mar 2024 17:20:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwGUx1IMhUAqu7xRGXBJSxUQgdJUTyruVf14vfSaG6lSs7rixr8m42twHjov45GFkERKgtoUPcioMTBx24VXDgg0xfaeIoGK3UtXDfQw== X-Google-Smtp-Source: AGHT+IGmtY4KAcD7I+XrWd88BMyCKu1bYAtOqnVN9X9zZtuPOrEzqwn9TXnKPuhMrgANiwlJa38S X-Received: by 2002:a17:902:fa0b:b0:1e0:188a:5ade with SMTP id la11-20020a170902fa0b00b001e0188a5ademr4631287plb.11.1711326053353; Sun, 24 Mar 2024 17:20:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326053; cv=pass; d=google.com; s=arc-20160816; b=RDERkrQS9S+vjaAlyfW8sgtLqVpY/kg0dQ6ZNpegyfRCtNtXmTA2oMJSw1W5B3NeYa Vb5pEjY2AmAPAF8rdal0nBlSEPH2hQ+nT8hfWXKOsSlwlSZKe1tm+Cul5nWlrBU9xijf Z4o2SjHK13kFPazOfDELR3K1DXjCYKzz7A+PLAI9eWQVq5G61MWiuAy3ezRY1s3RQyd8 CXR4QBsjnoWAsl0awVgRe5rHZEmdCi2tObm/7ln6sDluMS29blPo3xjYvI2/35K6Z430 5c+NePnuNwCqPM0qThHlU97tT44b/qMkl0VAlX7wDVCwmPXMidr7PbJTBnJLV8W3O8MN SYCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1lQ5cu5Lx2biUd91GB6+y6Wj2hP5AimGmrhFCbwhJUE=; fh=7+YIZnesRHvuTIydQpgP/4b9xlWV+DXFzz0sbJ4o9bI=; b=0//BjWggNo+vrJfsWHdHyvMaK8X9S9bA4w1W3eYSGN0tjk7463hJkm/+8WiXJMpl1a Y8zwguDn9wmQWNEEL9AFL/r5W0lCbtXwH1J4ByvVfHgowXFtSAqutUZw82w5fBcHwmbi Lb1UR/yS94Jfwu3quW4bXQTAI55xAfRlbqZG9mLQoCuU8YVbw7qQjSx/xp1dgJLwACW5 jFt9AXqUcgkclifTCaMVumdZYPTIjCjhF0kpKcoobJnaSiFNztXPuwhxG9i+HZ0SAsrM FFToIbX4To514D8IOfCecL/MkCxJ1cfNKcru+m0rTBDM0eGuLJtv0MwsUZ3+/GYBq1bS wTzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QonjUkfY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q7-20020a170902a3c700b001e0bee74c2fsi777939plb.68.2024.03.24.17.20.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:20:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QonjUkfY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0274B28311B for ; Mon, 25 Mar 2024 00:20:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FF2419DF5E; Sun, 24 Mar 2024 22:42:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QonjUkfY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89B4519E687; Sun, 24 Mar 2024 22:42:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320174; cv=none; b=QKSaUjg8bBKZes9iDjE88NbvHz1PvuWZRUVzsLL5s8eSdNHeT3niSjVdk2QehrqwhOBsY/R5u7Jvm/BbseXFDonFTaqdul0dMF269d8833L3PNRoE9ezOQFIAm1lbf44o1i4/0t5gcwz1B5lZ4xOuzJGURu/JB3mkqr6abmwh3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320174; c=relaxed/simple; bh=UcpuHo6S1LSr579056nVXn/HN/K/fVaSCMdpsLmxNuU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kGkqxtubtX1eypOdPUro45NpsQVb8NoAQ5qvzfBvgBNqC2fB9gkXZ4M6bbnnyig9AqXuUSyjsJw/x7sY2sipO6Sh+rGNCLKzqY/OekraaZxgQozHIz10iivC16Py/Yu+mvgPrxUXw41X92Fverssp/T14cNWw0wfy6n6QQ5Kl1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QonjUkfY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93D3BC43601; Sun, 24 Mar 2024 22:42:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320174; bh=UcpuHo6S1LSr579056nVXn/HN/K/fVaSCMdpsLmxNuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QonjUkfYNAY3BvupFqgso/TRrCpmQWJfdEEiqpgMPwIG3kcTQCKnS9nEp/G27HH9v krGGXuzk8PNJRYI5thCpGYY34whXI5tjmg+fa3Dr0oBTtVf5dqXkrgGvfq2xVgihme nRx5TUb/FcsDwiZadk2bIoJzmagwroP4SvNHIb8E/TW+3TP5VYOrQyfcXa/MayJ3rE DMUixBzkGnA82ZfTkuNezEFNzjzVX8GsC0YjetZ6JiHsrI3E+RSr3Bu79ooJTuFoTr e8r13URz8Z6bF7WMj3Qb3Dp3K2yJ2/ZDEOloJTyY4bo0IUsQv7BRrIAiKaq5k5Krjr oJ1XjWi89SqRQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dmitry Baryshkov , Leonard Lausen , Connor Abbott , Rob Clark , Sasha Levin Subject: [PATCH 6.8 482/715] drm/msm/a6xx: specify UBWC config for sc7180 Date: Sun, 24 Mar 2024 18:31:01 -0400 Message-ID: <20240324223455.1342824-483-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Dmitry Baryshkov [ Upstream commit 0d7dfc79fb9b4b81f642f84796111f2bae8427e2 ] Historically the Adreno driver has not been updating memory configuration registers on a618 (SC7180 platform) implying that the default configuration is fine. After the rework performed in the commit 8814455a0e54 ("drm/msm: Refactor UBWC config setting") the function a6xx_calc_ubwc_config() still contained this shortcut and did not calculate UBWC configuration. However the function which now actually updates hardware registers, a6xx_set_ubwc_config(), doesn't contain such check. Rather than adding the check to a6xx_set_ubwc_config(), fill in the UBWC config for a618 (based on readings from SC7180). Reported-by: Leonard Lausen Link: https://gitlab.freedesktop.org/drm/msm/-/issues/49 Fixes: 8814455a0e54 ("drm/msm: Refactor UBWC config setting") Cc: Connor Abbott Signed-off-by: Dmitry Baryshkov Reviewed-by: Connor Abbott Patchwork: https://patchwork.freedesktop.org/patch/579113/ Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index c9c55e2ea5849..dc80e5940f51e 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c @@ -1292,9 +1292,8 @@ static void a6xx_calc_ubwc_config(struct adreno_gpu *gpu) gpu->ubwc_config.ubwc_mode = 1; } - /* a618 is using the hw default values */ if (adreno_is_a618(gpu)) - return; + gpu->ubwc_config.highest_bank_bit = 14; if (adreno_is_a619_holi(gpu)) gpu->ubwc_config.highest_bank_bit = 13; -- 2.43.0