mbox series

[0/8] Add GCE support for MT8196

Message ID 20241121042602.32730-1-jason-jh.lin@mediatek.com
Headers show
Series Add GCE support for MT8196 | expand

Message

Jason-JH.Lin Nov. 21, 2024, 4:25 a.m. UTC
This patch series adds support for the MediaTek MT8196 SoC in the CMDQ
driver and related subsystems. The changes include adding compatible
names and properties, updating driver data to accommodate hardware
changes, and modifying the CMDQ API to support non-subsys ID hardware.

Jason-JH.Lin (8):
  dt-bindings: mailbox: mediatek: Add GCE header file for MT8196
  dt-bindings: mailbox: mediatek: Add MT8196 support for gce-mailbox
  mailbox: mtk-cmdq: Add driver data to support for MT8196
  soc: mediatek: mtk-cmdq: Add unsupported subsys ID programing flow
  soc: mediatek: mtk-cmdq: Add mminfra_offset compatibility for DRAM
    address
  soc: mediatek: Add pa_base due to CMDQ API change
  drm/mediatek: Add pa_base due to CMDQ API change
  media: mediatek: mdp3: Add pa_base due to CMDQ API change

 .../mailbox/mediatek,gce-mailbox.yaml         |    4 +
 drivers/gpu/drm/mediatek/mtk_ddp_comp.c       |    6 +-
 drivers/mailbox/mtk-cmdq-mailbox.c            |  107 +-
 .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c    |    4 +-
 .../platform/mediatek/mdp3/mtk-mdp3-comp.h    |    4 +-
 drivers/soc/mediatek/mtk-cmdq-helper.c        |  133 +-
 drivers/soc/mediatek/mtk-mmsys.c              |    1 +
 drivers/soc/mediatek/mtk-mutex.c              |    2 +-
 .../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1449 +++++++++++++++++
 include/linux/mailbox/mtk-cmdq-mailbox.h      |    3 +
 include/linux/soc/mediatek/mtk-cmdq.h         |   22 +-
 11 files changed, 1698 insertions(+), 37 deletions(-)
 create mode 100755 include/dt-bindings/mailbox/mediatek,mt8196-gce.h

Comments

Krzysztof Kozlowski Nov. 21, 2024, 8:42 a.m. UTC | #1
On Thu, Nov 21, 2024 at 12:25:55PM +0800, Jason-JH.Lin wrote:
> Add the Global Command Engine (GCE) header file to define the GCE
> thread priority, GCE subsys ID, GCE events, and various constants
> for MT8196.

NAK, various constants are not bindings.

> 
> Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
> ---
>  .../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1449 +++++++++++++++++
>  1 file changed, 1449 insertions(+)
>  create mode 100755 include/dt-bindings/mailbox/mediatek,mt8196-gce.h

Please run scripts/checkpatch.pl and fix reported warnings. Then please
run 'scripts/checkpatch.pl --strict' and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code
here looks like it needs a fix. Feel free to get in touch if the warning
is not clear.

This goes with the binding.

Best regards,
Krzysztof
Jason-JH.Lin Nov. 21, 2024, 10:51 a.m. UTC | #2
Hi Krzysztof,

Thanks for the reviews.

On Thu, 2024-11-21 at 09:42 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On Thu, Nov 21, 2024 at 12:25:55PM +0800, Jason-JH.Lin wrote:
> > Add the Global Command Engine (GCE) header file to define the GCE
> > thread priority, GCE subsys ID, GCE events, and various constants
> > for MT8196.
> 
> NAK, various constants are not bindings.
> 

OK, I'll drop the constants.

> > 
> > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
> > ---
> >  .../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1449
> > +++++++++++++++++
> >  1 file changed, 1449 insertions(+)
> >  create mode 100755 include/dt-bindings/mailbox/mediatek,mt8196-
> > gce.h
> 
> Please run scripts/checkpatch.pl and fix reported warnings. Then
> please
> run 'scripts/checkpatch.pl --strict' and (probably) fix more
> warnings.
> Some warnings can be ignored, especially from --strict run, but the
> code
> here looks like it needs a fix. Feel free to get in touch if the
> warning
> is not clear.
> 
> This goes with the binding.
> 

I thought I have done that, but I found a whitespace warning at #1328
now. I'll fix that at the next version.
Thanks for the reminder.

Regards,
Jason-JH.Lin


