[PULL] drm-misc-fixes

2022-11-17 Thread Maarten Lankhorst

Hi Dave, Daniel,

A few fixes for v6.1-rc6.

Most important one apears to be reverting a change that breaks DP-MST.

drm-misc-fixes-2022-11-17:
drm-misc-fixes for v6.1-rc6:
- Fix error handling in vc4_atomic_commit_tail()
- Set bpc for logictechno panels.
- Fix potential memory leak in drm_dev_init()
- Fix potential null-ptr-deref in drm_vblank_destroy_worker()
- Set lima's clkname corrrectly when regulator is missing.
- Small amdgpu fix to gang submission.
- Revert hiding unregistered connectors from userspace, as it breaks on DP-MST.
- Add workaround for DP++ dual mode adaptors that don't support
  i2c subaddressing.
The following changes since commit f352262f727215553879705bacbcb208979f3eff:

  drm/panfrost: Split io-pgtable requests properly (2022-11-09 14:17:39 +)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-misc tags/drm-misc-fixes-2022-11-17

for you to fetch changes up to 5954acbacbd1946b96ce8ee799d309cb0cd3cb9d:

  drm/display: Don't assume dual mode adaptors support i2c sub-addressing 
(2022-11-15 23:31:02 +0200)


drm-misc-fixes for v6.1-rc6:
- Fix error handling in vc4_atomic_commit_tail()
- Set bpc for logictechno panels.
- Fix potential memory leak in drm_dev_init()
- Fix potential null-ptr-deref in drm_vblank_destroy_worker()
- Set lima's clkname corrrectly when regulator is missing.
- Small amdgpu fix to gang submission.
- Revert hiding unregistered connectors from userspace, as it breaks on DP-MST.
- Add workaround for DP++ dual mode adaptors that don't support
  i2c subaddressing.


Aishwarya Kothari (1):
  drm/panel: simple: set bpc field for logic technologies displays

Christian König (1):
  drm/amdgpu: use the last IB as gang leader v2

Erico Nunes (1):
  drm/lima: Fix opp clkname setting in case of missing regulator

Gaosheng Cui (1):
  drm/vc4: kms: Fix IS_ERR() vs NULL check for vc4_kms

Shang XiaoJing (2):
  drm/drv: Fix potential memory leak in drm_dev_init()
  drm: Fix potential null-ptr-deref in drm_vblank_destroy_worker()

Simon Rettberg (1):
  drm/display: Don't assume dual mode adaptors support i2c sub-addressing

Simon Ser (1):
  Revert "drm: hide unregistered connectors from GETCONNECTOR IOCTL"

 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c| 23 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.h|  1 +
 drivers/gpu/drm/display/drm_dp_dual_mode_helper.c | 51 +--
 drivers/gpu/drm/drm_drv.c |  2 +-
 drivers/gpu/drm/drm_internal.h|  3 +-
 drivers/gpu/drm/drm_mode_config.c |  3 --
 drivers/gpu/drm/lima/lima_devfreq.c   | 15 ---
 drivers/gpu/drm/panel/panel-simple.c  |  2 +
 drivers/gpu/drm/vc4/vc4_kms.c |  8 ++--
 9 files changed, 64 insertions(+), 44 deletions(-)


[PULL] drm-intel-fixes

2022-11-17 Thread Tvrtko Ursulin
Hi Dave, Daniel,

Just one fix for the release candidate window this week and that is for
a possible use-after-free on discrete platforms with small BAR.

Regards,

Tvrtko

