drm/tegra: Miscellaneous cleanups

Submitted by Thierry Reding on Nov. 27, 2017, 10:07 a.m.

Details

Reviewer None
Submitted Nov. 27, 2017, 10:07 a.m.
Last Updated Oct. 14, 2019, 12:51 p.m.
Revision 2

Cover Letter(s)

Revision 1
      From: Thierry Reding <treding@nvidia.com>

This series has some cleanup patches to fix up various, mostly minor
issues with the Tegra DRM driver.

Patches 1-4 move register definitions into a table, which is necessary
in order to prevent the stack from growing excessively large in the
debugfs support.

Patches 5-10 move debugfs registration code into ->late_register()
callbacks in order to tie them to the correct lifetime of device nodes.

Patches 11 and 12 are whitespace fixups and patch 13 fixes some naming
issues in hardware capabilities.

Thierry

Thierry Reding (13):
  drm/tegra: dc: Move register definitions into a table
  drm/tegra: dsi: Move register definitions into a table
  drm/tegra: hdmi: Move register definitions into a table
  drm/tegra: sor: Move register definitions into a table
  drm/tegra: dc: Reshuffle some code
  drm/tegra: dc: Register debugfs in ->late_register()
  drm/tegra: dsi: Register debugfs in ->late_register()
  drm/tegra: hdmi: Register debugfs in ->late_register()
  drm/tegra: sor: Root debugfs files at the connector
  drm/tegra: sor: Register debugfs in ->late_register()
  drm/tegra: Do not wrap lines unnecessarily
  drm/tegra: vic: Properly align arguments
  drm/tegra: dc: Support background color

 drivers/gpu/drm/tegra/dc.c   | 858 +++++++++++++++++++++----------------------
 drivers/gpu/drm/tegra/dc.h   |  10 +-
 drivers/gpu/drm/tegra/drm.c  |   3 +-
 drivers/gpu/drm/tegra/dsi.c  | 228 +++++-------
 drivers/gpu/drm/tegra/hdmi.c | 504 ++++++++++++-------------
 drivers/gpu/drm/tegra/sor.c  | 304 ++++++++-------
 drivers/gpu/drm/tegra/vic.c  |   2 +-
 7 files changed, 919 insertions(+), 990 deletions(-)
    
Revision 2
      From: Thierry Reding <treding@nvidia.com>

Some cleanups and minor improvements, nothing exciting here. However,
these prepare the way for some larger rework that will convert explicit
IOMMU API usage to the DMA API, which optionally can be backed by an
IOMMU.

Thierry

Thierry Reding (14):
  gpu: host1x: Do not limit DMA segment size
  gpu: host1x: Remove gratuitous blank line
  gpu: host1x: Explicitly initialize host1x_info structures
  gpu: host1x: Request channels for clients, not devices
  drm/tegra: Inherit device DMA parameters from host1x
  drm/tegra: Use DRM_DEBUG_DRIVER for driver messages
  drm/tegra: vic: Skip stream ID programming without IOMMU
  drm/tegra: vic: Inherit DMA mask from host1x
  drm/tegra: vic: Use common IOMMU attach/detach code
  drm/tegra: Move IOMMU group into host1x client
  drm/tegra: gem: Rename paddr -> iova
  drm/tegra: gem: Use dma_get_sgtable()
  drm/tegra: gem: Always map SG tables for DMA-BUFs
  drm/tegra: gem: Use sg_alloc_table_from_pages()

 drivers/gpu/drm/tegra/dc.c   | 24 +++++++++++------
 drivers/gpu/drm/tegra/dc.h   |  2 --
 drivers/gpu/drm/tegra/drm.c  | 30 ++++++++++-----------
 drivers/gpu/drm/tegra/drm.h  |  6 ++---
 drivers/gpu/drm/tegra/fb.c   |  4 +--
 drivers/gpu/drm/tegra/gem.c  | 37 +++++++++++---------------
 drivers/gpu/drm/tegra/gem.h  |  2 +-
 drivers/gpu/drm/tegra/gr2d.c | 12 ++++-----
 drivers/gpu/drm/tegra/gr3d.c | 12 ++++-----
 drivers/gpu/drm/tegra/hub.c  |  2 +-
 drivers/gpu/drm/tegra/vic.c  | 51 ++++++++++++++++++++----------------
 drivers/gpu/host1x/bus.c     |  2 +-
 drivers/gpu/host1x/channel.c | 13 ++++-----
 drivers/gpu/host1x/channel.h |  1 +
 drivers/gpu/host1x/dev.c     | 12 +++++++++
 drivers/gpu/host1x/intr.c    |  1 -
 include/linux/host1x.h       |  4 ++-
 17 files changed, 114 insertions(+), 101 deletions(-)
    

Revisions