[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230118122003.132905-1-wsa+renesas@sang-engineering.com>
Date: Wed, 18 Jan 2023 13:20:02 +0100
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: linux-renesas-soc@...r.kernel.org
Cc: Wolfram Sang <wsa+renesas@...g-engineering.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Kieran Bingham <kieran.bingham+renesas@...asonboard.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] media: renesas: vsp1: blacklist r8a7795 ES1.*
The earliest revision of these SoC may hang when underrunning. Later
revisions have that fixed. Bail out when we detect a problematic
version.
Signed-off-by: Wolfram Sang <wsa+renesas@...g-engineering.com>
---
The BSP tries to work around the issue, yet this is neither upstreamable
nor are we sure the solution is complete. Because the early SoC revision
is hardly in use, we simply "document" the problem upstream.
drivers/media/platform/renesas/vsp1/vsp1_drv.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/media/platform/renesas/vsp1/vsp1_drv.c b/drivers/media/platform/renesas/vsp1/vsp1_drv.c
index c260d318d298..b395e8eb0af9 100644
--- a/drivers/media/platform/renesas/vsp1/vsp1_drv.c
+++ b/drivers/media/platform/renesas/vsp1/vsp1_drv.c
@@ -17,6 +17,7 @@
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>
+#include <linux/sys_soc.h>
#include <linux/videodev2.h>
#include <media/rcar-fcp.h>
@@ -875,13 +876,24 @@ static const struct vsp1_device_info *vsp1_lookup_info(struct vsp1_device *vsp1)
return NULL;
}
+static const struct soc_device_attribute vsp1_blacklist[] = {
+ /* H3 ES1.* has underrun hang issues */
+ { .soc_id = "r8a7795", .revision = "ES1.*" },
+ { /* Sentinel */ }
+};
+
static int vsp1_probe(struct platform_device *pdev)
{
+ const struct soc_device_attribute *attr;
struct vsp1_device *vsp1;
struct device_node *fcp_node;
int ret;
int irq;
+ attr = soc_device_match(vsp1_blacklist);
+ if (attr)
+ return -ENOTSUPP;
+
vsp1 = devm_kzalloc(&pdev->dev, sizeof(*vsp1), GFP_KERNEL);
if (vsp1 == NULL)
return -ENOMEM;
--
2.30.2
Powered by blists - more mailing lists