[d-kernel] [PATCH 00/39] Support Baikal-M in un-def in p11

Vitaly Chikunov vt на altlinux.org
Пн Окт 14 17:28:33 MSK 2024


On Mon, Oct 14, 2024 at 06:01:41PM +0400, Daniil Gnusarev wrote:
> Alexey Sheplyakov (17):
>   cpufreq-dt: don't load on Baikal-M SoC
>   net: fwnode_get_phy_id: consider all compatible strings
>   hwmon: bt1-pvt: access registers via pvt_{readl,writel} helpers
>   hwmon: bt1-pvt: define pvt_readl/pvt_writel for Baikal-M SoC
>   hwmon: bt1-pvt: adjusted probing for Baikal-M SoC
>   hwmon: bt1-pvt: added compatible baikal,pvt
>   drm/bridge: dw-hdmi: support ahb audio hw revision 0x2a
>   dt-bindings: dw-hdmi: added ahb-audio-regshift
>   drm/bridge: dw-hdmi: force ahb audio register offset for Baikal-M
>   drm/panfrost: forcibly set dma-coherent on Baikal-M
>   drm/panfrost: disable devfreq on Baikal-M
>   pm: disable all sleep states on Baikal-M based boards
>   sound: dwc-i2s: paper over RX overrun warnings on Baikal-M
>   sound: dwc-i2s: request all IRQs specified in device tree
>   usb: dwc3: of-simple: added compatible string for Baikal-M SoC
>   serial: 8250_dw: verify clock rate in dw8250_set_termios
>   dw-pcie: refuse to load on Baikal-M with recent firmware
> 
> Daniil Gnusarev (20):
>   Baikal Electronics SoC family
>   Clk: Add clock drivers for Baikal BE-M1000 with new firmware
>   USB: Add support for Baikal USB PHY
>   PCI: Add support for PCIe controller for Baikal BE-M1000
>   AHCI SATA: Add support for Baikal BE-M1000
>   UART: Add support for UART Baikal BE-M1000
>   Sound: add support for Baikal BE-M1000 I2S
>   sound: baikal-i2s: paper over RX overrun warnings on Baikal-M
>   net: stmmac: support of Baikal-BE1000 SoCs GMAC
>   PVT: support register addressing with new firmware
>   drm: add Baikal-M SoC video display unit driver
>   bmc:  add board management controller driver
>   clk: use "cmu-id" if there is no "reg" in devicetree
>   pci: baikal-pcie: driver compatibility with SDK earlier than 5.7
>   pci: baikal-pcie: driver compatibility with SDK versions 5.4
>   drm: baikal-vdu: driver compatibility with SDK earlier than 5.9
>   input: tp_serio: catch up API changes
>   drm: baikal-m: add vblank events, fix mode switching
>   drm: baikal-vdu: disable backlight driver loading
>   config-aarch64: enable more configs for baikal-m support
> 
> Vadim V. Vlasov (2):
>   input: new driver - serdev-serio
>   input: added TF307 serio PS/2 emulator driver
> 
>  .../display/bridge/synopsys,dw-hdmi.yaml      |    7 +
>  arch/arm64/Kconfig.platforms                  |   10 +
>  config-aarch64                                |   14 +
>  drivers/acpi/pci_mcfg.c                       |   38 +
>  drivers/ata/ahci_dwc.c                        |    5 +
>  drivers/clk/Makefile                          |    1 +
>  drivers/clk/baikal/Makefile                   |    3 +
>  drivers/clk/baikal/clk-bm1000.c               |  846 ++++++
>  drivers/clk/baikal/clk-bs1000.c               |  504 ++++
>  drivers/cpufreq/cpufreq-dt-platdev.c          |    3 +
>  drivers/gpu/drm/Kconfig                       |    2 +
>  drivers/gpu/drm/Makefile                      |    1 +
>  drivers/gpu/drm/baikal/Kconfig                |   12 +
>  drivers/gpu/drm/baikal/Makefile               |   11 +
>  drivers/gpu/drm/baikal/baikal-hdmi.c          |  123 +
>  drivers/gpu/drm/baikal/baikal_vdu_backlight.c |  261 ++
>  drivers/gpu/drm/baikal/baikal_vdu_crtc.c      |  476 ++++
>  drivers/gpu/drm/baikal/baikal_vdu_debugfs.c   |   95 +
>  drivers/gpu/drm/baikal/baikal_vdu_drm.h       |  133 +
>  drivers/gpu/drm/baikal/baikal_vdu_drv.c       |  578 +++++
>  drivers/gpu/drm/baikal/baikal_vdu_panel.c     |  193 ++
>  drivers/gpu/drm/baikal/baikal_vdu_plane.c     |  143 ++
>  drivers/gpu/drm/baikal/baikal_vdu_regs.h      |  137 +
>  drivers/gpu/drm/bridge/Kconfig                |    7 +
>  .../drm/bridge/synopsys/dw-hdmi-ahb-audio.c   |  106 +-
>  .../gpu/drm/bridge/synopsys/dw-hdmi-audio.h   |    1 +
>  drivers/gpu/drm/bridge/synopsys/dw-hdmi.c     |   19 +
>  drivers/gpu/drm/drm_panel.c                   |   37 +
>  drivers/gpu/drm/panfrost/panfrost_devfreq.c   |    5 +
>  drivers/gpu/drm/panfrost/panfrost_drv.c       |    5 +
>  drivers/hwmon/Kconfig                         |    5 +-
>  drivers/hwmon/bt1-pvt.c                       |  152 +-
>  drivers/hwmon/bt1-pvt.h                       |    8 +
>  drivers/input/serio/Kconfig                   |   21 +
>  drivers/input/serio/Makefile                  |    2 +
>  drivers/input/serio/serdev-serio.c            |  121 +
>  drivers/input/serio/tp_serio.c                |  746 ++++++
>  drivers/misc/Kconfig                          |   16 +
>  drivers/misc/Makefile                         |    1 +
>  drivers/misc/tp_bmc.c                         |  768 ++++++
>  drivers/net/ethernet/stmicro/stmmac/Kconfig   |    8 +
>  drivers/net/ethernet/stmicro/stmmac/Makefile  |    1 +
>  .../ethernet/stmicro/stmmac/dwmac-baikal.c    |  542 ++++
>  .../ethernet/stmicro/stmmac/dwmac1000_core.c  |    1 +
>  .../ethernet/stmicro/stmmac/dwmac1000_dma.c   |   56 +-
>  .../ethernet/stmicro/stmmac/dwmac1000_dma.h   |   32 +
>  .../net/ethernet/stmicro/stmmac/dwmac_lib.c   |    8 +
>  drivers/net/phy/phy_device.c                  |   41 +-
>  drivers/pci/controller/dwc/Kconfig            |   32 +
>  drivers/pci/controller/dwc/Makefile           |    5 +
>  drivers/pci/controller/dwc/pcie-baikal-acpi.c |   23 +
>  drivers/pci/controller/dwc/pcie-baikal-core.c | 2287 +++++++++++++++++
>  drivers/pci/controller/dwc/pcie-baikal-tune.c |  570 ++++
>  drivers/pci/controller/dwc/pcie-baikal.h      |   16 +
>  .../pci/controller/dwc/pcie-designware-plat.c |    5 +
>  drivers/pci/controller/dwc/pcie-designware.c  |    3 +-
>  drivers/pci/controller/dwc/pcie-designware.h  |    1 +
>  drivers/phy/Kconfig                           |    1 +
>  drivers/phy/Makefile                          |    1 +
>  drivers/phy/baikal/Kconfig                    |   10 +
>  drivers/phy/baikal/Makefile                   |    3 +
>  drivers/phy/baikal/baikal-usb-phy.c           |  305 +++
>  drivers/tty/serial/8250/8250_dw.c             |   11 +-
>  drivers/usb/dwc3/dwc3-of-simple.c             |    3 +
>  include/drm/bridge/dw_hdmi.h                  |    2 +
>  include/drm/drm_panel.h                       |    3 +
>  include/linux/pci-ecam.h                      |    2 +
>  kernel/exit.c                                 |    1 +
>  kernel/power/suspend.c                        |   13 +
>  net/ethernet/eth.c                            |    1 +
>  sound/soc/Kconfig                             |    1 +
>  sound/soc/Makefile                            |    1 +
>  sound/soc/baikal/Kconfig                      |   21 +
>  sound/soc/baikal/Makefile                     |    6 +
>  sound/soc/baikal/baikal-i2s.c                 |  809 ++++++
>  sound/soc/baikal/baikal-pio-pcm.c             |  264 ++
>  sound/soc/baikal/local.h                      |  138 +
>  sound/soc/dwc/dwc-i2s.c                       |   23 +-
>  sound/soc/dwc/local.h                         |    1 +
>  79 files changed, 10745 insertions(+), 122 deletions(-)
>  create mode 100644 drivers/clk/baikal/Makefile
>  create mode 100644 drivers/clk/baikal/clk-bm1000.c
>  create mode 100644 drivers/clk/baikal/clk-bs1000.c
>  create mode 100644 drivers/gpu/drm/baikal/Kconfig
>  create mode 100644 drivers/gpu/drm/baikal/Makefile
>  create mode 100644 drivers/gpu/drm/baikal/baikal-hdmi.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_backlight.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_crtc.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_debugfs.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_drm.h
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_drv.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_panel.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_plane.c
>  create mode 100644 drivers/gpu/drm/baikal/baikal_vdu_regs.h
>  create mode 100644 drivers/input/serio/serdev-serio.c
>  create mode 100644 drivers/input/serio/tp_serio.c
>  create mode 100644 drivers/misc/tp_bmc.c
>  create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-baikal.c
>  create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.h
>  create mode 100644 drivers/pci/controller/dwc/pcie-baikal-acpi.c
>  create mode 100644 drivers/pci/controller/dwc/pcie-baikal-core.c
>  create mode 100644 drivers/pci/controller/dwc/pcie-baikal-tune.c
>  create mode 100644 drivers/pci/controller/dwc/pcie-baikal.h
>  create mode 100644 drivers/phy/baikal/Kconfig
>  create mode 100644 drivers/phy/baikal/Makefile
>  create mode 100644 drivers/phy/baikal/baikal-usb-phy.c
>  create mode 100644 sound/soc/baikal/Kconfig
>  create mode 100644 sound/soc/baikal/Makefile
>  create mode 100644 sound/soc/baikal/baikal-i2s.c
>  create mode 100644 sound/soc/baikal/baikal-pio-pcm.c
>  create mode 100644 sound/soc/baikal/local.h
> 
> -- 
> 2.42.2
> 
> Подготовлены обновленные патчи для поддержки Байкал-М в ядре un-def для p11.
> 
> Основная идея в работоспособности на машинах с новым SDK от Baikal
> Electronics, но  с сохранением работоспособности на старых. Проверялось на
> SDK с версии SDK-ARM64-5.4 по версию SDK-ARM64-2403-6.6 на плате TF307 MB-S-D
> и на имеющихся машинах Эдельвейс, Radeola, Aquarius (уже без изменения версии)
> 
> Доработан drm-драйвер для работы с 4k мониторами, исправлено переключение
> режимов для X.

Applied, thanks

Патчсет можно слать в виде pull request.

> 
> Патчи доступны по ссылке:
> https://gitlab.basealt.space/altworkstation/kernel-image/-/commit/d72f57bd8a7c2deb79eaede05848f1837edc9ae9
> _______________________________________________
> devel-kernel mailing list
> devel-kernel at lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel-kernel


Подробная информация о списке рассылки devel-kernel