From patchwork Tue Oct 8 16:44:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 13826710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8441CEFC30 for ; Tue, 8 Oct 2024 16:44:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99DF910E595; Tue, 8 Oct 2024 16:44:52 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="NknnC2Zi"; dkim-atps=neutral Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E41510E593 for ; Tue, 8 Oct 2024 16:44:49 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42cacabd2e0so54952305e9.3 for ; Tue, 08 Oct 2024 09:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1728405888; x=1729010688; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7ikQLOlALZNXVFMnW7DqcctLilRiigotMVrHZ/dmQB8=; b=NknnC2ZiliA6ErIj6dNPmmZgezHXeeI7w8hO1wADFJnBuHva5yEykgkZuBxgmXemjY QtKCpnFt67F/fZU3Qcna7BmgtdVVzKBuOBA0ILX3E7lrzLdYj8HMlANe35+N4rzIuC1F 4gfp4ZDyrtvObOIOtCQy6IsPkOEHJcDCCDQ4/qBi2dVuECM9+HnyAvT7mBsSoazK9Uib FnmuGGBr1/DU5Ury/Q8KG+TaUYs1yEtGDYAjPSBOuJ+ElTL6y7M5HiZlsqQLKXt0NT7V B0cRK8ErsbyLeNVidtKy2J3unaZsJUVOsMIYW28zzYoM1cQs2IkHyIcVj/FpQD5Su+s/ 4tKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728405888; x=1729010688; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7ikQLOlALZNXVFMnW7DqcctLilRiigotMVrHZ/dmQB8=; b=hiJFekV0eqDLttGzfx+CD966UgqlQGG43F7iecIe2sXZOc8t+9Uce2FeuWpJq18wiU RbaZZDgxL7afwhAuBHeYgppiq3f0KgsUcEP0xD8jXFINuKp1CUtJ0dxNuvjVOjGVPqri 0HtD4I/KwAUYVbaJu6uNa9WOKpOoGq24jzVdqpSzXSiFJPTt/WvhO207YLg4BHpRkGgQ DvRCADkBLUshPsJc9O0qS9klBVeu9O0Ob3WU/gdUbvT2YdvisfpbRv62SdFO0CVj3cAn TWRtPl+ZdgEawHE9Mr9v1a1WpmBBCRYDwNhHC4PHxZXJfwadJl4t52kPpMaXHEkqZhgp rHwg== X-Forwarded-Encrypted: i=1; AJvYcCVoZcbbYxzQ9lq/CzZN6TXxX/GvBHemDIAOq3G7SZGZjfR1Lc4FSSaX2Du092pX5GQGAc9+WypXFUE=@lists.freedesktop.org X-Gm-Message-State: AOJu0YzMqWuPCxD81c7KW6220EfMjaYObMvU6iDxQoM7Y5/nPa2/NfnL 8l3zEMybXi0UiUJN9PeWgwG8BoT1FroDu1QfwXfsf5/m0yEHNlmssWXws83bPTE= X-Google-Smtp-Source: AGHT+IEsJwzrStX5MH98cq5gCBlUt8vaT7GTQuJ/pOjlbVoDQ8W+Ad1McV51f/G2wutta1nrDTZgdA== X-Received: by 2002:a05:600c:35d6:b0:42c:b4f1:f2ad with SMTP id 5b1f17b1804b1-42f85af8c5emr124785565e9.33.1728405887824; Tue, 08 Oct 2024 09:44:47 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42f86b4acddsm132133155e9.44.2024.10.08.09.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:44:47 -0700 (PDT) From: Dave Stevenson Date: Tue, 08 Oct 2024 17:44:34 +0100 Subject: [PATCH 1/3] drm/vc4: Match drm_dev_enter and exit calls in vc4_hvs_lut_load MIME-Version: 1.0 Message-Id: <20241008-drm-vc4-fixes-v1-1-9d0396ca9f42@raspberrypi.com> References: <20241008-drm-vc4-fixes-v1-0-9d0396ca9f42@raspberrypi.com> In-Reply-To: <20241008-drm-vc4-fixes-v1-0-9d0396ca9f42@raspberrypi.com> To: Maxime Ripard , Raspberry Pi Kernel Maintenance , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dave Stevenson X-Mailer: b4 0.14.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 52efe364d196 ("drm/vc4: hvs: Don't write gamma luts on 2711") added a return path to vc4_hvs_lut_load that had called drm_dev_enter, but not drm_dev_exit. Ensure we call drm_dev_exit. Fixes: 52efe364d196 ("drm/vc4: hvs: Don't write gamma luts on 2711") Reported-by: Marek Szyprowski Closes: https://lore.kernel.org/dri-devel/37051126-3921-4afe-a936-5f828bff5752@samsung.com/ Signed-off-by: Dave Stevenson Reviewed-by: Maíra Canal Tested-by: Marek Szyprowski --- drivers/gpu/drm/vc4/vc4_hvs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c index 2a366a607fcc..546ee11016b2 100644 --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c @@ -225,7 +225,7 @@ static void vc4_hvs_lut_load(struct vc4_hvs *hvs, return; if (hvs->vc4->gen == VC4_GEN_4) - return; + goto exit; /* The LUT memory is laid out with each HVS channel in order, * each of which takes 256 writes for R, 256 for G, then 256 @@ -242,6 +242,7 @@ static void vc4_hvs_lut_load(struct vc4_hvs *hvs, for (i = 0; i < crtc->gamma_size; i++) HVS_WRITE(SCALER_GAMDATA, vc4_crtc->lut_b[i]); +exit: drm_dev_exit(idx); } From patchwork Tue Oct 8 16:44:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 13826709 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A0F0CEFC32 for ; Tue, 8 Oct 2024 16:44:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9891F10E594; Tue, 8 Oct 2024 16:44:52 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="cL0FoPBi"; dkim-atps=neutral Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 51F5110E593 for ; Tue, 8 Oct 2024 16:44:50 +0000 (UTC) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-42cc8782869so60072285e9.2 for ; Tue, 08 Oct 2024 09:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1728405889; x=1729010689; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=90ANlFWGN+t7YRM+OQtOzbvQb+vC2EWhHHwqfHzlk5w=; b=cL0FoPBi9kr4rGtoMOBIfrMPTZjJzUPJ3bq2NclYKYZ/3cnSyk0dHqPJ0mtaFIh59g Ko0W7ZAxTcOAm7mpGk3MS4Jbn3m+W7dSlDyL9ui9HsBUcEMneum8diUTNErNT/aQiNV7 B2Vu2FKhzFj/ngPYanUR2q2a4mgkah/Q+FZMRSKJZpgk/KN4uU96MgE+Xw45ZKZuydPs BUVQW2agEJAjWDm8FgAzJWFsgHng3JYRCI3aZ8yr++Pa6v3xnTMDS81U0BI3Wy/bmFFt LQSo75P9LlIZtNht8kxzOfL8GH620jr2MJEUMQmFu4G7LC+wsqEjixU4gz/1aGieMPKD qQ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728405889; x=1729010689; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=90ANlFWGN+t7YRM+OQtOzbvQb+vC2EWhHHwqfHzlk5w=; b=dCWHEqmcYBlbeqldpPrZOZIZYM4g14nao1bSONS+jaayn2Zf+CE9HP0ojt3V1CkzmC u6+XP1jSvlCAkN1rPph1wh9cBOE53+xC6gfxTWWeMUKnXaSzmW1wq8Ryj8a/0xsMkc7O 6RBF2d9c3Dn8B6d/cPSGXzH+HJpOyvYKqz4MwEy9mtPvkk7uQ1Dg1PJYBDDgVYt0Up05 Lw+uID8rYVMARdYhRKpGb6f7IkcUC+mXqIDxoVFF9tGo7Ny8XgrG2LpMnoHNHY2zryay kg/e+Ohz4ElQByjOAEBD5yWcGAhI3C90yjpqIazGm3LHi0cRBUZY/PbCFMCAu7mdmRmh I50Q== X-Forwarded-Encrypted: i=1; AJvYcCXzm0vI0fWlEIPtjNCtRi2om8PkxT4sbSUMSti2HjBinhI8N5wD0X+pdxPjxydmVIR3sCdMTlhEcsw=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxKwjU3KumTbHIJHPv0bx2tFw6QyISDTwlBfps+rOf9vd69fQqd B9kA5he4NYPtZWMu0MQU3uKJPPviHHBy5eD0MQMjpLy9zn64lJA+7/JUkGbQLIY= X-Google-Smtp-Source: AGHT+IFvA3g8BnPqda9AgaP6SE6nfhTyCYyUtjJJCs7ai6iH9pJMhXZuRLfeVaJbZvQEw/32OWwilg== X-Received: by 2002:a05:600c:47d2:b0:430:5701:93a4 with SMTP id 5b1f17b1804b1-430570198c6mr14325085e9.14.1728405888599; Tue, 08 Oct 2024 09:44:48 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42f86b4acddsm132133155e9.44.2024.10.08.09.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:44:48 -0700 (PDT) From: Dave Stevenson Date: Tue, 08 Oct 2024 17:44:35 +0100 Subject: [PATCH 2/3] drm/vc4: Match drm_dev_enter and exit calls in vc4_hvs_atomic_flush MIME-Version: 1.0 Message-Id: <20241008-drm-vc4-fixes-v1-2-9d0396ca9f42@raspberrypi.com> References: <20241008-drm-vc4-fixes-v1-0-9d0396ca9f42@raspberrypi.com> In-Reply-To: <20241008-drm-vc4-fixes-v1-0-9d0396ca9f42@raspberrypi.com> To: Maxime Ripard , Raspberry Pi Kernel Maintenance , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dave Stevenson X-Mailer: b4 0.14.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 92c17d16476c ("drm/vc4: hvs: Ignore atomic_flush if we're disabled") added a path which returned early without having called drm_dev_exit. Ensure all paths call drm_dev_exit. Fixes: 92c17d16476c ("drm/vc4: hvs: Ignore atomic_flush if we're disabled") Signed-off-by: Dave Stevenson Reviewed-by: Maíra Canal Tested-by: Marek Szyprowski --- drivers/gpu/drm/vc4/vc4_hvs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c index 546ee11016b2..c5ebc317188a 100644 --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c @@ -603,7 +603,7 @@ void vc4_hvs_atomic_flush(struct drm_crtc *crtc, } if (vc4_state->assigned_channel == VC4_HVS_CHANNEL_DISABLED) - return; + goto exit; if (debug_dump_regs) { DRM_INFO("CRTC %d HVS before:\n", drm_crtc_index(crtc)); @@ -686,6 +686,7 @@ void vc4_hvs_atomic_flush(struct drm_crtc *crtc, vc4_hvs_dump_state(hvs); } +exit: drm_dev_exit(idx); } From patchwork Tue Oct 8 16:44:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 13826711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24FD3CEFC31 for ; Tue, 8 Oct 2024 16:44:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99EFA10E596; Tue, 8 Oct 2024 16:44:52 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="gPcfHI0h"; dkim-atps=neutral Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0CB7010E594 for ; Tue, 8 Oct 2024 16:44:51 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42cb0f28bfbso55033105e9.1 for ; Tue, 08 Oct 2024 09:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1728405889; x=1729010689; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2l4FLyzwOuwNRQ0BH8EkMWwB8eDzTs5gmrCiRkeOxgQ=; b=gPcfHI0hH/yZV4G2inHUm0MEPHGjythpEGtr9pwrUtKaJygpl+eEgH7YUkEtT2JlJj UaBRYGws3768nzRLs2o4370JzKyPZgBsT1bK+opdWlNqD5SrSg0IjVcDSU7ukvSy839G m3elc2rgR8qIXwJzJCok2XpecsEoTbmz41V4gJctvhbdBfIZTN/ChJGwVXlkbvtYmuGv luxxuuLT0/UAFICHfY5mNEmN+aHU3c9vzW0v8PshA9plwRR4teGBTKkc94KwPKVFt6fC ZjhmJciSa/muRegqnBk4mbx8KqtlknYSn9grN/9QY8j+hd1rZxsQilQ+4aFESBH05Hej FNKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728405889; x=1729010689; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2l4FLyzwOuwNRQ0BH8EkMWwB8eDzTs5gmrCiRkeOxgQ=; b=sTVJmzoPl/ICJLKyhmzKIUpSOBJGcGb1jJkf29f+LeEkz5A2Bzh7B07xLMyGley5iz Q+9F8mwINAF7+oCVSiPcpikX0ci/ZaQAuRpW7P40yCdO5Lr/r4yVD7JzOpPBwtUtmL57 4VdtQ/TECurl8b7molRaLmCuGl2KfXE1VuQVgl/y90mhk20ASKM0Qy/+s7qQZpDGKysU ALNQMXg7avKPJNXQac/9HtYFiHXfn8+WV8eRv4FsXSJL1ib+JQ5AgHMjh7a69z9INwsJ lLzCAmBE3Fh4hVMdvCpt74j0i3SSdT1Cn+6BV6ekcxHLKizbLvgsxKoW6Si07SCnavZ6 7RMA== X-Forwarded-Encrypted: i=1; AJvYcCVPsTzrKAnS4BPUWNmsBMKQUthpD4jsbZRSI990ncy6pkEfcQM2/bBemgK2cDb5eW5LojhGAlTZAGg=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxKhhG/TALII7rfimGGIyoYbtbaPYgPmEW/W3OhJwOkPaZjaUqr EAahqShKyORqG9mfVI9+KHH68tvpCaEElFSi9S1KQG0Afb+hZcPd8ik3qq+sfsI= X-Google-Smtp-Source: AGHT+IHutSlQhM1lnWVmLyvUAsNDvxWyNHWdvnQugeExpuf3dCs4jPGscvamNYC8t4b6FoA34h4a+w== X-Received: by 2002:a05:600c:35ca:b0:42c:bae0:f05b with SMTP id 5b1f17b1804b1-43023094011mr28998195e9.1.1728405889355; Tue, 08 Oct 2024 09:44:49 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42f86b4acddsm132133155e9.44.2024.10.08.09.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:44:48 -0700 (PDT) From: Dave Stevenson Date: Tue, 08 Oct 2024 17:44:36 +0100 Subject: [PATCH 3/3] drm/vc4: Correct generation check in vc4_hvs_lut_load MIME-Version: 1.0 Message-Id: <20241008-drm-vc4-fixes-v1-3-9d0396ca9f42@raspberrypi.com> References: <20241008-drm-vc4-fixes-v1-0-9d0396ca9f42@raspberrypi.com> In-Reply-To: <20241008-drm-vc4-fixes-v1-0-9d0396ca9f42@raspberrypi.com> To: Maxime Ripard , Raspberry Pi Kernel Maintenance , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dave Stevenson X-Mailer: b4 0.14.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 24c5ed3ddf27 ("drm/vc4: Introduce generation number enum") incorrectly swapped a check of hvs->vc4->is_vc5 to hvs->vc4->gen == VC4_GEN_4 in vc4_hvs_lut_load, hence breaking loading the gamma look up table on Pi0-3. Correct that conditional. Fixes: 24c5ed3ddf27 ("drm/vc4: Introduce generation number enum") Signed-off-by: Dave Stevenson Reviewed-by: Maíra Canal Reported-by: Marek Szyprowski Tested-by: Marek Szyprowski --- drivers/gpu/drm/vc4/vc4_hvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c index c5ebc317188a..1edf6e3fa7e6 100644 --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c @@ -224,7 +224,7 @@ static void vc4_hvs_lut_load(struct vc4_hvs *hvs, if (!drm_dev_enter(drm, &idx)) return; - if (hvs->vc4->gen == VC4_GEN_4) + if (hvs->vc4->gen != VC4_GEN_4) goto exit; /* The LUT memory is laid out with each HVS channel in order,