From: sashiko-bot@kernel.org
To: "Michal Wilczynski" <m.wilczynski@samsung.com>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 14/18] soc: starfive: Add jh7110-hdmi-subsystem driver
Date: Tue, 24 Nov 2026 16:09:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-231533@kernel.org> (raw)
In-Reply-To: <20261124-jh7110-clean-send-v8-14-de92635dd857@samsung.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] soc: starfive: wrong regmap stride and val_bits in
jh7110-hdmi-subsystem
--
commit 53f4e237d4154b9fe38d95df3857cd80819078dc
Author: Michal Wilczynski <m.wilczynski@samsung.com>
soc: starfive: Add jh7110-hdmi-subsystem driver
This commit adds the parent platform driver for the StarFive JH7110 HDMI
subsystem, initializing a shared MMIO regmap and populating its HDMI
controller and PHY child devices.
> diff --git a/drivers/soc/starfive/jh7110-hdmi-subsystem.c b/drivers/soc/starfive/jh7110-hdmi-subsystem.c
> new file mode 100644
> index 0000000000000..b01dc66450f51
> --- /dev/null
> +++ b/drivers/soc/starfive/jh7110-hdmi-subsystem.c
> @@ -0,0 +1,72 @@
[ ... ]
> +static const struct regmap_config starfive_hdmi_regmap_config = {
> + .reg_bits = 32,
> + .val_bits = 8,
> + .max_register = 0x3fff,
> +};
[Severity: Medium]
Should starfive_hdmi_regmap_config set .val_bits = 32, .reg_stride = 4,
and .max_register = 0x3ffc?
Both child drivers that consume this shared regmap address registers at
4-byte offsets (offset * 4 in drivers/gpu/drm/bridge/inno-hdmi.c and
reg * 4 in drivers/phy/starfive/phy-jh7110-inno-hdmi.c), and the
controller's own fallback regmap config uses 32-bit accesses with a
4-byte stride:
drivers/gpu/drm/bridge/inno-hdmi.c:
static const struct regmap_config inno_hdmi_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
};
With .val_bits = 8 and the default 1-byte stride, regmap_mmio uses byte
accessors (readb/writeb) instead of 32-bit accessors (readl/writel), does
not check 4-byte alignment, and regmap debugfs dumps step through 0x0000..
0x3fff by 1 byte, issuing unaligned byte reads to the upper three bytes
of every 32-bit register slot.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-jh7110-clean-send-v8-0-de92635dd857@samsung.com?part=14
next prev parent reply other threads:[~2026-11-24 16:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20261124155359eucas1p2f7d4e5137f38415561ce77fd55023466@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 00/18] drm: starfive: jh7110: Enable display subsystem Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 01/18] drm/bridge: inno-hdmi: fix swapped HSYNC and VSYNC polarity Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 02/18] drm/bridge: inno-hdmi: Report hotplug through drm_bridge_hpd_notify() Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 03/18] dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller Michal Wilczynski
2026-11-24 16:01 ` sashiko-bot
2026-11-24 15:52 ` [PATCH v8 04/18] dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 05/18] dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 06/18] dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 07/18] drm/bridge: inno-hdmi: Split probe out of bind Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 08/18] drm/bridge: inno-hdmi: Use a regmap for register access Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 09/18] drm/bridge: inno-hdmi: Add .disable platform operation Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 10/18] drm/bridge: inno-hdmi: Add .mode_valid " Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 11/18] drm/bridge: inno-hdmi: Make the PHY configuration table optional Michal Wilczynski
2026-11-24 16:05 ` sashiko-bot
2026-11-24 15:52 ` [PATCH v8 12/18] drm/bridge: inno-hdmi: Make the register clock source selectable Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 13/18] drm/bridge: inno-hdmi: Make the supported HDMI version selectable Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 14/18] soc: starfive: Add jh7110-hdmi-subsystem driver Michal Wilczynski
2026-11-24 16:09 ` sashiko-bot [this message]
2026-11-24 15:52 ` [PATCH v8 15/18] soc: starfive: Add jh7110-vout-subsystem driver Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 16/18] drm/bridge: starfive: Add JH7110 HDMI controller driver Michal Wilczynski
2026-11-24 15:52 ` [PATCH v8 17/18] riscv: dts: starfive: jh7110: Update DT for display subsystem Michal Wilczynski
2026-11-24 16:12 ` sashiko-bot
2026-11-24 15:52 ` [PATCH v8 18/18] MAINTAINERS: Add StarFive JH7110 display subsystem entry Michal Wilczynski
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=sashiko-outbox-231533@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=m.wilczynski@samsung.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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