drm-intel-fixes-2022-11-17:
- Fix uaf with lmem_userfault_list handling (Matthew Auld)
The following changes since commit 094226ad94f471a9f19e8f8e7140a09c2625abaa:

  Linux 6.1-rc5 (2022-11-13 13:12:55 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-intel tags/drm-intel-fixes-2022-11-17

for you to fetch changes up to 4f68332b2f89ab84285e5b6cb3d30e8b9894bef1:

  drm/i915/ttm: fix uaf with lmem_userfault_list handling (2022-11-14 09:46:06 
+)


- Fix uaf with lmem_userfault_list handling (Matthew Auld)


Matthew Auld (1):
  drm/i915/ttm: fix uaf with lmem_userfault_list handling

 drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


[PULL] drm-misc-next

2022-11-17 Thread Maxime Ripard
Hi Dave, Daniel,

Here's this week drm-misc-next PR. Given we're at rc5 already, it's
probably going to be the last for 6.2.

Thanks!
Maxime

drm-misc-next-2022-11-17:
drm-misc-next for 6.2:

UAPI Changes:

Cross-subsystem Changes:
- fbdev: Add support for the nomodeset kernel parameter

Core Changes:
- client: Add kunit tests for drm_connector_pick_cmdline_mode()
- dma-buf: Move dma_buf_mmap_internal() to new locking specification
- edid: Dump EDID on drm_edid_get_panel_id() failure, Stop using a
  temporary device to load the EDID through the firmware mechanism
- fb-helper: Remove damage worker
- gem-vram: Fix deadlock in drm_gem_vram_vmap()
- modes: Named mode parsing improvements
- tests: Add Kunit helpers to create a DRM device

Driver Changes:
- hisilicon: convert to drm_mode_init()
- malidp: Use drm-managed resources
- msm: convert to drm_mode_init() and drm_mode_copy()
- mtk: convert to drm_mode_init()
- nouveau: Support backlight control for nva3
- rockchip: convert to drm_mode_copy()
- sti: convert to drm_mode_copy()
- v3d: Switch to drm-managed resources
- vc4: Fix potential NULL pointer dereference

- panels:
  - New panel: NewVision NV3051D
The following changes since commit 6b818c533dd8615a803a72733eace58fd06e5a3c:

  drm: panel: Add Jadard JD9365DA-H3 DSI panel (2022-11-09 10:40:56 +0100)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-misc tags/drm-misc-next-2022-11-17

for you to fetch changes up to 35c3a2d02f0dc153a5f2f304ba33e1436b6a8d8f:

  drm/tests: helpers: Add SPDX header (2022-11-17 09:25:38 +0100)


drm-misc-next for 6.2:

UAPI Changes:

Cross-subsystem Changes:
- fbdev: Add support for the nomodeset kernel parameter

Core Changes:
- client: Add kunit tests for drm_connector_pick_cmdline_mode()
- dma-buf: Move dma_buf_mmap_internal() to new locking specification
- edid: Dump EDID on drm_edid_get_panel_id() failure, Stop using a
  temporary device to load the EDID through the firmware mechanism
- fb-helper: Remove damage worker
- gem-vram: Fix deadlock in drm_gem_vram_vmap()
- modes: Named mode parsing improvements
- tests: Add Kunit helpers to create a DRM device

Driver Changes:
- hisilicon: convert to drm_mode_init()
- malidp: Use drm-managed resources
- msm: convert to drm_mode_init() and drm_mode_copy()
- mtk: convert to drm_mode_init()
- nouveau: Support backlight control for nva3
- rockchip: convert to drm_mode_copy()
- sti: convert to drm_mode_copy()
- v3d: Switch to drm-managed resources
- vc4: Fix potential NULL pointer dereference

- panels:
  - New panel: NewVision NV3051D


Antonio Gomes (1):
  drm/nouveau: Add support to control backlight using bl_power for nva3.

Brian Starkey (1):
  drm/fourcc: Fix vsub/hsub for Q410 and Q401

Chris Morgan (3):
  dt-bindings: vendor-prefixes: add NewVision vendor prefix
  dt-bindings: display: panel: Add NewVision NV3051D bindings
  drm/panel: Add NewVision NV3051D MIPI-DSI LCD panel

Danilo Krummrich (5):
  drm/arm/malidp: use drmm_* to allocate driver structures
  drm/arm/malidp: replace drm->dev_private with drm_to_malidp()
  drm/arm/malidp: crtc: use drmm_crtc_init_with_planes()
  drm/arm/malidp: plane: use drm managed resources
  drm/arm/malidp: remove calls to drm_mode_config_cleanup()

Dmitry Osipenko (7):
  dma-buf: Move dma_buf_mmap_internal() to dynamic locking specification
  drm: Assert held reservation lock for dma-buf mmapping
  udmabuf: Assert held reservation lock for dma-buf mmapping
  dma-buf/heaps: Assert held reservation lock for dma-buf mmapping
  media: videobuf2: Assert held reservation lock for dma-buf mmapping
  fastrpc: Assert held reservation lock for dma-buf mmapping
  drm/gem-vram: Fix deadlock in drm_gem_vram_vmap()

Douglas Anderson (1):
  drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error

Jani Nikula (1):
  drm/edid/firmware: stop using a throwaway platform device

José Expósito (2):
  drm/vc4: hdmi: Pass vc4_hdmi to vc4_hdmi_supports_scrambling()
  drm/vc4: hdmi: Fix pointer dereference before check

Maxime Ripard (11):
  docs/fb: Document current named modes
  drm/tests: Add Kunit Helpers
  drm/client: Add some tests for drm_connector_pick_cmdline_mode()
  drm/modes: Move named modes parsing to a separate function
  drm/modes: Switch to named mode descriptors
  drm/modes: Fill drm_cmdline mode from named modes
  drm/connector: Add pixel clock to cmdline mode
  drm/tests: Include helpers header
  drm/tests: helpers: Add module infos
  drm/tests: client: Remove extra blank lines
  drm/tests: helpers: Add SPDX header

Maíra Canal (2):
  drm/v3d: switch to drmm_mutex_init
  drm/v3d: add missing mutex_destroy

Thomas Zimmermann (8):
  drm/fb-helper: Set damage-clip area in helper