mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/8] MediaTek mmsys/mutex fixes and improvements
@ 2025-02-12 10:00 AngeloGioacchino Del Regno
  2025-02-12 10:00 ` [PATCH v1 1/8] soc: mediatek: mtk-mutex: Add DPI1 SOF/EOF to MT8188 mutex tables AngeloGioacchino Del Regno
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-02-12 10:00 UTC (permalink / raw)
  To: matthias.bgg
  Cc: angelogioacchino.delregno, shawn.sung, fparent, linux-kernel,
	linux-arm-kernel, linux-mediatek, pablo.sun, kernel

This series adds the missing DPI1 SOF/EOF to the MT8188 mutex tables,
required to support output through DPI1->HDMI Transmitter, and also
adds a few fixes and improvements to the mtk-mmsys driver and tables
for all SoCs.
For MT8188, in MMSYS, this adds the DSC path for the display
controller, and fixes the current DPI1 one to actually do something
meaningful... and speaking of mmsys....

In particular, since I've found multiple basic mistakes in the mmsys
tables for more than one SoC, I've identified a strong need to do
something to prevent that from happening again in the future.

That was done by adding a macro that performs a compile time check
to make sure that the in/out selection bits do actually fit in the
register mask, and converting all of the current mmsys drivers to
use it (because pre-existing code is usually taken as reference to
write new one... hopefully!!!!!).

Of course, the fixes that I performed to the MT8167/MT8365 are
relative to issues found while converting their mmsys tables to
the new macro... :-)

AngeloGioacchino Del Regno (8):
  soc: mediatek: mtk-mutex: Add DPI1 SOF/EOF to MT8188 mutex tables
  soc: mediatek: mtk-mmsys: Fix MT8188 VDO1 DPI1 output selection
  soc: mediatek: mtk-mmsys: Add compile time check for mmsys routes
  soc: mediatek: mt8188-mmsys: Migrate to MMSYS_ROUTE() macro
  soc: mediatek: mt8167-mmsys: Fix missing regval in all entries
  soc: mediatek: mt8365-mmsys: Fix routing table masks and values
  soc: mediatek: mmsys: Migrate all tables to MMSYS_ROUTE() macro
  soc: mediatek: mt8188-mmsys: Add support for DSC on VDO0

 drivers/soc/mediatek/mt8167-mmsys.h |  31 +-
 drivers/soc/mediatek/mt8173-mmsys.h |  99 ++---
 drivers/soc/mediatek/mt8183-mmsys.h |  50 +--
 drivers/soc/mediatek/mt8186-mmsys.h |  88 ++--
 drivers/soc/mediatek/mt8188-mmsys.h | 266 +++++-------
 drivers/soc/mediatek/mt8192-mmsys.h |  71 ++--
 drivers/soc/mediatek/mt8195-mmsys.h | 632 ++++++++++++----------------
 drivers/soc/mediatek/mt8365-mmsys.h |  84 ++--
 drivers/soc/mediatek/mtk-mmsys.h    |  14 +
 drivers/soc/mediatek/mtk-mutex.c    |   6 +
 10 files changed, 581 insertions(+), 760 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-02-25 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-12 10:00 [PATCH v1 0/8] MediaTek mmsys/mutex fixes and improvements AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 1/8] soc: mediatek: mtk-mutex: Add DPI1 SOF/EOF to MT8188 mutex tables AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 2/8] soc: mediatek: mtk-mmsys: Fix MT8188 VDO1 DPI1 output selection AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 3/8] soc: mediatek: mtk-mmsys: Add compile time check for mmsys routes AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 4/8] soc: mediatek: mt8188-mmsys: Migrate to MMSYS_ROUTE() macro AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 5/8] soc: mediatek: mt8167-mmsys: Fix missing regval in all entries AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 6/8] soc: mediatek: mt8365-mmsys: Fix routing table masks and values AngeloGioacchino Del Regno
2025-02-25 10:26   ` [PATCH " Markus Elfring
2025-02-12 10:00 ` [PATCH v1 7/8] soc: mediatek: mmsys: Migrate all tables to MMSYS_ROUTE() macro AngeloGioacchino Del Regno
2025-02-12 10:00 ` [PATCH v1 8/8] soc: mediatek: mt8188-mmsys: Add support for DSC on VDO0 AngeloGioacchino Del Regno
2025-02-25  9:05 ` [PATCH v1 0/8] MediaTek mmsys/mutex fixes and improvements AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®