[PULL] drm-intel-next

2023-10-12 Thread Jani Nikula


Hi Dave & Sima -

Here's the 2nd i915 feature pull for v6.7.

There might be another small feature pull coming next week, mainly to
remove force probe for Meteorlake, and promote it to fully
supported. There are some final issues being ironed out still.

There's a backmerge in there; I acknowledge I should pay more attention
to the details in the backmerge commit message. There was a conflict
between the drm-intel-next and drm-intel-gt-next branches I wanted to
clear before applying more patches on top.


drm-intel-next-2023-10-12:
drm/i915 feature pull #2 for v6.7:

Features and functionality:
- Preparation for i915 display code reuse in upcoming Xe driver (Jani)
- Drop the fastboot module parameter and use the platform defaults (Arun)
- Enable new LNL FBC features (Vinod)
- Add LNL display feature capability reads (Vinod)

Refactoring and cleanups:
- Locally enable W=1 warnings by default in i915 (Jani)
- Move HDCP GSC message code to a separate file (Suraj)
- GVT include cleanups (Jani)
- Move more display init under display/ (Jani)
- DPLL ID refactoring (Ville)
- Better abstraction of GT0 (Jani)
- Move VGA decode function to GMCH code (Uma)
- Use local64_try_cmpxchg() to optimize PMU event read (Uros Bizjak)
- Clean up FBC checks (Ville)
- Constify and unify state checker calling conventions (Ville)
- Add display step name helper (Chaitanya)

Documentation:
- Update CCS and GSC CS documentation (Rodrigo)
- Fix a number of documentation typos (Randy Dunlap)

Fixes:
- VLV DSI fixes and quirks (Hans)
- Fix crtc state memory leaks (Suraj)
- Increase LSPCON mode settle timeout (Niko Tsirakis)
- Stop clobbering old crtc state during state check (Ville)
- Fix VLV color state readout (Ville)
- Fix cx0 PHY pipe reset to allow S0iX (Khaled)
- Ensure DP MST pbn_div is up-to-date after sink reconnect (Imre)
- Drop an unnecessary NULL check to fix static analyzer warning (Suraj)
- Use an explicit rather than implicit include for frontbuffer tracking (Jouni)

Merges:
- Backmerge drm-next to fix a conflict (Jani)

BR,
Jani.

The following changes since commit caacbdc28f545744770fb2caf347b3c4be9a6299:

  Merge tag 'drm-intel-gt-next-2023-09-28' of 
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2023-10-03 06:02:30 
+1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-intel tags/drm-intel-next-2023-10-12

for you to fetch changes up to a6028afef98a6e3f059a014452914eb01035d530:

  drm/i915/dsi: Add some debug logging to mipi_exec_i2c (v2) (2023-10-12 
12:41:54 +0200)


drm/i915 feature pull #2 for v6.7:

Features and functionality:
- Preparation for i915 display code reuse in upcoming Xe driver (Jani)
- Drop the fastboot module parameter and use the platform defaults (Arun)
- Enable new LNL FBC features (Vinod)
- Add LNL display feature capability reads (Vinod)

Refactoring and cleanups:
- Locally enable W=1 warnings by default in i915 (Jani)
- Move HDCP GSC message code to a separate file (Suraj)
- GVT include cleanups (Jani)
- Move more display init under display/ (Jani)
- DPLL ID refactoring (Ville)
- Better abstraction of GT0 (Jani)
- Move VGA decode function to GMCH code (Uma)
- Use local64_try_cmpxchg() to optimize PMU event read (Uros Bizjak)
- Clean up FBC checks (Ville)
- Constify and unify state checker calling conventions (Ville)
- Add display step name helper (Chaitanya)

Documentation:
- Update CCS and GSC CS documentation (Rodrigo)
- Fix a number of documentation typos (Randy Dunlap)

