* [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4)
@ 2025-10-31 16:01 Jason-JH Lin
2025-10-31 16:01 ` [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility Jason-JH Lin
` (4 more replies)
0 siblings, 5 replies; 12+ messages in thread
From: Jason-JH Lin @ 2025-10-31 16:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jassi Brar,
Chun-Kuang Hu, AngeloGioacchino Del Regno, Mauro Carvalho Chehab
Cc: Matthias Brugger, Nicolas Dufresne, Jason-JH Lin, Nancy Lin,
Singo Chang, Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang,
Fei Shao, Chen-yu Tsai, Project_Global_Chrome_Upstream_Group,
devicetree, linux-kernel, dri-devel, linux-mediatek,
linux-arm-kernel, linux-media, Jason-jh Lin
From: Jason-jh Lin <jason-jh.lin@mediatek.corp-partner.google.com>
This series migrates the MediaTek SoC, DRM, and MDP3 drivers to the new
CMDQ APIs introduced for MT8196.
Series application order:
1. [Fixes] Refine DMA address handling for the command buffer
- https://lore.kernel.org/all/20251022171847.379470-1-jason-jh.lin@mediatek.com/
2. [Series 1/4] Add GCE support for MT8196 and update CMDQ APIs
- https://lore.kernel.org/all/20251031155838.1650833-1-jason-jh.lin@mediatek.com/
3. [Series 2/4] Migrate subsystems to new CMDQ APIs (this series)
4. [Series 3/4] Remove shift_pa from CMDQ jump functions
5. [Series 4/4] Remove deprecated CMDQ APIs
Please apply this series after the MT8196 GCE support series,
and before the following series.
---
Jason-JH Lin (5):
soc: mediatek: Use pkt_write function pointer for subsys ID
compatibility
soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing
shift_pa
drm/mediatek:Use reg_write function pointer for subsys ID
compatibility
media: platform: mtk-mdp3: Refactor CMDQ writes for CMDQ API change
media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to
cmdq_pkt_jump_rel_temp()
drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 12 +++++-----
.../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 6 ++---
.../platform/mediatek/mdp3/mtk-mdp3-comp.h | 6 ++---
drivers/soc/mediatek/mtk-mmsys.c | 8 ++++---
drivers/soc/mediatek/mtk-mutex.c | 5 ++--
include/linux/soc/mediatek/mtk-cmdq.h | 24 +++++++++++++++++++
6 files changed, 44 insertions(+), 17 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility
2025-10-31 16:01 [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4) Jason-JH Lin
@ 2025-10-31 16:01 ` Jason-JH Lin
2025-11-01 11:06 ` kernel test robot
2025-11-01 11:28 ` kernel test robot
2025-10-31 16:01 ` [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa Jason-JH Lin
` (3 subsequent siblings)
4 siblings, 2 replies; 12+ messages in thread
From: Jason-JH Lin @ 2025-10-31 16:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jassi Brar,
Chun-Kuang Hu, AngeloGioacchino Del Regno, Mauro Carvalho Chehab
Cc: Matthias Brugger, Nicolas Dufresne, Jason-JH Lin, Nancy Lin,
Singo Chang, Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang,
Fei Shao, Chen-yu Tsai, Project_Global_Chrome_Upstream_Group,
devicetree, linux-kernel, dri-devel, linux-mediatek,
linux-arm-kernel, linux-media
Switch to pkt_write and reg_write_mask function pointers for register
access, enabling compatibility with platforms regardless of subsys ID
support.
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/soc/mediatek/mtk-mmsys.c | 8 +++++---
drivers/soc/mediatek/mtk-mutex.c | 5 +++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c
index bb4639ca0b8c..2f3e0778bb17 100644
--- a/drivers/soc/mediatek/mtk-mmsys.c
+++ b/drivers/soc/mediatek/mtk-mmsys.c
@@ -167,9 +167,11 @@ static void mtk_mmsys_update_bits(struct mtk_mmsys *mmsys, u32 offset, u32 mask,
u32 tmp;
if (mmsys->cmdq_base.size && cmdq_pkt) {
- ret = cmdq_pkt_write_mask(cmdq_pkt, mmsys->cmdq_base.subsys,
- mmsys->cmdq_base.offset + offset, val,
- mask);
+ ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
+ mmsys->cmdq_base.subsys,
+ mmsys->cmdq_base.pa_base,
+ mmsys->cmdq_base.offset + offset,
+ val, mask);
if (ret)
pr_debug("CMDQ unavailable: using CPU write\n");
else
diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c
index 38179e8cd98f..eb5d381ff5af 100644
--- a/drivers/soc/mediatek/mtk-mutex.c
+++ b/drivers/soc/mediatek/mtk-mutex.c
@@ -990,6 +990,7 @@ int mtk_mutex_enable_by_cmdq(struct mtk_mutex *mutex, void *pkt)
struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx,
mutex[mutex->id]);
struct cmdq_pkt *cmdq_pkt = (struct cmdq_pkt *)pkt;
+ dma_addr_t en_addr = mtx->addr + DISP_REG_MUTEX_EN(mutex->id);
WARN_ON(&mtx->mutex[mutex->id] != mutex);
@@ -998,8 +999,8 @@ int mtk_mutex_enable_by_cmdq(struct mtk_mutex *mutex, void *pkt)
return -ENODEV;
}
- cmdq_pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys,
- mtx->addr + DISP_REG_MUTEX_EN(mutex->id), 1);
+ mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, en_addr, en_addr, 1);
+
return 0;
}
EXPORT_SYMBOL_GPL(mtk_mutex_enable_by_cmdq);
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa
2025-10-31 16:01 [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4) Jason-JH Lin
2025-10-31 16:01 ` [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility Jason-JH Lin
@ 2025-10-31 16:01 ` Jason-JH Lin
2025-11-01 11:28 ` kernel test robot
2025-10-31 16:01 ` [PATCH 3/5] drm/mediatek:Use reg_write function pointer for subsys ID compatibility Jason-JH Lin
` (2 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Jason-JH Lin @ 2025-10-31 16:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jassi Brar,
Chun-Kuang Hu, AngeloGioacchino Del Regno, Mauro Carvalho Chehab
Cc: Matthias Brugger, Nicolas Dufresne, Jason-JH Lin, Nancy Lin,
Singo Chang, Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang,
Fei Shao, Chen-yu Tsai, Project_Global_Chrome_Upstream_Group,
devicetree, linux-kernel, dri-devel, linux-mediatek,
linux-arm-kernel, linux-media
Since shift_pa will be stored into the cmdq_mobx_priv of cmdq_pkt, all
the shif_pa parameters in CMDQ helper APIs can be removed.
Add cmdq_pkt_jump_rel_temp() for the current users of cmdq_pkt_jump_rel(),
and then remove shift_pa after all users have migrated to the new APIs.
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
---
include/linux/soc/mediatek/mtk-cmdq.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/include/linux/soc/mediatek/mtk-cmdq.h b/include/linux/soc/mediatek/mtk-cmdq.h
index a06b5a61f337..a7ea1a957a9e 100644
--- a/include/linux/soc/mediatek/mtk-cmdq.h
+++ b/include/linux/soc/mediatek/mtk-cmdq.h
@@ -445,6 +445,24 @@ static inline int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr, u8 shift_
*/
int cmdq_pkt_jump_rel(struct cmdq_pkt *pkt, s32 offset, u8 shift_pa);
+/**
+ * cmdq_pkt_jump_rel_temp() - Temporary wrapper for new CMDQ helper API
+ * @pkt: the CMDQ packet
+ * @offset: relative offset of target instruction buffer from current PC.
+ * @shift_pa: [DEPRECATED] shift bits of physical address in CMDQ instruction.
+ * This value is got by cmdq_get_shift_pa().
+ *
+ * This function is a temporary wrapper that was introduced only for ease of
+ * migration of the many users of the CMDQ API located in multiple kernel
+ * subsystems.
+ *
+ * This has to be removed after all users are migrated to the newer CMDQ API.
+ */
+static inline int cmdq_pkt_jump_rel_temp(struct cmdq_pkt *pkt, s32 offset, u8 shift_pa)
+{
+ return cmdq_pkt_jump_rel(pkt, offset, shift_pa);
+}
+
/**
* cmdq_pkt_eoc() - Append EOC and ask GCE to generate an IRQ at end of execution
* @pkt: The CMDQ packet
@@ -599,6 +617,12 @@ static inline int cmdq_pkt_jump_rel(struct cmdq_pkt *pkt, s32 offset, u8 shift_p
return -EINVAL;
}
+/* This wrapper has to be removed after all users migrated to jump_rel */
+static inline int cmdq_pkt_jump_rel_temp(struct cmdq_pkt *pkt, s32 offset, u8 shift_pa)
+{
+ return -EIMVAL;
+}
+
static inline int cmdq_pkt_eoc(struct cmdq_pkt *pkt)
{
return -EINVAL;
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/5] drm/mediatek:Use reg_write function pointer for subsys ID compatibility
2025-10-31 16:01 [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4) Jason-JH Lin
2025-10-31 16:01 ` [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility Jason-JH Lin
2025-10-31 16:01 ` [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa Jason-JH Lin
@ 2025-10-31 16:01 ` Jason-JH Lin
2025-10-31 16:01 ` [PATCH 4/5] media: platform: mtk-mdp3: Refactor CMDQ writes for CMDQ API change Jason-JH Lin
2025-10-31 16:02 ` [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp() Jason-JH Lin
4 siblings, 0 replies; 12+ messages in thread
From: Jason-JH Lin @ 2025-10-31 16:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jassi Brar,
Chun-Kuang Hu, AngeloGioacchino Del Regno, Mauro Carvalho Chehab
Cc: Matthias Brugger, Nicolas Dufresne, Jason-JH Lin, Nancy Lin,
Singo Chang, Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang,
Fei Shao, Chen-yu Tsai, Project_Global_Chrome_Upstream_Group,
devicetree, linux-kernel, dri-devel, linux-mediatek,
linux-arm-kernel, linux-media, CK Hu
Switch to reg_write and reg_write_mask function pointers for register
access, enabling compatibility with platforms regardless of subsys ID
support.
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_ddp_comp.c
index ac6620e10262..282620cf3567 100644
--- a/drivers/gpu/drm/mediatek/mtk_ddp_comp.c
+++ b/drivers/gpu/drm/mediatek/mtk_ddp_comp.c
@@ -72,8 +72,8 @@ void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value,
{
#if IS_REACHABLE(CONFIG_MTK_CMDQ)
if (cmdq_pkt)
- cmdq_pkt_write(cmdq_pkt, cmdq_reg->subsys,
- cmdq_reg->offset + offset, value);
+ cmdq_reg->pkt_write(cmdq_pkt, cmdq_reg->subsys, cmdq_reg->pa_base,
+ cmdq_reg->offset + offset, value);
else
#endif
writel(value, regs + offset);
@@ -85,8 +85,8 @@ void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value,
{
#if IS_REACHABLE(CONFIG_MTK_CMDQ)
if (cmdq_pkt)
- cmdq_pkt_write(cmdq_pkt, cmdq_reg->subsys,
- cmdq_reg->offset + offset, value);
+ cmdq_reg->pkt_write(cmdq_pkt, cmdq_reg->subsys, cmdq_reg->pa_base,
+ cmdq_reg->offset + offset, value);
else
#endif
writel_relaxed(value, regs + offset);
@@ -98,8 +98,8 @@ void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value,
{
#if IS_REACHABLE(CONFIG_MTK_CMDQ)
if (cmdq_pkt) {
- cmdq_pkt_write_mask(cmdq_pkt, cmdq_reg->subsys,
- cmdq_reg->offset + offset, value, mask);
+ cmdq_reg->pkt_write_mask(cmdq_pkt, cmdq_reg->subsys, cmdq_reg->pa_base,
+ cmdq_reg->offset + offset, value, mask);
} else {
#endif
u32 tmp = readl(regs + offset);
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/5] media: platform: mtk-mdp3: Refactor CMDQ writes for CMDQ API change
2025-10-31 16:01 [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4) Jason-JH Lin
` (2 preceding siblings ...)
2025-10-31 16:01 ` [PATCH 3/5] drm/mediatek:Use reg_write function pointer for subsys ID compatibility Jason-JH Lin
@ 2025-10-31 16:01 ` Jason-JH Lin
2025-10-31 16:02 ` [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp() Jason-JH Lin
4 siblings, 0 replies; 12+ messages in thread
From: Jason-JH Lin @ 2025-10-31 16:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jassi Brar,
Chun-Kuang Hu, AngeloGioacchino Del Regno, Mauro Carvalho Chehab
Cc: Matthias Brugger, Nicolas Dufresne, Jason-JH Lin, Nancy Lin,
Singo Chang, Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang,
Fei Shao, Chen-yu Tsai, Project_Global_Chrome_Upstream_Group,
devicetree, linux-kernel, dri-devel, linux-mediatek,
linux-arm-kernel, linux-media
Update CMDQ register writes to use subsys-aware APIs,
cmdq_pkt_write_subsys() and cmdq_pkt_write_mask_subsys().
This conforms to recent CMDQ API changes that split access by
subsys ID support.
Since all current MDP SoCs support subsys ID, and future MDP
deployments will not run on SoCs without subsys ID, only
subsys-specific API calls are needed. No logic for non-subsys ID
hardware is required.
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 4 ++--
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
index e5ccf673e152..d0b0b072f953 100644
--- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
+++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
@@ -321,7 +321,7 @@ static int mdp_path_config_subfrm(struct mdp_cmdq_cmd *cmd,
/* Enable mux settings */
for (index = 0; index < ctrl->num_sets; index++) {
set = &ctrl->sets[index];
- cmdq_pkt_write(&cmd->pkt, set->subsys_id, set->reg, set->value);
+ cmdq_pkt_write_subsys(&cmd->pkt, set->subsys_id, set->reg, set->reg, set->value);
}
/* Config sub-frame information */
for (index = (num_comp - 1); index >= 0; index--) {
@@ -376,7 +376,7 @@ static int mdp_path_config_subfrm(struct mdp_cmdq_cmd *cmd,
/* Disable mux settings */
for (index = 0; index < ctrl->num_sets; index++) {
set = &ctrl->sets[index];
- cmdq_pkt_write(&cmd->pkt, set->subsys_id, set->reg, 0);
+ cmdq_pkt_write_subsys(&cmd->pkt, set->subsys_id, set->reg, set->reg, 0);
}
return 0;
diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h
index 681906c16419..c6fc180950f2 100644
--- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h
+++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h
@@ -12,14 +12,14 @@
#define MM_REG_WRITE_MASK(cmd, id, base, ofst, val, mask) \
do { \
typeof(mask) (m) = (mask); \
- cmdq_pkt_write_mask(&((cmd)->pkt), id, (base) + (ofst), \
- (val), \
+ cmdq_pkt_write_mask_subsys(&((cmd)->pkt), (id), (base), \
+ (base) + (ofst), (val), \
(((m) & (ofst##_MASK)) == (ofst##_MASK)) ? \
(0xffffffff) : (m)); \
} while (0)
#define MM_REG_WRITE(cmd, id, base, ofst, val) \
- cmdq_pkt_write(&((cmd)->pkt), id, (base) + (ofst), (val))
+ cmdq_pkt_write_subsys(&((cmd)->pkt), (id), (base), (base) + (ofst), (val))
#define MM_REG_WAIT(cmd, evt) \
do { \
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp()
2025-10-31 16:01 [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4) Jason-JH Lin
` (3 preceding siblings ...)
2025-10-31 16:01 ` [PATCH 4/5] media: platform: mtk-mdp3: Refactor CMDQ writes for CMDQ API change Jason-JH Lin
@ 2025-10-31 16:02 ` Jason-JH Lin
2025-12-09 20:47 ` Nicolas Dufresne
4 siblings, 1 reply; 12+ messages in thread
From: Jason-JH Lin @ 2025-10-31 16:02 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jassi Brar,
Chun-Kuang Hu, AngeloGioacchino Del Regno, Mauro Carvalho Chehab
Cc: Matthias Brugger, Nicolas Dufresne, Jason-JH Lin, Nancy Lin,
Singo Chang, Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang,
Fei Shao, Chen-yu Tsai, Project_Global_Chrome_Upstream_Group,
devicetree, linux-kernel, dri-devel, linux-mediatek,
linux-arm-kernel, linux-media
To facilitate the removal of the shift_pa parameter from
cmdq_pkt_jump_rel(), current users of cmdq_pkt_jump_rel() need to
transition to using cmdq_pkt_jump_rel_temp() before the API change
is implemented.
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
index d0b0b072f953..5fc9263ccb78 100644
--- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
+++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
@@ -628,7 +628,7 @@ static struct mdp_cmdq_cmd *mdp_cmdq_prepare(struct mdp_dev *mdp,
goto err_free_path;
}
cmdq_pkt_eoc(&cmd->pkt);
- cmdq_pkt_jump_rel(&cmd->pkt, CMDQ_INST_SIZE, mdp->cmdq_shift_pa[pp_idx]);
+ cmdq_pkt_jump_rel_temp(&cmd->pkt, CMDQ_INST_SIZE, mdp->cmdq_shift_pa[pp_idx]);
for (i = 0; i < num_comp; i++) {
s32 inner_id = MDP_COMP_NONE;
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility
2025-10-31 16:01 ` [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility Jason-JH Lin
@ 2025-11-01 11:06 ` kernel test robot
2025-11-01 11:28 ` kernel test robot
1 sibling, 0 replies; 12+ messages in thread
From: kernel test robot @ 2025-11-01 11:06 UTC (permalink / raw)
To: Jason-JH Lin, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jassi Brar, Chun-Kuang Hu, AngeloGioacchino Del Regno,
Mauro Carvalho Chehab
Cc: oe-kbuild-all, linux-media, Matthias Brugger, Nicolas Dufresne,
Jason-JH Lin, Nancy Lin, Singo Chang, Paul-PL Chen, Moudy Ho,
Xiandong Wang, Sirius Wang, Fei Shao, Chen-yu Tsai,
Project_Global_Chrome_Upstream_Group, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-arm-kernel
Hi Jason-JH,
kernel test robot noticed the following build errors:
[auto build test ERROR on linuxtv-media-pending/master]
[also build test ERROR on media-tree/master linus/master v6.18-rc3 next-20251031]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jason-JH-Lin/soc-mediatek-Use-pkt_write-function-pointer-for-subsys-ID-compatibility/20251101-000555
base: https://git.linuxtv.org/media-ci/media-pending.git master
patch link: https://lore.kernel.org/r/20251031160309.1654761-2-jason-jh.lin%40mediatek.com
patch subject: [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility
config: powerpc64-randconfig-r063-20251101 (https://download.01.org/0day-ci/archive/20251101/202511011822.Vn6fsvGr-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251101/202511011822.Vn6fsvGr-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511011822.Vn6fsvGr-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/soc/mediatek/mtk-mmsys.c:170:26: error: no member named 'pkt_write_mask' in 'struct cmdq_client_reg'
170 | ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
| ~~~~~~~~~~~~~~~~ ^
>> drivers/soc/mediatek/mtk-mmsys.c:172:30: error: no member named 'pa_base' in 'struct cmdq_client_reg'
172 | mmsys->cmdq_base.pa_base,
| ~~~~~~~~~~~~~~~~ ^
2 errors generated.
--
>> drivers/soc/mediatek/mtk-mutex.c:1002:16: error: no member named 'pkt_write' in 'struct cmdq_client_reg'
1002 | mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, en_addr, en_addr, 1);
| ~~~~~~~~~~~~~ ^
1 error generated.
vim +170 drivers/soc/mediatek/mtk-mmsys.c
162
163 static void mtk_mmsys_update_bits(struct mtk_mmsys *mmsys, u32 offset, u32 mask, u32 val,
164 struct cmdq_pkt *cmdq_pkt)
165 {
166 int ret;
167 u32 tmp;
168
169 if (mmsys->cmdq_base.size && cmdq_pkt) {
> 170 ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
171 mmsys->cmdq_base.subsys,
> 172 mmsys->cmdq_base.pa_base,
173 mmsys->cmdq_base.offset + offset,
174 val, mask);
175 if (ret)
176 pr_debug("CMDQ unavailable: using CPU write\n");
177 else
178 return;
179 }
180 tmp = readl_relaxed(mmsys->regs + offset);
181 tmp = (tmp & ~mask) | (val & mask);
182 writel_relaxed(tmp, mmsys->regs + offset);
183 }
184
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility
2025-10-31 16:01 ` [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility Jason-JH Lin
2025-11-01 11:06 ` kernel test robot
@ 2025-11-01 11:28 ` kernel test robot
1 sibling, 0 replies; 12+ messages in thread
From: kernel test robot @ 2025-11-01 11:28 UTC (permalink / raw)
To: Jason-JH Lin, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jassi Brar, Chun-Kuang Hu, AngeloGioacchino Del Regno,
Mauro Carvalho Chehab
Cc: oe-kbuild-all, linux-media, Matthias Brugger, Nicolas Dufresne,
Jason-JH Lin, Nancy Lin, Singo Chang, Paul-PL Chen, Moudy Ho,
Xiandong Wang, Sirius Wang, Fei Shao, Chen-yu Tsai,
Project_Global_Chrome_Upstream_Group, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-arm-kernel
Hi Jason-JH,
kernel test robot noticed the following build errors:
[auto build test ERROR on linuxtv-media-pending/master]
[also build test ERROR on media-tree/master linus/master v6.18-rc3 next-20251031]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jason-JH-Lin/soc-mediatek-Use-pkt_write-function-pointer-for-subsys-ID-compatibility/20251101-000555
base: https://git.linuxtv.org/media-ci/media-pending.git master
patch link: https://lore.kernel.org/r/20251031160309.1654761-2-jason-jh.lin%40mediatek.com
patch subject: [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility
config: xtensa-randconfig-r064-20251101 (https://download.01.org/0day-ci/archive/20251101/202511011936.zWnbnVXF-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251101/202511011936.zWnbnVXF-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511011936.zWnbnVXF-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/soc/mediatek/mtk-mmsys.c: In function 'mtk_mmsys_update_bits':
>> drivers/soc/mediatek/mtk-mmsys.c:170:25: error: 'struct cmdq_client_reg' has no member named 'pkt_write_mask'
ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
^
>> drivers/soc/mediatek/mtk-mmsys.c:172:29: error: 'struct cmdq_client_reg' has no member named 'pa_base'
mmsys->cmdq_base.pa_base,
^
--
drivers/soc/mediatek/mtk-mutex.c: In function 'mtk_mutex_enable_by_cmdq':
>> drivers/soc/mediatek/mtk-mutex.c:1002:15: error: 'struct cmdq_client_reg' has no member named 'pkt_write'
mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, en_addr, en_addr, 1);
^
vim +170 drivers/soc/mediatek/mtk-mmsys.c
162
163 static void mtk_mmsys_update_bits(struct mtk_mmsys *mmsys, u32 offset, u32 mask, u32 val,
164 struct cmdq_pkt *cmdq_pkt)
165 {
166 int ret;
167 u32 tmp;
168
169 if (mmsys->cmdq_base.size && cmdq_pkt) {
> 170 ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
171 mmsys->cmdq_base.subsys,
> 172 mmsys->cmdq_base.pa_base,
173 mmsys->cmdq_base.offset + offset,
174 val, mask);
175 if (ret)
176 pr_debug("CMDQ unavailable: using CPU write\n");
177 else
178 return;
179 }
180 tmp = readl_relaxed(mmsys->regs + offset);
181 tmp = (tmp & ~mask) | (val & mask);
182 writel_relaxed(tmp, mmsys->regs + offset);
183 }
184
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa
2025-10-31 16:01 ` [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa Jason-JH Lin
@ 2025-11-01 11:28 ` kernel test robot
2025-11-02 8:20 ` Jason-JH Lin (林睿祥)
0 siblings, 1 reply; 12+ messages in thread
From: kernel test robot @ 2025-11-01 11:28 UTC (permalink / raw)
To: Jason-JH Lin, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jassi Brar, Chun-Kuang Hu, AngeloGioacchino Del Regno,
Mauro Carvalho Chehab
Cc: llvm, oe-kbuild-all, linux-media, Matthias Brugger,
Nicolas Dufresne, Jason-JH Lin, Nancy Lin, Singo Chang,
Paul-PL Chen, Moudy Ho, Xiandong Wang, Sirius Wang, Fei Shao,
Chen-yu Tsai, Project_Global_Chrome_Upstream_Group, devicetree,
linux-kernel, dri-devel, linux-mediatek, linux-arm-kernel
Hi Jason-JH,
kernel test robot noticed the following build errors:
[auto build test ERROR on linuxtv-media-pending/master]
[also build test ERROR on media-tree/master linus/master v6.18-rc3 next-20251031]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jason-JH-Lin/soc-mediatek-Use-pkt_write-function-pointer-for-subsys-ID-compatibility/20251101-000555
base: https://git.linuxtv.org/media-ci/media-pending.git master
patch link: https://lore.kernel.org/r/20251031160309.1654761-3-jason-jh.lin%40mediatek.com
patch subject: [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa
config: x86_64-buildonly-randconfig-001-20251101 (https://download.01.org/0day-ci/archive/20251101/202511011919.0lkK3DY8-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251101/202511011919.0lkK3DY8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511011919.0lkK3DY8-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/soc/mediatek/mtk-mmsys.c:14:
In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
>> include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of undeclared identifier 'EIMVAL'
530 | return -EIMVAL;
| ^
drivers/soc/mediatek/mtk-mmsys.c:170:26: error: no member named 'pkt_write_mask' in 'struct cmdq_client_reg'
170 | ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
| ~~~~~~~~~~~~~~~~ ^
drivers/soc/mediatek/mtk-mmsys.c:172:30: error: no member named 'pa_base' in 'struct cmdq_client_reg'
172 | mmsys->cmdq_base.pa_base,
| ~~~~~~~~~~~~~~~~ ^
3 errors generated.
--
In file included from drivers/soc/mediatek/mtk-mutex.c:12:
In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
>> include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of undeclared identifier 'EIMVAL'
530 | return -EIMVAL;
| ^
drivers/soc/mediatek/mtk-mutex.c:1002:16: error: no member named 'pkt_write' in 'struct cmdq_client_reg'
1002 | mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, en_addr, en_addr, 1);
| ~~~~~~~~~~~~~ ^
2 errors generated.
--
In file included from mtk-mmsys.c:14:
In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
>> include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of undeclared identifier 'EIMVAL'
530 | return -EIMVAL;
| ^
mtk-mmsys.c:170:26: error: no member named 'pkt_write_mask' in 'struct cmdq_client_reg'
170 | ret = mmsys->cmdq_base.pkt_write_mask(cmdq_pkt,
| ~~~~~~~~~~~~~~~~ ^
mtk-mmsys.c:172:30: error: no member named 'pa_base' in 'struct cmdq_client_reg'
172 | mmsys->cmdq_base.pa_base,
| ~~~~~~~~~~~~~~~~ ^
3 errors generated.
--
In file included from mtk-mutex.c:12:
In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
>> include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of undeclared identifier 'EIMVAL'
530 | return -EIMVAL;
| ^
mtk-mutex.c:1002:16: error: no member named 'pkt_write' in 'struct cmdq_client_reg'
1002 | mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, en_addr, en_addr, 1);
| ~~~~~~~~~~~~~ ^
2 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for OF_GPIO
Depends on [n]: GPIOLIB [=y] && OF [=n] && HAS_IOMEM [=y]
Selected by [y]:
- GPIO_TB10X [=y] && GPIOLIB [=y] && HAS_IOMEM [=y] && (ARC_PLAT_TB10X || COMPILE_TEST [=y])
WARNING: unmet direct dependencies detected for GPIO_SYSCON
Depends on [n]: GPIOLIB [=y] && HAS_IOMEM [=y] && MFD_SYSCON [=y] && OF [=n]
Selected by [y]:
- GPIO_SAMA5D2_PIOBU [=y] && GPIOLIB [=y] && HAS_IOMEM [=y] && MFD_SYSCON [=y] && OF_GPIO [=y] && (ARCH_AT91 || COMPILE_TEST [=y])
WARNING: unmet direct dependencies detected for I2C_K1
Depends on [n]: I2C [=y] && HAS_IOMEM [=y] && (ARCH_SPACEMIT || COMPILE_TEST [=y]) && OF [=n]
Selected by [y]:
- MFD_SPACEMIT_P1 [=y] && HAS_IOMEM [=y] && (ARCH_SPACEMIT || COMPILE_TEST [=y]) && I2C [=y]
vim +/EIMVAL +530 include/linux/soc/mediatek/mtk-cmdq.h
526
527 /* This wrapper has to be removed after all users migrated to jump_rel */
528 static inline int cmdq_pkt_jump_rel_temp(struct cmdq_pkt *pkt, s32 offset, u8 shift_pa)
529 {
> 530 return -EIMVAL;
531 }
532
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa
2025-11-01 11:28 ` kernel test robot
@ 2025-11-02 8:20 ` Jason-JH Lin (林睿祥)
0 siblings, 0 replies; 12+ messages in thread
From: Jason-JH Lin (林睿祥) @ 2025-11-02 8:20 UTC (permalink / raw)
To: lkp@intel.com, krzk@kernel.org, chunkuang.hu@kernel.org,
AngeloGioacchino Del Regno, robh@kernel.org,
jassisinghbrar@gmail.com, mchehab@kernel.org, conor+dt@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org,
Sirius Wang (王皓昱),
Moudy Ho (何宗原), llvm@lists.linux.dev,
Xiandong Wang (王先冬), nicolas@ndufresne.ca,
linux-kernel@vger.kernel.org,
Paul-pl Chen (陳柏霖),
Nancy Lin (林欣螢),
Project_Global_Chrome_Upstream_Group, devicetree@vger.kernel.org,
linux-mediatek@lists.infradead.org, fshao@chromium.org,
Singo Chang (張興國), wenst@chromium.org,
dri-devel@lists.freedesktop.org,
linux-arm-kernel@lists.infradead.org, matthias.bgg@gmail.com
On Sat, 2025-11-01 at 19:28 +0800, kernel test robot wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> Hi Jason-JH,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on linuxtv-media-pending/master]
> [also build test ERROR on media-tree/master linus/master v6.18-rc3
> next-20251031]
> [If your patch is applied to the wrong git tree, kindly drop us a
> note.
> And when submitting patch, we suggest to use '--base' as documented
> in
> https://urldefense.com/v3/__https://git-scm.com/docs/git-format-patch*_base_tree_information__;Iw!!CTRNKA9wMg0ARbw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnjVYv0mFTaP7jrWAz0pEvu18-k7To$
> ]
>
> url:
> https://urldefense.com/v3/__https://github.com/intel-lab-lkp/linux/commits/Jason-JH-Lin/soc-mediatek-Use-pkt_write-function-pointer-for-subsys-ID-compatibility/20251101-000555__;!!CTRNKA9wMg0ARbw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnjVYv0mFTaP7jrWAz0pEvu3sD-kHo$
> base:
> https://urldefense.com/v3/__https://git.linuxtv.org/media-ci/media-pending.git__;!!CTRNKA9wMg0ARbw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnjVYv0mFTaP7jrWAz0pEvuiN7jJOY$
> master
> patch link:
> https://lore.kernel.org/r/20251031160309.1654761-3-jason-jh.lin%40mediatek.com
> patch subject: [PATCH 2/5] soc: mediatek: mtk-cmdq: Add
> cmdq_pkt_jump_rel_temp() for removing shift_pa
> config: x86_64-buildonly-randconfig-001-20251101
> (https://urldefense.com/v3/__https://download.01.org/0day-ci/archive/
> 20251101/202511011919.0lkK3DY8-lkp@intel.com/config__;!!CTRNKA9wMg0AR
> bw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnjVYv0mFTaP7jrWA
> z0pEvuVmcUrRc$ )
> compiler: clang version 20.1.8
> (https://urldefense.com/v3/__https://github.com/llvm/llvm-project__;!
> !CTRNKA9wMg0ARbw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnj
> VYv0mFTaP7jrWAz0pEvu9cIYwIM$
> 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> reproduce (this is a W=1 build):
> (https://urldefense.com/v3/__https://download.01.org/0day-ci/archive/
> 20251101/202511011919.0lkK3DY8-lkp@intel.com/reproduce__;!!CTRNKA9wMg
> 0ARbw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnjVYv0mFTaP7j
> rWAz0pEvuU32uhvk$ )
>
> If you fix the issue in a separate patch/commit (i.e. not just a new
> version of
> the same patch/commit), kindly add following tags
> > Reported-by: kernel test robot <lkp@intel.com>
> > Closes:
> > https://lore.kernel.org/oe-kbuild-all/202511011919.0lkK3DY8-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> In file included from drivers/soc/mediatek/mtk-mmsys.c:14:
> In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
> > > include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of
> > > undeclared identifier 'EIMVAL'
> 530 | return -EIMVAL;
Oops! I didn't verify this without disabling CONFIG_MTK_CMDQ.
To wait for other maintainers review the full topic,
I'll fix this and rebase the series once the soc patches in (Series
1/4) is applied.
Regards,
Jason-JH Lin
> | ^
> drivers/soc/mediatek/mtk-mmsys.c:170:26: error: no member named
> 'pkt_write_mask' in 'struct cmdq_client_reg'
> 170 | ret = mmsys-
> >cmdq_base.pkt_write_mask(cmdq_pkt,
> | ~~~~~~~~~~~~~~~~ ^
> drivers/soc/mediatek/mtk-mmsys.c:172:30: error: no member named
> 'pa_base' in 'struct cmdq_client_reg'
> 172 |
> mmsys->cmdq_base.pa_base,
> |
> ~~~~~~~~~~~~~~~~ ^
> 3 errors generated.
> --
> In file included from drivers/soc/mediatek/mtk-mutex.c:12:
> In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
> > > include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of
> > > undeclared identifier 'EIMVAL'
> 530 | return -EIMVAL;
> | ^
> drivers/soc/mediatek/mtk-mutex.c:1002:16: error: no member named
> 'pkt_write' in 'struct cmdq_client_reg'
> 1002 | mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx-
> >cmdq_reg.subsys, en_addr, en_addr, 1);
> | ~~~~~~~~~~~~~ ^
> 2 errors generated.
> --
> In file included from mtk-mmsys.c:14:
> In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
> > > include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of
> > > undeclared identifier 'EIMVAL'
> 530 | return -EIMVAL;
> | ^
> mtk-mmsys.c:170:26: error: no member named 'pkt_write_mask' in
> 'struct cmdq_client_reg'
> 170 | ret = mmsys-
> >cmdq_base.pkt_write_mask(cmdq_pkt,
> | ~~~~~~~~~~~~~~~~ ^
> mtk-mmsys.c:172:30: error: no member named 'pa_base' in 'struct
> cmdq_client_reg'
> 172 |
> mmsys->cmdq_base.pa_base,
> |
> ~~~~~~~~~~~~~~~~ ^
> 3 errors generated.
> --
> In file included from mtk-mutex.c:12:
> In file included from include/linux/soc/mediatek/mtk-mmsys.h:11:
> > > include/linux/soc/mediatek/mtk-cmdq.h:530:10: error: use of
> > > undeclared identifier 'EIMVAL'
> 530 | return -EIMVAL;
> | ^
> mtk-mutex.c:1002:16: error: no member named 'pkt_write' in 'struct
> cmdq_client_reg'
> 1002 | mtx->cmdq_reg.pkt_write(cmdq_pkt, mtx-
> >cmdq_reg.subsys, en_addr, en_addr, 1);
> | ~~~~~~~~~~~~~ ^
> 2 errors generated.
>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for OF_GPIO
> Depends on [n]: GPIOLIB [=y] && OF [=n] && HAS_IOMEM [=y]
> Selected by [y]:
> - GPIO_TB10X [=y] && GPIOLIB [=y] && HAS_IOMEM [=y] &&
> (ARC_PLAT_TB10X || COMPILE_TEST [=y])
> WARNING: unmet direct dependencies detected for GPIO_SYSCON
> Depends on [n]: GPIOLIB [=y] && HAS_IOMEM [=y] && MFD_SYSCON [=y]
> && OF [=n]
> Selected by [y]:
> - GPIO_SAMA5D2_PIOBU [=y] && GPIOLIB [=y] && HAS_IOMEM [=y] &&
> MFD_SYSCON [=y] && OF_GPIO [=y] && (ARCH_AT91 || COMPILE_TEST [=y])
> WARNING: unmet direct dependencies detected for I2C_K1
> Depends on [n]: I2C [=y] && HAS_IOMEM [=y] && (ARCH_SPACEMIT ||
> COMPILE_TEST [=y]) && OF [=n]
> Selected by [y]:
> - MFD_SPACEMIT_P1 [=y] && HAS_IOMEM [=y] && (ARCH_SPACEMIT ||
> COMPILE_TEST [=y]) && I2C [=y]
>
>
> vim +/EIMVAL +530 include/linux/soc/mediatek/mtk-cmdq.h
>
> 526
> 527 /* This wrapper has to be removed after all users migrated to
> jump_rel */
> 528 static inline int cmdq_pkt_jump_rel_temp(struct cmdq_pkt
> *pkt, s32 offset, u8 shift_pa)
> 529 {
> > 530 return -EIMVAL;
> 531 }
> 532
>
> --
> 0-DAY CI Kernel Test Service
> https://urldefense.com/v3/__https://github.com/intel/lkp-tests/wiki__;!!CTRNKA9wMg0ARbw!nKZ_THnG2hj_x0PnskSK6csrz_nDUSLqDLwJpsyHAJ1CMg41ahnjVYv0mFTaP7jrWAz0pEvujSdJzZc$
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp()
2025-10-31 16:02 ` [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp() Jason-JH Lin
@ 2025-12-09 20:47 ` Nicolas Dufresne
2025-12-11 17:37 ` Jason-JH Lin (林睿祥)
0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Dufresne @ 2025-12-09 20:47 UTC (permalink / raw)
To: Jason-JH Lin, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jassi Brar, Chun-Kuang Hu, AngeloGioacchino Del Regno,
Mauro Carvalho Chehab
Cc: Matthias Brugger, Nancy Lin, Singo Chang, Paul-PL Chen, Moudy Ho,
Xiandong Wang, Sirius Wang, Fei Shao, Chen-yu Tsai,
Project_Global_Chrome_Upstream_Group, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-arm-kernel, linux-media
[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]
Hi,
Le samedi 01 novembre 2025 à 00:02 +0800, Jason-JH Lin a écrit :
> To facilitate the removal of the shift_pa parameter from
> cmdq_pkt_jump_rel(), current users of cmdq_pkt_jump_rel() need to
> transition to using cmdq_pkt_jump_rel_temp() before the API change
> is implemented.
>
> Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> index d0b0b072f953..5fc9263ccb78 100644
> --- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> +++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> @@ -628,7 +628,7 @@ static struct mdp_cmdq_cmd *mdp_cmdq_prepare(struct mdp_dev *mdp,
> goto err_free_path;
> }
> cmdq_pkt_eoc(&cmd->pkt);
> - cmdq_pkt_jump_rel(&cmd->pkt, CMDQ_INST_SIZE, mdp->cmdq_shift_pa[pp_idx]);
> + cmdq_pkt_jump_rel_temp(&cmd->pkt, CMDQ_INST_SIZE, mdp->cmdq_shift_pa[pp_idx]);
I cannot take that right now in the media tree, as it won't build. Can the SoC
maintainer help me know if I just leave that on hold, or perhaps you'd like to
take it ? (or its in next, and I just have to wait for next udpate?)
I also doubt patch 4/5 is make much of a difference without the soc changes ?
regards,
Nicolas
>
> for (i = 0; i < num_comp; i++) {
> s32 inner_id = MDP_COMP_NONE;
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp()
2025-12-09 20:47 ` Nicolas Dufresne
@ 2025-12-11 17:37 ` Jason-JH Lin (林睿祥)
0 siblings, 0 replies; 12+ messages in thread
From: Jason-JH Lin (林睿祥) @ 2025-12-11 17:37 UTC (permalink / raw)
To: chunkuang.hu@kernel.org, AngeloGioacchino Del Regno,
robh@kernel.org, nicolas@ndufresne.ca, krzk+dt@kernel.org,
jassisinghbrar@gmail.com, mchehab@kernel.org, conor+dt@kernel.org
Cc: matthias.bgg@gmail.com, Singo Chang (張興國),
Sirius Wang (王皓昱),
linux-media@vger.kernel.org, Project_Global_Chrome_Upstream_Group,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Paul-pl Chen (陳柏霖),
Nancy Lin (林欣螢), wenst@chromium.org,
Xiandong Wang (王先冬),
linux-mediatek@lists.infradead.org,
Moudy Ho (何宗原),
linux-arm-kernel@lists.infradead.org
On Tue, 2025-12-09 at 15:47 -0500, Nicolas Dufresne wrote:
> Hi,
>
>
> Le samedi 01 novembre 2025 à 00:02 +0800, Jason-JH Lin a écrit :
> > To facilitate the removal of the shift_pa parameter from
> > cmdq_pkt_jump_rel(), current users of cmdq_pkt_jump_rel() need to
> > transition to using cmdq_pkt_jump_rel_temp() before the API change
> > is implemented.
> >
> > Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
> > Reviewed-by: AngeloGioacchino Del Regno
> > <angelogioacchino.delregno@collabora.com>
> > ---
> > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> > b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> > index d0b0b072f953..5fc9263ccb78 100644
> > --- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> > +++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
> > @@ -628,7 +628,7 @@ static struct mdp_cmdq_cmd
> > *mdp_cmdq_prepare(struct mdp_dev *mdp,
> > goto err_free_path;
> > }
> > cmdq_pkt_eoc(&cmd->pkt);
> > - cmdq_pkt_jump_rel(&cmd->pkt, CMDQ_INST_SIZE, mdp-
> > >cmdq_shift_pa[pp_idx]);
> > + cmdq_pkt_jump_rel_temp(&cmd->pkt, CMDQ_INST_SIZE, mdp-
> > >cmdq_shift_pa[pp_idx]);
>
> I cannot take that right now in the media tree, as it won't build.
> Can the SoC
> maintainer help me know if I just leave that on hold, or perhaps
> you'd like to
> take it ? (or its in next, and I just have to wait for next udpate?)
>
> I also doubt patch 4/5 is make much of a difference without the soc
> changes ?
>
Hi Angelo,
Can you help us? Thanks!
Regards,
Jason-JH Lin
> regards,
> Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2025-12-11 17:37 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-31 16:01 [PATCH 0/5] Migrate soc, drm-mediatek, mdp3 to new CMDQ APIs (series 2/4) Jason-JH Lin
2025-10-31 16:01 ` [PATCH 1/5] soc: mediatek: Use pkt_write function pointer for subsys ID compatibility Jason-JH Lin
2025-11-01 11:06 ` kernel test robot
2025-11-01 11:28 ` kernel test robot
2025-10-31 16:01 ` [PATCH 2/5] soc: mediatek: mtk-cmdq: Add cmdq_pkt_jump_rel_temp() for removing shift_pa Jason-JH Lin
2025-11-01 11:28 ` kernel test robot
2025-11-02 8:20 ` Jason-JH Lin (林睿祥)
2025-10-31 16:01 ` [PATCH 3/5] drm/mediatek:Use reg_write function pointer for subsys ID compatibility Jason-JH Lin
2025-10-31 16:01 ` [PATCH 4/5] media: platform: mtk-mdp3: Refactor CMDQ writes for CMDQ API change Jason-JH Lin
2025-10-31 16:02 ` [PATCH 5/5] media: platform: mtk-mdp3: Change cmdq_pkt_jump_rel() to cmdq_pkt_jump_rel_temp() Jason-JH Lin
2025-12-09 20:47 ` Nicolas Dufresne
2025-12-11 17:37 ` Jason-JH Lin (林睿祥)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).