> Best regards,
> Krzysztof
>
Krzysztof Kozlowski Nov. 21, 2024, 11:48 a.m. UTC | #3
On 21/11/2024 11:51, Jason-JH Lin (林睿祥) wrote:
>>> Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
>>> ---
>>>  .../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1449
>>> +++++++++++++++++
>>>  1 file changed, 1449 insertions(+)
>>>  create mode 100755 include/dt-bindings/mailbox/mediatek,mt8196-
>>> gce.h
>>
>> Please run scripts/checkpatch.pl and fix reported warnings. Then
>> please
>> run 'scripts/checkpatch.pl --strict' and (probably) fix more
>> warnings.
>> Some warnings can be ignored, especially from --strict run, but the
>> code
>> here looks like it needs a fix. Feel free to get in touch if the
>> warning
>> is not clear.
>>
>> This goes with the binding.
>>
> 
> I thought I have done that, but I found a whitespace warning at #1328
> now. I'll fix that at the next version.
> Thanks for the reminder.

There are multiple errors, including executable permission. I don't
believe you run checkpatch.

Best regards,
Krzysztof
Jason-JH.Lin Nov. 21, 2024, 3:47 p.m. UTC | #4
On Thu, 2024-11-21 at 12:48 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On 21/11/2024 11:51, Jason-JH Lin (林睿祥) wrote:
> > > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
> > > > ---
> > > >  .../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1449
> > > > +++++++++++++++++
> > > >  1 file changed, 1449 insertions(+)
> > > >  create mode 100755 include/dt-
> > > > bindings/mailbox/mediatek,mt8196-
> > > > gce.h
> > > 
> > > Please run scripts/checkpatch.pl and fix reported warnings. Then
> > > please
> > > run 'scripts/checkpatch.pl --strict' and (probably) fix more
> > > warnings.
> > > Some warnings can be ignored, especially from --strict run, but
> > > the
> > > code
> > > here looks like it needs a fix. Feel free to get in touch if the
> > > warning
> > > is not clear.
> > > 
> > > This goes with the binding.
> > > 
> > 
> > I thought I have done that, but I found a whitespace warning at
> > #1328
> > now. I'll fix that at the next version.
> > Thanks for the reminder.
> 
> There are multiple errors, including executable permission. I don't
> believe you run checkpatch.

Oh, my bad. You're right.
I have checked the history and found I missed this patch...

~/linux$ ./scripts/checkpatch.pl --strict --ignore=GERRIT_CHANGE_ID --
show-types 000*
---------------------------------------------------------------
0001-mailbox-mtk-cmdq-Add-driver-data-to-support-for-MT81.patch
---------------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 223 lines checked

0001-mailbox-mtk-cmdq-Add-driver-data-to-support-for-MT81.patch has no
obvious style problems and is ready for submission.
---------------------------------------------------------------
0002-soc-mediatek-mtk-cmdq-Add-unsupported-subsys-ID-prog.patch
---------------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 261 lines checked

0002-soc-mediatek-mtk-cmdq-Add-unsupported-subsys-ID-prog.patch has no
obvious style problems and is ready for submission.
---------------------------------------------------------------
0003-soc-mediatek-mtk-cmdq-Add-mminfra_offset-compatibili.patch
---------------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 97 lines checked

0003-soc-mediatek-mtk-cmdq-Add-mminfra_offset-compatibili.patch has no
obvious style problems and is ready for submission.
----------------------------------------------------------
0004-soc-mediatek-Add-pa_base-due-to-CMDQ-API-change.patch
----------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 15 lines checked

0004-soc-mediatek-Add-pa_base-due-to-CMDQ-API-change.patch has no
obvious style problems and is ready for submission.
----------------------------------------------------------
0005-drm-mediatek-Add-pa_base-due-to-CMDQ-API-change.patch
----------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 24 lines checked

0005-drm-mediatek-Add-pa_base-due-to-CMDQ-API-change.patch has no
obvious style problems and is ready for submission.
---------------------------------------------------------------
0006-media-mediatek-mdp3-Add-pa_base-due-to-CMDQ-API-chan.patch
---------------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 32 lines checked

0006-media-mediatek-mdp3-Add-pa_base-due-to-CMDQ-API-chan.patch has no
obvious style problems and is ready for submission.

Due to some IT policy, I run checkpatch and sent these patches in 2
different servers.
I have added it back and run checkpatch. Thanks!

Regards,
Jason-JH.Lin

> 
> Best regards,
> Krzysztof