Fixes:
- VLV DSI fixes and quirks (Hans)
- Fix crtc state memory leaks (Suraj)
- Increase LSPCON mode settle timeout (Niko Tsirakis)
- Stop clobbering old crtc state during state check (Ville)
- Fix VLV color state readout (Ville)
- Fix cx0 PHY pipe reset to allow S0iX (Khaled)
- Ensure DP MST pbn_div is up-to-date after sink reconnect (Imre)
- Drop an unnecessary NULL check to fix static analyzer warning (Suraj)
- Use an explicit rather than implicit include for frontbuffer tracking (Jouni)

Merges:
- Backmerge drm-next to fix a conflict (Jani)


Arun R Murthy (1):
  drm/i915: Remove the module parameter 'fastboot'

Chaitanya Kumar Borah (1):
  drm/i915: Add wrapper for getting display step

Hans de Goede (4):
  drm/i915/vlv_dsi: Add DMI quirk for wrong panel modeline in BIOS on Asus 
TF103C (v3)
  drm/i915/vlv_dsi: Add DMI quirk for wrong I2C bus and panel size on 
Lenovo Yoga Tablet 2 series (v3)
  drm/i915/vlv_dsi: Add DMI quirk for backlight control issues on Lenovo 
Yoga Tab 3 (v2)
  drm/i915/dsi: Add some debug logging to mipi_exec_i2c (v2)

Imre Deak (1):
  drm/i915/dp_mst: Make sure pbn_div is up-to-date after sink reconnect

Jani Nikula (33):
  drm/i915: define I915 during i915 driver build
  drm/i915/display: add I915 conditional build to intel_lvds.h
  drm/i915/display: add I915 conditional build to 

[PULL] drm-misc-fixes

2023-10-12 Thread Thomas Zimmermann
Hi Dave and Daniel, 

here's the PR for drm-misc-fixes.

Best regards
Thomas

drm-misc-fixes-2023-10-12:
Short summary of fixes pull:

 * atomic-helper: Relax checks for unregistered connectors
 * dma-buf: Work around race condition when retrieving fence timestamp
 * gem: Avoid OOB access in BO memory range
 * panel:
   * boe-tv101wun-ml6: Fix flickering
 * simpledrm: Fix error output
 * vwmgfx:
   * Fix size calculation in texture-state code
   * Ref GEM BOs in surfaces
The following changes since commit d59e75eef52d89201aaf5342a3ac23ddf3e9b112:

  drm/nouveau: exec: report max pushs through getparam (2023-10-04 00:10:18 
+0200)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-misc tags/drm-misc-fixes-2023-10-12

for you to fetch changes up to c1165df2be2fffe3adeeaa68f4ee4325108c5e4e:

  drm/tiny: correctly print `struct resource *` on error (2023-10-12 10:57:07 
+0200)


Short summary of fixes pull:

 * atomic-helper: Relax checks for unregistered connectors
 * dma-buf: Work around race condition when retrieving fence timestamp
 * gem: Avoid OOB access in BO memory range
 * panel:
   * boe-tv101wun-ml6: Fix flickering
 * simpledrm: Fix error output
 * vwmgfx:
   * Fix size calculation in texture-state code
   * Ref GEM BOs in surfaces


Christian König (1):
  dma-buf: add dma_fence_timestamp helper

Joey Gouly (1):
  drm/tiny: correctly print `struct resource *` on error

Konstantin Meskhidze (1):
  drm/vmwgfx: fix typo of sizeof argument

Matthew Wilcox (Oracle) (1):
  drm: Do not overrun array in drm_gem_get_pages()

Ruihai Zhou (1):
  drm/panel: boe-tv101wum-nl6: Completely pull GPW to VGL before TP term

Simon Ser (1):
  drm/atomic-helper: relax unregistered connector check

Zack Rusin (1):
  drm/vmwgfx: Keep a gem reference to user bos in surfaces

 drivers/dma-buf/dma-fence-unwrap.c | 13 ---
 drivers/dma-buf/sync_file.c|  9 +++-
 drivers/gpu/drm/drm_atomic_helper.c| 17 ++
 drivers/gpu/drm/drm_gem.c  |  6 +++--
 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c |  4 +---
 drivers/gpu/drm/scheduler/sched_main.c |  2 +-
 drivers/gpu/drm/tiny/simpledrm.c   |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c |  7 +++---
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.h | 17 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c|  6 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  4 
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 12 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_gem.c| 18 ---
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|  6 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c|  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c   | 12 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c |  4 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c| 31 ++
 include/linux/dma-fence.h  | 19 
 19 files changed, 115 insertions(+), 76 deletions(-)

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)


[PULL] drm-intel-gt-next

2023-10-12 Thread Tvrtko Ursulin
Hi Dave, Daniel,

Here is the second pull request for 6.7.

I say second and not final because there is a very small chance we might
be doing another one next week, to bring Meteorlake out of force probe
status, which was quite close this week but apparently not quite there.
At the moment it looks like chances are low, with some last minute
findings putting a spanner in the works so this will likely end up the
final pull request after all.

In terms of content there is not much in this one. Mostly more work on
enabling Meteorlake and some minor fixes here and there.

Regards,

Tvrtko

drm-intel-gt-next-2023-10-12:
Driver Changes:

Fixes/improvements/new stuff:

- Register engines early to avoid type confusion (Mathias Krause)
- Suppress 'ignoring reset notification' message [guc] (John Harrison)
- Update 'recommended' version to 70.12.1 for DG2/ADL-S/ADL-P/MTL [guc] (John 
Harrison)
- Enable WA 14018913170 [guc, dg2] (Daniele Ceraolo Spurio)

Future platform enablement:

- Clean steer semaphore on resume (Nirmoy Das)
- Skip MCR ops for ring fault register [mtl] (Nirmoy Das)
- Make i915_gem_shrinker multi-gt aware [gem] (Jonathan Cavitt)
- Enable GGTT updates with binder in MTL (Nirmoy Das, Chris Wilson)
- Invalidate the TLBs on each GT (Chris Wilson)

Miscellaneous:

- Clarify type evolution of uabi_node/uabi_engines (Mathias Krause)
- Annotate struct ct_incoming_msg with __counted_by [guc] (Kees Cook)
- More use of GT specific print helpers [gt] (John Harrison)
The following changes since commit 03d681412b38558aefe4fb0f46e36efa94bb21ef:

  drm/i915: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval (2023-09-28 11:39:30 
+0200)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-intel tags/drm-intel-gt-next-2023-10-12

for you to fetch changes up to 039adf3947252693f7c882607dac2dc67e7f7ab2:

  drm/i915: More use of GT specific print helpers (2023-10-10 15:40:26 -0700)


Driver Changes:

Fixes/improvements/new stuff:

- Register engines early to avoid type confusion (Mathias Krause)
- Suppress 'ignoring reset notification' message [guc] (John Harrison)
- Update 'recommended' version to 70.12.1 for DG2/ADL-S/ADL-P/MTL [guc] (John 
Harrison)
- Enable WA 14018913170 [guc, dg2] (Daniele Ceraolo Spurio)

Future platform enablement:

- Clean steer semaphore on resume (Nirmoy Das)
- Skip MCR ops for ring fault register [mtl] (Nirmoy Das)
- Make i915_gem_shrinker multi-gt aware [gem] (Jonathan Cavitt)
- Enable GGTT updates with binder in MTL (Nirmoy Das, Chris Wilson)
- Invalidate the TLBs on each GT (Chris Wilson)

Miscellaneous:

- Clarify type evolution of uabi_node/uabi_engines (Mathias Krause)
- Annotate struct ct_incoming_msg with __counted_by [guc] (Kees Cook)
- More use of GT specific print helpers [gt] (John Harrison)


Chris Wilson (2):
  drm/i915: Lift runtime-pm acquire callbacks out of intel_wakeref.mutex
  drm/i915: Invalidate the TLBs on each GT

Daniele Ceraolo Spurio (1):
  drm/i915/guc: Enable WA 14018913170

John Harrison (4):
  drm/i915/guc: Suppress 'ignoring reset notification' message
  drm/i915/guc: Update 'recommended' version to 70.12.1 for 
DG2/ADL-S/ADL-P/MTL
  drm/i915/gt: More use of GT specific print helpers
  drm/i915: More use of GT specific print helpers

Jonathan Cavitt (1):
  drm/i915/gem: Make i915_gem_shrinker multi-gt aware

Kees Cook (1):
  drm/i915/guc: Annotate struct ct_incoming_msg with __counted_by

Mathias Krause (2):
  drm/i915: Register engines early to avoid type confusion
  drm/i915: Clarify type evolution of uabi_node/uabi_engines

Nirmoy Das (10):
  drm/i915: Introduce intel_gt_mcr_lock_sanitize()
  drm/i915: Introduce the intel_gt_resume_early()
  drm/i915: Clean steer semaphore on resume
  drm/i915/mtl: Skip MCR ops for ring fault register
  drm/i915: Create a kernel context for GGTT updates
  drm/i915: Implement for_each_sgt_daddr_next
  drm/i915: Parameterize binder context creation
  drm/i915: Implement GGTT update method with MI_UPDATE_GTT
  drm/i915: Toggle binder context ready status
  drm/i915: Enable GGTT updates with binder in MTL

 drivers/gpu/drm/i915/gem/i915_gem_pages.c |   2 +-
 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c  |  42 ++--
 drivers/gpu/drm/i915/gt/intel_engine.h|   2 +
 drivers/gpu/drm/i915/gt/intel_engine_cs.c |  69 +--
 drivers/gpu/drm/i915/gt/intel_engine_types.h  |  13 +-
 drivers/gpu/drm/i915/gt/intel_engine_user.c   |  17 +-
 drivers/gpu/drm/i915/gt/intel_ggtt.c  | 235 ++
 drivers/gpu/drm/i915/gt/intel_gsc.c   |  11 +-
 drivers/gpu/drm/i915/gt/intel_gt.c|  62 +-
 drivers/gpu/drm/i915/gt/intel_gt.h|   3 +
 drivers/gpu/drm/i915/gt/intel_gt_mcr.c|  22 ++
 

[PULL] drm-misc-next

2023-10-12 Thread Maarten Lankhorst

drm-misc-next-2023-10-12:
drm-misc-next for v6.7-rc1:

Contains the previous pull request drm-misc-next-2023-10-06 + following:

Cross-subsystem Changes:
- Rename fb_pgprot to pgprot_framebuffer and remove file argument/
- Update iosys-map documentation typos.

Core Changes:
- Assorted fixes to drm/panel.
- Add HPD state to drm_connector_oob_hotplug_event(), and implement
  oob hotplug events in bridge connector.
- Replace drm_framebuffer_plane_width/height  with calls to
  drm_format_info_plane_width/height.

Driver Changes:
- Clock and debug fixes for bridge/samsung-dsim.
- More btree -> maple tree conversions.
- Assorted bugfixes in rockchip, panel-tpo-tpg110,
- Add LTK050H3148W-CTA6 panel support.
- Assorted small fixes in host1x, tegra, simpledrm.
- Suspend fixes for host1x.
The following changes since commit 389af786f92ecdff35883551d54bf4e507ffcccb:

  Merge tag 'drm-intel-next-2023-09-29' of 
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2023-10-04 
13:55:19 +1000)


are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm-misc tags/drm-misc-next-2023-10-12

for you to fetch changes up to c395c83aafbb9cdbe4230f044d5b8eaf9080c0c5:

  drm/simpledrm: Fix power domain device link validity check 
(2023-10-12 10:39:48 +0200)



drm-misc-next for v6.7-rc1:

Contains the previous pull request drm-misc-next-2023-10-06 + following:

Cross-subsystem Changes:
- Rename fb_pgprot to pgprot_framebuffer and remove file argument/
- Update iosys-map documentation typos.

Core Changes:
- Assorted fixes to drm/panel.
- Add HPD state to drm_connector_oob_hotplug_event(), and implement
  oob hotplug events in bridge connector.
- Replace drm_framebuffer_plane_width/height  with calls to
  drm_format_info_plane_width/height.

Driver Changes:
- Clock and debug fixes for bridge/samsung-dsim.
- More btree -> maple tree conversions.
- Assorted bugfixes in rockchip, panel-tpo-tpg110,
- Add LTK050H3148W-CTA6 panel support.
- Assorted small fixes in host1x, tegra, simpledrm.
- Suspend fixes for host1x.


Adrián Larumbe (6):
  drm/panfrost: Add cycle count GPU register definitions
  drm/panfrost: Add fdinfo support GPU load metrics
  drm/panfrost: Add fdinfo support for memory stats
  drm/drm_file: Add DRM obj's RSS reporting function for fdinfo
  drm/panfrost: Implement generic DRM object RSS reporting function
  Documentation/gpu: fix Panfrost documentation build warnings

André Almeida (1):
  drm/doc: Document DRM device reset expectations

Arnd Bergmann (1):
  drm/nouveau/kms/nv50: hide unused variables

Arthur Grillo (2):
  drm/tests: Add calls to drm_fb_blit() on supported format 
conversion tests
  drm/tests: Add new format conversion tests to better cover 
drm_fb_blit()


Bjorn Andersson (1):
  drm: Add HPD state to drm_connector_oob_hotplug_event()

Carlos Eduardo Gallo Filho (2):
  drm: Remove plane hsub/vsub alignment requirement for core helpers
  drm: Replace drm_framebuffer plane size functions with its 
equivalents


Chris Morgan (2):
  dt-bindings: display: newvision,nv3051d: Add Anbernic 351V
  drm/panel: nv3051d: Add Support for Anbernic 351V

Christophe JAILLET (1):
  drm/rockchip: cdn-dp: Fix some error handling paths in cdn_dp_probe()

Danilo Krummrich (1):
  drm/gpuvm: doc: fix filename references

Dmitry Baryshkov (2):
  drm/bridge_connector: stop filtering events in 
drm_bridge_connector_hpd_cb()

  drm/bridge_connector: implement oob_hotplug_event

Douglas Anderson (1):
  MAINTAINERS: Document that the NXP i.MX 8MQ DCSS driver goes thru 
drm-misc


Jani Nikula (3):
  drm/bridge: use drm_bridge_get_edid() instead of using ->get_edid 
directly
  drm/bridge: lt9611uxc: use drm_bridge_get_edid() instead of using 
->get_edid directly

  drm/dp: switch drm_dp_downstream_*() helpers to struct drm_edid

Johannes Zink (3):
  dt-bindings: display: move LVDS data-mapping definition to 
separate file

  dt-bindings: display: simple: support non-default data-mapping
  drm/panel-simple: allow LVDS format override

Johnny Liu (1):
  gpu: host1x: Correct allocated size for contexts

Justin Stitt (1):
  drm/gma500: refactor deprecated strncpy

Kees Cook (9):
  drm/amd/pm: Annotate struct smu10_voltage_dependency_table with 
__counted_by
  drm/amdgpu/discovery: Annotate struct ip_hw_instance with 
__counted_by

  drm/i915/selftests: Annotate struct perf_series with __counted_by
  drm/msm/dpu: Annotate struct dpu_hw_intr with __counted_by
  drm/nouveau/pm: Annotate struct nvkm_perfdom with __counted_by
  drm/vc4: Annotate struct vc4_perfmon with __counted_by
  drm/virtio: Annotate struct virtio_gpu_object_array with __counted_by
  drm/vmwgfx: Annotate struct vmw_surface_dirty with __counted_by
  drm/v3d: Annotate