From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Doug Brown <doug@schmorgal.com>,
Christian Gmeiner <christian.gmeiner@gmail.com>,
Lucas Stach <l.stach@pengutronix.de>,
Sasha Levin <sashal@kernel.org>,
airlied@gmail.com, daniel@ffwll.ch,
etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: [PATCH AUTOSEL 5.4 01/30] drm/etnaviv: add missing quirks for GC300
Date: Sun, 18 Dec 2022 11:18:06 -0500 [thread overview]
Message-ID: <20221218161836.933697-1-sashal@kernel.org> (raw)
From: Doug Brown <doug@schmorgal.com>
[ Upstream commit cc7d3fb446a91f24978a6aa59cbb578f92e22242 ]
The GC300's features register doesn't specify that a 2D pipe is
available, and like the GC600, its idle register reports zero bits where
modules aren't present.
Signed-off-by: Doug Brown <doug@schmorgal.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index db35736d47af..8c6f9752692d 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -392,6 +392,12 @@ static void etnaviv_hw_identify(struct etnaviv_gpu *gpu)
if (gpu->identity.model == chipModel_GC700)
gpu->identity.features &= ~chipFeatures_FAST_CLEAR;
+ /* These models/revisions don't have the 2D pipe bit */
+ if ((gpu->identity.model == chipModel_GC500 &&
+ gpu->identity.revision <= 2) ||
+ gpu->identity.model == chipModel_GC300)
+ gpu->identity.features |= chipFeatures_PIPE_2D;
+
if ((gpu->identity.model == chipModel_GC500 &&
gpu->identity.revision < 2) ||
(gpu->identity.model == chipModel_GC300 &&
@@ -425,8 +431,9 @@ static void etnaviv_hw_identify(struct etnaviv_gpu *gpu)
gpu_read(gpu, VIVS_HI_CHIP_MINOR_FEATURE_5);
}
- /* GC600 idle register reports zero bits where modules aren't present */
- if (gpu->identity.model == chipModel_GC600)
+ /* GC600/300 idle register reports zero bits where modules aren't present */
+ if (gpu->identity.model == chipModel_GC600 ||
+ gpu->identity.model == chipModel_GC300)
gpu->idle_mask = VIVS_HI_IDLE_STATE_TX |
VIVS_HI_IDLE_STATE_RA |
VIVS_HI_IDLE_STATE_SE |
--
2.35.1
next reply other threads:[~2022-12-18 16:55 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-18 16:18 Sasha Levin [this message]
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 02/30] brcmfmac: return error when getting invalid max_flowrings from dongle Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 03/30] wifi: ath9k: verify the expected usb_endpoints are present Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 04/30] wifi: ar5523: Fix use-after-free on ar5523_cmd() timed out Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 05/30] ASoC: codecs: rt298: Add quirk for KBL-R RVP platform Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 06/30] ipmi: fix memleak when unload ipmi driver Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 07/30] bpf: make sure skb->len != 0 when redirecting to a tunneling device Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 08/30] net: ethernet: ti: Fix return type of netcp_ndo_start_xmit() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 09/30] hamradio: baycom_epp: Fix return type of baycom_send_packet() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 10/30] wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 11/30] igb: Do not free q_vector unless new one was allocated Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 12/30] s390/ctcm: Fix return type of ctc{mp,}m_tx() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 13/30] s390/netiucv: Fix return type of netiucv_tx() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 14/30] s390/lcs: Fix return type of lcs_start_xmit() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 15/30] drm/rockchip: Use drm_mode_copy() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 16/30] drm/sti: " Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 17/30] drivers/md/md-bitmap: check the return value of md_bitmap_get_counter() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 18/30] md/raid1: stop mdx_raid1 thread when raid1 array run failed Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 19/30] net: add atomic_long_t to net_device_stats fields Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 20/30] mrp: introduce active flags to prevent UAF when applicant uninit Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 21/30] ppp: associate skb with a device at tx Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 22/30] bpf: Prevent decl_tag from being referenced in func_proto arg Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 23/30] media: dvb-frontends: fix leak of memory fw Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 24/30] media: dvbdev: adopts refcnt to avoid UAF Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 25/30] media: dvb-usb: fix memory leak in dvb_usb_adapter_init() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 26/30] blk-mq: fix possible memleak when register 'hctx' failed Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 27/30] regulator: core: fix use_count leakage when handling boot-on Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 28/30] mmc: f-sdh30: Add quirks for broken timeout clock capability Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 29/30] media: si470x: Fix use-after-free in si470x_int_in_callback() Sasha Levin
2022-12-18 16:18 ` [PATCH AUTOSEL 5.4 30/30] clk: st: Fix memory leak in st_of_quadfs_setup() Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221218161836.933697-1-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=airlied@gmail.com \
--cc=christian.gmeiner@gmail.com \
--cc=daniel@ffwll.ch \
--cc=doug@schmorgal.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=etnaviv@lists.freedesktop.org \
--cc=l.stach@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox