[git pull] drm/vmwgfx fixes for 5.12-rc8

2021-04-17 Thread Dave Airlie
Hi Linus,

Back from holidays and this was in the cracks (Zack forgot to cc
Daniel/lists), I've just piled it onto drm fixes.

It contains two regression fixes for vmwgfx, one due to a refactor
which meant locks were being used before initialisation, and the other
in fixing up some warnings from the core when destroying pinned
buffers.

Dave.

drm-fixes-2021-04-18:
drm/vmwgfx fixes for 5.12-rc7

vmwgfx:
- fixed unpinning before destruction
- lockdep init reordering
The following changes since commit 4d2e1288372ccc5ac60290bc10cace49c9bfa6d0:

  Merge tag 'drm-intel-fixes-2021-04-15' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2021-04-15
15:24:17 +0200)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-04-18

for you to fetch changes up to 796b556cbfdbe0d65b9793e63653ad24f9fa033c:

  Merge tag 'vmwgfx-fixes-2021-04-14' of
gitlab.freedesktop.org:zack/vmwgfx into drm-fixes (2021-04-18 09:27:00
+1000)


drm/vmwgfx fixes for 5.12-rc7

vmwgfx:
- fixed unpinning before destruction
- lockdep init reordering


Dave Airlie (1):
  Merge tag 'vmwgfx-fixes-2021-04-14' of
gitlab.freedesktop.org:zack/vmwgfx into drm-fixes

Zack Rusin (3):
  drm/vmwgfx: Make sure we unpin no longer needed buffers
  drm/vmwgfx: Fix the lockdep breakage
  drm/vmwgfx: Make sure bo's are unpinned before putting them back

 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c |  4 
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 17 -
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |  5 +
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c | 14 ++
 4 files changed, 27 insertions(+), 13 deletions(-)


[git pull] drm fixes for 5.12-rc7

2021-04-09 Thread Dave Airlie
Hey Linus,

Was relatively quiet this week, but still a few pulls came in, pretty
much small fixes across the board, a couple of regression fixes in the
amdgpu/radeon code, msm has a few minor fixes across the board, a
panel regression fix also.

I'm out all next week, so Daniel will do any last minute fixes for the
final release, assuming things stick to schedule. I'll be back for the
merge window but might towards the end of the first week before I get
my MR lined up.

Dave.

drm-fixes-2021-04-10:
drm fixes for 5.12-rc7

amdgpu:
- DCN3 fix
- Fix CAC setting regression for TOPAZ
- Fix ttm regression

radeon:
- Fix ttm regression

msm:
- a5xx/a6xx timestamp fix
- microcode version check
- fail path fix
- block programming fix
- error removal fix.

i915:
- Fix invalid access to ACPI _DSM objects

xen:
- Fix use-after-free in xen.
- minor duplicate definition cleanup

vc4:
- Reduce fifo threshold on hvs4 to fix a fifo full error.
- minor redundant assignment cleanup

panel:
- Disable TE support for Droid4 and N950.
The following changes since commit e49d033bddf5b565044e2abe4241353959bc9120:

  Linux 5.12-rc6 (2021-04-04 14:15:36 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-04-10

for you to fetch changes up to bd119f471299c8692a00b2f5e9bba8e3b81c3466:

  Merge tag 'drm-intel-fixes-2021-04-09' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2021-04-10
05:18:35 +1000)


drm fixes for 5.12-rc7

amdgpu:
- DCN3 fix
- Fix CAC setting regression for TOPAZ
- Fix ttm regression

radeon:
- Fix ttm regression

msm:
- a5xx/a6xx timestamp fix
- microcode version check
- fail path fix
- block programming fix
- error removal fix.

i915:
- Fix invalid access to ACPI _DSM objects

xen:
- Fix use-after-free in xen.
- minor duplicate defintion cleanup

vc4:
- Reduce fifo threshold on hvs4 to fix a fifo full error.
- minor redunantant assignment cleanup

panel:
- Disable TE support for Droid4 and N950.


Alex Deucher (1):
  drm/amdgpu/smu7: fix CAC setting on TOPAZ

Dave Airlie (4):
  Merge tag 'amd-drm-fixes-5.12-2021-04-08' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm-msm-fixes-2021-04-02' of
https://gitlab.freedesktop.org/drm/msm into drm-fixes
  Merge tag 'drm-misc-fixes-2021-04-09' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2021-04-09' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Dmitry Baryshkov (1):
  drm/msm: a6xx: fix version check for the A650 SQE microcode

Dom Cobley (1):
  drm/vc4: crtc: Reduce PV fifo threshold on hvs4

John Stultz (1):
  drm/msm: Fix removal of valid error case when checking speed_bin

Kalyan Thota (1):
  drm/msm/disp/dpu1: program 3d_merge only if block is attached

Lv Yunlong (1):
  gpu/xen: Fix a use after free in xen_drm_drv_init

Maxime Ripard (1):
  drm/vc4: plane: Remove redundant assignment

Qingqing Zhuo (1):
  drm/amd/display: Add missing mask for DCN3

Rob Clark (1):
  drm/msm: Fix a5xx/a6xx timestamps

Sebastian Reichel (1):
  drm/panel: panel-dsi-cm: disable TE for now

Stephen Boyd (1):
  drm/msm: Set drvdata to NULL when msm_drm_init() fails

Takashi Iwai (1):
  drm/i915: Fix invalid access to ACPI _DSM objects

Wan Jiabing (1):
  drivers: gpu: drm: xen_drm_front_drm_info is declared twice

xinhui pan (2):
  drm/amdgpu: Fix size overflow
  drm/radeon: Fix size overflow

 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c|  2 +-
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.h  |  1 +
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c|  3 ++-
 drivers/gpu/drm/i915/display/intel_acpi.c  | 22 --
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c  |  4 ++--
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c  | 18 --
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c |  4 +++-
 drivers/gpu/drm/msm/msm_drv.c  |  1 +
 drivers/gpu/drm/panel/panel-dsi-cm.c   | 12 +---
 drivers/gpu/drm/radeon/radeon_ttm.c|  4 ++--
 drivers/gpu/drm/vc4/vc4_crtc.c | 17 +
 drivers/gpu/drm/vc4/vc4_plane.c|  1 -
 drivers/gpu/drm/xen/xen_drm_front.c|  6 --
 drivers/gpu/drm/xen/xen_drm_front_conn.h   |  1 -
 14 files changed, 74 insertions(+), 22 deletions(-)


[git pull] drm fixes for 5.12-rc6

2021-04-01 Thread Dave Airlie
Hi Linus,

Things have settled down in time for Easter, a random smattering of
small fixes across a few drivers. I'm guessing though there might be
some i915 and misc fixes out there I haven't gotten yet, but since
today is a public holiday here, I'm sending this early so I can have
the day off, I'll see if more requests come in and decide what to do
with them later.

Dave.

drm-fixes-2021-04-02:
drm fixes for 5.12-rc6

amdgpu:
- Polaris idle power fix
- VM fix
- Vangogh S3 fix
- Fixes for non-4K page sizes

amdkfd:
- dqm fence memory corruption fix

tegra:
- lockdep warning fix
- runtine PM reference fix
- display controller fix
- PLL Fix

imx:
- memory leak in error path fix
- LDB driver channel registration fix
- oob array warning in LDB driver

exynos
- unused header file removal
The following changes since commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3:

  Linux 5.12-rc5 (2021-03-28 15:48:16 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-04-02

for you to fetch changes up to 6fdb8e5aba6a33fe5f1a0bd1bcf0cf2884437ead:

  Merge tag 'imx-drm-fixes-2021-04-01' of
git://git.pengutronix.de/git/pza/linux into drm-fixes (2021-04-02
04:53:16 +1000)


drm fixes for 5.12-rc6

amdgpu:
- Polaris idle power fix
- VM fix
- Vangogh S3 fix
- Fixes for non-4K page sizes

amdkfd:
- dqm fence memory corruption fix

tegra:
- lockdep warning fix
- runtine PM reference fix
- display controller fix
- PLL Fix

imx:
- memory leak in error path fix
- LDB driver channel registration fix
- oob array warning in LDB driver

exynos
- unused header file removal


Alex Deucher (1):
  drm/amdgpu/vangogh: don't check for dpm in is_dpm_running when in suspend

Arnd Bergmann (1):
  drm/imx: imx-ldb: fix out of bounds array access warning

Dave Airlie (4):
  Merge tag 'exynos-drm-fixes-for-v5.12-rc6' of
git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into
drm-fixes
  Merge tag 'amd-drm-fixes-5.12-2021-03-31' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm/tegra/for-5.12-rc6' of
ssh://git.freedesktop.org/git/tegra/linux into drm-fixes
  Merge tag 'imx-drm-fixes-2021-04-01' of
git://git.pengutronix.de/git/pza/linux into drm-fixes

Dmitry Osipenko (1):
  drm/tegra: dc: Don't set PLL clock to 0Hz

Evan Quan (1):
  drm/amd/pm: no need to force MCLK to highest when no display connected

Huacai Chen (1):
  drm/amdgpu: Set a suitable dev_info.gart_page_size

Liu Ying (1):
  drm/imx: imx-ldb: Register LDB channel1 when it is the only
channel to be used

Mikko Perttunen (1):
  gpu: host1x: Use different lock classes for each client

Nirmoy Das (1):
  drm/amdgpu: fix offset calculation in amdgpu_vm_bo_clear_mappings()

Pan Bian (1):
  drm/imx: fix memory leak when fails to init

Qu Huang (1):
  drm/amdkfd: dqm fence memory corruption

Thierry Reding (2):
  drm/tegra: dc: Restore coupling of display controllers
  drm/tegra: sor: Grab runtime PM reference across reset

Tian Tao (1):
  drm/exynos/decon5433: Remove the unused include statements

Xℹ Ruoyao (1):
  drm/amdgpu: check alignment on CPU page for bo map

 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c|  4 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 10 
 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c|  2 +-
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  |  6 ++---
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.h  |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c|  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h  |  8 +++---
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c|  3 ++-
 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c   |  5 
 drivers/gpu/drm/exynos/exynos5433_drm_decon.c  |  1 -
 drivers/gpu/drm/imx/imx-drm-core.c |  2 +-
 drivers/gpu/drm/imx/imx-ldb.c  | 12 -
 drivers/gpu/drm/tegra/dc.c | 30 ++
 drivers/gpu/drm/tegra/sor.c|  7 +
 drivers/gpu/host1x/bus.c   | 10 +---
 include/linux/host1x.h |  9 ++-
 18 files changed, 72 insertions(+), 45 deletions(-)


[git pull] drm fixes for 5.12-rc5

2021-03-25 Thread Dave Airlie
Hi Linus,

As expected last week things were overly quiet so this week things
seem to have caught up. It still isn't too major.

msm and amdgpu lead the size here, the msm fixes are pretty varied
across the driver, the amdgpu one is mostly the S0ix fixes with some
other minor ones. Otherwise there are a few i915 fixes and one each
for nouveau, etnaviv and rcar-du.

Dave.

drm-fixes-2021-03-26:
drm fixes for 5.12-rc5

msm:
- pll fixes
- shutdown hook fix
- runtime resume fix
- clear_oob fix
- kms locking fix
- display aux retry fix

rcar-du:
- warn_on in encoder init fix

etnaviv:
- Use FOLL_FORCE and FOLL_LONGTERM

i915:
- DisplayPort LTTPR fixes around link training and limiting it
  according to supported spec version.
- Fix enabled_planes bitmask to really represent only logically
  enabled planes.
- Fix DSS CTL registers for ICL DSI transcoders
- Fix the GT fence revocation runtime PM logic.

nouveau:
- cursor size regression fix

amdgpu:
- S0ix fixes
- Add PCI ID
- Polaris PCIe DPM fix
- Display fix for high refresh rate monitors
The following changes since commit 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b:

  Linux 5.12-rc4 (2021-03-21 14:56:43 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-03-26

for you to fetch changes up to 09d78dde88ef95a27b54a6e450ee700ccabdf39d:

  Merge tag 'drm-msm-fixes-2021-02-25' of
https://gitlab.freedesktop.org/drm/msm into drm-fixes (2021-03-26
13:04:17 +1000)


drm fixes for 5.12-rc5

msm:
- pll fixes
- shutdown hook fix
- runtime resume fix
- clear_oob fix
- kms locking fix
- display aux retry fix

rcar-du:
- warn_on in encoder init fix

etnaviv:
- Use FOLL_FORCE and FOLL_LONGTERM

i915:
- DisplayPort LTTPR fixes around link training and limiting it
  according to supported spec version.
- Fix enabled_planes bitmask to really represent only logically
  enabled planes.
- Fix DSS CTL registers for ICL DSI transcoders
- Fix the GT fence revocation runtime PM logic.

nouveau:
- cursor size regression fix

amdgpu:
- S0ix fixes
- Add PCI ID
- Polaris PCIe DPM fix
- Display fix for high refresh rate monitors


Alex Deucher (11):
  drm/amdgpu: rework S3/S4/S0ix state handling
  drm/amdgpu: don't evict vram on APUs for suspend to ram (v4)
  drm/amdgpu: clean up non-DC suspend/resume handling
  drm/amdgpu: move s0ix check into amdgpu_device_ip_suspend_phase2 (v3)
  drm/amdgpu: re-enable suspend phase 2 for S0ix
  drm/amdgpu/swsmu: skip gfx cgpg on s0ix suspend
  drm/amdgpu: update comments about s0ix suspend/resume
  drm/amdgpu: drop S0ix checks around CG/PG in suspend
  drm/amdgpu: skip kfd suspend/resume for S0ix
  drm/amdgpu: Add additional Sienna Cichlid PCI ID
  drm/amdgpu/display: restore AUX_DPHY_TX_CONTROL for DCN2.x

Daniel Vetter (2):
  drm/etnaviv: Use FOLL_FORCE for userptr
  drm/etnaviv: User FOLL_LONGTERM in userptr

Dave Airlie (6):
  Merge tag 'du-fixes-20210316' of
git://linuxtv.org/pinchartl/media into drm-fixes
  Merge tag 'drm-misc-fixes-2021-03-25' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2021-03-25-1' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge branch 'linux-5.12' of git://github.com/skeggsb/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.12-2021-03-24' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm-msm-fixes-2021-02-25' of
https://gitlab.freedesktop.org/drm/msm into drm-fixes

Dmitry Baryshkov (4):
  drm/msm/dsi: fix check-before-set in the 7nm dsi_pll code
  drm/msm/dsi_pll_7nm: Solve TODO for multiplier frac_bits assignment
  drm/msm/dsi_pll_7nm: Fix variable usage for pll_lockdet_rate
  drm/msm: fix shutdown hook in case GPU components failed to bind

Douglas Anderson (1):
  drm/msm: Fix speed-bin support not to access outside valid memory

Fabio Estevam (1):
  drm/msm: Fix suspend/resume on i.MX5

Imre Deak (4):
  drm/i915/ilk-glk: Fix link training on links with LTTPRs
  drm/i915: Disable LTTPR support when the DPCD rev < 1.4
  drm/i915: Disable LTTPR support when the LTTPR rev < 1.4
  drm/i915: Fix the GT fence revocation runtime PM logic

Jani Nikula (1):
  drm/i915/dsc: fix DSS CTL register usage for ICL DSI transcoders

Jonathan Marek (1):
  drm/msm: fix a6xx_gmu_clear_oob

Jordan Crouse (1):
  drm/msm: a6xx: Make sure the SQE microcode is safe

Kalyan Thota (1):
  drm/msm/disp/dpu1: icc path needs to be set before dpu runtime resume

Kenneth Feng (1):
  drm/amd/pm: workaround for audio noise issue

Kieran Bingham (1):
  drm: rcar-du: Use drmm_encoder_alloc() to manage encoder

Konrad Dybcio (1):
  drm/msm/adreno: a5xx_power: Don't apply A540 lm_setup to other GPUs

Lyude Paul (1):
  drm/nouveau/km

[git pull] drm fixes for 5.12-rc4

2021-03-18 Thread Dave Airlie
Hi Linus,

Regular fixes pull, pretty small set of fixes, a couple of i915 and
amdgpu, one ttm, one nouveau and one omap. Probably smaller than usual
for this time, so we'll see if something pops up next week or if this
will continue to stay small.

Dave.

drm-fixes-2021-03-19:
drm fixes for 5.12-rc4

ttm:
- Make ttm_bo_unpin() not wraparound on too many unpins.

omap:
- Fix coccicheck warning in omap.

amdgpu:
- DCN 3.0 gamma fixes
- DCN 2.1 corrupt screen fix

i915:
- Workaround async flip + VT-d frame corruption on HSW/BDW
- Fix NMI watchdog crash due to uninitialized OA buffer use on gen12+

nouveau:
- workaround oops with bo syncing
The following changes since commit 1e28eed17697bcf343c6743f0028cc3b5dd88bf0:

  Linux 5.12-rc3 (2021-03-14 14:41:02 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-03-19

for you to fetch changes up to e94c55b8e0a0bbe9a026250cf31e2fa45957d776:

  nouveau: Skip unvailable ttm page entries (2021-03-19 10:38:31 +1000)


drm fixes for 5.12-rc4

ttm:
- Make ttm_bo_unpin() not wraparound on too many unpins.

omap:
- Fix coccicheck warning in omap.

amdgpu:
- DCN 3.0 gamma fixes
- DCN 2.1 corrupt screen fix

i915:
- Workaround async flip + VT-d frame corruption on HSW/BDW
- Fix NMI watchdog crash due to uninitialized OA buffer use on gen12+

nouveau:
- workaround oops with bo syncing


Calvin Hou (1):
  drm/amd/display: Correct algorithm for reversed gamma

Christian König (1):
  drm/ttm: make ttm_bo_unpin more defensive

Dave Airlie (3):
  Merge tag 'drm-misc-fixes-2021-03-18' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'amd-drm-fixes-5.12-2021-03-18' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2021-03-18' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Dillon Varone (1):
  drm/amd/display: Remove MPC gamut remap logic for DCN30

Junlin Yang (1):
  drm/omap: dsi: fix unsigned expression compared with zero

Sung Lee (1):
  drm/amd/display: Copy over soc values before bounding box creation

Tobias Klausmann (1):
  nouveau: Skip unvailable ttm page entries

Umesh Nerlige Ramappa (1):
  i915/perf: Start hrtimer only if sampling the OA buffer

Ville Syrjälä (1):
  drm/i915: Workaround async flip + VT-d corruption on HSW/BDW

 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 34 ++
 .../gpu/drm/amd/display/dc/dcn21/dcn21_resource.c  |  5 
 .../gpu/drm/amd/display/dc/dcn30/dcn30_cm_common.c | 26 -
 drivers/gpu/drm/i915/i915_perf.c   | 13 -
 drivers/gpu/drm/i915/i915_reg.h| 23 ++-
 drivers/gpu/drm/i915/intel_pm.c| 16 +-
 drivers/gpu/drm/nouveau/nouveau_bo.c   |  8 +
 drivers/gpu/drm/omapdrm/dss/dsi.c  |  7 +++--
 include/drm/ttm/ttm_bo_api.h   |  6 ++--
 9 files changed, 83 insertions(+), 55 deletions(-)


[git pull] drm fixes for 5.12-rc3

2021-03-11 Thread Dave Airlie
Hi Linus,

Regular fixes for rc3. The i915 pull was based on the rc1 tag so I
just cherry-picked the single fix from there to avoid it. The misc and
amd trees seem to be on okay bases.

It's a bunch of fixes across the tree, amdgpu has most of them a few
ttm fixes around qxl, and nouveau.

Dave.

drm-fixes-2021-03-12-1:
drm fixes for 5.12-rc3

core:
- Clear holes when converting compat ioctl's between 32-bits and 64-bits.

docs:
- Use gitlab for drm bugzilla now.

ttm:
- Fix ttm page pool accounting.

fbdev:
- Fix oops in drm_fbdev_cleanup()

shmem:
- Assorted fixes for shmem helpers.

qxl:
- unpin qxl bos created as pinned when freeing them,
  and make ttm only warn once on this behavior.
- Zero head.surface_id correctly in qxl.

atyfb:
- Use LCD management for atyfb on PPC_MAC.

meson:
- Shutdown kms poll helper in meson correctly.

nouveau:
- fix regression in bo syncing

i915:
- Wedge the GPU if command parser setup fails

amdgpu:
- Fix aux backlight control
- Add a backlight override parameter
- Various display fixes
- PCIe DPM fix for vega
- Polaris watermark fixes
- Additional S0ix fix

radeon:
- Fix GEM regression
- Fix AGP dependency handling
The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15:

  Linux 5.12-rc2 (2021-03-05 17:33:41 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-03-12-1

for you to fetch changes up to 4042160c2e5433e0759782c402292a90b5bf458d:

  drm/nouveau: fix dma syncing for loops (v2) (2021-03-12 11:21:47 +1000)


drm fixes for 5.12-rc3

core:
- Clear holes when converting compat ioctl's between 32-bits and 64-bits.

docs:
- Use gitlab for drm bugzilla now.

ttm:
- Fix ttm page pool accounting.

fbdev:
- Fix oops in drm_fbdev_cleanup()

shmem:
- Assorted fixes for shmem helpers.

qxl:
- unpin qxl bos created as pinned when freeing them,
  and make ttm only warn once on this behavior.
- Zero head.surface_id correctly in qxl.

atyfb:
- Use LCD management for atyfb on PPC_MAC.

meson:
- Shutdown kms poll helper in meson correctly.

nouveau:
- fix regression in bo syncing

i915:
- Wedge the GPU if command parser setup fails

amdgpu:
- Fix aux backlight control
- Add a backlight override parameter
- Various display fixes
- PCIe DPM fix for vega
- Polaris watermark fixes
- Additional S0ix fix

radeon:
- Fix GEM regression
- Fix AGP dependency handling


Alex Deucher (4):
  drm/amdgpu/display: simplify backlight setting
  drm/amdgpu/display: don't assert in set backlight function
  drm/amdgpu/display: handle aux backlight in backlight_get_brightness
  drm/amdgpu: fix S0ix handling when the CONFIG_AMD_PMC=m

Anthony DeRossi (1):
  drm/ttm: Fix TTM page pool accounting

Artem Lapkin (1):
  drm: meson_drv add shutdown function

Christian König (3):
  drm/radeon: also init GEM funcs in radeon_gem_prime_import_sg_table
  drm/radeon: fix AGP dependency
  drm/ttm: soften TTM warnings

Colin Ian King (1):
  qxl: Fix uninitialised struct field head.surface_id

Daniel Vetter (1):
  drm/compat: Clear bounce structures

Dave Airlie (3):
  Merge tag 'drm-misc-fixes-2021-03-11' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'amd-drm-fixes-5.12-2021-03-10' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  drm/nouveau: fix dma syncing for loops (v2)

Dillon Varone (1):
  drm/amd/display: Enabled pipe harvesting in dcn30

Evan Quan (1):
  drm/amd/pm: correct the watermark settings for Polaris

Gerd Hoffmann (2):
  drm/qxl: unpin release objects
  drm/qxl: fix lockdep issue in qxl_alloc_release_reserved

Holger Hoffstätte (2):
  drm/amd/display: Fix nested FPU context in dcn21_validate_bandwidth()
  drm/amdgpu/display: use GFP_ATOMIC in dcn21_validate_bandwidth_fp()

Kenneth Feng (1):
  drm/amd/pm: bug fix for pcie dpm

Neil Roberts (2):
  drm/shmem-helper: Check for purged buffers in fault handler
  drm/shmem-helper: Don't remove the offset in vm_area_struct pgoff

Nirmoy Das (1):
  drm/amdgpu: fb BO should be ttm_bo_type_device

Noralf Trønnes (1):
  drm/shmem-helpers: vunmap: Don't put pages for dma-buf

Pavel Turinský (1):
  MAINTAINERS: update drm bug reporting URL

Qingqing Zhuo (1):
  drm/amd/display: Enable pflip interrupt upon pipe enable

Randy Dunlap (2):
  fbdev: atyfb: always declare aty_{ld,st}_lcd()
  fbdev: atyfb: use LCD management functions for PPC_PMAC also

Sung Lee (1):
  drm/amd/display: Revert dram_clock_change_latency for DCN2.1

Takashi Iwai (1):
  drm/amd/display: Add a backlight module option

Thomas Zimmermann (1):
  drm: Use USB controller's DMA mask when importing dmabufs

Tong Zhang (1):
  drm/fb-helper: only unmap if buffer not null

Tvrtko Ursulin (1):
  drm/i915: Wedge the GPU

[git pull] drm fixes for 5.12-rc2

2021-03-04 Thread Dave Airlie
Hi Linus,

More may show up but this is what I have at this staged. These are
based on the commit in your tree where the swapfile issue is fixed,
and neither of the merged trees are in the bad area.

Otherwise just a single nouveau regression fix, and a bunch of amdgpu fixes.

Dave.

drm-fixes-2021-03-05:
drm fixes for 5.12-rc2

amdgpu:
- S0ix fix
- Handle new NV12 SKU
- Misc power fixes
- Display uninitialized value fix
- PCIE debugfs register access fix

nouveau:
- regression fix for gk104
The following changes since commit f69d02e37a85645aa90d18cacfff36dba370f797:

  Merge tag 'misc-5.12-2021-03-02' of git://git.kernel.dk/linux-block
(2021-03-02 18:18:17 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-03-05

for you to fetch changes up to a1f1054124936c717a64e47862e3d0d820f67a87:

  Merge tag 'amd-drm-fixes-5.12-2021-03-03' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes (2021-03-05
11:13:22 +1000)


drm fixes for 5.12-rc2

amdgpu:
- S0ix fix
- Handle new NV12 SKU
- Misc power fixes
- Display uninitialized value fix
- PCIE debugfs register access fix

nouveau:
- regression fix for gk104


Alex Deucher (4):
  drm/amdgpu: Only check for S0ix if AMD_PMC is configured
  drm/amdgpu/pm: make unsupported power profile messages debug
  drm/amdgpu/swsmu/vangogh: Only use RLCPowerNotify msg for disable
  drm/amdgpu: enable BACO runpm by default on sienna cichlid and
navy flounder

Asher.Song (1):
  drm/amdgpu:disable VCN for Navi12 SKU

Ben Skeggs (1):
  drm/nouveau/fifo/gk104-gp1xx: fix creation of sw class

Colin Ian King (1):
  drm/amd/display: fix the return of the uninitialized value in ret

Dave Airlie (2):
  Merge branch '00.00-inst' of git://github.com/skeggsb/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.12-2021-03-03' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes

Evan Quan (1):
  drm/amd/pm: correct Arcturus mmTHM_BACO_CNTL register address

Kevin Wang (1):
  drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie

 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c  |  3 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c   |  4 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c   |  2 --
 drivers/gpu/drm/amd/amdgpu/nv.c   |  6 --
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c |  2 +-
 drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c |  2 +-
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c| 15 ---
 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c  |  6 +++---
 drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c   |  2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c  |  3 +++
 10 files changed, 29 insertions(+), 16 deletions(-)


[git pull] drm fixes + msm-next for 5.12-rc1

2021-02-25 Thread Dave Airlie
Hi Linus,

Hope power/internet are back on fully!

This is fixes but I missed msm-next pull last week. It's been in
drm-next anyways so shouldn't be a problem.

Otherwise it's a selection of i915, amdgpu and misc fixes, one TTM
memory leak, nothing really major stands out otherwise.

Dave.

drm-next-2021-02-26:
drm fixes for 5.12-rc1 + msm-next

core:
- vblank fence timing improvements

dma-buf:
- improve error handling

ttm:
- memory leak fix

msm:
- a6xx speedbin support
- a508, a509, a512 support
- various a5xx fixes
- various dpu fixes
- qseed3lite support for sm8250
- dsi fix for msm8994
- mdp5 fix for framerate bug with cmd mode panels
- a6xx GMU OOB race fixes that were showing up in CI
- various addition and removal of semicolons
- gem submit fix for legacy userspace relocs path

amdgpu:
- Clang warning fix
- S0ix platform shutdown/poweroff fix
- Misc display fixes

i915:
- color format fix
- -Wuninitialised reenabled
- GVT ww locking, cmd parser fixes

atyfb:
- fix build

rockchip:
- AFBC modifier fix
The following changes since commit f730f39eb981af249d57336b47cfe3925632a7fd:

  Merge tag 'drm-intel-next-fixes-2021-02-18' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2021-02-19
13:55:07 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2021-02-26

for you to fetch changes up to d153e8c156dafeb847fd655f416cf81c007e8706:

  Merge tag 'drm-intel-next-fixes-2021-02-25' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2021-02-26
05:08:51 +1000)


drm fixes for 5.12-rc1 + msm-next

core:
- vblank fence timing improvements

dma-buf:
- improve error handling

ttm:
- memory leak fix

msm:
- a6xx speedbin support
- a508, a509, a512 support
- various a5xx fixes
- various dpu fixes
- qseed3lite support for sm8250
- dsi fix for msm8994
- mdp5 fix for framerate bug with cmd mode panels
- a6xx GMU OOB race fixes that were showing up in CI
- various addition and removal of semicolons
- gem submit fix for legacy userspace relocs path

amdgpu:
- Clang warning fix
- S0ix platform shutdown/poweroff fix
- Misc display fixes

i915:
- color format fix
- -Wuninitialised reenabled
- GVT ww locking, cmd parser fixes

atyfb:
- fix build

rockchip:
- AFBC modifier fix


Akhil P Oommen (1):
  drm/msm: Add speed-bin support to a618 gpu

Alyssa Rosenzweig (1):
  drm/rockchip: Require the YTR modifier for AFBC

AngeloGioacchino Del Regno (16):
  drm/msm/a5xx: Allow all patchid for A540 chip
  drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register
  drm/msm/a5xx: Separate A5XX_PC_DBG_ECO_CNTL write from main branch
  drm/msm/a5xx: Add support for Adreno 508, 509, 512 GPUs
  drm/msm/a5xx: Reset VBIF before PC only on A510 and A530
  drm/msm/dpu: Fix VBIF_XINL_QOS_LVL_REMAP_000 register offset
  drm/msm/dpu: Move DPU_SSPP_QOS_8LVL bit to SDM845 and SC7180 masks
  drm/msm/dpu: Add prog_fetch_lines_worst_case to INTF_BLK macro
  drm/msm/dpu: Allow specifying features and sblk in DSPP_BLK macro
  drm/msm/dpu: Disable autorefresh in command mode
  drm/msm/dpu: Correctly configure vsync tearcheck for command mode
  drm/msm/dpu: Remove unused call in wait_for_commit_done
  drm/msm/dsi_pll_10nm: Fix dividing the same numbers twice
  drm/msm/dsi_pll_10nm: Solve TODO for multiplier frac_bits assignment
  drm/msm/dsi_pll_10nm: Fix variable usage for pll_lockdet_rate
  drm/msm/dsi_pll_10nm: Convert pr_err prints to DRM_DEV_ERROR

Anson Jacob (1):
  Revert "drm/amd/display: reuse current context instead of recreating one"

Bernard Zhao (1):
  drm/msm: remove unneeded variable: "rc"

Bjorn Andersson (1):
  dt-bindings: dp-connector: Drop maxItems from -supply

Chris Wilson (2):
  drm/i915/gvt: Parse default state to update reg whitelist
  drm/i915/gvt: Purge dev_priv->gt

Dave Airlie (4):
  Merge tag 'drm-msm-next-2021-02-07' of
https://gitlab.freedesktop.org/drm/msm into drm-next
  Merge tag 'drm-misc-next-fixes-2021-02-25' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next
  Merge tag 'amd-drm-fixes-5.12-2021-02-24' of
https://gitlab.freedesktop.org/agd5f/linux into drm-next
  Merge tag 'drm-intel-next-fixes-2021-02-25' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next

Dmitry Baryshkov (1):
  drm/msm/dpu1: add support for qseed3lite used on sm8250

Eric Anholt (3):
  drm/msm: Fix race of GPU init vs timestamp power management.
  drm/msm: Fix races managing the OOB state for timestamp vs timestamps.
  drm/msm: Clean up GMU OOB set/clear handling.

Eric Bernstein (1):
  drm/amd/display: Remove Assert from dcn10_get_dig_frontend

Heiko Stuebner (1):
  drm/panel: kd35t133: allow using non-continuous dsi clock

Iskren Chernev (2):
  drm/msm: Fix MSM_INFO

[git pull] drm fixes for 5.11 final

2021-02-11 Thread Dave Airlie
(resent with a subject this time)
Hi Linus,

Regular fixes for final, there is a ttm regression fix, dp-mst fix,
one amdgpu revert, two i915 fixes, and some misc fixes for sun4i,
xlnx, and vc4.

All pretty quiet and don't think we have any known outstanding regressions.

Dave.

drm-fixes-2021-02-12:
drm fixes for 5.11-rc8

ttm:
- page pool regression fix.

dp_mst:
- Don't report un-attached ports as connected

amdgpu:
- Blank screen fix

i915:
- Ensure Type-C FIA is powered when initializing
- Fix overlay frontbuffer tracking

sun4i:
- tcon1 sync polarity fix
- Always set HDMI clock rate
- Fix H6 HDMI PHY config
- Fix H6 max frequency

vc4:
- Fix buffer overflow

xlnx:
- Fix memory leak
The following changes since commit 92bf22614b21a2706f4993b278017e437f7785b3:

  Linux 5.11-rc7 (2021-02-07 13:57:38 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-02-12

for you to fetch changes up to 551c81853d6d3ff016269d62612e7cd0a53104ab:

  Merge branch 'drm-misc-fixes' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2021-02-12
13:38:51 +1000)


drm fixes for 5.11-rc8

ttm:
- page pool regression fix.

dp_mst:
- Don't report un-attached ports as connected

amdgpu:
- Blank screen fix

i915:
- Ensure Type-C FIA is powered when initializing
- Fix overlay frontbuffer tracking

sun4i:
- tcon1 sync polarity fix
- Always set HDMI clock rate
- Fix H6 HDMI PHY config
- Fix H6 max frequency

vc4:
- Fix buffer overflow

xlnx:
- Fix memory leak


Alex Deucher (1):
  Revert "drm/amd/display: Update NV1x SR latency values"

Christian König (1):
  drm/ttm: make sure pool pages are cleared

Dave Airlie (3):
  Merge tag 'amd-drm-fixes-5.11-2021-02-10' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2021-02-11' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge branch 'drm-misc-fixes' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Imre Deak (2):
  drm/dp_mst: Don't report ports connected if nothing is attached to them
  drm/i915/tgl+: Make sure TypeC FIA is powered up when initializing it

Jernej Skrabec (4):
  drm/sun4i: tcon: set sync polarity for tcon1 channel
  drm/sun4i: dw-hdmi: always set clock rate
  drm/sun4i: Fix H6 HDMI PHY configuration
  drm/sun4i: dw-hdmi: Fix max. frequency for H6

Maxime Ripard (1):
  drm/vc4: hvs: Fix buffer overflow with the dlist handling

Quanyang Wang (1):
  drm/xlnx: fix kmemleak by sending vblank_event in atomic_disable

Ville Syrjälä (1):
  drm/i915: Fix overlay frontbuffer tracking

 .../gpu/drm/amd/display/dc/dcn20/dcn20_resource.c  |  4 +-
 drivers/gpu/drm/drm_dp_mst_topology.c  |  1 +
 drivers/gpu/drm/i915/display/intel_overlay.c   | 17 +++---
 drivers/gpu/drm/i915/display/intel_tc.c| 67 --
 drivers/gpu/drm/sun4i/sun4i_tcon.c | 25 
 drivers/gpu/drm/sun4i/sun4i_tcon.h |  6 ++
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c  | 10 +---
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h  |  1 -
 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 26 +++--
 drivers/gpu/drm/ttm/ttm_pool.c | 10 
 drivers/gpu/drm/vc4/vc4_plane.c| 18 --
 drivers/gpu/drm/xlnx/zynqmp_disp.c | 15 +++--
 12 files changed, 122 insertions(+), 78 deletions(-)


[no subject]

2021-02-11 Thread Dave Airlie
Hi Linus,

Regular fixes for final, there is a ttm regression fix, dp-mst fix,
one amdgpu revert, two i915 fixes, and some misc fixes for sun4i,
xlnx, and vc4.

All pretty quiet and don't think we have any known outstanding regressions.

Dave.

drm-fixes-2021-02-12:
drm fixes for 5.11-rc8

ttm:
- page pool regression fix.

dp_mst:
- Don't report un-attached ports as connected

amdgpu:
- Blank screen fix

i915:
- Ensure Type-C FIA is powered when initializing
- Fix overlay frontbuffer tracking

sun4i:
- tcon1 sync polarity fix
- Always set HDMI clock rate
- Fix H6 HDMI PHY config
- Fix H6 max frequency

vc4:
- Fix buffer overflow

xlnx:
- Fix memory leak
The following changes since commit 92bf22614b21a2706f4993b278017e437f7785b3:

  Linux 5.11-rc7 (2021-02-07 13:57:38 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-02-12

for you to fetch changes up to 551c81853d6d3ff016269d62612e7cd0a53104ab:

  Merge branch 'drm-misc-fixes' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2021-02-12
13:38:51 +1000)


drm fixes for 5.11-rc8

ttm:
- page pool regression fix.

dp_mst:
- Don't report un-attached ports as connected

amdgpu:
- Blank screen fix

i915:
- Ensure Type-C FIA is powered when initializing
- Fix overlay frontbuffer tracking

sun4i:
- tcon1 sync polarity fix
- Always set HDMI clock rate
- Fix H6 HDMI PHY config
- Fix H6 max frequency

vc4:
- Fix buffer overflow

xlnx:
- Fix memory leak


Alex Deucher (1):
  Revert "drm/amd/display: Update NV1x SR latency values"

Christian König (1):
  drm/ttm: make sure pool pages are cleared

Dave Airlie (3):
  Merge tag 'amd-drm-fixes-5.11-2021-02-10' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2021-02-11' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge branch 'drm-misc-fixes' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Imre Deak (2):
  drm/dp_mst: Don't report ports connected if nothing is attached to them
  drm/i915/tgl+: Make sure TypeC FIA is powered up when initializing it

Jernej Skrabec (4):
  drm/sun4i: tcon: set sync polarity for tcon1 channel
  drm/sun4i: dw-hdmi: always set clock rate
  drm/sun4i: Fix H6 HDMI PHY configuration
  drm/sun4i: dw-hdmi: Fix max. frequency for H6

Maxime Ripard (1):
  drm/vc4: hvs: Fix buffer overflow with the dlist handling

Quanyang Wang (1):
  drm/xlnx: fix kmemleak by sending vblank_event in atomic_disable

Ville Syrjälä (1):
  drm/i915: Fix overlay frontbuffer tracking

 .../gpu/drm/amd/display/dc/dcn20/dcn20_resource.c  |  4 +-
 drivers/gpu/drm/drm_dp_mst_topology.c  |  1 +
 drivers/gpu/drm/i915/display/intel_overlay.c   | 17 +++---
 drivers/gpu/drm/i915/display/intel_tc.c| 67 --
 drivers/gpu/drm/sun4i/sun4i_tcon.c | 25 
 drivers/gpu/drm/sun4i/sun4i_tcon.h |  6 ++
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c  | 10 +---
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h  |  1 -
 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 26 +++--
 drivers/gpu/drm/ttm/ttm_pool.c | 10 
 drivers/gpu/drm/vc4/vc4_plane.c| 18 --
 drivers/gpu/drm/xlnx/zynqmp_disp.c | 15 +++--
 12 files changed, 122 insertions(+), 78 deletions(-)


[git pull] drm fixes for 5.11-rc7

2021-02-04 Thread Dave Airlie
Hi Linus,

Fixes for rc7, bit bigger than I'd like at this stage, but most of the
i915 stuff and some amdgpu is destined for staging and I'd rather not
hold it up, the i915 changes also pulled in a few precusor code
movement patches to make things cleaner, but nothing seems that
horrible, and I've checked over all of it.

Otherwise there is a nouveau dma-api warning regression, and a ttm
page allocation warning fix,
and some fixes for a bridge chip,

Dave.

drm-fixes-2021-02-05-1:
drm fixes for 5.11-rc7

ttm:
- fix huge page warning regression

i915:
- Skip vswing programming for TBT
- Power up combo PHY lanes for HDMI
- Fix double YUV range correction on HDR planes
- Fix the MST PBN divider calculation
- Fix LTTPR vswing/pre-emp setting in non-transparent mode
- Move the breadcrumb to the signaler if completed upon cancel
- Close race between enable_breadcrumbs and cancel_breadcrumbs
- Drop lru bumping on display unpinning

amdgpu:
- Fix retry in gem create
- Vangogh fixes
- Fix for display from shared buffers
- Various display fixes

amdkfd:
- Fix regression in buffer free

nouveau:
- fix DMA API warning regression

drm/bridge/lontium-lt9611uxc:
- EDID fixes
- Don't handle hotplug events in IRQ handler
The following changes since commit 1048ba83fb1c00cd24172e23e8263972f6b5d9ac:

  Linux 5.11-rc6 (2021-01-31 13:50:09 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-02-05-1

for you to fetch changes up to 59854811c08cfbdf52d79231666e7c07c46ff338:

  Merge tag 'drm-intel-fixes-2021-02-04' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2021-02-05
11:03:28 +1000)


drm fixes for 5.11-rc7

ttm:
- fix huge page warning regression

i915:
- Skip vswing programming for TBT
- Power up combo PHY lanes for HDMI
- Fix double YUV range correction on HDR planes
- Fix the MST PBN divider calculation
- Fix LTTPR vswing/pre-emp setting in non-transparent mode
- Move the breadcrumb to the signaler if completed upon cancel
- Close race between enable_breadcrumbs and cancel_breadcrumbs
- Drop lru bumping on display unpinning

amdgpu:
- Fix retry in gem create
- Vangogh fixes
- Fix for display from shared buffers
- Various display fixes

amdkfd:
- Fix regression in buffer free

nouveau:
- fix DMA API warning regression

drm/bridge/lontium-lt9611uxc:
- EDID fixes
- Don't handle hotplug events in IRQ handler


Andres Calderon Jaramillo (1):
  drm/i915/display: Prevent double YUV range correction on HDR planes

Bhawanpreet Lakha (1):
  drm/amd/display: reuse current context instead of recreating one

Chris Wilson (3):
  drm/i915/gt: Move the breadcrumb to the signaler if completed upon cancel
  drm/i915/gt: Close race between enable_breadcrumbs and cancel_breadcrumbs
  drm/i915/gem: Drop lru bumping on display unpinning

Christian König (1):
  drm/amdgpu: enable freesync for A+A configs

Dave Airlie (4):
  drm/nouveau: fix dma syncing warning with debugging on.
  Merge tag 'drm-misc-fixes-2021-02-02' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'amd-drm-fixes-5.11-2021-02-03' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2021-02-04' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Dmitry Baryshkov (3):
  drm/bridge/lontium-lt9611uxc: fix waiting for EDID to become available
  drm/bridge/lontium-lt9611uxc: fix get_edid return code
  drm/bridge/lontium-lt9611uxc: move HPD notification out of IRQ handler

George Shen (1):
  drm/amd/display: Fix DPCD translation for LTTPR AUX_RD_INTERVAL

Huang Rui (2):
  drm/amdgpu: fix the issue that retry constantly once the buffer
is oversize
  drm/amdkfd: fix null pointer panic while free buffer in kfd

Imre Deak (4):
  drm/dp/mst: Export drm_dp_get_vc_payload_bw()
  drm/i915: Fix the MST PBN divider calculation
  drm/i915/dp: Move intel_dp_set_signal_levels() to intel_dp_link_training.c
  drm/i915/dp: Fix LTTPR vswing/pre-emp setting in non-transparent mode

Michel Dänzer (1):
  drm/ttm: Use __GFP_NOWARN for huge pages in ttm_pool_alloc_page

Mikita Lipski (1):
  drm/amd/display: Release DSC before acquiring

Stylon Wang (1):
  drm/amd/display: Revert "Fix EDID parsing after resume from suspend"

Sung Lee (1):
  drm/amd/display: Add more Clock Sources to DCN2.1

Victor Lu (3):
  drm/amd/display: Fix dc_sink kref count in emulated_link_detect
  drm/amd/display: Free atomic state after drm_atomic_commit
  drm/amd/display: Decrement refcount of dc_sink before reassignment

Ville Syrjälä (3):
  drm/i915: Skip vswing programming for TBT
  drm/i915: Extract intel_ddi_power_up_lanes()
  drm/i915: Power up combo PHY lanes for for HDMI as well

Xiaojian Du (1):
  drm/amd/pm: fill i

[git pull] drm fixes for 5.11-rc6

2021-01-28 Thread Dave Airlie
Hey Linus,

Weekly fixes for graphics, nothing too major, nouveau has a few
regression fixes for various fallout from header changes previously,
vc4 has two fixes, two amdgpu, and a smattering of i915 fixes.

All seems on course for a quieter rc7, fingers crossed.

Dave.

drm-fixes-2021-01-29:
drm fixes for 5.11-rc6

nouveau:
- fix svm init conditions
- fix nv50 modesetting regression
- fix cursor plane modifiers
- fix > 64x64 cursor regression

vc4:
- Fix LBM size calculation
- Fix high resolutions for hvs5

i915:
- Fix ICL MG PHY vswing
- Fix subplatform handling
- Fix selftest memleak
- Clear CACHE_MODE prior to clearing residuals
- Always flush the active worker before returning from the wait
- Always try to reserve GGTT address 0x0

amdgpu:
- Fix a fan control regression on some boards
- Fix clang warning
The following changes since commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04:

  Linux 5.11-rc5 (2021-01-24 16:47:14 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-01-29

for you to fetch changes up to e0ecafede87eb1a3d1e708f0365fad0d59489285:

  Merge tag 'amd-drm-fixes-5.11-2021-01-28' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes (2021-01-29
11:36:38 +1000)


drm fixes for 5.11-rc6

nouveau:
- fix svm init conditions
- fix nv50 modesetting regression
- fix cursor plane modifiers
- fix > 64x64 cursor regression

vc4:
- Fix LBM size calculation
- Fix high resolutions for hvs5

i915:
- Fix ICL MG PHY vswing
- Fix subplatform handling
- Fix selftest memleak
- Clear CACHE_MODE prior to clearing residuals
- Always flush the active worker before returning from the wait
- Always try to reserve GGTT address 0x0

amdgpu:
- Fix a fan control regression on some boards
- Fix clang warning


Alex Deucher (1):
  Revert "drm/amdgpu/swsmu: drop set_fan_speed_percent (v2)"

Arnd Bergmann (1):
  amdgpu: fix clang build warning

Bastian Beranek (1):
  drm/nouveau/dispnv50: Restore pushing of all data.

Ben Skeggs (1):
  drm/nouveau/nvif: fix method count when pushing an array

Chris Wilson (3):
  drm/i915/gt: Clear CACHE_MODE prior to clearing residuals
  drm/i915: Always flush the active worker before returning from the wait
  drm/i915/gt: Always try to reserve GGTT address 0x0

Dave Airlie (4):
  Merge branch '04.01-ampere-lite' of
git://github.com/skeggsb/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2021-01-27' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2021-01-28' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.11-2021-01-28' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes

Dom Cobley (2):
  drm/vc4: Correct lbm size and calculation
  drm/vc4: Correct POS1_SCL for hvs5

Karol Herbst (1):
  drm/nouveau/svm: fail NOUVEAU_SVM_INIT ioctl on unsupported devices

Lyude Paul (3):
  drivers/nouveau/kms/nv50-: Reject format modifiers for cursor planes
  drm/nouveau/kms/nv50-: Report max cursor size to userspace
  drm/nouveau/kms/gk104-gp1xx: Fix > 64x64 cursors

Pan Bian (1):
  drm/i915/selftest: Fix potential memory leak

Umesh Nerlige Ramappa (1):
  drm/i915: Check for all subplatform bits

Ville Syrjälä (1):
  drm/i915: Fix ICL MG PHY vswing handling

 drivers/gpu/drm/amd/display/dc/dcn30/Makefile  |   6 +-
 drivers/gpu/drm/amd/display/dc/dcn301/Makefile |   3 +-
 drivers/gpu/drm/amd/display/dc/dcn302/Makefile |   3 +-
 drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h|   1 +
 drivers/gpu/drm/amd/pm/inc/smu_v11_0.h |   3 +
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c  |   9 +-
 drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c  |   1 +
 drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c|   1 +
 .../drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c|   1 +
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c |  31 ++-
 drivers/gpu/drm/i915/display/intel_ddi.c   |   7 +-
 drivers/gpu/drm/i915/gt/gen7_renderclear.c |  12 ++
 drivers/gpu/drm/i915/gt/intel_ggtt.c   |  47 +++--
 drivers/gpu/drm/i915/i915_active.c |  28 +--
 drivers/gpu/drm/i915/i915_drv.h|   2 +-
 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c  |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/base507c.c|   6 +-
 drivers/gpu/drm/nouveau/dispnv50/base827c.c|   6 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c|   8 +
 drivers/gpu/drm/nouveau/dispnv50/head917d.c|  28 ++-
 drivers/gpu/drm/nouveau/dispnv50/wndw.c|  17 +-
 .../gpu/drm/nouveau/include/nvhw/class/cl917d.h|   4 +
 drivers/gpu/drm/nouveau/include/nvif/push.h| 216 ++---
 drivers/gpu/drm/nouveau/nouveau_svm.c  |   4 +
 drivers/gp

[git pull] drm fixes for 5.11-rc5

2021-01-21 Thread Dave Airlie
Hi Linus,

Regular fixes pull, nothing too major in here, just some core fixes,
one vc4, bunch of i915 and a bunch of amdgpu.

Dave.

drm-fixes-2021-01-22:
drm fixes for 5.11-rc5

core:
- atomic: Release state on error
- syncobj: Fix use-after-free
- ttm: Don't use GFP_TRANSHUGE_LIGTH
- vram-helper: Fix memory leak in vmap

vc4:
- Unify driver naming for PCM

i915:
- HDCP fixes
- PMU wakeref fix
- Fix HWSP validity race
- Fix DP protocol converter accidental 4:4:4->4:2:0 conversion for RGB

amdgpu:
- Green Sardine fixes
- Vangogh fixes
- Renoir fixes
- Misc display fixes
The following changes since commit 19c329f6808995b142b3966301f217c831e7cf31:

  Linux 5.11-rc4 (2021-01-17 16:37:05 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-01-22

for you to fetch changes up to 06ee38dc2aab3b5a09feb74128cf7326a490b788:

  Merge tag 'amd-drm-fixes-5.11-2021-01-21' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes (2021-01-22
09:43:21 +1000)


drm fixes for 5.11-rc5

core:
- atomic: Release state on error
- syncobj: Fix use-after-free
- ttm: Don't use GFP_TRANSHUGE_LIGTH
- vram-helper: Fix memory leak in vmap

vc4:
- Unify driver naming for PCM

i915:
- HDCP fixes
- PMU wakeref fix
- Fix HWSP validity race
- Fix DP protocol converter accidental 4:4:4->4:2:0 conversion for RGB

amdgpu:
- Green Sardine fixes
- Vangogh fixes
- Renoir fixes
- Misc display fixes


Aaron Liu (1):
  drm/amdgpu: update mmhub mgcg for mmhub_v2_3

Anshuman Gupta (2):
  drm/i915/hdcp: Update CP property in update_pipe
  drm/i915/hdcp: Get conn while content_type changed

Aric Cyr (1):
  drm/amd/display: Allow PSTATE chnage when no displays are enabled

Bing Guo (1):
  drm/amd/display: Change function decide_dp_link_settings to
avoid infinite looping

Chris Wilson (2):
  drm/i915/gt: Prevent use of engine->wa_ctx after error
  drm/i915: Check for rq->hwsp validity after acquiring RCU lock

Christian König (1):
  drm/ttm: stop using GFP_TRANSHUGE_LIGHT

Daniel Vetter (1):
  drm/syncobj: Fix use-after-free

Dave Airlie (3):
  Merge tag 'drm-misc-fixes-2021-01-20' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2021-01-21' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.11-2021-01-21' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes

Huang Rui (1):
  drm/amdgpu: remove gpu info firmware of green sardine

Jake Wang (1):
  drm/amd/display: Update dram_clock_change_latency for DCN2.1

Jinzhou Su (1):
  drm/amdgpu: modify GCR_GENERAL_CNTL for Vangogh

Nicholas Kazlauskas (1):
  drm/amd/display: Use hardware sequencer functions for PG control

Nicolas Saenz Julienne (1):
  drm/vc4: Unify PCM card's driver_name

Pan Bian (1):
  drm/atomic: put state on error path

Prike Liang (1):
  drm/amdgpu/pm: no need GPU status set since
mmnbif_gpu_BIF_DOORBELL_FENCE_CNTL added in FSDL

Sung Lee (1):
  drm/amd/display: DCN2X Find Secondary Pipe properly in MPO + ODM Case

Thomas Zimmermann (1):
  drm/vram-helper: Reuse existing page mappings in vmap

Tvrtko Ursulin (1):
  drm/i915/pmu: Don't grab wakeref when enabling events

Ville Syrjälä (1):
  drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when
outputting YCbCr 4:4:4

Vladimir Stempen (1):
  drm/amd/display: Fixed corruptions on HPDRX link loss restore

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  1 -
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c |  4 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c| 84 --
 .../amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c   |  6 +-
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   |  7 +-
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 18 +++--
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c |  9 ++-
 .../gpu/drm/amd/display/dc/dcn20/dcn20_resource.c  |  7 +-
 .../gpu/drm/amd/display/dc/dcn21/dcn21_resource.c  |  2 +-
 drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c|  2 +-
 drivers/gpu/drm/drm_atomic_helper.c|  2 +-
 drivers/gpu/drm/drm_gem_vram_helper.c  | 14 +++-
 drivers/gpu/drm/drm_syncobj.c  |  8 ++-
 drivers/gpu/drm/i915/display/intel_ddi.c   |  2 +-
 drivers/gpu/drm/i915/display/intel_dp.c|  9 +--
 drivers/gpu/drm/i915/display/intel_dp.h|  3 +-
 drivers/gpu/drm/i915/display/intel_hdcp.c  |  9 +++
 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c|  9 +--
 drivers/gpu/drm/i915/gt/intel_lrc.c|  3 +
 drivers/gpu/drm/i915/gt/intel_timeline.c   | 10 ++-
 drivers/gpu/drm/i915/i915_pmu.c| 30 
 drivers/gpu/drm/i915/i915_request.h| 37 --
 drivers/gpu/drm

Re: linux-next: build failure after merge of the drm tree

2021-01-17 Thread Dave Airlie
On Mon, 18 Jan 2021 at 10:59, Stephen Rothwell  wrote:
>
> Hi all,
>
> On Mon, 11 Jan 2021 10:56:54 +1100 Stephen Rothwell  
> wrote:
> >
> > On Fri, 8 Jan 2021 12:25:40 +1100 Stephen Rothwell  
> > wrote:
> > >
> > > On Fri, 8 Jan 2021 11:55:18 +1100 Stephen Rothwell 
> > >  wrote:
> > > >
> > > > After merging the drm tree, today's linux-next build (x86_64 
> > > > allmodconfig)
> > > > failed like this:
> > > >
> > > > error: the following would cause module name conflict:
> > > >   drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.ko
> > > >   drivers/gpu/drm/panel/panel-dsi-cm.ko
> > > >
> > > > Maybe caused by commit
> > > >
> > > >   cf64148abcfd ("drm/panel: Move OMAP's DSI command mode panel driver")
> > > >
> > > > I have used the drm tree from next-20210107 for today.
> > >
> > > This has affected the drm-misc tree as well (since it merged in the drm
> > > tree).
> > >
> > > I have used the drm-misc tree from next-20210107 for today.
> >
> > And now the drm-intel tree.
> >
> > I have used the drm-intel tree from next-20210108 for today.
>
> This is still affecting the drm and drm-intel trees.

I think the fix for this is in drm-misc-next, Maarten can you send me
a -next PR to fix this?

Dave.


[git pull] drm nouveau ampere modesetting support

2021-01-14 Thread Dave Airlie
Hi Linus,

As mentioned in the previous pull, Ben has requested if we can include
Ampere modesetting support under fixes, it's for new GPUs and
shouldn't affect existing hardware. It's a bit bigger than just adding
a PCI ID, and I'm fine if you think we should hold it off until later.

Dave.

topic/nouveau-ampere-modeset-2021-01-15:
drm nouveau ampere display support.

This is a pull request to add display support for new Ampere hardware.

It has no effect on older GPUs.
The following changes since commit c8f6364f35f32786dd40336cfa35b9166d91b8ab:

  Merge branch '04.00-ampere-lite-fixes' of
git://github.com/skeggsb/linux into drm-fixes (2021-01-15 13:26:44
+1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm
tags/topic/nouveau-ampere-modeset-2021-01-15

for you to fetch changes up to 584265dfec70e78ce2085b82ed389f27e06fbca0:

  Merge branch '04.01-ampere-lite' of git://github.com/skeggsb/linux
into topic/nouveau-ampere-modeset (2021-01-15 14:48:18 +1000)


drm nouveau ampere display support.

This is a pull request to add display support for new Ampere hardware.

It has no effect on older GPUs.


Ben Skeggs (15):
  drm/nouveau/core: recognise GA10[024]
  drm/nouveau/pci/ga10[024]: initial support
  drm/nouveau/bios/ga10[024]: initial support
  drm/nouveau/devinit/ga10[024]: initial support
  drm/nouveau/mc/ga10[024]: initial support
  drm/nouveau/privring/ga10[024]: initial support
  drm/nouveau/imem/ga10[024]: initial support
  drm/nouveau/fb/ga10[024]: initial support
  drm/nouveau/timer/ga10[024]: initial support
  drm/nouveau/mmu/ga10[024]: initial support
  drm/nouveau/bar/ga10[024]: initial support
  drm/nouveau/gpio/ga10[024]: initial support
  drm/nouveau/i2c/ga10[024]: initial support
  drm/nouveau/dmaobj/ga10[24]: initial support
  drm/nouveau/disp/ga10[24]: initial support

Dave Airlie (1):
  Merge branch '04.01-ampere-lite' of
git://github.com/skeggsb/linux into topic/nouveau-ampere-modeset

 drivers/gpu/drm/nouveau/dispnv50/Kbuild|   1 +
 drivers/gpu/drm/nouveau/dispnv50/core.c|   1 +
 drivers/gpu/drm/nouveau/dispnv50/curs.c|   1 +
 drivers/gpu/drm/nouveau/dispnv50/wimm.c|   1 +
 drivers/gpu/drm/nouveau/dispnv50/wndw.c|   1 +
 drivers/gpu/drm/nouveau/dispnv50/wndw.h|   8 ++
 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c|  10 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c| 106 
 drivers/gpu/drm/nouveau/include/nvif/cl0080.h  |   1 +
 drivers/gpu/drm/nouveau/include/nvif/class.h   |   5 +
 drivers/gpu/drm/nouveau/include/nvkm/core/device.h |   1 +
 drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h |   1 +
 .../gpu/drm/nouveau/include/nvkm/subdev/devinit.h  |   1 +
 drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h   |   2 +
 drivers/gpu/drm/nouveau/include/nvkm/subdev/gpio.h |   1 +
 drivers/gpu/drm/nouveau/include/nvkm/subdev/mc.h   |   1 +
 drivers/gpu/drm/nouveau/nouveau_backlight.c|   1 +
 drivers/gpu/drm/nouveau/nvif/disp.c|   1 +
 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c  |  75 ++-
 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c  |   1 +
 drivers/gpu/drm/nouveau/nvkm/engine/disp/Kbuild|   3 +
 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c  |  33 -
 drivers/gpu/drm/nouveau/nvkm/engine/disp/ga102.c   |  46 +++
 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h |   4 +
 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h|   2 +
 .../gpu/drm/nouveau/nvkm/engine/disp/rootga102.c   |  52 
 .../gpu/drm/nouveau/nvkm/engine/disp/rootnv50.h|   1 +
 .../gpu/drm/nouveau/nvkm/engine/disp/sorga102.c| 140 +
 .../gpu/drm/nouveau/nvkm/engine/disp/sortu102.c|   2 +-
 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c   |   2 +-
 .../gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c |   3 +
 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/Kbuild |   1 +
 .../gpu/drm/nouveau/nvkm/subdev/devinit/ga100.c|  76 +++
 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/priv.h |   1 +
 .../gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c|   2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/Kbuild  |   3 +
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ga100.c |  40 ++
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ga102.c |  40 ++
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gv100.c |   2 +-
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/priv.h  |   2 +
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h   |   1 +
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramga102.c  |  40 ++
 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/Kbuild|   1 +
 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ga102.c   | 118 +
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/Kbuild  |   1 +
 drivers/gpu/drm/nouveau

[git pull] drm fixes for 5.11-rc4

2021-01-14 Thread Dave Airlie
Hey Linus,

Back to mostly regular scheduling for me. Big thanks to Daniel for
stepping into my duties for the last few turns.

Regular fixes for rc4, a bunch of fixes across i915, amdgpu and
nouveau here, along with a couple of TTM fixes, and dma-buf and one
core pageflip/modifier interaction fix. One notable i915 fix is a HSW
GT1 regression fix that has been outstanding for quite a while.
(Thanks to Matt Turner for kicking Intel into getting it fixed).

Ben Skeggs has asked about the possibility of pulling nvidia ampere
basic display support into fixes as new hardware with nothing outside
touched, I'll queue up a separate pull after this one and you can
decide if it's appropriate.

Dave.

drm-fixes-2021-01-15:
drm fixes for 5.11-rc4

dma-buf:
- Fix a memory leak in CMAV heap

core:
- Fix format check for legacy pageflips

ttm:
- Pass correct address to dma_mapping_error()
- Use mutex in pool shrinker

i915:
- Allow the sysadmin to override security mitigations
- Restore clear-residual mitigations for ivb/byt
- Limit VFE threads based on GT
- GVT: fix vfio edid and full display detection
- Fix DSI DSC power refcounting
- Fix LPT CPU mode backlight takeover
- Disable RPM wakeref assertions during driver shutdown
- Fix DSI sequence sleeps

amdgpu:
- Update repo location in MAINTAINERS
- Add some new renoir PCI IDs
- Revert CRC UAPI changes
- Revert OLED display fix which cases clocking problems for some systems
- Misc vangogh fixes
- GFX fix for sienna cichlid
- DCN1.0 fix for pipe split
- Fix incorrect PSP command

amdkfd:
- Fix possible out of bounds read in vcrat creation

nouveau:
- irq handling fix
- expansion ROM fix
- hw init dpcd disable
- aux semaphore owner field fix
- vram heap sizing fix
- notifier at 0 is valid fix
The following changes since commit 7c53f6b671f4aba70ff15e1b05148b10d58c2837:

  Linux 5.11-rc3 (2021-01-10 14:34:50 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-01-15

for you to fetch changes up to c8f6364f35f32786dd40336cfa35b9166d91b8ab:

  Merge branch '04.00-ampere-lite-fixes' of
git://github.com/skeggsb/linux into drm-fixes (2021-01-15 13:26:44
+1000)


drm fixes for 5.11-rc4

dma-buf:
- Fix a memory leak in CMAV heap

core:
- Fix format check for legacy pageflips

ttm:
- Pass correct address to dma_mapping_error()
- Use mutex in pool shrinker

i915:
- Allow the sysadmin to override security mitigations
- Restore clear-residual mitigations for ivb/byt
- Limit VFE threads based on GT
- GVT: fix vfio edid and full display detection
- Fix DSI DSC power refcounting
- Fix LPT CPU mode backlight takeover
- Disable RPM wakeref assertions during driver shutdown
- Fix DSI sequence sleeps

amdgpu:
- Update repo location in MAINTAINERS
- Add some new renoir PCI IDs
- Revert CRC UAPI changes
- Revert OLED display fix which cases clocking problems for some systems
- Misc vangogh fixes
- GFX fix for sienna cichlid
- DCN1.0 fix for pipe split
- Fix incorrect PSP command

amdkfd:
- Fix possible out of bounds read in vcrat creation

nouveau:
- irq handling fix
- expansion ROM fix
- hw init dpcd disable
- aux semaphore owner field fix
- vram heap sizing fix
- notifier at 0 is valid fix


Alex Deucher (1):
  MAINTAINERS: update radeon/amdgpu/amdkfd git trees

Alexandre Demers (1):
  drm/amdgpu: fix DRM_INFO flood if display core is not supported
(bug 210921)

Bas Nieuwenhuizen (1):
  drm: Check actual format for legacy pageflip.

Ben Skeggs (7):
  drm/nouveau/bios: fix issue shadowing expansion ROMs
  drm/nouveau/privring: ack interrupts the same way as RM
  drm/nouveau/i2c/gk110: split out from i2c/gk104
  drm/nouveau/i2c/gk110-: disable hw-initiated dpcd reads
  drm/nouveau/i2c/gm200: increase width of aux semaphore owner fields
  drm/nouveau/mmu: fix vram heap sizing
  drm/nouveau/kms/nv50-: fix case where notifier buffer is at offset 0

Chris Wilson (4):
  drm/i915: Disable RPM wakeref assertions during driver shutdown
  drm/i915/gt: Limit VFE threads based on GT
  drm/i915/gt: Restore clear-residual mitigations for Ivybridge, Baytrail
  drm/i915: Allow the sysadmin to override security mitigations

Christian König (1):
  drm/ttm: make the pool shrinker lock a mutex

Colin Xu (1):
  drm/i915/gvt: Fix vfio_edid issue for BXT/APL

Dave Airlie (4):
  Merge tag 'drm-misc-fixes-2021-01-12' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2021-01-14' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.11-2021-01-14' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
  Merge branch '04.00-ampere-lite-fixes' of
git://github.com/skeggsb/linux into drm-fixes

Hans de Goede (1):
  drm/i915/dsi: Use unconditional msleep for the panel_on_delay

[git pull] drm fixes for 5.11-rc1

2020-12-23 Thread Dave Airlie
Hi Linus,

Xmas eve pull request present. Just some fixes that trickled in this
past week. Mostly amdgpu fixes, with a dma-buf/mips build fix and some
misc komeda fixes.

Hope you have a good holiday season,
Dave.

drm-next-2020-12-24:
drm fixes for 5.11-rc1

dma-buf:
- fix build on mips

komeda:
- fix commit tail operation order
- NULL pointer fix
- out of bounds access fix

ttm:
- remove an unused function

amdgpu:
- Vangogh SMU fixes
- Arcturus gfx9 fixes
- Misc display fixes
- Sienna Cichlid SMU update
- Fix S3 display memory leak
- Fix regression caused by DP sub-connector support

amdkfd:
- Properly require pcie atomics for gfx10
The following changes since commit 4efd7faba5e0687ae9143b7e6a19547ede20a7dd:

  Merge tag 'drm-intel-next-fixes-2020-12-18' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-12-18
16:22:10 +0100)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-12-24

for you to fetch changes up to 5b2fc08c455bbf749489254a81baeffdf4c0a693:

  Merge tag 'amd-drm-fixes-5.11-2020-12-23' of
git://people.freedesktop.org/~agd5f/linux into drm-next (2020-12-24
10:31:16 +1000)


drm fixes for 5.11-rc1

dma-buf:
- fix build on mips

komeda:
- fix commit tail operation order
- NULL pointer fix
- out of bounds access fix

ttm:
- remove an unused function

amdgpu:
- Vangogh SMU fixes
- Arcturus gfx9 fixes
- Misc display fixes
- Sienna Cichlid SMU update
- Fix S3 display memory leak
- Fix regression caused by DP sub-connector support

amdkfd:
- Properly require pcie atomics for gfx10


Alex Deucher (3):
  drm/amdgpu: fix vbios reservation handling on SR-IOV
  drm/amdgpu: only set DP subconnector type on DP and eDP connectors
  drm/amdgpu: Fix a copy-pasta comment

Aric Cyr (1):
  drm/amd/display: Multi-display underflow observed

Arnd Bergmann (1):
  drm/ttm: fix unused function warning

Carsten Haitzler (3):
  drm/komeda: Remove useless variable assignment
  drm/komeda: Handle NULL pointer access code path in error case
  drm/komeda: Fix bit check to import to value of proper type

Christian König (1):
  drm/qxl: don't allocate a dma_address array

Dave Airlie (2):
  Merge tag 'drm-misc-next-fixes-2020-12-22' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next
  Merge tag 'amd-drm-fixes-5.11-2020-12-23' of
git://people.freedesktop.org/~agd5f/linux into drm-next

Eryk Brol (1):
  drm/amd/display: Remove unnecessary NULL check

Evan Quan (1):
  drm/amd/pm: bump Sienna Cichlid smu_driver_if version to match latest pmfw

Harish Kasiviswanathan (1):
  drm/amdkfd: PCIe atomics required for gfx10

Hawking Zhang (3):
  drm/amdgpu: check number of gfx ring before init cp gfx
  drm/amdgpu: remove unnecessary asic type check
  drm/amdgpu: check gfx pipe availability before toggling its interrupts

Jake Wang (2):
  drm/amd/display: updated wm table for Renoir
  drm/amd/display: always program DPPDTO unless not safe to lower

James Qian Wang (1):
  drm/komeda: Correct the sequence of hw_done() and flip_done()

John Stultz (1):
  dma-buf: cma_heap: Include linux/vmalloc.h to fix build failures on MIPS

Josip Pavic (1):
  drm/amd/display: add getter routine to retrieve mpcc mux

Martin Tsai (2):
  drm/amd/display: Modify the hdcp device count check condition
  drm/amd/display: To modify the condition in indicating branch device

Michael Strauss (1):
  drm/amd/display: Update RN/VGH active display count workaround

Qingqing Zhuo (1):
  drm/amd/display: handler not correctly checked at remove_irq_handler

Rizvi (1):
  drm/amd/display: gradually ramp ABM intensity

Stylon Wang (1):
  drm/amd/display: Fix memory leaks in S3 resume

Sung Lee (1):
  drm/amd/display: Acquire DSC during split stream for ODM only if top_pipe

Wesley Chalmers (1):
  drm/amd/display: Interfaces for hubp blank and soft reset

Xiaomeng Hou (1):
  drm/amd/pm: check pmfw version before issuing RlcPowerNotify message

Yongqiang Sun (2):
  drm/amd/display: change SMU repsonse timeout to 2s.
  drm/amd/display: [FW Promotion] Release 0.0.47

 drivers/dma-buf/heaps/cma_heap.c   |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 10 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c|  3 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c  | 21 -
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c  | 11 +++
 drivers/gpu/drm/amd/amdkfd/kfd_device.c| 12 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |  5 +--
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c  |  5 ++-
 .../drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c  | 36 +-
 .../dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c

[git pull] drm fixes for 5.10 final

2020-12-10 Thread Dave Airlie
Hi Linus,

Last week of fixes, just amdgpu and i915 collections. We had a i915
regression reported by HJ Lu reported this morning, and this contains
a fix for that he has tested.

There are a fair few other fixes, but they are spread across the two
drivers, and all fairly self contained.

I'm going to send you out drm-next for next week in a few hours as I'm
going on holidays until next Friday, I likely won't be checking email
too closely, but Daniel should be available for any emergency.

Dave.

drm-fixes-2020-12-11:
drm fixes for 5.10 final

amdgpu:
- Fan fix for CI asics
- Fix a warning in possible_crtcs
- Build fix for when debugfs is disabled
- Display overflow fix
- Display watermark fixes for Renoir
- SDMA 5.2 fix
- Stolen vga memory regression fix
- Power profile fixes
- Fix a regression from removal of GEM and PRIME callbacks

amdkfd:
- Fix a memory leak in dmabuf import

i915:
- rc7 regression fix for modesetting
- vdsc/dp slice fixes
- gen9 mocs entries fix
- preemption timeout fix
- unsigned compare against 0 fix
- selftest fix
- submission error propogating fix
- request flow suspend fix
The following changes since commit 0477e92881850d44910a7e94fc2c46f96faa131f:

  Linux 5.10-rc7 (2020-12-06 14:25:12 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-12-11

for you to fetch changes up to b1f195fc49812359296a901e26cc7c0b761d8a70:

  drm/i915/display: Go softly softly on initial modeset failure
(2020-12-11 09:54:30 +1000)


drm fixes for 5.10 final

amdgpu:
- Fan fix for CI asics
- Fix a warning in possible_crtcs
- Build fix for when debugfs is disabled
- Display overflow fix
- Display watermark fixes for Renoir
- SDMA 5.2 fix
- Stolen vga memory regression fix
- Power profile fixes
- Fix a regression from removal of GEM and PRIME callbacks

amdkfd:
- Fix a memory leak in dmabuf import

i915:
- rc7 regression fix for modesetting
- vdsc/dp slice fixes
- gen9 mocs entries fix
- preemption timeout fix
- unsigned compare against 0 fix
- selftest fix
- submission error propogatig fix
- request flow suspend fix


Alex Deucher (3):
  drm/amdgpu/powerplay: parse fan table for CI asics
  drm/amdgpu/disply: set num_crtc earlier
  drm/amdgpu: fix size calculation with stolen vga memory

Andrey Grodzovsky (1):
  drm/amdgpu: Initialise drm_gem_object_funcs for imported BOs

Arnd Bergmann (1):
  drm/amdgpu: fix debugfs creation/removal, again

Changfeng (1):
  drm/amd/pm: update smu10.h WORKLOAD_PPLIB setting for raven

Chris Park (1):
  drm/amd/display: Prevent bandwidth overflow

Chris Wilson (5):
  drm/i915/gem: Propagate error from cancelled submit due to context closure
  drm/i915/gt: Ignore repeated attempts to suspend request flow across reset
  drm/i915/gt: Cancel the preemption timeout on responding to it
  drm/i915/gt: Declare gen9 has 64 mocs entries!
  drm/i915/display: Go softly softly on initial modeset failure

Colin Ian King (1):
  drm/i915: fix size_t greater or equal to zero comparison

Dan Carpenter (1):
  drm/i915/gem: Check the correct variable in selftest

Dave Airlie (2):
  Merge tag 'amd-drm-fixes-5.10-2020-12-09' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-12-09' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Evan Quan (1):
  drm/amd/pm: typo fix (CUSTOM -> COMPUTE)

Felix Kuehling (1):
  drm/amdkfd: Fix leak in dmabuf import

Manasi Navare (1):
  drm/i915/display/dp: Compute the correct slice count for VDSC on DP

Stanley.Yang (1):
  drm/amdgpu: fix sdma instance fw version and feature version init

Sung Lee (1):
  drm/amd/display: Add wm table for Renoir

 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c|   8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c|  41 
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c|   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c|  13 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h|   6 --
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c |   2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c   |   2 +
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |   9 +-
 .../drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c  |  93 ++-
 drivers/gpu/drm/amd/display/dc/core/dc_link.c  |   7 +-
 drivers/gpu/drm/amd/pm/inc/smu10.h |  14 ++-
 .../drm/amd/pm/powerplay/hwmgr/processpptables.c   | 103 -
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c   |   9 +-
 .../drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c|   2 +-
 drivers/gpu/drm/i915/display/intel_display.c   |   2 +-
 drivers/gpu/drm/i915/display/intel_dp.c|   2 +-
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c |   7 +-
 drivers/gpu/drm/i915/gt/intel_lr

[git pull] drm fixes for 5.10-rc7

2020-12-03 Thread Dave Airlie
Hi Linus,

This week's regular fixes. i915 has fixes for a few races,
use-after-free, gpu hangs,
tegra just has some minor fixes that I didn't see much point in
hanging on to. The
nouveau fix is for all pre-nv50 cards and was reported a few times.
Otherwise it's
just some amdgpu, and a few misc fixes.

Regards,
Dave.

drm-fixes-2020-12-04:
drm fixes for 5.10-rc7

amdgpu:
- SMU11 manual fan fix
- Renoir display clock fix
- VCN3 dynamic powergating fix

i915:
- Program mocs:63 for cache eviction on gen9
- Protect context lifetime with RCU
- Split the breadcrumb spinlock between global and contexts
- Retain default context state across shrinking
- Limit frequency drop to RPe on parking
- Return earlier from intel_modeset_init() without display
- Defer initial modeset until after GGTT is initialized

nouveau:
- pre-nv50 regression fix

rockchip:
- uninitialised LVDS property fix

omap:
- bridge fix

panel:
- race fix

mxsfb:
- fence sync fix
- modifiers fix

tegra:
- idr init fix
- sor fixes
- output/of cleanup fix
The following changes since commit b65054597872ce3aefbc6a666385eabdf9e288da:

  Linux 5.10-rc6 (2020-11-29 15:50:50 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-12-04

for you to fetch changes up to de9b485d1dc993f1fb579b5d15a8176284627f4a:

  Merge tag 'drm-misc-fixes-2020-12-03' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-12-04
11:53:50 +1000)


drm fixes for 5.10-rc7

amdgpu:
- SMU11 manual fan fix
- Renoir display clock fix
- VCN3 dynamic powergating fix

i915:
- Program mocs:63 for cache eviction on gen9 (Chris)
- Protect context lifetime with RCU (Chris)
- Split the breadcrumb spinlock between global and contexts (Chris)
- Retain default context state across shrinking (Venkata)
- Limit frequency drop to RPe on parking (Chris)
- Return earlier from intel_modeset_init() without display (Jani)
- Defer initial modeset until after GGTT is initialized (Chris)

nouveau:
- pre-nv50 regression fix

rockchip:
- uninitialised LVDS property fix

omap:
- bridge fix

panel:
- race fix

mxsfb:
- fence sync fix
- modifiers fix

tegra:
- idr init fix
- sor fixes
- output/of cleanup fix


Arunpravin (1):
  drm/amdgpu/pm/smu11: Fix fan set speed bug

Boyuan Zhang (2):
  drm/amdgpu/vcn3.0: stall DPG when WPTR/RPTR reset
  drm/amdgpu/vcn3.0: remove old DPG workaround

Brandon Syu (1):
  drm/amd/display: Init clock value by current vbios CLKs

Chris Wilson (5):
  drm/i915/gt: Program mocs:63 for cache eviction on gen9
  drm/i915/gt: Protect context lifetime with RCU
  drm/i915/gt: Split the breadcrumb spinlock between global and contexts
  drm/i915/gt: Limit frequency drop to RPe on parking
  drm/i915/display: Defer initial modeset until after GGTT is initialised

Christian König (1):
  drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

Daniel Abrecht (1):
  drm: mxsfb: Implement .format_mod_supported

Dave Airlie (4):
  Merge tag 'drm/tegra/for-5.10-rc7' of
ssh://git.freedesktop.org/git/tegra/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-12-03' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.10-2020-12-02' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-12-03' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Deepak R Varma (1):
  drm/tegra: replace idr_init() by idr_init_base()

Jani Nikula (1):
  drm/i915/display: return earlier from intel_modeset_init() without display

Jon Hunter (1):
  drm/tegra: sor: Don't warn on probe deferral

Lucas Stach (1):
  drm: mxsfb: fix fence synchronization

Marc Zyngier (1):
  drm/tegra: sor: Ensure regulators are disabled on teardown

Paul Kocialkowski (1):
  drm/rockchip: Avoid uninitialized use of endpoint id in LVDS

Qinglang Miao (1):
  drm/tegra: sor: Disable clocks on error in tegra_sor_init()

Sebastian Reichel (1):
  drm/panel: sony-acx565akm: Fix race condition in probe

Thierry Reding (1):
  drm/tegra: output: Do not put OF node twice

Tomi Valkeinen (1):
  drm/omap: sdi: fix bridge enable/disable

Venkata Ramana Nayana (1):
  drm/i915/gt: Retain default context state across shrinking

 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c  |  25 ++-
 .../drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c  |  13 +-
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c |   7 +-
 drivers/gpu/drm/i915/display/intel_display.c   |  24 +--
 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c| 168 +
 drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h  |   6 +-
 drivers/gpu/drm/i915/gt/intel_context.c|  15 +-
 drivers/gpu/drm/i915/gt/intel_context_types.h  |  23 ++-
 drivers/gpu/drm/i915/gt/intel_mocs.c

Re: Nouveau video --- [ cut here ] ----- crash dump 5.10.0-rc6

2020-12-02 Thread Dave Airlie
cc'ing Ben + nouveau

On Thu, 3 Dec 2020 at 14:59, bob  wrote:
>
> Hello.  I have a crash dump for:
>
> $ uname -a
> Linux freedom 5.10.0-rc6 #1 SMP Sun Nov 29 17:26:13 MST 2020 x86_64
> x86_64 x86_64 GNU/Linux
>
> Occasionally when this dumps it likes to lock up the computer, but I
> caught it this time.
>
> Also video likes to flicker a lot.   Nouveau has been iffy since kernel
> 5.8.0.
>
> This isn't the only dump, it dumped probably 50 times.  If you are
> really desperate for all of it,
>
> reply to me directly as I'm not on the mailing list.  Here is one of them.
>
> [39019.426580] [ cut here ]
> [39019.426589] WARNING: CPU: 6 PID: 14136 at
> drivers/gpu/drm/nouveau/dispnv50/disp.c:211 nv50_dmac_wait+0x1e1/0x230
> [39019.426590] Modules linked in: mt2131 s5h1409 fuse tda8290 tuner
> cx25840 rt2800usb rt2x00usb rt2800lib snd_hda_codec_analog
> snd_hda_codec_generic ledtrig_audio rt2x00lib binfmt_misc
> intel_powerclamp coretemp cx23885 mac80211 tda18271 altera_stapl
> videobuf2_dvb m88ds3103 tveeprom cx2341x dvb_core rc_core i2c_mux
> snd_hda_codec_hdmi videobuf2_dma_sg videobuf2_memops videobuf2_v4l2
> snd_hda_intel videobuf2_common snd_intel_dspcfg kvm_intel snd_hda_codec
> videodev snd_hda_core kvm mc snd_hwdep snd_pcm_oss snd_mixer_oss
> irqbypass snd_pcm cfg80211 snd_seq_dummy snd_seq_midi snd_seq_oss
> snd_seq_midi_event snd_rawmidi snd_seq intel_cstate snd_seq_device
> serio_raw snd_timer input_leds nfsd libarc4 snd asus_atk0110 i7core_edac
> soundcore i5500_temp auth_rpcgss nfs_acl lockd grace sch_fq_codel sunrpc
> parport_pc ppdev lp parport ip_tables x_tables btrfs blake2b_generic
> libcrc32c xor zstd_compress raid6_pq dm_mirror dm_region_hash dm_log
> pata_acpi pata_marvell hid_generic usbhid hid psmouse firewire_ohci
> [39019.426650]  firewire_core crc_itu_t i2c_i801 ahci sky2 libahci
> i2c_smbus lpc_ich
> [39019.426658] CPU: 6 PID: 14136 Comm: kworker/u16:0 Tainted: GW
> I   5.10.0-rc6 #1
> [39019.426659] Hardware name: System manufacturer System Product
> Name/P6T DELUXE, BIOS 220909/21/2010
> [39019.426662] Workqueue: events_unbound nv50_disp_atomic_commit_work
> [39019.426665] RIP: 0010:nv50_dmac_wait+0x1e1/0x230
> [39019.426667] Code: 8d 48 04 48 89 4a 68 c7 00 00 00 00 20 49 8b 46 38
> 41 c7 86 20 01 00 00 00 00 00 00 49 89 46 68 e8 e4 fc ff ff e9 76 fe ff
> ff <0f> 0b b8 92 ff ff ff e9 ed fe ff ff 49 8b be 80 00 00 00 e8 c7 fc
> [39019.426668] RSP: 0018:b79d028ebd48 EFLAGS: 00010282
> [39019.426670] RAX: ff92 RBX: 000d RCX:
> 
> [39019.426671] RDX: ff92 RSI: b79d028ebc88 RDI:
> b79d028ebd28
> [39019.426671] RBP: b79d028ebd48 R08:  R09:
> b79d028ebc58
> [39019.426672] R10: 0030 R11: 11c4 R12:
> fffb
> [39019.426673] R13: a05fc1ebd368 R14: a05fc1ebd3a8 R15:
> a05fc2425000
> [39019.426675] FS:  () GS:a061f3d8()
> knlGS:
> [39019.426676] CS:  0010 DS:  ES:  CR0: 80050033
> [39019.426677] CR2: 7fb2d58e CR3: 00026280a000 CR4:
> 06e0
> [39019.426678] Call Trace:
> [39019.426685]  base827c_image_set+0x2f/0x1d0
> [39019.426687]  nv50_wndw_flush_set+0x89/0x1c0
> [39019.426688]  nv50_disp_atomic_commit_tail+0x4e7/0x7e0
> [39019.426693]  process_one_work+0x1d4/0x370
> [39019.426695]  worker_thread+0x4a/0x3b0
> [39019.426697]  ? process_one_work+0x370/0x370
> [39019.426699]  kthread+0xfe/0x140
> [39019.426701]  ? kthread_park+0x90/0x90
> [39019.426704]  ret_from_fork+0x22/0x30
> [39019.426706] ---[ end trace d512d675211c738c ]---
> [39021.426751] [ cut here ]
>
>
> Thanks in advance,
>
> Bob
>


[git pull] drm fixes for 5.10-rc6

2020-11-27 Thread Dave Airlie
Hi Linus,

Bit of a delay as fd.o anongit was acting up a bit today, hopefully it
stays up this time. Unfortunately this has a bit of thanksgiving
stuffing in it, as it a bit larger (at least the vc4 patches) than I
like at this point in time.

The main thing is it has a bunch of regressions fixes for reports in
the last  couple of weeks, ast, nouveau and the amdgpu ttm init fix,
along with the usual selection of amdgpu and i915 fixes.

The vc4 fixes are a few but they are fixes and the nastiest one is a
fix for when you have a 2.4Ghz Wifi and a HDMI signal with a clock in
that range and there isn't enough shielding and interference happen
between the two, the fix adjusts the mode clock to try and avoid the
wifi channels in that case.

Hopefully you can merge this between turkey slices, and next week
should be quieter.

Dave.

drm-fixes-2020-11-27-1:
drm fixes for 5.10-rc6

ast:
- LUT loading regression fix

nouveau:
- relocations regression fix

amdgpu:
- ttm init oops fix
- Runtime pm fix
- SI UVD suspend/resume fix
- HDCP fix for headless cards
- Sienna Cichlid golden register update

i915:
- Fix Perf/OA workaround register corruption (Lionel)
- Correct a comment statement in GVT (Yan)
- Fix GT enable/disable iterrupts, including a race condition that
prevented GPU to go idle (Chris)
- Free stale request on destroying the virtual engine (Chris)

exynos:
- config dependency fix

mediatek:
- unused var removal
- horizonal front/back porch formula fix

vc4:
- wifi and hdmi interference fix
- mode rejection fixes
- use after free fix
- cleanup some code
The following changes since commit 418baf2c28f3473039f2f7377760bd8f6897ae18:

  Linux 5.10-rc5 (2020-11-22 15:36:08 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-11-27-1

for you to fetch changes up to 9595930db4bb91433607441a5f26d90e9c6e34eb:

  Merge tag 'drm-misc-fixes-2020-11-26' of
ssh://git.freedesktop.org/git/drm/drm-misc into drm-fixes (2020-11-27
09:39:51 +1000)


drm fixes for 5.10-rc6

ast:
- LUT loading regression fix

nouveau:
- relocations regression fix

amdgpu:
- ttm init oops fix
- Runtime pm fix
- SI UVD suspend/resume fix
- HDCP fix for headless cards
- Sienna Cichlid golden register update

i915:
- Fix Perf/OA workaround register corruption (Lionel)
- Correct a comment statement in GVT (Yan)
- Fix GT enable/disable iterrupts, including a race condition that
prevented GPU to go idle (Chris)
- Free stale request on destroying the virtual engine (Chris)

exynos:
- config dependency fix

mediatek:
- unused var removal
- horizonal front/back porch formula fix

vc4:
- wifi and hdmi interference fix
- mode rejection fixes
- use after free fix
- cleanup some code


CK Hu (1):
  drm/mediatek: dsi: Modify horizontal front/back porch byte formula

Chris Wilson (4):
  drm/i915/gt: Defer enabling the breadcrumb interrupt to after submission
  drm/i915/gt: Track signaled breadcrumbs outside of the breadcrumb spinlock
  drm/i915/gt: Don't cancel the interrupt shadow too early
  drm/i915/gt: Free stale request on destroying the virtual engine

Dave Airlie (5):
  Merge tag 'amd-drm-fixes-5.10-2020-11-25' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-11-25' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'exynos-drm-fixes-for-v5.10-rc6' of
git://git.kernel.org/.../daeinki/drm-exynos into drm-fixes
  Merge tag 'mediatek-drm-fixes-5.10' of
https://git.kernel.org/.../chunkuang.hu/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-11-26' of
ssh://git.freedesktop.org/git/drm/drm-misc into drm-fixes

Enric Balletbo i Serra (1):
  drm/mediatek: mtk_dpi: Fix unused variable 'mtk_dpi_encoder_funcs'

Kenneth Feng (1):
  drm/amd/amdgpu: fix null pointer in runtime pm

Krzysztof Kozlowski (1):
  drm/exynos: depend on COMMON_CLK to fix compile tests

Likun Gao (1):
  drm/amdgpu: update golden setting for sienna_cichlid

Lionel Landwerlin (1):
  drm/i915/perf: workaround register corruption in OATAILPTR

Matti Hamalainen (1):
  drm/nouveau: fix relocations applying logic and a double-free

Maxime Ripard (11):
  drm/vc4: hdmi: Make sure our clock rate is within limits
  drm/vc4: hdmi: Block odd horizontal timings
  drm/vc4: kms: Switch to drmm_add_action_or_reset
  drm/vc4: kms: Remove useless define
  drm/vc4: kms: Rename NUM_CHANNELS
  drm/vc4: kms: Split the HVS muxing check in a separate function
  drm/vc4: kms: Document the muxing corner cases
  dt-bindings: display: Add a property to deal with WiFi coexistence
  drm/vc4: hdmi: Disable Wifi Frequencies
  drm/vc4: kms: Store the unassigned channel list in the state
  drm/vc4: kms: Don't disable the muxing of an active CRTC

Rodrigo Siqueira (1

Re: [Intel-gfx] [RFC v2 3/8] drm/i915: Keep track of pwm-related backlight hooks separately

2020-11-25 Thread Dave Airlie
On Thu, 17 Sept 2020 at 03:19, Lyude Paul  wrote:
>
> Currently, every different type of backlight hook that i915 supports is
> pretty straight forward - you have a backlight, probably through PWM
> (but maybe DPCD), with a single set of platform-specific hooks that are
> used for controlling it.
>
> HDR backlights, in particular VESA and Intel's HDR backlight
> implementations, can end up being more complicated. With Intel's
> proprietary interface, HDR backlight controls always run through the
> DPCD. When the backlight is in SDR backlight mode however, the driver
> may need to bypass the TCON and control the backlight directly through
> PWM.
>
> So, in order to support this we'll need to split our backlight callbacks
> into two groups: a set of high-level backlight control callbacks in
> intel_panel, and an additional set of pwm-specific backlight control
> callbacks. This also implies a functional changes for how these
> callbacks are used:
>
> * We now keep track of two separate backlight level ranges, one for the
>   high-level backlight, and one for the pwm backlight range
> * We also keep track of backlight enablement and PWM backlight
>   enablement separately
> * Since the currently set backlight level might not be the same as the
>   currently programmed PWM backlight level, we stop setting
>   panel->backlight.level with the currently programmed PWM backlight
>   level in panel->backlight.pwm_funcs.setup(). Instead, we rely
>   on the higher level backlight control functions to retrieve the
>   current PWM backlight level (in this case, intel_pwm_get_backlight()).
>   Note that there are still a few PWM backlight setup callbacks that
>   do actually need to retrieve the current PWM backlight level, although
>   we no longer save this value in panel->backlight.level like before.
> * panel->backlight.pwm_funcs.enable()/disable() both accept a PWM
>   brightness level, unlike their siblings
>   panel->backlight.enable()/disable(). This is so we can calculate the
>   actual PWM brightness level we want to set on disable/enable in the
>   higher level backlight enable()/disable() functions, since this value
>   might be scaled from a brightness level that doesn't come from PWM.

Oh this patch is a handful, I can see why people stall out here.

I'm going to be annoying maintainer and see if you can clean this up a
bit in advance
of this patch.

1) move the callbacks out of struct intel_panel.backlight into a separate struct
and use const static object tables, having fn ptrs and data co-located
in a struct
isn't great.

strcut intel_panel_backlight_funcs {

};
struct intel_panel {
struct {
struct intel_panel_backlight_funcs *funcs;
};
};

type of thing.

I think you could reuse the backlight funcs struct for the pwm stuff
as well. (maybe with an assert on hz_to_pwm for the old hooks).

2) change the apis to pass 0 down in a separate patch, this modifies a
bunch of apis to pass in an extra level parameter, do that
first in a separate patch that doesn't change anything but hands 0
down the chain. Then switch over in another patch.

3) One comment in passing below.
>
>
> -   if (cpu_mode)
> -   val = pch_get_backlight(connector);
> -   else
> -   val = lpt_get_backlight(connector);
> -   val = intel_panel_compute_brightness(connector, val);
> -   panel->backlight.level = clamp(val, panel->backlight.min,
> -  panel->backlight.max);
>
> if (cpu_mode) {
> +   val = intel_panel_sanitize_pwm_level(connector, 
> pch_get_backlight(connector));
> +
> drm_dbg_kms(_priv->drm,
> "CPU backlight register was enabled, switching to 
> PCH override\n");
>
> /* Write converted CPU PWM value to PCH override register */
> -   lpt_set_backlight(connector->base.state, 
> panel->backlight.level);
> +   lpt_set_backlight(connector->base.state, val);
> intel_de_write(dev_priv, BLC_PWM_PCH_CTL1,
>pch_ctl1 | BLM_PCH_OVERRIDE_ENABLE);
>
The change here confused me since it no longer calls lpt_get_backlight
in this path, the commit msg might explain this, but it didn't explain
is so I could figure out if that was a mistake or intentional.

Dave.


[git pull] drm fixes for v5.10-rc5

2020-11-19 Thread Dave Airlie
Hi Linus,

Weekly fixes pull. This contains some fixes for sun4i/dw-hdmi probing,
then amdgpu enables arcturus hw without experimental flag and two
other fixes and a group of i915 fixes.

It also has a backported from next fix for the warn on reported in
ast/drm_gem_vram_helper code in the rc1 pull request thread. The rc4
PR has a thread which initially looked to be the same problem, but I'm
going to chase that up next week a bit more as I don't think the
bisect landed anywhere useful.

Dave.

drm-fixes-2020-11-20-2:
drm fixes for v5.10-rc5

core:
- vram helper TTM regression fix

amdgpu:
- Pageflip fix for navi1x with 5 or 6 displays
- Remove experimental flag for Arcturus
- Fix regression in atomic commit tail rework

i915:
- Fix tgl power gating issue
- Memory leak fixes
- Selftest fixes
- Display bpc fix
- Fix TGL MOCS for PTE tracking

dw-hdmi:
- probing fix

sun4i:
- probing fix
The following changes since commit 09162bc32c880a791c6c0668ce0745cf7958f576:

  Linux 5.10-rc4 (2020-11-15 16:44:31 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-11-20-2

for you to fetch changes up to 6600f9d52213b5c3455481b5c9e61cf5e305c0e6:

  Merge tag 'drm-intel-fixes-2020-11-19' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2020-11-20
11:21:54 +1000)


drm fixes for v5.10-rc5

core:
- vram helper TTM regression fix

amdgpu:
- Pageflip fix for navi1x with 5 or 6 displays
- Remove experimental flag for Arcturus
- Fix regression in atomic commit tail rework

i915:
- Fix tgl power gating issue
- Memory leak fixes
- Selftest fixes
- Display bpc fix
- Fix TGL MOCS for PTE tracking

dw-hdmi:
- probing fix

sun4i:
- probing fix


Alex Deucher (2):
  drm/amd/display: Add missing pflip irq for dcn2.0
  drm/amdgpu: remove experimental flag from arcturus

Chris Wilson (2):
  drm/i915/gt: Remember to free the virtual breadcrumbs
  drm/i915/gt: Fixup tgl mocs for PTE tracking

Colin Xu (1):
  drm/i915/gvt: Temporarily disable vfio_edid for BXT/APL

Dave Airlie (3):
  Merge tag 'amd-drm-fixes-5.10-2020-11-18' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-11-19' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2020-11-19' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Jonathan Liu (1):
  drm: bridge: dw-hdmi: Avoid resetting force in the detect function

Maxime Ripard (2):
  drm/sun4i: backend: Fix probe failure with multiple backends
  Merge tag 'drm/sun4i-dma-fix-pull-request' of
ssh://gitolite.kernel.org/.../mripard/linux into drm-misc-fixes

Rodrigo Siqueira (1):
  drm/amd/display: Always get CRTC updated constant values inside
commit tail

Rodrigo Vivi (2):
  drm/i915/tgl: Fix Media power gate sequence.
  Merge tag 'gvt-fixes-2020-11-17' of
https://github.com/intel/gvt-linux into drm-intel-fixes

Thomas Zimmermann (1):
  drm/vram-helper: Fix use of top-down placement

Tina Zhang (1):
  drm/i915/gvt: Set ENHANCED_FRAME_CAP bit

Tvrtko Ursulin (1):
  drm/i915: Avoid memory leak with more than 16 workarounds on a list

Ville Syrjälä (1):
  drm/i915: Handle max_bpc==16

Xiongfeng Wang (2):
  drm/i915/gvt: return error when failing to take the module reference
  drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind()

Zhang Xiaoxu (2):
  drm/i915/selftests: Fix wrong return value of perf_series_engines()
  drm/i915/selftests: Fix wrong return value of perf_request_latency()

 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c|  8 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |  3 ++-
 .../amd/display/dc/irq/dcn20/irq_service_dcn20.c   |  4 ++--
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c  |  6 --
 drivers/gpu/drm/drm_gem_vram_helper.c  |  2 +-
 drivers/gpu/drm/i915/display/intel_display.c   |  3 ++-
 drivers/gpu/drm/i915/gt/intel_lrc.c|  1 +
 drivers/gpu/drm/i915/gt/intel_mocs.c   |  5 +++--
 drivers/gpu/drm/i915/gt/intel_rc6.c| 22 +-
 drivers/gpu/drm/i915/gt/intel_workarounds.c|  4 +++-
 drivers/gpu/drm/i915/gvt/display.c |  2 +-
 drivers/gpu/drm/i915/gvt/kvmgt.c   |  4 +++-
 drivers/gpu/drm/i915/gvt/vgpu.c|  3 ++-
 drivers/gpu/drm/i915/i915_reg.h| 12 +---
 drivers/gpu/drm/i915/intel_pm.c| 13 -
 drivers/gpu/drm/i915/selftests/i915_request.c  |  8 ++--
 drivers/gpu/drm/sun4i/sun4i_backend.c  |  8 +++-
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c  |  1 +
 18 files changed, 60 insertions(+), 49 deletions(-)


Re: [PATCH v2 2/9] misc: Add Xilinx AI engine device driver

2020-11-19 Thread Dave Airlie
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 5cc595a..40e3351 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -19283,6 +19283,14 @@ T: git https://github.com/Xilinx/linux-xlnx.git
>  F: Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml
>  F: drivers/phy/xilinx/phy-zynqmp.c
>
> +XILINX AI ENGINE DRIVER
> +M: Wendy Liang 
> +S: Supported
> +F: Documentation/devicetree/bindings/soc/xilinx/xlnx,ai-engine.yaml
> +F: drivers/misc/xilinx-ai-engine/
> +F: include/linux/xlnx-ai-engine.h
> +F: include/uapi/linux/xlnx-ai-engine.h
> +
>  XILLYBUS DRIVER
>  M: Eli Billauer 
>  L: linux-kernel@vger.kernel.org
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index fafa8b0..0b8ce4d 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -444,6 +444,18 @@ config XILINX_SDFEC
>
>   If unsure, say N.
>
> +config XILINX_AIE
> +   tristate "Xilinx AI engine"
> +   depends on ARM64 || COMPILE_TEST
> +   help
> + This option enables support for the Xilinx AI engine driver.
> + One Xilinx AI engine device can have multiple partitions (groups of
> + AI engine tiles). Xilinx AI engine device driver instance manages
> + AI engine partitions. User application access its partitions through
> + AI engine partition instance file operations.
> +
> + If unsure, say N
> +
>  config MISC_RTSX
> tristate
> default MISC_RTSX_PCI || MISC_RTSX_USB
> diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
> index d23231e..2176b18 100644
> --- a/drivers/misc/Makefile
> +++ b/drivers/misc/Makefile
> @@ -57,3 +57,4 @@ obj-$(CONFIG_HABANA_AI)   += habanalabs/
>  obj-$(CONFIG_UACCE)+= uacce/
>  obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o
>  obj-$(CONFIG_HISI_HIKEY_USB)   += hisi_hikey_usb.o
> +obj-$(CONFIG_XILINX_AIE)   += xilinx-ai-engine/
> diff --git a/drivers/misc/xilinx-ai-engine/Makefile 
> b/drivers/misc/xilinx-ai-engine/Makefile
> new file mode 100644
> index 000..7827a0a
> --- /dev/null
> +++ b/drivers/misc/xilinx-ai-engine/Makefile
> @@ -0,0 +1,11 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +#
> +# Makefile for Xilinx AI engine device driver
> +#
> +
> +obj-$(CONFIG_XILINX_AIE)   += xilinx-aie.o
> +
> +xilinx-aie-$(CONFIG_XILINX_AIE) := ai-engine-aie.o \
> +  ai-engine-dev.o \
> +  ai-engine-part.o \
> +  ai-engine-res.o
> diff --git a/drivers/misc/xilinx-ai-engine/ai-engine-aie.c 
> b/drivers/misc/xilinx-ai-engine/ai-engine-aie.c
> new file mode 100644
> index 000..319260f
> --- /dev/null
> +++ b/drivers/misc/xilinx-ai-engine/ai-engine-aie.c
> @@ -0,0 +1,115 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Xilinx AI Engine driver AIE device specific implementation
> + *
> + * Copyright (C) 2020 Xilinx, Inc.
> + */
> +
> +#include 
> +
> +#include "ai-engine-internal.h"
> +
> +#define AIE_ARRAY_SHIFT30U
> +#define AIE_COL_SHIFT  23U
> +#define AIE_ROW_SHIFT  18U
> +
> +/*
> + * Registers offsets
> + */
> +#define AIE_SHIMNOC_L2INTR_MASK_REGOFF 0x00015000U
> +#define AIE_SHIMNOC_L2INTR_INTR_REGOFF 0x00015010U
> +#define AIE_SHIMNOC_DMA_BD0_ADDRLOW_REGOFF 0x0001d000U
> +#define AIE_SHIMNOC_DMA_BD15_PACKET_REGOFF 0x0001d13cU
> +#define AIE_SHIMNOC_AXIMM_REGOFF   0x0001e020U
> +#define AIE_SHIMPL_L1INTR_MASK_A_REGOFF0x00035000U
> +#define AIE_SHIMPL_L1INTR_BLOCK_NORTH_B_REGOFF 0x00035050U
> +#define AIE_SHIMPL_CLKCNTR_REGOFF  0x00036040U
> +#define AIE_SHIMPL_RESET_REGOFF0x0003604cU
> +#define AIE_TILE_CORE_CLKCNTR_REGOFF   0x00036040U
> +
> +static const struct aie_tile_regs aie_kernel_regs[] = {
> +   /* SHIM AXI MM Config */
> +   {.attribute = AIE_TILE_TYPE_SHIMNOC << AIE_REGS_ATTR_TILE_TYPE_SHIFT,
> +.soff = AIE_SHIMNOC_AXIMM_REGOFF,
> +.eoff = AIE_SHIMNOC_AXIMM_REGOFF,
> +   },
> +   /* SHIM DMA ADDRESS range */
> +   {.attribute = AIE_TILE_TYPE_SHIMNOC << AIE_REGS_ATTR_TILE_TYPE_SHIFT,
> +.soff = AIE_SHIMNOC_DMA_BD0_ADDRLOW_REGOFF,
> +.eoff = AIE_SHIMNOC_DMA_BD15_PACKET_REGOFF,
> +   },
> +   /* SHIM 2nd level interrupt controller */
> +   {.attribute = AIE_TILE_TYPE_SHIMNOC << AIE_REGS_ATTR_TILE_TYPE_SHIFT,
> +.soff = AIE_SHIMNOC_L2INTR_MASK_REGOFF,
> +.eoff = AIE_SHIMNOC_L2INTR_INTR_REGOFF,
> +   },
> +   /* SHIM 1st level interrupt controller */
> +   {.attribute = (AIE_TILE_TYPE_SHIMPL | AIE_TILE_TYPE_SHIMNOC) <<
> + AIE_REGS_ATTR_TILE_TYPE_SHIFT,
> +.soff = AIE_SHIMPL_L1INTR_MASK_A_REGOFF,
> +.eoff = AIE_SHIMPL_L1INTR_BLOCK_NORTH_B_REGOFF,
> +   },
> +   /* SHIM reset Enable */
> +   {.attribute = (AIE_TILE_TYPE_SHIMPL | AIE_TILE_TYPE_SHIMNOC) <<
> 

Re: Linux 5.10-rc4

2020-11-18 Thread Dave Airlie
On Thu, 19 Nov 2020 at 08:25, Dave Airlie  wrote:
>
> On Thu, 19 Nov 2020 at 08:15, Daniel Vetter  wrote:
> >
> > On Wed, Nov 18, 2020 at 11:01 PM David Laight  
> > wrote:
> > >
> > > From: Thomas Zimmermann
> > > > Sent: 18 November 2020 19:37
> > > >
> > > > Hi
> > > >
> > > > Am 18.11.20 um 19:10 schrieb Linus Torvalds:
> > > > > On Wed, Nov 18, 2020 at 4:12 AM David Laight 
> > > > >  wrote:
> > > > >>
> > > > >> I've got the 'splat' below during boot.
> > > > >> This is an 8-core C2758 Atom cpu using the on-board/cpu graphics.
> > > > >> User space is Ubuntu 20.04.
> > > > >>
> > > > >> Additionally the X display has all the colours and alignment slightly
> > > > >> messed up.
> > > > >> 5.9.0 was ok.
> > > > >> I'm just guessing the two issues are related.
> > > > >
> > > > > Sounds likely.  But it would be lovely if you could bisect when
> > > > > exactly the problem(s) started to both verify that, and just to
> > > > > pinpoint the exact change..
> > >
> > > I don't quite understand what 'git bisect' did.
> > > I was bisecting between v5.9 and v5.10-rc1 but it suddenly started
> > > generating v5.9.0-rc5+ kernels.
> >
> > We queue up patches for -rc1 way before the previous kernel is
> > released, so this is normal.
> >
> > > The identified commit was 13a8f46d803 drm/ttm: move ghost object created.
> > > (retyped - hope it is right).
> > > But the diff to that last 'good' commit is massive.
> >
> > Yeah that's also normal for non-linear history. If you want to
> > double-check, re-test the parent of that commit (which is 2ee476f77ffe
> > ("drm/ttm: add a simple assign mem to bo wrapper")), which should
> > work, and then the bad commit.
> >
> > Also is this the first bad commit for both the splat and the screen
> > corruption issues?
> >
> > > So I don't know if that is anywhere near right.
> >
> > Thomas guessed it could be a ttm change, you hit one, and it looks
> > like it could be the culprit. Now I guess it's up to Dave. Also adding
> > Christian, in case he has an idea.
>
> I'd be mildly surprised if it's that commit, since it just refactors
> what looks to me to be two identical code pieces into one instance
> (within the scope of me screwing that up, but reading it I can't see
> it).
>
> I'll dig into this today.

https://patchwork.freedesktop.org/patch/401559/

should fix it.

We had a report in the rc1 thread but it got lost in the nouveau stuff
as well, I've cc that reporter as well.

please test.
Dave.


Re: Linux 5.10-rc4

2020-11-18 Thread Dave Airlie
On Thu, 19 Nov 2020 at 08:15, Daniel Vetter  wrote:
>
> On Wed, Nov 18, 2020 at 11:01 PM David Laight  wrote:
> >
> > From: Thomas Zimmermann
> > > Sent: 18 November 2020 19:37
> > >
> > > Hi
> > >
> > > Am 18.11.20 um 19:10 schrieb Linus Torvalds:
> > > > On Wed, Nov 18, 2020 at 4:12 AM David Laight  
> > > > wrote:
> > > >>
> > > >> I've got the 'splat' below during boot.
> > > >> This is an 8-core C2758 Atom cpu using the on-board/cpu graphics.
> > > >> User space is Ubuntu 20.04.
> > > >>
> > > >> Additionally the X display has all the colours and alignment slightly
> > > >> messed up.
> > > >> 5.9.0 was ok.
> > > >> I'm just guessing the two issues are related.
> > > >
> > > > Sounds likely.  But it would be lovely if you could bisect when
> > > > exactly the problem(s) started to both verify that, and just to
> > > > pinpoint the exact change..
> >
> > I don't quite understand what 'git bisect' did.
> > I was bisecting between v5.9 and v5.10-rc1 but it suddenly started
> > generating v5.9.0-rc5+ kernels.
>
> We queue up patches for -rc1 way before the previous kernel is
> released, so this is normal.
>
> > The identified commit was 13a8f46d803 drm/ttm: move ghost object created.
> > (retyped - hope it is right).
> > But the diff to that last 'good' commit is massive.
>
> Yeah that's also normal for non-linear history. If you want to
> double-check, re-test the parent of that commit (which is 2ee476f77ffe
> ("drm/ttm: add a simple assign mem to bo wrapper")), which should
> work, and then the bad commit.
>
> Also is this the first bad commit for both the splat and the screen
> corruption issues?
>
> > So I don't know if that is anywhere near right.
>
> Thomas guessed it could be a ttm change, you hit one, and it looks
> like it could be the culprit. Now I guess it's up to Dave. Also adding
> Christian, in case he has an idea.

I'd be mildly surprised if it's that commit, since it just refactors
what looks to me to be two identical code pieces into one instance
(within the scope of me screwing that up, but reading it I can't see
it).

I'll dig into this today.

Dave.


Re: [git pull] drm next pull for 5.10-rc1

2020-11-16 Thread Dave Airlie
>
> Christ. It's been two weeks. I'm doing -rc4 today, and I still don't
> have the fix.
>
> The problem seems entirely obvious, as reported by Kirill: the nv50
> code unconditionally calls the "atomic_{dis,en}able()" functions, even
> when not everybody was converted.
>
> The fix seems to be to either just do the conversion of the remaining
> cases (which looks like just adding an argument to the remaining
> functions, and using that for the "atomic" callback), or the trivial
> suggestion by Kirill from two weeks ago:
>
> > I hacked up patch to use help->disable/help->enable if atomic_ versions
> > are NULL. It worked.
>
> Kirill, since the nouveau people aren't fixing this, can you just send
> me your tested patch?
>
> Lyude/Ben - let me just say that I think this is all a huge disgrace.
>
> You had a problem report with a bisected commit, a suggested fix, and
> two weeks later there's absolutely _nothing_.

I would like to say when you sent this, there was patches on the
mailing lists with Kirill cc'ed, a pull request outstanding to me on
the mailing list from Ben, with the patches reviewed in it.

Maybe you weren't cc'ed on it, but stuff has certainly happened, in
the timeframe, and I was keeping track of it from falling down a hole.

_nothing_ is a lot more a reflection on your research than the ongoing
process, there was some delays here and maybe we need to communicate
when we are flat out dealing with other more urgent tasks that pay the
actual wages.

Dave.


[git pull] drm nouveau urgent fixes for 5.10-rc4

2020-11-15 Thread Dave Airlie
Hi Linus,

As mentioned I did have a fixes pull from Ben from after I'd sent you
out stuff, it contains the fix for the regression reported in the rc1
thread along with two others.

Dave.

drm-fixes-2020-11-16:
drm nouveau fixes for 5.10-rc4

nouveau:
- atomic modesetting regression fix
- ttm pre-nv50 fix
- connector NULL ptr deref fix
The following changes since commit 41f3ed2cac86ba533ce6a334a2e7fae5c7082946:

  Merge tag 'amd-drm-fixes-5.10-2020-11-12' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-11-13
16:05:31 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-11-16

for you to fetch changes up to 8f598d15ee6577a56d6617d9e4151591db34d8fa:

  Merge branch 'linux-5.10' of git://github.com/skeggsb/linux into
drm-fixes (2020-11-16 06:36:31 +1000)


drm nouveau fixes for 5.10-rc4

nouveau:
- atomic modesetting regression fix
- ttm pre-nv50 fix
- connector NULL ptr deref fix


Alexander Kapshuk (1):
  drm/nouveau/kms: Fix NULL pointer dereference in
nouveau_connector_detect_depth

Ben Skeggs (1):
  drm/nouveau/ttm: avoid using nouveau_drm.ttm.type_vram prior to nv50

Dave Airlie (1):
  Merge branch 'linux-5.10' of git://github.com/skeggsb/linux into drm-fixes

Lyude Paul (1):
  drm/nouveau/kms/nv50-: Use atomic encoder callbacks everywhere

 drivers/gpu/drm/nouveau/dispnv50/disp.c | 29 ++---
 drivers/gpu/drm/nouveau/nouveau_bo.c|  3 +--
 drivers/gpu/drm/nouveau/nouveau_connector.c | 14 +-
 3 files changed, 24 insertions(+), 22 deletions(-)


Re: [git pull] drm next pull for 5.10-rc1

2020-11-15 Thread Dave Airlie
On Mon, 16 Nov 2020 at 03:57, Linus Torvalds
 wrote:
>
> On Tue, Nov 3, 2020 at 2:20 PM Kirill A. Shutemov  
> wrote:
> >
> > On Thu, Oct 15, 2020 at 11:33:08AM +1000, Dave Airlie wrote:
> > >   drm/nouveau/kms: Search for encoders' connectors properly
> >
> > This commit (09838c4efe9a) broke boot for me. These two hunks in
> > particular:
>
> Christ. It's been two weeks. I'm doing -rc4 today, and I still don't
> have the fix.
>
> The problem seems entirely obvious, as reported by Kirill: the nv50
> code unconditionally calls the "atomic_{dis,en}able()" functions, even
> when not everybody was converted.
>
> The fix seems to be to either just do the conversion of the remaining
> cases (which looks like just adding an argument to the remaining
> functions, and using that for the "atomic" callback), or the trivial
> suggestion by Kirill from two weeks ago:
>
> > I hacked up patch to use help->disable/help->enable if atomic_ versions
> > are NULL. It worked.
>
> Kirill, since the nouveau people aren't fixing this, can you just send
> me your tested patch?
>
> Lyude/Ben - let me just say that I think this is all a huge disgrace.
>
> You had a problem report with a bisected commit, a suggested fix, and
> two weeks later there's absolutely _nothing_.

I do have a fixes pull from Ben from Saturday in my inbox, I can send
it on this morning.

Dave.


[git pull] drm fixes for 5.10-rc4

2020-11-12 Thread Dave Airlie
Hi Linus,

Nearly didn't send you a PR this week at all, but a few things
trickled in over the day, not a huge amount here, some i915, amdgpu
and a bunch of misc fixes. I have a couple of nouveau fixes
outstanding due to the PR having the wrong base, I'll figure it out
next week.

Dave.

drm-fixes-2020-11-13:
drm fixes for 5.10-rc4

amdgpu:
- Pageflip fix for DCN3
- Declare TA firmware for green sardine
- Headless navi fix

i915:
- Pull phys pread/pwrite implementations to the backend
- Correctly set SFC capability for video engines

bridge:
- cdns Kconfig fix

hyperv_fb:
- fix missing include

gma500:
- oob access fix

mcde:
- unbalanced regulator fix
The following changes since commit f8394f232b1eab649ce2df5c5f15b0e528c92091:

  Linux 5.10-rc3 (2020-11-08 16:10:16 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-11-13

for you to fetch changes up to 41f3ed2cac86ba533ce6a334a2e7fae5c7082946:

  Merge tag 'amd-drm-fixes-5.10-2020-11-12' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-11-13
16:05:31 +1000)


drm fixes for 5.10-rc4

amdgpu:
- Pageflip fix for DCN3
- Declare TA firmware for green sardine
- Headless navi fix

i915:
- Pull phys pread/pwrite implementations to the backend
- Correctly set SFC capability for video engines

bridge:
- cdns Kconfig fix

hyperv_fb:
- fix missing include

gma500:
- oob access fix

mcde:
- unbalanced regulator fix


Bhawanpreet Lakha (1):
  drm/amd/display: Add missing pflip irq

Chris Wilson (1):
  drm/i915/gem: Pull phys pread/pwrite implementations to the backend

Dave Airlie (3):
  Merge tag 'drm-misc-fixes-2020-11-12' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2020-11-13' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.10-2020-11-12' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Linus Walleij (1):
  drm/mcde: Fix unbalanced regulator

Matthew Auld (1):
  drm/i915/gem: Allow backends to override pread implementation

Nishanth Menon (1):
  drm: bridge: cdns: Kconfig: Switch over dependency to ARCH_K3

Olaf Hering (1):
  video: hyperv_fb: include vmalloc.h

Roman Li (1):
  drm/amdgpu: add ta firmware load for green-sardine

Thomas Zimmermann (1):
  drm/gma500: Fix out-of-bounds access to struct drm_device.vblank[]

Tianci.Yin (1):
  drm/amdgpu: enable DCN for navi10 headless SKU

Venkata Sandeep Dhanalakota (1):
  drm/i915: Correctly set SFC capability for video engines

 drivers/gpu/drm/amd/amdgpu/nv.c|  3 +-
 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c |  1 +
 .../amd/display/dc/irq/dcn30/irq_service_dcn30.c   |  4 +-
 drivers/gpu/drm/bridge/cadence/Kconfig |  2 +-
 drivers/gpu/drm/gma500/psb_irq.c   | 34 +
 drivers/gpu/drm/i915/gem/i915_gem_object_types.h   |  2 +
 drivers/gpu/drm/i915/gem/i915_gem_phys.c   | 55 ++
 drivers/gpu/drm/i915/gt/intel_engine_cs.c  |  3 +-
 drivers/gpu/drm/i915/i915_gem.c| 32 +++--
 drivers/gpu/drm/mcde/mcde_drv.c|  8 +++-
 drivers/video/fbdev/hyperv_fb.c|  1 +
 11 files changed, 90 insertions(+), 55 deletions(-)


[git pull] drm fixes for 5.10-rc3

2020-11-05 Thread Dave Airlie
Hey Linus,

It's Friday here so that means another installment of drm fixes to
distract you from the counting process.

Changes all over the place, the amdgpu changes contain support for a
new GPU that is close to current one already in the tree (Green
Sardine) so it shouldn't have much side effects.

Otherwise imx has a few cleanup patches and fixes, amdgpu and i915
have around the usual smattering of fixes, fonts got constified, and
vc4/panfrost has some minor fixes. All in all a fairly regular rc3.

I think we have an outstanding nouveau regression, but the author is
looking into the fix, so should be here next week.

I now return you to counting.
Dave.

drm-fixes-2020-11-06-1:
drm fixes for 5.10-rc3

fonts:
- constify font structures.

MAINTAINERS:
- Fix path for amdgpu power management

amdgpu:
- Add support for more navi1x SKUs
- Fix for suspend on CI dGPUs
- VCN DPG fix for Picasso
- Sienna Cichlid fixes
- Polaris DPM fix
- Add support for Green Sardine

amdkfd:
- Fix an allocation failure check

i915:
- Fix set domain's cache coherency
- Fixes around breadcrumbs
- Fix encoder lookup during PSR atomic
- Hold onto an explicit ref to i915_vma_work.pinned
- gvt: HWSP reset handling fix
- gvt: flush workaround
- gvt: vGPU context pin/unpin
- gvt: mmio cmd access fix for bxt/apl

imx:
- drop unused functions and callbacks
- reuse imx_drm_encoder_parse_of
- spinlock rework
- memory leak fix
- minor cleanups

vc4:
- resource cleanup fix

panfrost:
- madvise/shrinker fix
The following changes since commit 3cea11cd5e3b00d91caf0b4730194039b45c5891:

  Linux 5.10-rc2 (2020-11-01 14:43:51 -0800)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-11-06-1

for you to fetch changes up to 356583b956e620a7ef8086f14bfe971986a320b3:

  Merge tag 'drm-misc-fixes-2020-11-05' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-11-06
13:32:12 +1000)


drm fixes for 5.10-rc3

fonts:
- constify font structures.

MAINTAINERS:
- Fix path for amdgpu power management

amdgpu:
- Add support for more navi1x SKUs
- Fix for suspend on CI dGPUs
- VCN DPG fix for Picasso
- Sienna Cichlid fixes
- Polaris DPM fix
- Add support for Green Sardine

amdkfd:
- Fix an allocation failure check

i915:
- Fix set domain's cache coherency
- Fixes around breadcrumbs
- Fix encoder lookup during PSR atomic
- Hold onto an explicit ref to i915_vma_work.pinned
- gvt: HWSP reset handling fix
- gvt: flush workaround
- gvt: vGPU context pin/unpin
- gvt: mmio cmd access fix for bxt/apl

imx:
- drop unused functions and callbacks
- reuse imx_drm_encoder_parse_of
- spinlock rework
- memory leak fix
- minor cleanups

vc4:
- resource cleanup fix

panfrost:
- madvise/shrinker fix


Aaron Liu (1):
  drm/amdgpu: enable green_sardine_asd.bin loading (v2)

Alex Deucher (4):
  drm/amdgpu/powerplay: Only apply optimized mclk dpm policy on polaris
  drm/amdgpu/swsmu: remove duplicate call to smu_set_default_dpm_table
  drm/amdgpu: add Green_Sardine APU flag
  drm/amdgpu/display: remove DRM_AMD_DC_GREEN_SARDINE

Arnd Bergmann (1):
  drm/imx: tve remove extraneous type qualifier

Boris Brezillon (1):
  drm/panfrost: Fix a deadlock between the shrinker and madvise path

Chris Wilson (5):
  drm/i915/gem: Flush coherency domains on first set-domain-ioctl
  drm/i915/gt: Use the local HWSP offset during submission
  drm/i915/gt: Expose more parameters for emitting writes into the ring
  drm/i915/gt: Flush xcs before tgl breadcrumbs
  drm/i915: Hold onto an explicit ref to i915_vma_work.pinned

Colin Xu (4):
  drm/i915/gvt: Allow zero out HWSP addr on hws_pga_write
  drm/i915/gvt: Set SNOOP for PAT3 on BXT/APL to workaround GPU BB hang
  drm/i915/gvt: Only pin/unpin intel_context along with workload
  drm/i915/gvt: Fix mmio handler break on BXT/APL.

Dave Airlie (4):
  Merge tag 'imx-drm-next-2020-10-30' of
git://git.pengutronix.de/git/pza/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-11-05' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.10-2020-11-04' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-11-05' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Evan Quan (5):
  drm/amdgpu: perform srbm soft reset always on SDMA resume
  drm/amd/pm: correct the baco reset sequence for CI ASICs
  drm/amd/pm: enable baco reset for Hawaii
  drm/amd/pm: perform SMC reset on suspend/hibernation
  drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running

Flora Cui (2):
  drm/amdgpu: disable DCN and VCN for Navi14 0x7340/C9 SKU
  drm/amdgpu: rename nv_is_headless_sku()

Imre Deak (1):
  drm/i915: Fix encoder lookup during PSR atomic check

Joe Perches (1

[git pull] drm fixes for 5.10-rc2

2020-10-29 Thread Dave Airlie
Hi Linus,

A busier rc2 than normal, have larger sets of fixes for amdgpu +
nouveau, along with some i915, docs, core, panel, sun4i, v3d, vc4
fixes.

Nothing spooky though or pumpkin related.

Dave.

drm-fixes-2020-10-30-1:
drm fixes for 5.10-rc2

docs:
- kernel doc fixes

core:
- fix shmem helpers dma-buf mmap bug

amdgpu:
- Add new navi1x PCI ID
- GPUVM reserved area fixes
- Misc display fixes
- Fix bad interactions between display code and CONFIG_KGDB
- Fixes for SMU manual fan control and i2c

nouveau:
- endian regression fix for old gpus
- buffer object refcount fix
- uapi start/end alignment fix
- display notifier fix
- display clock checking fixes

i915:
- Fix max memory region size calculation
- Restore ILK-M RPS support, restoring performance
- Reject 90/270 degree rotated initial fbs

panel:
- mantix reset fixes

sun4i:
- scalar fix

vc4:
- hdmi audio fixes

v3d:
- fix double free
The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec:

  Linux 5.10-rc1 (2020-10-25 15:14:11 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-10-30-1

for you to fetch changes up to 7babd126327b8b5a3904d2f8f01c95235801af2a:

  Merge tag 'drm-intel-fixes-2020-10-29' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2020-10-30
11:54:11 +1000)


drm fixes for 5.10-rc2

docs:
- kernel doc fixes

core:
- fix shmem helpers dma-buf mmap bug

amdgpu:
- Add new navi1x PCI ID
- GPUVM reserved area fixes
- Misc display fixes
- Fix bad interactions between display code and CONFIG_KGDB
- Fixes for SMU manual fan control and i2c

nouveau:
- endian regression fix for old gpus
- buffer object refcount fix
- uapi start/end alignment fix
- display notifier fix
- display clock checking fixes

i915:
- Fix max memory region size calculation
- Restore ILK-M RPS support, restoring performance
- Reject 90/270 degreerotated initial fbs

panel:
- mantix reset fixes

sun4i:
- scalar fix

vc4:
- hdmi audio fixes

v3d:
- fix double free


Alex Deucher (3):
  drm/amdgpu/display: use kvzalloc again in dc_create_state
  drm/amdgpu/swsmu: drop smu i2c bus on navi1x
  drm/amdgpu/pm: fix the fan speed in fan1_input in manual mode for navi1x

Christian König (1):
  drm/amdgpu: increase the reserved VM size to 2MB

Dan Carpenter (1):
  drm/v3d: Fix double free in v3d_submit_cl_ioctl()

Daniel Vetter (1):
  drm/shme-helpers: Fix dma_buf_mmap forwarding bug

Dave Airlie (4):
  Merge tag 'amd-drm-fixes-5.10-2020-10-29' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-10-29' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge branch 'linux-5.10' of git://github.com/skeggsb/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-10-29' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

David Galiffi (1):
  drm/amd/display: Fixed panic during seamless boot.

Dmytro Laktyushkin (1):
  drm/amd/display: prevent null pointer access

Guido Günther (3):
  drm/panel: mantix: Don't dereference NULL mode
  drm/panel: mantix: Fix panel reset
  dt-binding: display: Require two resets on mantix panel

Hoegeun Kwon (1):
  drm/vc4: drv: Add error handding for bind

Karol Herbst (2):
  drm/nouveau/gem: fix "refcount_t: underflow; use-after-free"
  drm/nouveau/device: fix changing endianess code to work on older GPUs

Kenneth Feng (1):
  drm/amd/pm: fix the wrong fan speed in fan1_input

Lyude Paul (3):
  drm/nouveau/kms/nv50-: Program notifier offset before requesting disp caps
  drm/nouveau/kms/nv50-: Get rid of bogus nouveau_conn_mode_valid()
  drm/nouveau/kms/nv50-: Fix clock checking algorithm in
nv50_dp_mode_valid()

Madhav Chauhan (1):
  drm/amdgpu: don't map BO in reserved region

Martin Leung (1):
  drm/amd/display: adding ddc_gpio_vga_reg_list to ddc reg def'ns

Matthew Auld (1):
  drm/i915/region: fix max size calculation

Mauro Carvalho Chehab (7):
  drm: kernel-doc: document drm_dp_set_subconnector_property() params
  drm/dp: fix kernel-doc warnings at drm_dp_helper.c
  drm/dp: fix a kernel-doc issue at drm_edid.c
  drm: drm_edid: remove a duplicated kernel-doc declaration
  drm: kernel-doc: add description for a new function parameter
  drm: kernel-doc: drm_dp_helper.h: fix a typo
  drm: drm_print.h: fix kernel-doc markups

Maxime Ripard (7):
  Merge remote-tracking branch 'drm-misc/drm-misc-next-fixes' into
drm-misc-fixes
  drm/sun4i: frontend: Rework a bit the phase data
  drm/sun4i: frontend: Reuse the ch0 phase for RGB formats
  drm/sun4i: frontend: Fix the scaler phase on A33
  drm/vc4: hdmi: Avoid sleeping in atomic context
  drm/vc4: hdmi: Add a name to the codec DAI component
  drm/vc4: Rework the

[git pull] drm fixes part 2 for 5.10-rc1

2020-10-22 Thread Dave Airlie
Hi Linus,

This should be the last round of things for rc1, a bunch of i915
fixes, some amdgpu, more font OOB fixes and one ttm fix just found
reading code.

Dave.

drm-next-2020-10-23:
drm fixes (round two) for 5.10-rc1

fbcon/fonts:
- Two patches to prevent OOB access

ttm:
- fix for eviction value range check

amdgpu:
- Sienna Cichlid fixes
- MST manager resource leak fix
- GPU reset fix

amdkfd:
- Luxmark fix for Navi1x

i915:
- Tweak initial DPCD backlight.enabled value (Sean)
- Initialize reserved MOCS indices (Ayaz)
- Mark initial fb obj as WT on eLLC machines to avoid rcu lockup (Ville)
- Support parsing of oversize batches (Chris)
- Delay execlists processing for TGL (Chris)
- Use the active reference on the vma during error capture (Chris)
- Widen CSB pointer (Chris)
- Wait for CSB entries on TGL (Chris)
- Fix unwind for scratch page allocation (Chris)
- Exclude low patches of stolen memory (Chris)
- Force VT'd workarounds when running as a guest OS (Chris)
- Drop runtime-pm assert from vpgu io accessors (Chris)
The following changes since commit 40b99050455b9a6cb8faf15dcd41888312184720:

  Merge tag 'drm-intel-next-fixes-2020-10-15' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-10-19
09:21:59 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-10-23

for you to fetch changes up to b45b6fbc671c60f56fd119c443e5570f83175928:

  Merge tag 'drm-intel-next-fixes-2020-10-22' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-10-23
09:52:18 +1000)


drm fixes (round two) for 5.10-rc1

fbcon/fonts:
- Two patches to prevent OOB access

ttm:
- fix for evicition value range check

amdgpu:
- Sienna Cichlid fixes
- MST manager resource leak fix
- GPU reset fix

amdkfd:
- Luxmark fix for Navi1x

i915:
- Tweak initial DPCD backlight.enabled value (Sean)
- Initialize reserved MOCS indices (Ayaz)
- Mark initial fb obj as WT on eLLC machines to avoid rcu lockup (Ville)
- Support parsing of oversize batches (Chris)
- Delay execlists processing for TGL (Chris)
- Use the active reference on the vma during error capture (Chris)
- Widen CSB pointer (Chris)
- Wait for CSB entries on TGL (Chris)
- Fix unwind for scratch page allocation (Chris)
- Exclude low patches of stolen memory (Chris)
- Force VT'd workarounds when running as a guest OS (Chris)
- Drop runtime-pm assert from vpgu io accessors (Chris)


Andrey Grodzovsky (3):
  drm/amd/display: Revert "drm/amd/display: Fix a list corruption"
  drm/amd/display: Avoid MST manager resource leak.
  drm/amd/psp: Fix sysfs: cannot create duplicate filename

Ayaz A Siddiqui (1):
  drm/i915/gt: Initialize reserved and unspecified MOCS indices

Chris Wilson (10):
  drm/i915/gem: Support parsing of oversize batches
  drm/i915/gt: Delay execlist processing for tgl
  drm/i915/gt: Undo forced context restores after trivial preemptions
  drm/i915: Use the active reference on the vma while capturing
  drm/i915/gt: Widen CSB pointer to u64 for the parsers
  drm/i915/gt: Wait for CSB entries on Tigerlake
  drm/i915/gt: Onion unwind for scratch page allocation failure
  drm/i915: Exclude low pages (128KiB) of stolen from use
  drm/i915: Force VT'd workarounds when running as a guest OS
  drm/i915: Drop runtime-pm assert from vgpu io accessors

Dave Airlie (4):
  Merge tag 'drm-misc-next-fixes-2020-10-20' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next
  drm/ttm: fix eviction valuable range check.
  Merge tag 'amd-drm-fixes-5.10-2020-10-21' of
git://people.freedesktop.org/~agd5f/linux into drm-next
  Merge tag 'drm-intel-next-fixes-2020-10-22' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next

Evan Quan (1):
  drm/amdgpu: correct the gpu reset handling for job != NULL case

Jay Cornwall (1):
  drm/amdkfd: Use same SQ prefetch setting as amdgpu

John Clements (1):
  Revert drm/amdgpu: disable sienna chichlid UMC RAS

Kenneth Feng (2):
  drm/amd/pm: fix pp_dpm_fclk
  drm/amd/pm: remove the average clock value in sysfs

Kevin Wang (2):
  drm/amd/swsmu: add missing feature map for sienna_cichlid
  drm/amd/swsmu: correct wrong feature bit mapping

Likun Gao (5):
  drm/amdgpu: add function to program pbb mode for sienna cichlid
  drm/amdgpu: add rlc iram and dram firmware support
  drm/amdgpu: update golden setting for sienna_cichlid
  drm/amd/pm: fix pcie information for sienna cichlid
  drm/amdgpu: correct the cu and rb info for sienna cichlid

Peilin Ye (2):
  docs: fb: Add font_6x8 to available built-in fonts
  Fonts: Support FONT_EXTRA_WORDS macros for font_6x8

Sean Paul (1):
  drm/i915/dp: Tweak initial dpcd backlight.enabled value

Ville Syrjälä (1):
  drm/i915: Mark ininitial fb obj as WT on eLL

[git pull] drm fixes for 5.10-rc1

2020-10-18 Thread Dave Airlie
Hi Linus,

Some fixes queued up already for i915 and amdgpu, I've also included
the fix for the clang warning you've seen.

Dave.

drm-next-2020-10-19:
drm fixes for 5.10-rc1

i915:
- Set all unused color plane offsets to ~0xfff again (Ville)
- Fix TGL DKL PHY DP vswing handling (Ville)

amdgpu:
- DCN clang warning fix
- eDP fix
- BACO fix
- Kernel documentation fixes
- SMU7 mclk fix
- VCN1 hw bug workaround

amdkfd:
- kvfree vs kfree fix
The following changes since commit 640eee067d9aae0bb98d8706001976ff1affaf00:

  Merge tag 'drm-misc-next-fixes-2020-10-13' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next (2020-10-14
07:31:53 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-10-19

for you to fetch changes up to 40b99050455b9a6cb8faf15dcd41888312184720:

  Merge tag 'drm-intel-next-fixes-2020-10-15' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-10-19
09:21:59 +1000)


drm fixes for 5.10-rc1

i915:
- Set all unused color plane offsets to ~0xfff again (Ville)
- Fix TGL DKL PHY DP vswing handling (Ville)

amdgpu:
- DCN clang warning fix
- eDP fix
- BACO fix
- Kernel documentation fixes
- SMU7 mclk fix
- VCN1 hw bug workaround

amdkfd:
- kvfree vs kfree fix


Alex Deucher (1):
  drm/amdgpu/swsmu: init the baco mutex in early_init

Dave Airlie (2):
  Merge tag 'amd-drm-fixes-5.10-2020-10-14' of
git://people.freedesktop.org/~agd5f/linux into drm-next
  Merge tag 'drm-intel-next-fixes-2020-10-15' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next

Eryk Brol (1):
  drm/amd/display: Fix incorrect dsc force enable logic

Evan Quan (1):
  drm/amd/pm: increase mclk switch threshold to 200 us

Kent Russell (1):
  drm/amdkfd: Use kvfree in destroy_crat_image

Mauro Carvalho Chehab (2):
  drm/amd/display: kernel-doc: document force_timing_sync
  docs: amdgpu: fix a warning when building the documentation

Rodrigo Siqueira (1):
  drm/amd/display: Fix module load hangs when connected to an eDP

Veerabadhran G (1):
  drm/amdgpu: vcn and jpeg ring synchronization

Ville Syrjälä (2):
  drm/i915: Fix TGL DKL PHY DP vswing handling
  drm/i915: Set all unused color plane offsets to ~0xfff again

 Documentation/gpu/amdgpu.rst   |  4 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c|  2 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h|  1 +
 drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c | 24 +--
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c  | 28 ++
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.h  |  3 ++-
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c  |  2 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h  |  2 ++
 .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c|  2 +-
 drivers/gpu/drm/amd/display/dc/core/dc.c   | 10 
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c|  2 +-
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c  |  7 +++---
 drivers/gpu/drm/i915/display/intel_ddi.c   |  2 +-
 drivers/gpu/drm/i915/display/intel_display.c   | 17 -
 14 files changed, 72 insertions(+), 34 deletions(-)


Re: [git pull] drm next pull for 5.10-rc1

2020-10-15 Thread Dave Airlie
On Fri, 16 Oct 2020 at 04:42, Linus Torvalds
 wrote:
>
> On Thu, Oct 15, 2020 at 10:51 AM Linus Torvalds
>  wrote:
> >
> > Thanks, looks good to me [..]
>
> Uhhuh. I already pushed things out, but my clang build (which I don't
> do between each merge) shows a problem:
>
>   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:650:8:
>   warning: logical not is only applied to the left hand side of this
> comparison [-Wlogical-not-parentheses]
> && !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
>^ ~~
>
> and I think clang is entirely right to complain about that code.
>
> Yes, the code may be correct, but even if it's correct, that's a
> really odd way to write things.
>
> Anyway, what it does is:
>
>!params[i].clock_force_enable
>
> turns 0 into 1, and anything that isn't 0 into 0.
>
> And DSC_CLK_FORCE_DEFAULT has a value of 0, so what that line actually means 
> is
>
>   (params[i].clock_force_enable == 0) == 0
>
> which obviously is
>
>   params[i].clock_force_enable != 0
>
> which in this case is the same as
>
>   params[i].clock_force_enable != DSC_CLK_FORCE_DEFAULT
>
> which may be what the code actually meant to do.
>
> So I suspect it does what it meant to do, but only because
> DSC_CLK_FORCE_DEFAULT also happens to be 0, which also acts as a
> boolean 'false'.
>
> But it's also possible that the '!' is a left-over, and the code
> actually _meant_ to do the exact reverse of that. I have no idea.
>
> This odd code was introduced by commit 0749ddeb7d6c ("drm/amd/display:
> Add DSC force disable to dsc_clock_en debugfs entry"), and can we
> please agree to not write this kind of obfuscated C code?

I've asked Alex to direct send you any fix for you to apply once he's
had a chance to validate it,

Dave.


Re: [git pull] drm next pull for 5.10-rc1

2020-10-14 Thread Dave Airlie
On Thu, 15 Oct 2020 at 11:33, Dave Airlie  wrote:
>
> Hi Linus,
>
> This is the main drm pull request for 5.10.
>
> Not a major amount of change, the i915 trees got split into display
> and gt trees to better facilitate higher level review, and there's a
> major refactoring of i915 GEM locking to use more core kernel concepts
> (like ww-mutexes). msm gets per-process pagetables, older AMD SI cards
> get DC support, nouveau got a bump in displayport support with common
> code extraction from i915.
>
> There are a bunch of conflicts but none of them seemed overly scary,
> and sfr has provided resolutions for them all. I've put a tree up with
> my merge results, so you can tell me I did it wrong here:
> https://cgit.freedesktop.org/~airlied/linux/log/?h=drm-next-5.10-merged

Apparently I lied, and I only built my merged tree on x86

https://lore.kernel.org/dri-devel/20201015134357.0a4e6...@canb.auug.org.au/T/#t

Please apply the patch from this thread once you merge my tree.

Dave.


[git pull] drm amdgpu fixes for 5.9 final

2020-10-08 Thread Dave Airlie
Hi Linus,

Fixes trickling in this week, Alex had a final fix for the newest GPU
they introduced in rc1, along with one build regression and one
crasher fix.

Cross my fingers that's it for 5.9.

Dave.

drm-fixes-2020-10-09:
drm amdgpu fixes for 5.9 final

amdgpu:
- Fix a crash on renoir if you override the IP discovery parameter
- Fix the build on ARC platforms
- Display fix for Sienna Cichlid
The following changes since commit d10285a25e29f13353bbf7760be8980048c1ef2f:

  drm/nouveau/mem: guard against NULL pointer access in mem_del
(2020-10-07 15:33:09 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-10-09

for you to fetch changes up to dded93ffbb8c4a578adf13b54cd62519908a23f8:

  Merge tag 'amd-drm-fixes-5.9-2020-10-08' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-10-09
13:02:49 +1000)


drm amdgpu fixes for 5.9 final

amdgpu:
- Fix a crash on renoir if you override the IP discovery parameter
- Fix the build on ARC platforms
- Display fix for Sienna Cichlid


Alex Deucher (1):
  drm/amdgpu/swsmu: fix ARC build errors

Dave Airlie (1):
  Merge tag 'amd-drm-fixes-5.9-2020-10-08' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Dirk Gouders (1):
  drm/amdgpu: fix NULL pointer dereference for Renoir

Yongqiang Sun (1):
  drm/amd/display: Change ABM config init interface

 drivers/gpu/drm/amd/amdgpu/soc15.c| 10 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
 .../gpu/drm/amd/display/modules/power/power_helpers.c | 19 +++
 .../gpu/drm/amd/display/modules/power/power_helpers.h |  4 +++-
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c| 14 --
 drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c| 14 --
 6 files changed, 48 insertions(+), 15 deletions(-)


[git pull] drm nouveau fixes for 5.9 final

2020-10-07 Thread Dave Airlie
Hi Linus,

Karol found two last minute nouveau fixes, they both fix crashes, the
TTM one follows what other drivers do already, and the other is for
bailing on load on unrecognised chipsets.

Thanks,
Dave.

drm-fixes-2020-10-08:
drm nouveau fixes for 5.9 final

nouveau:
- fix crash in TTM alloc fail path
- return error earlier for unknown chipsets
The following changes since commit 86fdf61e71046618f6f499542cee12f2348c523c:

  Merge tag 'drm-misc-fixes-2020-10-01' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-10-06
12:38:28 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-10-08

for you to fetch changes up to d10285a25e29f13353bbf7760be8980048c1ef2f:

  drm/nouveau/mem: guard against NULL pointer access in mem_del
(2020-10-07 15:33:09 +1000)


drm nouveau fixes for 5.9 final

nouveau:
- fix crash in TTM alloc fail path
- return error earlier for unknown chipsets


Karol Herbst (2):
  drm/nouveau/device: return error for unknown chipsets
  drm/nouveau/mem: guard against NULL pointer access in mem_del

 drivers/gpu/drm/nouveau/nouveau_mem.c | 2 ++
 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 1 +
 2 files changed, 3 insertions(+)


[git pull] drm fbdev fixes for 5.9 final

2020-10-06 Thread Dave Airlie
Hi Linus,

Daniel queued these up last week and I took a long weekend so didn't
get them out, but fixing the OOB access on get font seems like
something we should land and it's cc'ed stable as well. The other big
change is a partial revert for a regression on android on the clcd
fbdev driver, and one other docs fix.

Dave.

drm-fixes-2020-10-06-1:
drm fixes for 5.9 final

fbdev:
- Re-add FB_ARMCLCD for android.
- Fix global-out-of-bounds read in fbcon_get_font().

core:
- Small doc fix.
The following changes since commit 549738f15da0e5a00275977623be199fbbf7df50:

  Linux 5.9-rc8 (2020-10-04 16:04:34 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-10-06-1

for you to fetch changes up to 86fdf61e71046618f6f499542cee12f2348c523c:

  Merge tag 'drm-misc-fixes-2020-10-01' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-10-06
12:38:28 +1000)


drm fixes for 5.9 final

fbdev:
- Re-add FB_ARMCLCD for android.
- Fix global-out-of-bounds read in fbcon_get_font().

core:
- Small doc fix.


Dave Airlie (1):
  Merge tag 'drm-misc-fixes-2020-10-01' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Mauro Carvalho Chehab (1):
  drm: drm_dsc.h: fix a kernel-doc markup

Peilin Ye (3):
  fbdev, newport_con: Move FONT_EXTRA_WORDS macros into linux/font.h
  Fonts: Support FONT_EXTRA_WORDS macros for built-in fonts
  fbcon: Fix global-out-of-bounds read in fbcon_get_font()

Peter Collingbourne (1):
  Partially revert "video: fbdev: amba-clcd: Retire elder CLCD driver"

 MAINTAINERS |   5 +
 drivers/video/console/newport_con.c |   7 +-
 drivers/video/fbdev/Kconfig |  20 +
 drivers/video/fbdev/Makefile|   1 +
 drivers/video/fbdev/amba-clcd.c | 986 
 drivers/video/fbdev/core/fbcon.c|  12 +
 drivers/video/fbdev/core/fbcon.h|   7 -
 drivers/video/fbdev/core/fbcon_rotate.c |   1 +
 drivers/video/fbdev/core/tileblit.c |   1 +
 include/drm/drm_dsc.h   |   2 +-
 include/linux/amba/clcd-regs.h  |  87 +++
 include/linux/amba/clcd.h   | 290 ++
 include/linux/font.h|  13 +
 lib/fonts/font_10x18.c  |   9 +-
 lib/fonts/font_6x10.c   |   9 +-
 lib/fonts/font_6x11.c   |   9 +-
 lib/fonts/font_7x14.c   |   9 +-
 lib/fonts/font_8x16.c   |   9 +-
 lib/fonts/font_8x8.c|   9 +-
 lib/fonts/font_acorn_8x8.c  |   9 +-
 lib/fonts/font_mini_4x6.c   |   8 +-
 lib/fonts/font_pearl_8x8.c  |   9 +-
 lib/fonts/font_sun12x22.c   |   9 +-
 lib/fonts/font_sun8x16.c|   7 +-
 lib/fonts/font_ter16x32.c   |   9 +-
 25 files changed, 1469 insertions(+), 68 deletions(-)
 create mode 100644 drivers/video/fbdev/amba-clcd.c
 create mode 100644 include/linux/amba/clcd-regs.h
 create mode 100644 include/linux/amba/clcd.h


[git pull] drm amdgpu + vmwgfx fixes for 5.9-rc8

2020-10-01 Thread Dave Airlie
Hi Linus,

Just dequeuing these a bit early as the AMD ones are bit larger than
I'd prefer, but Alex missed last week so it's a double set of fixes.
The larger ones are just register header fixes for the new chips that
were just introduced in rc1 along with some new PCI IDs for new hw.
Otherwise it is usual fixes.

The vmwgfx fix was due to some testing I was doing and found we
weren't booting properly, vmware had the fix internally so hurried it
out to me.

I'm off tomorrow and Monday but I'll be around in case there are any
major issues with this, or if I get set of intel or misc fixes come
in.

Dave.

drm-fixes-2020-10-01-1:
drm amd/vmwgfx fixes for 5.9-rc8

vmwgfx:
- fix a regression due to TTM refactor

amdgpu:
- Fix potential double free in userptr handling
- Sienna Cichlid and Navy Flounder updates
- Add Sienna Cichlid PCI IDs
- Drop experimental flag for navi12
- Raven fixes
- Renoir fixes
- HDCP fix
- DCN3 fix for clang and older versions of gcc
- Fix a runtime pm refcount issue
The following changes since commit a1b8638ba1320e6684aa98233c15255eb803fac7:

  Linux 5.9-rc7 (2020-09-27 14:38:10 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-10-01-1

for you to fetch changes up to 132d7c8abeaa6b10ed5f47330b0f06c6dd220a43:

  Merge tag 'amd-drm-fixes-5.9-2020-09-30' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-10-01
15:25:33 +1000)


drm amd/vmwgfx fixes for 5.9-rc8

vmwgfx:
- fix a regression due to TTM refactor

amdgpu:
- Fix potential double free in userptr handling
- Sienna Cichlid and Navy Flounder udpates
- Add Sienna Cichlid PCI IDs
- Drop experimental flag for navi12
- Raven fixes
- Renoir fixes
- HDCP fix
- DCN3 fix for clang and older versions of gcc
- Fix a runtime pm refcount issue


Alex Deucher (6):
  drm/amdgpu: add the GC 10.3 VRS registers
  drm/amdgpu: add VCN 3.0 AV1 registers
  drm/amdgpu: use the AV1 defines for VCN 3.0
  drm/amdgpu: remove experimental flag from navi12
  drm/amdgpu/display: fix CFLAGS setup for DCN30
  drm/amdgpu/swsmu/smu12: fix force clock handling for mclk

Dave Airlie (2):
  Merge branch 'vmwgfx-fixes-5.9' of
git://people.freedesktop.org/~sroland/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.9-2020-09-30' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Dirk Gouders (1):
  drm/amd/display: remove duplicate call to rn_vbios_smu_get_smu_version()

Evan Quan (1):
  drm/amd/pm: setup APU dpm clock table in SMU HW initialization

Flora Cui (1):
  drm/amd/display: fix return value check for hdcp_work

Jean Delvare (1):
  drm/amdgpu: restore proper ref count in amdgpu_display_crtc_set_config

Jiansong Chen (2):
  drm/amdgpu: remove gpu_info fw support for sienna_cichlid etc.
  drm/amdgpu: disable gfxoff temporarily for navy_flounder

Likun Gao (1):
  drm/amdgpu: add device ID for sienna_cichlid (v2)

Philip Yang (1):
  drm/amdgpu: prevent double kfree ttm->sg

Sudheesh Mavila (1):
  drm/amd/pm: Removed fixed clock in auto mode DPM

Zack Rusin (1):
  drm/vmwgfx: Fix error handling in get_node

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 12 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c|  1 +
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c |  3 ++
 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c  | 16 +++
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c |  2 +-
 .../drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c  |  1 -
 drivers/gpu/drm/amd/display/dc/dcn30/Makefile  | 18 +++-
 .../amd/include/asic_reg/gc/gc_10_3_0_default.h|  2 +
 .../drm/amd/include/asic_reg/gc/gc_10_3_0_offset.h |  4 ++
 .../amd/include/asic_reg/gc/gc_10_3_0_sh_mask.h| 50 ++
 .../amd/include/asic_reg/vcn/vcn_3_0_0_sh_mask.h   | 34 +++
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 22 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c  | 10 +++--
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c |  8 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c  |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_thp.c|  2 +-
 18 files changed, 156 insertions(+), 43 deletions(-)


Re: linux-next: build failure after merge of the drm tree

2020-09-28 Thread Dave Airlie
On Mon, 28 Sep 2020 at 16:05, Christoph Hellwig  wrote:
>
> On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the drm tree, today's linux-next build (x86_64 allmodconfig)
> > failed like this:
>
> The driver needs to switch do dma_alloc_noncoherent + dma_sync_single*
> like the other drivers converted in the dma tree.  Paul, let me know if
> you have any questions.

Is this possible in drm-next now (it's 5.9.0-rc5 based)?

or will I need to get a stable shared git tree that goes into drm-next
and you send to Linus early in the MR?

Dave.


[git pull] drm fixes for 5.9-rc7

2020-09-24 Thread Dave Airlie
Hi Linus,

Due to the dax merge fail in rc6, this has two backmerges, Intel
pulled in a later point in time to fix their CI systems, I also pulled
in an earlier point to fix my local builds.

Otherwise fairly quiet, a couple of i915 fixes, one dma-buf fix, one
vc4 and two sun4i changes.

I realised I missed the sun4i + vc4 fixes in the tag itself. They are below.

Dave.

vc4:
- fill asoc card owner

sun4i:
- program secondary CSC correctly.

drm-fixes-2020-09-25:
drm fixes for 5.9-rc7

dma-buf:
- Single null pointer deref fix for dma-buf

i915:
- Fix selftest reference to stack data out of scope
- Fix GVT null pointer dereference
The following changes since commit 98477740630f270aecf648f1d6a9dbc6027d4ff1:

  Merge branch 'rcu/urgent' of
git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
(2020-09-21 12:42:31 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-25

for you to fetch changes up to ba78755e0c25dec4151880a14f523e929b2052c6:

  Merge tag 'drm-misc-fixes-2020-09-24' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-09-25
11:30:00 +1000)


drm fixes for 5.9-rc7

dma-buf:
- Single null pointer deref fix for dma-buf

i915:
- Fix selftest reference to stack data out of scope
- Fix GVT null pointer dereference


Charan Teja Reddy (1):
  dmabuf: fix NULL pointer dereference in dma_buf_release()

Chris Wilson (1):
  drm/i915/selftests: Push the fake iommu device from the stack to data

Dave Airlie (4):
  Merge tag 'drm-misc-fixes-2020-09-18' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  BackMerge commit '98477740630f270aecf648f1d6a9dbc6027d4ff1' into drm-fixes
  Merge tag 'drm-intel-fixes-2020-09-24' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'drm-misc-fixes-2020-09-24' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Jani Nikula (2):
  Merge remote-tracking branch 'origin/master' into drm-intel-fixes
  Merge tag 'gvt-fixes-2020-09-17' of
https://github.com/intel/gvt-linux into drm-intel-fixes

Marek Szyprowski (1):
  drm/vc4/vc4_hdmi: fill ASoC card owner

Martin Cerveny (2):
  drm/sun4i: sun8i-csc: Secondary CSC register correction
  drm/sun4i: mixer: Extend regmap max_register

Zhenyu Wang (1):
  drm/i915/gvt: Fix port number for BDW on EDID region setup

 drivers/dma-buf/dma-buf.c|  2 ++
 drivers/gpu/drm/i915/gvt/vgpu.c  |  6 +-
 drivers/gpu/drm/i915/selftests/mock_gem_device.c | 12 +---
 drivers/gpu/drm/sun4i/sun8i_csc.h|  2 +-
 drivers/gpu/drm/sun4i/sun8i_mixer.c  |  2 +-
 drivers/gpu/drm/vc4/vc4_hdmi.c   |  1 +
 6 files changed, 15 insertions(+), 10 deletions(-)


[git pull] drm fixes for 5.9-rc6

2020-09-17 Thread Dave Airlie
Hi Linus,

A bunch of small fixes, some of the i915 ones have been out for a
while and got better commit msg explaining some better reasoning
behind them. (hopefully this trend continues). Otherwise there a few
AMD related ones mostly small, one radeon PLL regression fix and a
bunch of small mediatek fixes.

I'm going to be offline for a couple of days in a few hours time, so
if anything is wrong let Daniel know as well.

Dave.

drm-fixes-2020-09-18:
drm fixes for 5.9-rc6

amdgpu:
- Sienna Cichlid fixes
- Navy Flounder fixes
- DC fixes

amdkfd:
- Fix a GPU reset crash
- Fix a memory leak

radeon:
- Revert a PLL fix that broke other boards

i915:
- Avoid exposing a partially constructed context
- Use RCU instead of mutex for context termination list iteration
- Avoid data race reported by KCSAN
- Filter wake_flags passed to default_wake_function

mediatek:
- Fix scrolling of panel
- Remove duplicated include
- Use CPU when fail to get cmdq event
- Add missing put_device() call
The following changes since commit 856deb866d16e29bd65952e0289066f6078af773:

  Linux 5.9-rc5 (2020-09-13 16:06:00 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-18

for you to fetch changes up to 1f08fde70075784d28d1687d0e75871e81cc1173:

  Merge tag 'mediatek-drm-fixes-5.9' of
https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux
into drm-fixes (2020-09-18 08:52:06 +1000)


drm fixes for 5.9-rc6

amdgpu:
- Sienna Cichlid fixes
- Navy Flounder fixes
- DC fixes

amdkfd:
- Fix a GPU reset crash
- Fix a memory leak

radeon:
- Revert a PLL fix that broke other boards

i915:
- Avoid exposing a partially constructed context
- Use RCU instead of mutex for context termination list iteration
- Avoid data race reported by KCSAN
- Filter wake_flags passed to default_wake_function

mediatek:
- Fix scrolling of panel
- Remove duplicated include
- Use CPU when fail to get cmdq event
- Add missing put_device() call


Andrey Grodzovsky (1):
  drm/amdgpu: Include sienna_cichlid in USBC PD FW support.

Bhawanpreet Lakha (2):
  drm/amd/display: Don't use DRM_ERROR() for DTM add topology
  drm/amd/display: Don't log hdcp module warnings in dmesg

Chris Wilson (4):
  drm/i915/gem: Delay tracking the GEM context until it is registered
  drm/i915/gem: Reduce context termination list iteration guard to RCU
  drm/i915: Be wary of data races when reading the active execlists
  drm/i915: Filter wake_flags passed to default_wake_function

Christian König (1):
  drm/radeon: revert "Prefer lower feedback dividers"

Chun-Kuang Hu (1):
  drm/mediatek: Use CPU when fail to get cmdq event

Dave Airlie (3):
  Merge tag 'amd-drm-fixes-5.9-2020-09-17' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-09-17' of
ssh://git.freedesktop.org/git/drm/drm-intel into drm-fixes
  Merge tag 'mediatek-drm-fixes-5.9' of
https://git.kernel.org/.../chunkuang.hu/linux into drm-fixes

Dennis Li (2):
  drm/kfd: fix a system crash issue during GPU recovery
  drm/amdkfd: fix a memory leak issue

Jiansong Chen (2):
  drm/amd/pm: support runtime pptable update for sienna_cichlid etc.
  drm/amdgpu: declare ta firmware for navy_flounder

Jitao Shi (1):
  drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp

Jun Lei (1):
  drm/amd/display: update nv1x stutter latencies

Michel Dänzer (1):
  drm/amdgpu/dc: Require primary plane to be enabled whenever the CRTC is

Wang Hai (1):
  drm/mediatek: Remove duplicated include

Yu Kuai (4):
  drm/mediatek: Add missing put_device() call in mtk_ddp_comp_init()
  drm/mediatek: Add exception handing in mtk_drm_probe() if
component init fail
  drm/mediatek: Add missing put_device() call in mtk_drm_kms_init()
  drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c |  2 +-
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  |  4 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 32 +--
 .../gpu/drm/amd/display/dc/dcn20/dcn20_resource.c  |  4 +-
 .../gpu/drm/amd/display/modules/hdcp/hdcp_log.h|  2 +-
 .../gpu/drm/amd/display/modules/hdcp/hdcp_psp.c|  2 +-
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 12 --
 drivers/gpu/drm/i915/gem/i915_gem_context.c| 48 ++
 drivers/gpu/drm/i915/gt/intel_lrc.c| 15 +--
 drivers/gpu/drm/i915/i915_request.c| 25 ++-
 drivers/gpu/drm/i915/i915_sw_fence.c   | 10 +++--
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c| 20 +
 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c|  1 +
 drivers/gpu/drm/mediatek/mtk

Re: General protection fault: RIP: 0010:free_block+0xdc/0x1f0

2020-09-15 Thread Dave Airlie
cc'ing some more people.

On Tue, 15 Sep 2020 at 23:07, Paul Menzel  wrote:
>
> Dear Andrew folks, dear Linux folks,
>
>
> With Linux 5.9-rc4 on a Dell OptiPlex 5080 with Intel Core i7-10700 CPU
> @ 2.90GHz, and external
>
>  01:00.0 VGA compatible controller [0300]: Advanced Micro Devices,
> Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] [1002:6611] (rev 87)
>
> running graphical demanding applications glmark2 [1] and the Phoronix
> Test Suite [2] benchmark *pts/desktop-graphics* [3]
>
>  $ git describe --tags
>  v10.0.0m1-13-g0b5ddc3c0
>
> I got three general protection faults, and it restarted or froze (no
> input devices working, screen froze and even network card (no ping)).
>
> Here the system restarted itself:
>
> > kernel: general protection fault, probably for non-canonical address 
> > 0xdead0100:  [#1] SMP NOPTI
> > kernel: CPU: 2 PID: 9702 Comm: glmark2 Kdump: loaded Not tainted 
> > 5.9.0-rc4.mx64.343 #1
> > kernel: Hardware name: Dell Inc. OptiPlex 5080/032W55, BIOS 1.1.7 08/17/2020
> > kernel: RIP: 0010:free_block+0xdc/0x1f0
>
> Here it froze:
>
> > [14639.665745] general protection fault, probably for non-canonical address 
> > 0xdead0100:  [#1] SMP NOPTI
> > [14639.675917] CPU: 15 PID: 23094 Comm: pvpython Kdump: loaded Not tainted 
> > 5.9.0-rc4.mx64.343 #1
> > [14639.684431] Hardware name: Dell Inc. OptiPlex 5080/032W55, BIOS 1.1.7 
> > 08/17/2020
> > [14639.691823] RIP: 0010:free_block+0xdc/0x1f0
>
> Here it froze:
>
> > kernel: general protection fault, probably for non-canonical address 
> > 0xdead0100:  [#1] SMP NOPTI
> > kernel: CPU: 15 PID: 23094 Comm: pvpython Kdump: loaded Not tainted 
> > 5.9.0-rc4.mx64.343 #1
> > kernel: Hardware name: Dell Inc. OptiPlex 5080/032W55, BIOS 1.1.7 08/17/2020
> > kernel: RIP: 0010:free_block+0xdc/0x1f0
>
> Running `scripts/decode_stacktrace.sh`:
>
> > linux-5.9_rc4-343.x86_64/source$ scripts/decode_stacktrace.sh vmlinux < 
> > optiplex-5080-linux-5.9-rc4-gp-pvpython.txt
> > [14528.718656] cgroup: fork rejected by pids controller in 
> > /user.slice/user-5272.slice/session-c6.scope
> > [14639.665745] general protection fault, probably for non-canonical address 
> > 0xdead0100:  [#1] SMP NOPTI
> > [14639.675917] CPU: 15 PID: 23094 Comm: pvpython Kdump: loaded Not tainted 
> > 5.9.0-rc4.mx64.343 #1
> > [14639.684431] Hardware name: Dell Inc. OptiPlex 5080/032W55, BIOS 1.1.7 
> > 08/17/2020
> > [14639.691823] RIP: 0010:free_block (./include/linux/list.h:112 
> > ./include/linux/list.h:135 ./include/linux/list.h:146 mm/slab.c:3336)
> > [14639.696006] Code: 00 48 01 d0 48 c1 e8 0c 48 c1 e0 06 4c 01 e8 48 8b 50 
> > 08 48 8d 4a ff 83 e2 01 48 0f 45 c1 48 8b 48 08 48 8b 50 10 4c 8d 78 08 
> > <48> 89 51 08 48 89 0a 4c 89 da 48 2b 50 28 4c 89 60 08 48 89 68 10
> > All code
> > 
> >0: 00 48 01add%cl,0x1(%rax)
> >3: d0 48 c1rorb   -0x3f(%rax)
> >6: e8 0c 48 c1 e0  callq  0xe0c14817
> >b: 06  (bad)
> >c: 4c 01 e8add%r13,%rax
> >f: 48 8b 50 08 mov0x8(%rax),%rdx
> >   13: 48 8d 4a ff lea-0x1(%rdx),%rcx
> >   17: 83 e2 01and$0x1,%edx
> >   1a: 48 0f 45 c1 cmovne %rcx,%rax
> >   1e: 48 8b 48 08 mov0x8(%rax),%rcx
> >   22: 48 8b 50 10 mov0x10(%rax),%rdx
> >   26: 4c 8d 78 08 lea0x8(%rax),%r15
> >   2a:*48 89 51 08 mov%rdx,0x8(%rcx)   <-- 
> > trapping instruction
> >   2e: 48 89 0amov%rcx,(%rdx)
> >   31: 4c 89 damov%r11,%rdx
> >   34: 48 2b 50 28 sub0x28(%rax),%rdx
> >   38: 4c 89 60 08 mov%r12,0x8(%rax)
> >   3c: 48 89 68 10 mov%rbp,0x10(%rax)
> >
> > Code starting with the faulting instruction
> > ===
> >0: 48 89 51 08 mov%rdx,0x8(%rcx)
> >4: 48 89 0amov%rcx,(%rdx)
> >7: 4c 89 damov%r11,%rdx
> >a: 48 2b 50 28 sub0x28(%rax),%rdx
> >e: 4c 89 60 08 mov%r12,0x8(%rax)
> >   12: 48 89 68 10 mov%rbp,0x10(%rax)
> > [14639.714747] RSP: 0018:c9001c26fab8 EFLAGS: 00010046
> > [14639.719970] RAX: ea000d193600 RBX: 8000 RCX: 
> > dead0100
> > [14639.727099] RDX: dead0122 RSI: 88842d5f3ef0 RDI: 
> > 88842b440300
> > [14639.734225] RBP: dead0122 R08: c9001c26fb30 R09: 
> > 88842b441280
> > [14639.741351] R10: 000f R11: 8883464d80c0 R12: 
> > dead0100
> > [14639.748477] R13: ea00 R14: 88842d5f3ff0 R15: 
> > ea000d193608
> > [14639.755604] FS:  7fd3b7e8f040() GS:88842d5c() 
> > knlGS:
> > [14639.763692] CS:  0010 DS:  ES:  CR0: 80050033
> > 

[git pull] drm fixes for 5.9-rc5

2020-09-11 Thread Dave Airlie
Hi Linus,

Regular fixes, not much a major amount. One thing though is Laurent
fixed some Kconfig issues, and I'm carrying the rapidio kconfig change
so the drm one for xlnx driver works. He hadn't got a response from
rapidio maintainers.

Otherwise, virtio, sun4i, tve200, ingenic have some fixes, one audio
fix for i915 and a core docs fix.

DAve.


drm-fixes-2020-09-11:
drm fixes for 5.9-rc5

rapidio/xlnx kconfig fix.

core:
- Documentation fix.

i915:
- audio regression fix

virtio:
- Fix double free in virtio.
- Fix virtio unblank.
- Remove output->enabled from virtio, as it should use crtc_state.

sun4i:
- Add missing put_device in sun4i, and other fixes.
- Handle sun4i alpha on lowest plane correctly.

tv200:
- Fix tve200 enable/disable.

ingenic
- Small ingenic fixes.
The following changes since commit 20561da3a2e1e0e827ef5510cb0f74bcfd377e41:

  Revert "drm/i915/gem: Delete unused code" (2020-09-08 15:45:27 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-11

for you to fetch changes up to 7f7a47952c0f981f9c9a6409c8cf8d025d55af64:

  Merge tag 'drm-misc-fixes-2020-09-09' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-09-11
09:49:23 +1000)


drm fixes for 5.9-rc5

rapidio/xlnx kconfig fix.

core:
- Documentation fix.

i915:
- audio regression fix

virtio:
- Fix double free in virtio.
- Fix virtio unblank.
- Remove output->enabled from virtio, as it should use crtc_state.

sun4i:
- Add missing put_device in sun4i, and other fixes.
- Handle sun4i alpha on lowest plane correctly.

tv200:
- Fix tve200 enable/disable.

ingenic
- Small ingenic fixes.

----
Dave Airlie (3):
  Merge tag 'drm-xlnx-dpsub-fixes-20200905' of
git://linuxtv.org/pinchartl/media into drm-fixes
  Merge tag 'drm-intel-fixes-2020-09-10' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'drm-misc-fixes-2020-09-09' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Gerd Hoffmann (2):
  drm/virtio: fix unblank
  drm/virtio: drop virtio_gpu_output->enabled

Gurchetan Singh (1):
  drm/virtio: Revert "drm/virtio: Call the right shmem helpers"

Jernej Skrabec (1):
  drm/sun4i: Fix DE2 YVU handling

Kai Vehmanen (1):
  drm/i915: fix regression leading to display audio probe failure on GLK

Krzysztof Kozlowski (2):
  dma-buf: Fix kerneldoc of dma_buf_set_name()
  dma-buf: fence-chain: Document missing dma_fence_chain_init()
parameter in kerneldoc

Laurent Pinchart (2):
  rapidio: Replace 'select' DMAENGINES 'with depends on'
  drm: xlnx: dpsub: Fix DMADEVICES Kconfig dependency

Linus Walleij (1):
  drm/tve200: Stabilize enable/disable

Maxime Ripard (2):
  drm/sun4i: backend: Support alpha property on lowest plane
  drm/sun4i: backend: Disable alpha on the lowest plane on the A20

Ondrej Jirman (1):
  drm/sun4i: Fix dsi dcs long write function

Paul Cercueil (2):
  drm/ingenic: Fix leak of device_node pointer
  drm/ingenic: Fix driver not probing when IPU port is missing

Randy Dunlap (1):
  Documentation: fix dma-buf.rst underline length warning

Yu Kuai (1):
  drm/sun4i: add missing put_device() call in sun8i_r40_tcon_tv_set_mux()

 Documentation/driver-api/dma-buf.rst |  2 +-
 drivers/dma-buf/dma-buf.c|  6 +++---
 drivers/dma-buf/dma-fence-chain.c|  1 +
 drivers/gpu/drm/i915/display/intel_display.c | 10 --
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c| 20 
 drivers/gpu/drm/sun4i/sun4i_backend.c|  4 +---
 drivers/gpu/drm/sun4i/sun4i_tcon.c   |  8 ++--
 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c   |  4 ++--
 drivers/gpu/drm/sun4i/sun8i_vi_layer.c   |  2 +-
 drivers/gpu/drm/tve200/tve200_display.c  | 22 +-
 drivers/gpu/drm/virtio/virtgpu_display.c | 15 +++
 drivers/gpu/drm/virtio/virtgpu_drv.h |  2 +-
 drivers/gpu/drm/virtio/virtgpu_object.c  |  8 +++-
 drivers/gpu/drm/virtio/virtgpu_plane.c   |  6 --
 drivers/gpu/drm/xlnx/Kconfig |  1 +
 drivers/rapidio/Kconfig  |  2 +-
 16 files changed, 77 insertions(+), 36 deletions(-)


[git pull] drm fixes for 5.9-rc5 (special edition)

2020-09-08 Thread Dave Airlie
Hi Linus,

The i915 reverts are going to be a bit of a conflict mess for next, so
I decided to dequeue them now, along with some msm fixes for a ring
corruption issue, that Rob sent over the weekend.

Dave.

drm-fixes-2020-09-08:
drm fixes for 5.9-rc5 (special edition)

i915:
- revert gpu relocation changes due to regression

msm:
- fixes for RPTR corruption issue
The following changes since commit f4d51dffc6c01a9e94650d95ce0104964f8ae822:

  Linux 5.9-rc4 (2020-09-06 17:11:40 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-08

for you to fetch changes up to 20561da3a2e1e0e827ef5510cb0f74bcfd377e41:

  Revert "drm/i915/gem: Delete unused code" (2020-09-08 15:45:27 +1000)


drm fixes for 5.9-rc5 (special edition)

i915:
- revert gpu relocation changes due to regression

msm:
- fixes for RPTR corruption issue

----
Dave Airlie (4):
  Merge tag 'drm-msm-fixes-2020-09-04' of
https://gitlab.freedesktop.org/drm/msm into drm-fixes
  Revert "drm/i915: Remove i915_gem_object_get_dirty_page()"
  Revert "drm/i915/gem: Async GPU relocations only"
  Revert "drm/i915/gem: Delete unused code"

Jordan Crouse (4):
  drm/msm: Split the a5xx preemption record
  drm/msm: Enable expanded apriv support for a650
  drm/msm: Disable preemption on all 5xx targets
  drm/msm: Disable the RPTR shadow

 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 314 +++--
 drivers/gpu/drm/i915/gem/i915_gem_object.h |   4 +
 drivers/gpu/drm/i915/gem/i915_gem_pages.c  |  14 +
 .../drm/i915/gem/selftests/i915_gem_execbuffer.c   |  21 +-
 drivers/gpu/drm/msm/adreno/a2xx_gpu.c  |   5 +
 drivers/gpu/drm/msm/adreno/a3xx_gpu.c  |  10 +
 drivers/gpu/drm/msm/adreno/a4xx_gpu.c  |  10 +
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c  |  14 +-
 drivers/gpu/drm/msm/adreno/a5xx_gpu.h  |   1 +
 drivers/gpu/drm/msm/adreno/a5xx_preempt.c  |  25 +-
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c  |  13 +-
 drivers/gpu/drm/msm/adreno/adreno_gpu.c|  27 +-
 drivers/gpu/drm/msm/msm_gpu.c  |   2 +-
 drivers/gpu/drm/msm/msm_gpu.h  |  11 +
 drivers/gpu/drm/msm/msm_ringbuffer.c   |   4 +-
 15 files changed, 411 insertions(+), 64 deletions(-)


Re: [git pull] drm fixes for 5.9-rc4

2020-09-06 Thread Dave Airlie
On Sat, 5 Sep 2020 at 05:02, Linus Torvalds
 wrote:
>
> On Thu, Sep 3, 2020 at 8:53 PM Dave Airlie  wrote:
> >
> > Not much going on this week, nouveau has a display hw bug workaround,
> > amdgpu has some PM fixes and CIK regression fixes, one single radeon
> > PLL fix, and a couple of i915 display fixes.
>
> Any movement on the i915 relocation issue? I've only seen the one
> report for the 64-bit case, but clearly there was more going on than
> just the missing page table flush on 32-bit..

I'm going to pull in the reverts this week I think, Intel are changing
some part of their patchflows to me, but the 5.10 queue had to revert
some stuff in this area for other reasons, so I'd like to sanely get
those into 5.9 as well.

Dave.


[git pull] drm fixes for 5.9-rc4

2020-09-03 Thread Dave Airlie
Hi Linus,

Not much going on this week, nouveau has a display hw bug workaround,
amdgpu has some PM fixes and CIK regression fixes, one single radeon
PLL fix, and a couple of i915 display fixes.

Dave.

drm-fixes-2020-09-04:
drm fixes for 5.9-rc4

amdgpu:
- Fix for 32bit systems
- SW CTF fix
- Update for Sienna Cichlid
- CIK bug fixes

radeon:
- PLL fix

i915:
- Clang build warning fix
- HDCP fixes

nouveau:
- display fixes
The following changes since commit f75aef392f869018f78cfedf3c320a6b3fcfda6b:

  Linux 5.9-rc3 (2020-08-30 16:01:54 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-04

for you to fetch changes up to d37d56920004cae612fa32d1f92aaacca5e145f7:

  Merge branch 'linux-5.9' of git://github.com/skeggsb/linux into
drm-fixes (2020-09-04 11:14:49 +1000)


drm fixes for 5.9-rc4

amdgpu:
- Fix for 32bit systems
- SW CTF fix
- Update for Sienna Cichlid
- CIK bug fixes

radeon:
- PLL fix

i915:
- Clang build warning fix
- HDCP fixes

nouveau:
- display fixes


Ben Skeggs (3):
  drm/nouveau/kms/nv50-: add some whitespace before debug message
  drm/nouveau/kms/nv50-gp1xx: disable notifies again after core update
  drm/nouveau/kms/nv50-gp1xx: add WAR for EVO push buffer HW bug

Dave Airlie (3):
  Merge tag 'amd-drm-fixes-5.9-2020-09-03' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-09-03' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge branch 'linux-5.9' of git://github.com/skeggsb/linux into drm-fixes

Evan Quan (1):
  drm/amd/pm: avoid false alarm due to confusing
softwareshutdowntemp setting

Jiansong Chen (1):
  drm/amd/pm: enable MP0 DPM for sienna_cichlid

Kai-Heng Feng (1):
  drm/radeon: Prefer lower feedback dividers

Kevin Wang (1):
  drm/amd/pm: fix is_dpm_running() run error on 32bit system

Lyude Paul (1):
  drm/nouveau/kms/gv100-: Include correct push header in crcc37d.c

Nathan Chancellor (1):
  drm/i915/display: Ensure that ret is always initialized in
icl_combo_phy_verify_state

Sandeep Raghuraman (2):
  drm/amdgpu: Specify get_argument function for ci_smu_funcs
  drm/amdgpu: Fix bug in reporting voltage for CIK

Sean Paul (2):
  drm/i915: Fix sha_text population code
  drm/i915: Clear the repeater bit on HDCP disable

 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c   | 10 +--
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c   |  3 +-
 .../gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c   | 14 --
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 10 +--
 drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 14 +++---
 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c   |  2 ++
 drivers/gpu/drm/i915/display/intel_combo_phy.c |  4 +--
 drivers/gpu/drm/i915/display/intel_hdcp.c  | 32 ++
 drivers/gpu/drm/nouveau/dispnv50/core507d.c|  5 +++-
 drivers/gpu/drm/nouveau/dispnv50/crcc37d.c |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c|  6 
 drivers/gpu/drm/nouveau/include/nvif/push507c.h|  2 +-
 drivers/gpu/drm/radeon/radeon_display.c|  2 +-
 include/drm/drm_hdcp.h |  3 ++
 14 files changed, 84 insertions(+), 25 deletions(-)


[git pull] drm fixes for 5.9-rc3

2020-08-27 Thread Dave Airlie
Hey Linus,

As expected a bit of an rc3 uptick, amdgpu and msm are the main ones,
one msm patch was from the merge window, but had dependencies and we
dropped it until the other tree had landed. Otherwise it's a couple of
fixes for core, and etnaviv, and single i915, exynos, omap fixes.

I'm still tracking the Sandybridge gpu relocations issue, if we don't
see much movement I might just queue up the reverts. I'll talk to
Daniel next week once he's back from holidays.

Dave.

drm-fixes-2020-08-28:
drm fixes for 5.9-rc3

core:
- Take modeset bkl for legacy drivers.

dp_mst:
- Allow null crtc in dp_mst.

i915:
- Fix command parser desc matching with masks

amdgpu:
- Misc display fixes
- Backlight fixes
- MPO fix for DCN1
- Fixes for Sienna Cichlid
- Fixes for Navy Flounder
- Vega SW CTF fixes
- SMU fix for Raven
- Fix a possible overflow in INFO ioctl
- Gfx10 clockgating fix

msm:
- opp/bw scaling patch followup
- frequency restoring fux
- vblank in atomic commit fix
- dpu modesetting fixes
- fencing fix

etnaviv:
- scheduler interaction fix
- gpu init regression fix

exynos:
- Just drop __iommu annotation to fix sparse warning.

omap:
- locking state fix.
The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd:

  Linux 5.9-rc2 (2020-08-23 14:08:43 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-08-28

for you to fetch changes up to 2a3f9da32de4616f0104209194e9bd3dfae092c9:

  Merge tag 'drm-intel-fixes-2020-08-27' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2020-08-28
11:02:53 +1000)


drm fixes for 5.9-rc3

core:
- Take modeset bkl for legacy drivers.

dp_mst:
- Allow null crtc in dp_mst.

i915:
- Fix command parser desc matching with masks

amdgpu:
- Misc display fixes
- Backlight fixes
- MPO fix for DCN1
- Fixes for Sienna Cichlid
- Fixes for Navy Flounder
- Vega SW CTF fixes
- SMU fix for Raven
- Fix a possible overflow in INFO ioctl
- Gfx10 clockgating fix

msm:
- opp/bw scaling patch followup
- frequency restoring fux
- vblank in atomic commit fix
- dpu modesetting fixes
- fencing fix

etnaviv:
- scheduler interaction fix
- gpu init regression fix

exynos:
- Just drop __iommu annotation to fix sparse warning.

omap:
- locking state fix.


Alex Deucher (1):
  drm/amdgpu: Fix buffer overflow in INFO ioctl

Alexander Monakov (1):
  drm/amd/display: use correct scale for actual_brightness

Bhawanpreet Lakha (1):
  drm/dp_mst: Don't return error code when crtc is null

Brandon Syu (1):
  drm/amd/display: Keep current gain when ABM disable immediately

Christian Gmeiner (1):
  drm/etnaviv: fix external abort seen on GC600 rev 0x19

Daniel Vetter (1):
  drm/modeset-lock: Take the modeset BKL for legacy drivers

Dave Airlie (6):
  Merge tag 'exynos-drm-fixes-v5.9-rc3' of
git://git.kernel.org/.../daeinki/drm-exynos into drm-fixes
  Merge branch 'etnaviv/fixes' of
https://git.pengutronix.de/git/lst/linux into drm-fixes
  Merge tag 'drm-msm-fixes-2020-08-24' of
https://gitlab.freedesktop.org/drm/msm into drm-fixes
  Merge tag 'amd-drm-fixes-5.9-2020-08-26' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-08-26' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2020-08-27' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Dinghao Liu (1):
  drm/amd/display: Fix memleak in amdgpu_dm_mode_config_init

Dmitry Baryshkov (1):
  drm/msm/a6xx: fix gmu start on newer firmware

Evan Quan (4):
  drm/amd/pm: correct Vega10 swctf limit setting
  drm/amd/pm: correct Vega12 swctf limit setting
  drm/amd/pm: correct Vega20 swctf limit setting
  drm/amd/pm: correct the thermal alert temperature limit settings

Furquan Shaikh (1):
  drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to
0 in amdgpu_dm_update_backlight_caps

Jaehyun Chung (1):
  drm/amd/display: Revert HDCP disable sequence change

Jiansong Chen (5):
  drm/amd/pm: enable run_btc callback for sienna_cichlid
  drm/amd/pm: set VCN pg per instances
  drm/amdgpu/gfx10: refine mgcg setting
  drm/amdgpu: use MODE1 reset for navy_flounder by default
  drm/amdgpu: disable runtime pm for navy_flounder

Jonathan Marek (1):
  drm/msm/a6xx: fix frequency not always being restored on GMU resume

Kalyan Thota (2):
  drm/msm/dpu: Fix reservation failures in modeset
  drm/msm/dpu: Fix scale params in plane validation

Krishna Manikandan (1):
  drm/msm: add shutdown support for display platform_driver

Lucas Stach (1):
  drm/etnaviv: always start/stop scheduler in timeout processing

Maarten Lankhorst (1):
  Merge tag 'v5.9-rc2' into drm-misc-fixes

Marek Szyprowski (1):
  drm/exynos: gem: Fix sparse warning

Mika Kuoppala (1

Re: [Intel-gfx] 5.9-rc1: graphics regression moved from -next to mainline

2020-08-26 Thread Dave Airlie
On Thu, 27 Aug 2020 at 06:44, Harald Arnesen  wrote:
>
> Linus Torvalds [26.08.2020 20:04]:
>
> > On Wed, Aug 26, 2020 at 2:30 AM Harald Arnesen  wrote:
> >> Somehow related to lightdm or xfce4? However, it is a regression, since
> >> kernel 5.8 works.
> > Yeah, apparently there's something else wrong with the relocation changes 
> > too.
> >
> > That said, does that patch at
> >
> >   https://lore.kernel.org/intel-gfx/20200821123746.16904-1-j...@8bytes.org/
> >
> > change things at all? If there are two independent bugs, maybe
> > applying that patch might at least give you an oops that gets saved in
> > the logs?
> >
> > (it might be worth waiting a bit after the machine locks up in case
> > the machine is alive enough so sync logs after a bit.. If ssh works,
> > that's obviously better yet)
>
> No, doesn't help. And I was wrong, ssh does not work at all when the
> display locks up.

Did you say what hw you had? is it the same hw as Pavel or different?

Dave.


Re: [PATCH 00/49] DRM driver for Hikey 970

2020-08-24 Thread Dave Airlie
On Thu, 20 Aug 2020 at 20:02, Laurent Pinchart
 wrote:
>
> Hi Mauro,
>
> On Thu, Aug 20, 2020 at 09:03:26AM +0200, Mauro Carvalho Chehab wrote:
> > Em Wed, 19 Aug 2020 12:52:06 -0700 John Stultz escreveu:
> > > On Wed, Aug 19, 2020 at 8:31 AM Laurent Pinchart wrote:
> > > > On Wed, Aug 19, 2020 at 05:21:20PM +0200, Sam Ravnborg wrote:
> > > > > On Wed, Aug 19, 2020 at 01:45:28PM +0200, Mauro Carvalho Chehab wrote:
> > > > > > This patch series port the out-of-tree driver for Hikey 970 (which
> > > > > > should also support Hikey 960) from the official 96boards tree:
> > > > > >
> > > > > >https://github.com/96boards-hikey/linux/tree/hikey970-v4.9
> > > > > >
> > > > > > Based on his history, this driver seems to be originally written
> > > > > > for Kernel 4.4, and was later ported to Kernel 4.9. The original
> > > > > > driver used to depend on ION (from Kernel 4.4) and had its own
> > > > > > implementation for FB dev API.
> > > > > >
> > > > > > As I need to preserve the original history (with has patches from
> > > > > > both HiSilicon and from Linaro),  I'm starting from the original
> > > > > > patch applied there. The remaining patches are incremental,
> > > > > > and port this driver to work with upstream Kernel.
> > > > > >
> > > ...
> > > > > > - Due to legal reasons, I need to preserve the authorship of
> > > > > >   each one responsbile for each patch. So, I need to start from
> > > > > >   the original patch from Kernel 4.4;
> > > ...
> > > > > I do acknowledge you need to preserve history and all -
> > > > > but this patchset is not easy to review.
> > > >
> > > > Why do we need to preserve history ? Adding relevant Signed-off-by and
> > > > Co-developed-by should be enough, shouldn't it ? Having a public branch
> > > > that contains the history is useful if anyone is interested, but I don't
> > > > think it's required in mainline.
> > >
> > > Yea. I concur with Laurent here. I'm not sure what legal reasoning you
> > > have on this but preserving the "absolute" history here is actively
> > > detrimental for review and understanding of the patch set.
> > >
> > > Preserving Authorship, Signed-off-by lines and adding Co-developed-by
> > > lines should be sufficient to provide both atribution credit and DCO
> > > history.
> >
> > I'm not convinced that, from legal standpoint, folding things would
> > be enough. See, there are at least 3 legal systems involved here
> > among the different patch authors:
> >
> >   - civil law;
> >   - common law;
> >   - customary law + common law.
> >
> > Merging stuff altogether from different law systems can be problematic,
> > and trying to discuss this with experienced IP property lawyers will
> > for sure take a lot of time and efforts. I also bet that different
> > lawyers will have different opinions, because laws are subject to
> > interpretation. With that matter I'm not aware of any court rules
> > with regards to folded patches. So, it sounds to me that folding
> > patches is something that has yet to be proofed in courts around
> > the globe.
> >
> > At least for US legal system, it sounds that the Country of
> > origin of a patch is relevant, as they have a concept of
> > "national technology" that can be subject to export regulations.
> >
> > From my side, I really prefer to play safe and stay out of any such
> > legal discussions.
>
> Let's be serious for a moment. If you think there are legal issues in
> taking GPL-v2.0-only patches and squashing them while retaining
> authorship information through tags, the Linux kernel if *full* of that.
> You also routinely modify patches that you commit to the media subsystem
> to fix "small issues".
>
> The country of origin argument makes no sense either, the kernel code
> base if full of code coming from pretty much all country on the planet.
>
> Keeping the patches separate make this hard to review. Please squash
> them.

I'm inclined to agree with Laurent here.

Patches submitted as GPL-v2 with DCO lines and author names/companies
should be fine to be squashed and rearranged,
as long as the DCO and Authorship is kept somewhere in the new patch
that is applied.

Review is more important here.

Dave.


[git pull] drm fixes for 5.9-rc2

2020-08-20 Thread Dave Airlie
Hi Linus,

Regular fixes pull for rc2. Usual rc2 doesn't seem too busy, mainly
i915 and amdgpu. I'd expect the usual uptick for rc3.

Dave.

drm-fixes-2020-08-21:
drm fixes for 5.9-rc2

amdgpu:
- Fix allocation size
- SR-IOV fixes
- Vega20 SMU feature state caching fix
- Fix custom pptable handling
- Arcturus golden settings update
- Several display fixes
- Fixes for Navy Flounder
- Misc display fixes
- RAS fix

amdkfd:
- SDMA fix for renoir

i915:
- Fix device parameter usage for selftest mock i915 device
- Fix LPSP capability debugfs NULL dereference
- Fix buddy register pagemask table
- Fix intel_atomic_check() non-negative return value
- Fix selftests passing a random 0 into ilog2()
- Fix TGL power well enable/disable ordering
- Switch to PMU module refcounting
- GVT fixes

virtio:
- Add missing dma_fence_put() in virtio_gpu_execbuffer_ioctl().
- Fix memory leak in virtio_gpu_cleanup_object().
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5:

  Linux 5.9-rc1 (2020-08-16 13:04:57 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-08-21

for you to fetch changes up to 0790e63f58f22a68696667102be03efb92a4da5f:

  Merge tag 'drm-intel-fixes-2020-08-20' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes (2020-08-21
11:03:52 +1000)


drm fixes for 5.9-rc2

amdgpu:
- Fix allocation size
- SR-IOV fixes
- Vega20 SMU feature state caching fix
- Fix custom pptable handling
- Arcturus golden settings update
- Several display fixes
- Fixes for Navy Flounder
- Misc display fixes
- RAS fix

amdkfd:
- SDMA fix for renoir

i915:
- Fix device parameter usage for selftest mock i915 device
- Fix LPSP capability debugfs NULL dereference
- Fix buddy register pagemask table
- Fix intel_atomic_check() non-negative return value
- Fix selftests passing a random 0 into ilog2()
- Fix TGL power well enable/disable ordering
- Switch to PMU module refcounting
- GVT fixes

virtio:
- Add missing dma_fence_put() in virtio_gpu_execbuffer_ioctl().
- Fix memory leak in virtio_gpu_cleanup_object().


Anthony Koo (2):
  drm/amd/display: Fix LFC multiplier changing erratically
  drm/amd/display: Switch to immediate mode for updating infopackets

Aric Cyr (1):
  drm/amd/display: Fix incorrect backlight register offset for DCN

Bhawanpreet Lakha (1):
  drm/amdgpu: parse ta firmware for navy_flounder

Chris Park (3):
  drm/amd/display: Call DMUB for eDP power control
  drm/amd/display: Assign correct left shift
  drm/amd/display: Reset scrambling on Test Pattern

Chris Wilson (3):
  drm/i915: Provide the perf pmu.module
  drm/i915: Copy default modparams to mock i915_device
  drm/i915/display: Check for an LPSP encoder before dereferencing

Christophe JAILLET (1):
  drm: amdgpu: Use the correct size when allocating memory

Colin Xu (2):
  drm/i915/gvt: Do not destroy ppgtt_mm during vGPU D3->D0.
  drm/i915/gvt: Do not reset pv_notified when vGPU transit from D3->D0

Daniel Kolesa (1):
  drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal

Dave Airlie (4):
  Merge tag 'drm-misc-fixes-2020-08-12' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'amd-drm-fixes-5.9-2020-08-12' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.9-2020-08-20' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-08-20' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes

Dmytro Laktyushkin (1):
  drm/amd/display: fix dcn3 wide timing dsc validation

Evan Quan (2):
  drm/amd/powerplay: correct Vega20 cached smu feature state
  drm/amd/powerplay: correct UVD/VCE PG state on custom pptable uploading

George Spelvin (1):
  drm/i915/selftests: Avoid passing a random 0 into ilog2

Guchun Chen (1):
  drm/amdgpu: fix NULL pointer access issue when unloading driver

Huang Rui (1):
  drm/amdkfd: fix the wrong sdma instance query for renoir

Imre Deak (1):
  drm/i915/tgl: Make sure TC-cold is blocked before enabling TC
AUX power wells

Jaehyun Chung (1):
  drm/amd/display: Blank stream before destroying HDCP session

Jani Nikula (1):
  Merge tag 'gvt-next-fixes-2020-08-05' of
https://github.com/intel/gvt-linux into drm-intel-fixes

Jiansong Chen (2):
  drm/amdgpu: disable gfxoff for navy_flounder
  Revert "drm/amdgpu: disable gfxoff for navy_flounder"

Kevin Wang (1):
  drm/amdgpu: fix uninit-value in arcturus_log_thermal_throttling_event()

Krunoslav Kovac (1):
  drm/amd/display: fix pow() crashing when given base 0

Liu ChengZhe (1):
  drm/amdgpu: Skip some registers config for SRIOV

Matt Roper (1):
  drm/i915: Update bw_buddy pagemask table

Paul Hsieh (1):
  drm/amd/displ

Re: [Intel-gfx] 5.9-rc1: graphics regression moved from -next to mainline

2020-08-18 Thread Dave Airlie
On Wed, 19 Aug 2020 at 10:38, Linus Torvalds
 wrote:
>
> Ping on this?
>
> The code disassembles to
>
>   24: 8b 85 d0 fd ff ffmov-0x230(%ebp),%eax
>   2a:* c7 03 01 00 40 10movl   $0x1041,(%ebx) <-- trapping instruction
>   30: 89 43 04  mov%eax,0x4(%ebx)
>   33: 8b 85 b4 fd ff ffmov-0x24c(%ebp),%eax
>   39: 89 43 08  mov%eax,0x8(%ebx)
>   3c: e9jmp ...
>
> which looks like is one of the cases in __reloc_entry_gpu(). I *think*
> it's this one:
>
> } else if (gen >= 3 &&
>!(IS_I915G(eb->i915) || IS_I915GM(eb->i915))) {
> *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
> *batch++ = addr;
> *batch++ = target_addr;
>
> where that "batch" pointer is 0xf8601000, so it looks like it just
> overflowed into the next page that isn't there.
>
> The cleaned-up call trace is
>
>   drm_ioctl+0x1f4/0x38b ->
> drm_ioctl_kernel+0x87/0xd0 ->
>   i915_gem_execbuffer2_ioctl+0xdd/0x360 ->
> i915_gem_do_execbuffer+0xaab/0x2780 ->
>   eb_relocate_vma
>
> but there's a lot of inling going on, so..
>
> The obvious suspect is commit 9e0f9464e2ab ("drm/i915/gem: Async GPU
> relocations only") but that's going purely by "that seems to be the
> main relocation change this mmrge window".

I think there's been some discussion about reverting that change for
other reasons, but it's quite likely the culprit.

Maybe we can push for a revert sooner, (cc'ing more of i915 team).

Dave.


[git pull] drm fixes for 5.9-rc1

2020-08-11 Thread Dave Airlie
Hi Linus,

This is the fixes pull for 5.9-rc1. I had some fixes from the misc
fixes tree come on a later base than drm-next was on, so I had to
backmerge 5.8 into this to make things work for me and CI. However it
totally messed up the diffstat so I didn't bother including it. The
changelog looks fine.

This has a few vmwgfx regression fixes we hit from the merge window
(one in TTM), it also has a bunch of amdgpu fixes along with a
scattering everywhere else.

I'm not working for next few days, but I'll be around and have some
time if anything comes up, but hopefully this is good enough for rc1,
and any pulls after this can wait for rc2.

Dave.

drm-next-2020-08-12:
drm fixes for 5.9-rc1

core:
- Fix drm_dp_mst_port refcount leaks in drm_dp_mst_allocate_vcpi
- Remove null check for kfree in drm_dev_release.
- Fix DRM_FORMAT_MOD_AMLOGIC_FBC definition.
- re-added docs for drm_gem_flink_ioctl()
- add orientation quirk for ASUS T103HAF

ttm:
- ttm: fix page-offset calculation within TTM
- revert patch causing vmwgfx regressions

fbcon:
- Fix a fbcon OOB read in fbdev, found by syzbot.

vga:
- Mark vga_tryget static as it's not used elsewhere.

amdgpu:
- Re-add spelling typo fix
- Sienna Cichlid fixes
- Navy Flounder fixes
- DC fixes
- SMU i2c fix
- Power fixes

vmwgfx:
- regression fixes for modesetting crashes
- misc fixes

xlnx:
- Small fixes to xlnx.

omap:
- Fix mode initialization in omap_connector_mode_valid().
- force runtime PM suspend on system suspend

tidss:
- fix modeset init for DPI panels
The following changes since commit dc100bc8fae59aafd2ea2e1a1a43ef1f65f8a8bc:

  Merge tag 'drm-msm-next-2020-07-30' of
https://gitlab.freedesktop.org/drm/msm into drm-next (2020-08-05
08:05:31 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-08-12

for you to fetch changes up to 62975d27d647a40c58d3b96c29b911fc4f33c310:

  drm/ttm: revert "drm/ttm: make TT creation purely optional v3"
(2020-08-12 13:26:28 +1000)


drm fixes for 5.9-rc1

core:
- Fix drm_dp_mst_port refcount leaks in drm_dp_mst_allocate_vcpi
- Remove null check for kfree in drm_dev_release.
- Fix DRM_FORMAT_MOD_AMLOGIC_FBC definition.
- re-added docs for drm_gem_flink_ioctl()
- add orientation quirk for ASUS T103HAF

ttm:
- ttm: fix page-offset calculation within TTM
- revert patch causing vmwgfx regressions

fbcon:
- Fix a fbcon OOB read in fbdev, found by syzbot.

vga:
- Mark vga_tryget static as it's not used elsewhere.

amdgpu:
- Re-add spelling typo fix
- Sienna Cichlid fixes
- Navy Flounder fixes
- DC fixes
- SMU i2c fix
- Power fixes

vmwgfx:
- regression fixes for modesetting crashes
- misc fixes

xlnx:
- Small fixes to xlnx.

omap:
- Fix mode initialization in omap_connector_mode_valid().
- force runtime PM suspend on system suspend

tidss:
- fix modeset init for DPI panels


Alex Deucher (1):
  drm/amdgpu/smu: rework i2c adpater registration

Alvin Lee (1):
  drm/amd/display: Don't compare dppclk before updating DTO

Aric Cyr (2):
  drm/amd/display: Fix DP Compliance tests 4.3.2.1 and 4.3.2.2
  drm/amd/display: AMD OUI (DPCD 0x00300) skipped on some sink

Bhawanpreet Lakha (2):
  drm/amd/display: Use seperate dmcub firmware for navy_flounder
  drm/amd/display: Use proper abm/backlight functions for DCN3

Boyuan Zhang (1):
  drm/amdgpu: update dec ring test for VCN 3.0

Changfeng (2):
  Revert "drm/amd/powerplay: drop unnecessary message support check"
  drm/amd/powerplay: drop unnecessary message support check(v2)

Christian König (1):
  drm/ttm: revert "drm/ttm: make TT creation purely optional v3"

Christoph Hellwig (1):
  vgaarb: mark vga_tryget static

Colin Ian King (4):
  drm: xlnx: fix spelling mistake "failes" -> "failed"
  drm/amdgpu: fix spelling mistake "Falied" -> "Failed"
  drm/vmwgfx: fix spelling mistake "Cound" -> "Could"
  drm/vmwgfx: fix spelling mistake "Cant" -> "Can't"

Dan Carpenter (3):
  drm/amd/powerplay: off by one bugs in smu_cmn_to_asic_specific_index()
  drm/vmwgfx: Use correct vmw_legacy_display_unit pointer
  drm/vmwgfx: Fix two list_for_each loop exit tests

Daniel Vetter (1):
  drm/vmwgfx/stdu: Use drm_mode_config_reset

Dave Airlie (5):
  Merge tag 'drm-misc-next-fixes-2020-08-05' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next
  Merge tag 'v5.8' into drm-next
  Merge tag 'drm-misc-fixes-2020-08-04' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next
  Merge tag 'amd-drm-fixes-5.9-2020-08-07' of
git://people.freedesktop.org/~agd5f/linux into drm-next
  Merge branch 'vmwgfx-next-5.9' of
git://people.freedesktop.org/~sroland/linux into drm-next

Dmytro Laktyushkin (2):
  drm/amd/dis

Re: [git pull] drm next for 5.9-rc1

2020-08-10 Thread Dave Airlie
On Mon, 10 Aug 2020 at 22:23, Christoph Hellwig  wrote:
>
> On Thu, Aug 06, 2020 at 11:07:02AM +1000, Dave Airlie wrote:
> > nouveau:
> > - add CRC support
> > - start using NVIDIA published class header files
>
> Where does Nvdia provide them?  I looked into the commits and the
> Nouveau mailing list archives and could not find anything.

https://github.com/NVIDIA/open-gpu-doc

Is I believe the canonical upstream source for them.
>
> Note that various new files with a MIT boilerplate instead of
> an SPDX tag.

Ben might just have imported them directly, so SPDX tags might need to
be sent upstream and see if they accept them.

Dave.


Re: [git pull] drm next for 5.9-rc1

2020-08-05 Thread Dave Airlie
On Thu, 6 Aug 2020 at 11:07, Dave Airlie  wrote:
>
> Hi Linus,
>
> This the main drm pull request for 5.9-rc1.
>
> New xilinx displayport driver, AMD support for two new GPUs (more
> header files), i915 initial support for RocketLake and some work on
> their DG1 (discrete chip).
>
> The core also grew some lockdep annotations to try and constrain what
> drivers do with dma-fences, and added some documentation on why the
> idea of indefinite fences doesn't work.
>
> The long list is below.
>
> I did a test merge into your tree and only had two minor conflicts, so
> I think you should be able to take care of it fine.

I should say I did a test merge yesterday, but you likely pulled more trees,

https://lore.kernel.org/dri-devel/20200806115140.6aa46...@canb.auug.org.au/T/#t

So there was an unfortunate miscommunication and one patch went two
ways, in future Jason and Ben will coordinate better.

Dave.


[git pull] drm fixes for 5.8-rc8 (part 2)

2020-07-30 Thread Dave Airlie
Hi Linus,

As mentioned previously this contains the nouveau regression fix,
amdgpu had 3 fixes outstanding as well, one revert, an info leak and
use after free. The use after free is a bit trickier than I'd like,
and I've personally gone over it to confirm I'm happy that it is doing
what it says.

Let me know if any issues with any, happy to respin if necessary.
Dave.

drm-fixes-2020-07-31:
drm fixes for 5.8-rc8 (part 2)

nouveau:
- final modifiers regression fix

amdgpu:
- Revert a fix which caused other regressions
- Fix potential kernel info leak
- Fix a use-after-free bug that was uncovered by another change in 5.7
The following changes since commit a4a2739beb8933a19281bca077fdb852598803ed:

  Merge tag 'drm-misc-fixes-2020-07-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-07-29
12:46:58 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-31

for you to fetch changes up to 887c909dd5d557c203a233ebbe238c18438a680a:

  Merge tag 'amd-drm-fixes-5.8-2020-07-30' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-07-31
13:04:00 +1000)


drm fixes for 5.8-rc8 (part 2)

nouveau:
- final modifiers regression fix

amdgpu:
- Revert a fix which caused other regressions
- Fix potential kernel info leak
- Fix a use-after-free bug that was uncovered by another change in 5.7


Alex Deucher (1):
  Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers"

Dave Airlie (1):
  Merge tag 'amd-drm-fixes-5.8-2020-07-30' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

James Jones (1):
  drm/nouveau: Accept 'legacy' format modifiers

Mazin Rezk (1):
  drm/amd/display: Clear dm_state for fast updates

Peilin Ye (1):
  drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()

 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c   |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c|  9 --
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 36 +--
 drivers/gpu/drm/nouveau/nouveau_display.c | 27 +++--
 4 files changed, 60 insertions(+), 15 deletions(-)


Re: PROBLEM: 5.8-rc7 no video output with nouveau on NV36 (regression)

2020-07-28 Thread Dave Airlie
On Wed, 29 Jul 2020 at 15:05, Nick Bowler  wrote:
>
> Hi,
>
> After installing Linux 5.8-rc7 I seem to get no video output on my
> NV36 card once the nouveau module is loaded.  The display (connected
> to the digital output) simply reports "No Signal".
>
> I bisected to the following commit, and reverting this commit on
> top of 5.8-rc7 appears to correct the issue.

Can you test the drm fixes pull I just sent to Linus

https://patchwork.freedesktop.org/patch/381225/

Otherwise we are awaiting a fix from James for one other issue, should
be here today/tomorrow.

Dave.


[git pull] drm fixes for 5.8-rc8

2020-07-28 Thread Dave Airlie
Hi Linus,

I'm sending this out a bit early, just to give you a chance to reject
it or help decide on an rc8.

The nouveau fixes missed the last pull by a few hours, and we had a
few arm driver/panel/bridge fixes come in. This is possibly a bit more
than I'm comfortable sending at this stage, but I've looked at each
patch, the core + nouveau patches fix regressions, and the arm related
ones are all around screens turning on and working, and are mostly
trivial patches, the line count is mostly in comments.

If you feel this is too much I'm happy to respin with the
core/drm_fb_helper and nouveau fixes. we have one outstanding nouveau
regression fix, that I'll follow this up with in the next day or so
once Ben and James get it reviewed.

Dave.

This is possibly a bit

drm-fixes-2020-07-29:
drm fixes for 5.8-rc8

core:
- fix possible use-after-free

drm_fb_helper:
- regression fix to use memcpy_io on bochs' sparc64

nouveau:
- format modifiers fixes
- HDA regression fix
- turing modesetting race fix

of:
- fix a double free

dbi:
- fix SPI Type 1 transfer

mcde:
- fix screen stability crash

panel:
- panel: fix display noise on auo,kd101n80-45na
- panel: delay HPD checks for boe_nv133fhm_n61

bridge:
- bridge: drop connector check in nwl-dsi bridge
- bridge: set proper bridge type for adv7511
The following changes since commit 92ed301919932f13b9172e525674157e983d:

  Linux 5.8-rc7 (2020-07-26 14:14:06 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-29

for you to fetch changes up to a4a2739beb8933a19281bca077fdb852598803ed:

  Merge tag 'drm-misc-fixes-2020-07-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-07-29
12:46:58 +1000)


drm fixes for 5.8-rc8

core:
- fix possible use-after-free

drm_fb_helper:
- regression fix to use memcpy_io on bochs' sparc64

nouveau:
- format modifiers fixes
- HDA regression fix
- turing modesetting race fix

of:
- fix a double free
dbi:
- fix SPI Type 1 transfer

mcde:
- fix screen stability crash

panel:
- panel: fix display noise on auo,kd101n80-45na
- panel: delay HPD checks for boe_nv133fhm_n61

bridge:
- bridge: drop connector check in nwl-dsi bridge
- bridge: set proper bridge type for adv7511


Ben Skeggs (5):
  drm/nouveau/disp/gm200-: fix regression from HDA SOR selection changes
  drm/nouveau/kms/gf100: use correct format modifiers
  drm/nouveau/kms/tu102: wait for core update to complete when
assigning windows
  drm/nouveau/fbcon: fix module unload when fbcon init has failed
for some reason
  drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure

Biju Das (1):
  drm: of: Fix double-free bug

Dave Airlie (2):
  Merge branch 'linux-5.8' of git://github.com/skeggsb/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-07-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Douglas Anderson (1):
  drm: panel: simple: Delay HPD checking on boe_nv133fhm_n61 for 15 ms

Guido Günther (1):
  drm/bridge: nwl-dsi: Drop DRM_BRIDGE_ATTACH_NO_CONNECTOR check.

Jitao Shi (1):
  drm/panel: Fix auo, kd101n80-45na horizontal noise on edges of panel

Laurentiu Palcu (1):
  drm/bridge/adv7511: set the bridge type properly

Linus Walleij (1):
  drm/mcde: Fix stability issue

Paul Cercueil (1):
  drm/dbi: Fix SPI Type 1 (9-bit) transfer

Sam Ravnborg (1):
  drm/drm_fb_helper: fix fbdev with sparc64

Steve Cohen (1):
  drm: hold gem reference until object is no longer accessed

 drivers/gpu/drm/bochs/bochs_kms.c   |  1 +
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c|  1 +
 drivers/gpu/drm/bridge/nwl-dsi.c|  5 -
 drivers/gpu/drm/drm_fb_helper.c |  6 -
 drivers/gpu/drm/drm_gem.c   | 10 -
 drivers/gpu/drm/drm_mipi_dbi.c  |  2 +-
 drivers/gpu/drm/drm_of.c|  4 +---
 drivers/gpu/drm/mcde/mcde_display.c | 11 ++---
 drivers/gpu/drm/nouveau/dispnv50/disp.c |  4 ++--
 drivers/gpu/drm/nouveau/nouveau_fbcon.c |  3 ++-
 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c | 30 +
 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c  |  6 ++---
 drivers/gpu/drm/panel/panel-simple.c| 16 -
 include/drm/drm_mode_config.h   | 12 ++
 14 files changed, 76 insertions(+), 35 deletions(-)


[git pull] drm fixes for 5.8-rc7

2020-07-23 Thread Dave Airlie
Quiet fixes, I may have a single regression fix follow up to this for
nouveau, but it might be next week, Ben was testing it a bit more .

Otherwise two amdgpu fixes, one lima and one sun4i.

Dave.

drm-fixes-2020-07-24:
drm fixes for 5.6-rc7

amdgpu:
- Fix crash when overclocking VegaM
- Fix possible crash when editing dpm levels

sun4i:
- Fix inverted HPD result; fixes an earlier fix

lima:
- fix timeout during reset
The following changes since commit ba47d845d715a010f7b51f6f89bae32845e6acb7:

  Linux 5.8-rc6 (2020-07-19 15:41:18 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-24

for you to fetch changes up to d8904ca9d338cdaa67e3bd06d7a7d418e426648c:

  Merge tag 'amd-drm-fixes-5.8-2020-07-22' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-07-23
14:06:16 +1000)


drm fixes for 5.6-rc7

amdgpu:
- Fix crash when overclocking VegaM
- Fix possible crash when editing dpm levels

sun4i:
- Fix inverted HPD result; fixes an earlier fix

lima:
- fix timeout during reset


Chen-Yu Tsai (1):
  drm: sun4i: hdmi: Fix inverted HPD result

Dave Airlie (2):
  Merge tag 'drm-misc-fixes-2020-07-22' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'amd-drm-fixes-5.8-2020-07-22' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Paweł Gronowski (1):
  drm/amdgpu: Fix NULL dereference in dpm sysfs handlers

Qiang Yu (1):
  drm/lima: fix wait pp reset timeout

Qiu Wenbo (1):
  drm/amd/powerplay: fix a crash when overclocking Vega M

 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c  |  9 +++--
 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c | 10 ++
 drivers/gpu/drm/lima/lima_pp.c  |  2 ++
 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c  |  2 +-
 4 files changed, 12 insertions(+), 11 deletions(-)


Re: [PATCH] copy_xstate_to_kernel: Fix typo which caused GDB regression

2020-07-19 Thread Dave Airlie
Just adding Linus, as Al is oft distracted.

Dave.
>
> This commit fixes a regression encountered while running the
> gdb.base/corefile.exp test in GDB's test suite.
>
> In my testing, the typo prevented the sw_reserved field of struct
> fxregs_state from being output to the kernel XSAVES area.  Thus the
> correct mask corresponding to XCR0 was not present in the core file
> for GDB to interrogate, resulting in the following behavior:
>
> [kev@f32-1 gdb]$ ./gdb -q testsuite/outputs/gdb.base/corefile/corefile 
> testsuite/outputs/gdb.base/corefile/corefile.core
> Reading symbols from testsuite/outputs/gdb.base/corefile/corefile...
> [New LWP 232880]
>
> warning: Unexpected size of section `.reg-xstate/232880' in core file.
>
> With the typo fixed, the test works again as expected.
>
> Signed-off-by: Kevin Buettner 
> ---
>  arch/x86/kernel/fpu/xstate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
> index 6a54e83d5589..9cf40a7ff7ae 100644
> --- a/arch/x86/kernel/fpu/xstate.c
> +++ b/arch/x86/kernel/fpu/xstate.c
> @@ -1022,7 +1022,7 @@ int copy_xstate_to_kernel(void *kbuf, struct 
> xregs_state *xsave, unsigned int of
> copy_part(offsetof(struct fxregs_state, st_space), 128,
>   >i387.st_space, , _start, 
> );
> if (header.xfeatures & XFEATURE_MASK_SSE)
> -   copy_part(xstate_offsets[XFEATURE_MASK_SSE], 256,
> +   copy_part(xstate_offsets[XFEATURE_SSE], 256,
>   >i387.xmm_space, , _start, 
> );
> /*
>  * Fill xsave->i387.sw_reserved value for ptrace frame:
> --
> 2.26.2
>
>


[git pull] drm fixes for 5.8-rc6

2020-07-16 Thread Dave Airlie
Hi Linus,

Weekly fixes pull, big bigger than I'd normally like, but they are
fairly scattered and small individually. The vmwgfx one is a black
screen regression, otherwise the largest is an MST encoder fix for
amdgpu which results in a WARN in some cases, and a scattering of i915
fixes.

I'm tracking two regressions at the moment that hopefully we get
nailed down this week for rc7.

Dave.

drm-fixes-2020-07-17-1:
drm fixes for 5.8-rc6

dma-buf:
- sleeping atomic fix

amdgpu:
- Fix a race condition with KIQ
- Preemption fix
- Fix handling of fake MST encoders
- OLED panel fix
- Handle allocation failure in stream construction
- Renoir SMC fix
- SDMA 5.x fix

i915:
- FBC w/a stride fix
- Fix use-after-free fix on module reload
- Ignore irq enabling on the virtual engines to fix device sleep
- Use GTT when saving/restoring engine GPR
- Fix selftest sort function

vmwgfx:
- black screen fix

aspeed:
- fbcon init warn fix
The following changes since commit 11ba468877bb23f28956a35e896356252d63c983:

  Linux 5.8-rc5 (2020-07-12 16:34:50 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-17-1

for you to fetch changes up to adbe8a3cae94a63e9f416795c750237a9b789124:

  Merge tag 'amd-drm-fixes-5.8-2020-07-15' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-07-17
13:29:00 +1000)


drm fixes for 5.8-rc6

dma-buf:
- sleeping atomic fix

amdgpu:
- Fix a race condition with KIQ
- Preemption fix
- Fix handling of fake MST encoders
- OLED panel fix
- Handle allocation failure in stream construction
- Renoir SMC fix
- SDMA 5.x fix

i915:
- FBC w/a stride fix
- Fix use-after-free fix on module reload
- Ignore irq enabling on the virtual engines to fix device sleep
- Use GTT when saving/restoring engine GPR
- Fix selftest sort function

vmwgfx:
- black screen fix

aspeed:
- fbcon init warn fix


Alex Deucher (1):
  drm/amdgpu/display: create fake mst encoders ahead of time (v4)

Charan Teja Kalla (1):
  dmabuf: use spinlock to access dmabuf->name

Chris Wilson (2):
  drm/i915/gt: Ignore irq enabling on the virtual engines
  drm/i915/gt: Only swap to a random sibling once upon creation

Dave Airlie (4):
  Merge branch 'vmwgfx-fixes-5.8' of
git://people.freedesktop.org/~sroland/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-07-15' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2020-07-15' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.8-2020-07-15' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Guenter Roeck (1):
  drm/aspeed: Call drm_fbdev_generic_setup after drm_dev_register

Jack Xiao (2):
  drm/amdgpu/gfx10: fix race condition for kiq
  drm/amdgpu: fix preemption unit test

Josip Pavic (1):
  drm/amd/display: handle failed allocation during stream construction

Maarten Lankhorst (1):
  drm/i915: Move cec_notifier to intel_hdmi_connector_unregister, v2.

Roland Scheidegger (1):
  drm/vmwgfx: fix update of display surface when resolution changes

Sudeep Holla (1):
  drm/i915/selftests: Fix compare functions provided for sorting

Umesh Nerlige Ramappa (1):
  drm/i915/perf: Use GTT when saving/restoring engine GPR

Ville Syrjälä (1):
  drm/i915: Recalculate FBC w/a stride when needed

Xiaojie Yuan (1):
  drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr()

chen gong (1):
  drm/amdgpu/powerplay: Modify SMC message name for setting power
profile mode

hersen wu (1):
  drm/amd/display: OLED panel backlight adjust not work with
external display connected

 drivers/dma-buf/dma-buf.c  | 11 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c| 20 ++--
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c |  9 +++-
 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 26 ---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 14 ++
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h  | 11 -
 .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c| 53 +++---
 .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.h|  3 ++
 drivers/gpu/drm/amd/display/dc/core/dc_stream.c| 19 ++--
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c |  2 +-
 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c|  3 +-
 drivers/gpu/drm/i915/display/intel_fbc.c   | 33 +++---
 drivers/gpu/drm/i915/display/intel_hdmi.c  | 10 +---
 drivers/gpu/drm/i915/gt/intel_lrc.c| 19 ++--
 drivers/gpu/drm/i915/gt/selftest_rps.c |  8 ++--
 drivers/gpu/drm/i915/i915_drv.h|  1 +
 drivers/gpu/drm/i915/i915_perf.c   |  1 +
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   |  8 ++--
 include/linux/dma

[git pull] drm fixes for 5.8-rc5

2020-07-09 Thread Dave Airlie
Hi Linus,

I've been off most of the week, but some fixes have piled up. Seems a
bit busier than last week, but they are pretty spread out across a
bunch of drivers, none of them seem that big or worried me too much.

Regards,
Dave.

drm-fixes-2020-07-10:
drm fixes for 5.8-rc5

amdgpu:
- Fix a suspend/resume issue with PSP
- Backlight fix for Renoir
- Fix for gpu recovery debugging

radeon:
- Fix a double free in error path

i915:
- fbc fencing fix
- debugfs panic fix
- gem vma constuction fix
- gem pin under vm->nutex fix

nouveau:
- SVM fixes
- display fixes

meson:
- OSD burst length fixes

hibmc:
- runtime warning fix

mediatek:
- cmdq, mmsys fixes
- visibility check fixes
The following changes since commit dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258:

  Linux 5.8-rc4 (2020-07-05 16:20:22 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-10

for you to fetch changes up to 38794a5465b752118098e36cf95c59083f9f1f88:

  Merge tag 'amd-drm-fixes-5.8-2020-07-09' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-07-10
07:02:02 +1000)


drm fixes for 5.8-rc5

amdgpu:
- Fix a suspend/resume issue with PSP
- Backlight fix for Renoir
- Fix for gpu recovery debugging

radeon:
- Fix a double free in error path

i915:
- fbc fencing fix
- debugfs panic fix
- gem vma constuction fix
- gem pin under vm->nutex fix

nouveau:
- SVM fixes
- display fixes

meson:
- OSD burst length fixes

hibmc:
- runtime warning fix

mediatek:
- cmdq, mmsys fixes
- visibility check fixes


Aaron Ma (1):
  drm/amd/display: add dmcub check on RENOIR

Ben Skeggs (2):
  drm/nouveau/kms/nv50-: bail from nv50_audio_disable() early if
audio not enabled
  drm/nouveau/i2c/g94-: increase NV_PMGR_DP_AUXCTL_TRANSACTREQ timeout

Bernard Zhao (1):
  drm/mediatek: Remove unnecessary conversion to bool

Chris Wilson (4):
  drm/i915: Skip stale object handle for debugfs per-file-stats
  drm/i915: Drop vm.ref for duplicate vma on construction
  drm/i915: Also drop vm.ref along error paths for vma construction
  drm/i915/gt: Pin the rings before marking active

Dave Airlie (5):
  Merge tag 'mediatek-drm-fixes-5.8' of
https://git.kernel.org/.../chunkuang.hu/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-07-08' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge branch 'linux-5.8' of git://github.com/skeggsb/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-07-08' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.8-2020-07-09' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Enric Balletbo i Serra (3):
  drm/mediatek: Remove debug messages for function calls
  drm/mediatek: mtk_mt8173_hdmi_phy: Remove unnused const variables
  drm/mediatek: mtk_hdmi: Remove debug messages for function calls

Hsin-Yi Wang (2):
  drm/mediatek: Fix device passed to cmdq
  drm/mediatek: Check plane visibility in atomic_update

Huang Rui (2):
  drm/amdgpu: asd function needs to be unloaded in suspend phase
  drm/amdgpu: add TMR destory function for psp

Marek Olšák (1):
  drm/amdgpu: don't do soft recovery if gpu_recovery=0

Martin Blumenstingl (1):
  drm/meson: viu: fix setting the OSD burst length in
VIU_OSD1_FIFO_CTRL_STAT

Matthias Brugger (1):
  drm/mediatek: Delete not used of_device_get_match_data

Ralph Campbell (2):
  drm/nouveau/svm: fix migrate page regression
  drm/nouveau/nouveau: fix page fault on device private memory

Tom Rix (1):
  drm/radeon: fix double free

Ville Syrjälä (1):
  drm/i915/fbc: Fix fence_y_offset handling

YueHaibing (1):
  drm/mediatek: Fix Kconfig warning

Zenghui Yu (1):
  drm/hisilicon/hibmc: Move drm_fbdev_generic_setup() down to
avoid the splat

 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c|  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 63 --
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |  2 +-
 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c|  5 +-
 drivers/gpu/drm/i915/display/intel_display.c   | 11 
 drivers/gpu/drm/i915/display/intel_display.h   |  1 +
 drivers/gpu/drm/i915/display/intel_fbc.c   | 32 ---
 drivers/gpu/drm/i915/gt/intel_context.c| 12 ++---
 drivers/gpu/drm/i915/i915_debugfs.c|  2 +-
 drivers/gpu/drm/i915/i915_drv.h|  6 +--
 drivers/gpu/drm/i915/i915_vma.c| 15 +++---
 drivers/gpu/drm/mediatek/Kconfig   |  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c|  8 +--
 drivers/gpu/drm/mediatek/mtk_drm_drv.c |  6 +--
 drivers/gpu/drm/mediatek/mtk_drm_plane.c   | 25 +
 drivers/gpu/drm/mediatek/mtk_dsi.c |  5 +-
 drive

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-04 Thread Dave Airlie
On Sun, 5 Jul 2020 at 12:12, Stephen Rothwell  wrote:
>
> Hi Dave,
>
> On Sun, 5 Jul 2020 09:34:57 +1000 Dave Airlie  wrote:
> >
> > On Sun, 5 Jul 2020 at 06:45, Stephen Rothwell  wrote:
> > >
> > > On Sat, 04 Jul 2020 13:02:51 -0700 Dan Williams 
> > >  wrote:
> > > >
> > > > +The Linux kernel is a global software project, and in 2020 there was a
> > > > +global reckoning on race relations that caused many organizations to
> > > > +re-evaluate their policies and practices relative to the inclusion of
> > > > +people of African descent. This document describes why the 'Naming'
> > >
> > > I feel a need to point out that racial issues are wider than just
> > > people of African descent ...  Also, others have pointed out that
> > > slavery is not just restricted to those of African descent.
> >
> > The racial issues are wider than that, and even wider again I'm sure,
> > but in 2020 this is as good a place to start as any, and the trigger
> > as that sentence says was in 2020, there was a reckoning about it
> > mainly due to people of African descent. That trigger has had flow on
> > effects in other countries, but I'm not sure that sentence in any way
> > diminishes that, it's merely an introduction to why this change is
> > happening now.
>
> And reading it again in the (actual) light of day, I see you are right
> and I misinterpreted this.
>
> > As for the non-black slavery, others have never pointed this out
>
> (I did not say "non-black")
>

Sorry I misdirected what you said a bit, and I did misinterpret as
Australia also has it's own indigenous slavery issues,

I was trying to stop the "white slavery" is a thing crew from turning
up on this.

Apologies for accidentally implying something what you hadn't said.

Dave.


Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-04 Thread Dave Airlie
On Sun, 5 Jul 2020 at 10:10, Matthew Wilcox  wrote:
>
> Erm, red-black trees don't have a derivation from gambling terminology 
> either. The wikipedia article says:
>
> In a 1978 paper, "A Dichromatic Framework for Balanced Trees",[6] Leonidas J. 
> Guibas and Robert Sedgewick derived the red-black tree from the symmetric 
> binary B-tree.[7] The color "red" was chosen because it was the best-looking 
> color produced by the color laser printer available to the authors while 
> working at Xerox PARC.[8] Another response from Guibas states that it was 
> because of the red and black pens available to them to draw the trees.[9]
>
> Left-right tree makes no sense. It doesn't distinguish the rbtree from its 
> predecessor the avl tree.  I don't think it's helpful to rename a standard 
> piece of computing terminology unless it's actually hurting us to have it. 
> Obviously if it were called a "master-slave" tree, I would be in favour of 
> renaming it.

As I said "it means nothing if you've never interacted with gambling
culture," red black in the context of the trees as zero meaning other
than as a name to find it on the internet, Search for that name enough
and you will undoubtedly be getting ads for online roulette sites
within hours, if you have a problem gambling past, this might not be
the desired effect you'd want.

The reasons something was named a particular thing can and will be
different from what a societal context for them means now, and I
believe it's more important to worry about current societal contexts
than legacy historical namings. I'm not seriously suggesting we rename
red-black trees, but if someone who had a problematic gambling
background had issues with them I'd definitely be open for considering
it.

Dave.


Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-04 Thread Dave Airlie
On Sun, 5 Jul 2020 at 06:19, Dan Williams  wrote:
>
> Recent events have prompted a Linux position statement on inclusive
> terminology. Given that Linux maintains a coding-style and its own
> idiomatic set of terminology here is a proposal to answer the call to
> replace non-inclusive terminology.
>
> Cc: Jonathan Corbet 
> Cc: Kees Cook 
> Signed-off-by: Chris Mason 
> Signed-off-by: Greg Kroah-Hartman 
> Signed-off-by: Dan Williams 

I'm sure the language could be fine tuned, but the intent is something
I support.

Acked-by: Dave Airlie 

> ---
>  Documentation/process/coding-style.rst  |   12 
>  Documentation/process/inclusive-terminology.rst |   64 
> +++
>  Documentation/process/index.rst |1
>  3 files changed, 77 insertions(+)
>  create mode 100644 Documentation/process/inclusive-terminology.rst
>
> diff --git a/Documentation/process/coding-style.rst 
> b/Documentation/process/coding-style.rst
> index 2657a55c6f12..4b15ab671089 100644
> --- a/Documentation/process/coding-style.rst
> +++ b/Documentation/process/coding-style.rst
> @@ -319,6 +319,18 @@ If you are afraid to mix up your local variable names, 
> you have another
>  problem, which is called the function-growth-hormone-imbalance syndrome.
>  See chapter 6 (Functions).
>
> +For symbol names, avoid introducing new usage of the words 'slave' and
> +'blacklist'. Recommended replacements for 'slave' are: 'secondary',
> +'subordinate', 'replica', 'responder', 'follower', 'proxy', or
> +'performer'.  Recommended replacements for blacklist are: 'blocklist' or
> +'denylist'.
> +
> +Exceptions for introducing new usage is to maintain a userspace ABI, or
> +when updating code for an existing (as of 2020) hardware or protocol
> +specification that mandates those terms. For new specifications consider
> +translating specification usage of the terminology to the kernel coding
> +standard where possible. See :ref:`process/inclusive-terminology.rst
> +` for details.
>
>  5) Typedefs
>  ---
> diff --git a/Documentation/process/inclusive-terminology.rst 
> b/Documentation/process/inclusive-terminology.rst
> new file mode 100644
> index ..a8eb26690eb4
> --- /dev/null
> +++ b/Documentation/process/inclusive-terminology.rst
> @@ -0,0 +1,64 @@
> +.. _inclusiveterminology:
> +
> +Linux kernel inclusive terminology
> +==
> +
> +The Linux kernel is a global software project, and in 2020 there was a
> +global reckoning on race relations that caused many organizations to
> +re-evaluate their policies and practices relative to the inclusion of
> +people of African descent. This document describes why the 'Naming'
> +section in :ref:`process/coding-style.rst ` recommends
> +avoiding usage of 'slave' and 'blacklist' in new additions to the Linux
> +kernel.
> +
> +On the triviality of replacing words
> +
> +
> +The African slave trade was a brutal system of human misery deployed at
> +global scale. Some word choice decisions in a modern software project
> +does next to nothing to compensate for that legacy. So why put any
> +effort into something so trivial in comparison? Because the goal is not
> +to repair, or erase the past. The goal is to maximize availability and
> +efficiency of the global developer community to participate in the Linux
> +kernel development process.
> +
> +Word choice and developer efficiency
> +
> +
> +Why does any software project go through the trouble of developing a
> +document like :ref:`process/coding-style.rst `? It does so
> +because a common coding style maximizes the efficiency of both
> +maintainers and developers. Developers learn common design patterns and
> +idiomatic expressions while maintainers can spot deviations from those
> +norms. Even non-compliant whitespace is considered a leading indicator
> +to deeper problems in a patchset. Coding style violations are known to
> +take a maintainer "out of the zone" of reviewing code. Maintainers are
> +also sensitive to word choice across specifications and often choose to
> +deploy Linux terminology to replace non-idiomatic word-choice in a
> +specification.
> +
> +Non-inclusive terminology has that same distracting effect which is why
> +it is a style issue for Linux, it injures developer efficiency.
> +
> +Of course it is around this point someone jumps in with an etymological
> +argument about why people should not be offended. Etymological arguments
> +do not scale. The scope and pace of Linux to reach new developers
> +exceeds the ability of historical terminology defenders 

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-04 Thread Dave Airlie
'. Colors to represent a policy requires an indirection. The
>
> how about:
>   Using colors to represent a policy requires an indirection.

I'd totally submit that red/black trees while in no way racist, are a
horrible indirection, as it means nothing if you've never interacted
with gambling culture, (and maybe James Bond movies).

left/right trees make naturally more sense and translate into more
languages, so yes I think removal of color naming is a good thing even
for non-racist reasonings.

Dave.


Re: [Ksummit-discuss] [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-04 Thread Dave Airlie
On Sun, 5 Jul 2020 at 07:25, James Bottomley
 wrote:
>
> On Sat, 2020-07-04 at 13:02 -0700, Dan Williams wrote:
> [...]
> > diff --git a/Documentation/process/inclusive-terminology.rst
> > b/Documentation/process/inclusive-terminology.rst
> > new file mode 100644
> > index ..a8eb26690eb4
> > --- /dev/null
> > +++ b/Documentation/process/inclusive-terminology.rst
>
> Could we just lose this entire document?  The one thing we should learn
> from recent history is that we really want prevent people distracting
> from the good inclusive (and technically more accurate) terminology
> will do.  One way the detractors do this by engaging in ultimately
> pointless arguments about historical accuracy of supporting statements.
>   By making pejorative statements about history (which are open to
> challenge on several fronts), this document acts as a magnet for such
> attention.  Simply leave it out and the detractors will have nothing to
> attack except the bald statement of desiring more inclusive language.
> I'd much rather defend why we want inclusive and more descriptive
> language than get into a pointless argument over whether the Ottoman
> slave trade was more or less evil than the American one.

I don't totally agree on that, because like the CoC discussion, people
need concrete examples. People need reasons, saying simply "be
inclusive" doesn't work.

You say "be inclusive" people don't think about it, they just go "I'm
inclusive" and proceed, never questioning what it means to be
inclusive, they normalise inclusivity to their self image and within
their lives where they might never confront anything like this.

I don't doubt we get the American/Ottoman/Barbery coast people and the
correct answer to those people is to tell them to examine why they
suddenly care about Barbery slavery now when they have never even
heard or worried about it before. Why haven't they submitted patches
removing slavery terminology from the kernel before?

Dave.


Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-04 Thread Dave Airlie
On Sun, 5 Jul 2020 at 06:45, Stephen Rothwell  wrote:
>
> Hi Dan,
>
> On Sat, 04 Jul 2020 13:02:51 -0700 Dan Williams  
> wrote:
> >
> > +Linux kernel inclusive terminology
> > +==
> > +
> > +The Linux kernel is a global software project, and in 2020 there was a
> > +global reckoning on race relations that caused many organizations to
> > +re-evaluate their policies and practices relative to the inclusion of
> > +people of African descent. This document describes why the 'Naming'
>
> I feel a need to point out that racial issues are wider than just
> people of African descent ...  Also, others have pointed out that
> slavery is not just restricted to those of African descent.

The racial issues are wider than that, and even wider again I'm sure,
but in 2020 this is as good a place to start as any, and the trigger
as that sentence says was in 2020, there was a reckoning about it
mainly due to people of African descent. That trigger has had flow on
effects in other countries, but I'm not sure that sentence in any way
diminishes that, it's merely an introduction to why this change is
happening now.

As for the non-black slavery, others have never pointed this out
before in 30 years of master/slave terminology? surely if white
slavery was as big a problem, they be as supportive of this, even more
so. It speaks volumes that I've never heard white slavery as a problem
once in 30 years, but now I'm hearing about it a few times, and
somehow as an excuse not to support this.

Dave.


[git pull] drm fixes for 5.8-rc4

2020-07-02 Thread Dave Airlie
Hey Linus,

Pretty usual rc4 pull, two usual amdgpu, i915 pulls, and some misc arm
driver fixes.
The bigger bit is including the asm sources for some GPU shaders that
were contained in the i915 driver, otherwise it's pretty much business
as usual.

Dave.

drm-fixes-2020-07-03:
drm fixes for 5.8-rc4

dma-buf:
- fix a use-after-free bug

amdgpu:
- Fix for vega20 boards without RAS support
- DC bandwidth revalidation fix
- Fix Renoir vram info fetching
- Fix hwmon freq printing

i915:
- GVT fixes
  - Two missed MMIO handler fixes for SKL/CFL
  - Fix mask register bits check
  - Fix one lockdep error for debugfs entry access
- Include asm sources for render cache clear batches

msm:
- memleak fix
- display block fix
- address space fixes

exynos:
- error value and reference count fix
- error print removal

sun4i:
- remove HPD polling
The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68:

  Linux 5.8-rc3 (2020-06-28 15:00:24 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-03

for you to fetch changes up to 1298a549e22abe36c82208406c7069280553c7dd:

  Merge tag 'drm-misc-fixes-2020-07-02' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-07-03
11:18:21 +1000)


drm fixes for 5.8-rc4

dma-buf:
- fix a use-after-free bug

amdgpu:
- Fix for vega20 boards without RAS support
- DC bandwidth revalidation fix
- Fix Renoir vram info fetching
- Fix hwmon freq printing

i915:
- GVT fixes
  - Two missed MMIO handler fixes for SKL/CFL
  - Fix mask register bits check
  - Fix one lockdep error for debugfs entry access
- Include asm sources for render cache clear batches

msm:
- memleak fix
- display block fix
- address space fixes

exynos:
- error value and reference count fix
- error print removal

sun4i:
- remove HPD polling


Alex Deucher (2):
  drm/amdgpu/atomfirmware: fix vram_info fetching for renoir
  drm/amdgpu: use %u rather than %d for sclk/mclk

Bernard Zhao (1):
  drm/msm: fix potential memleak in error branch

Chen Tao (1):
  drm/msm/dpu: fix error return code in dpu_encoder_init

Chen-Yu Tsai (1):
  drm: sun4i: hdmi: Remove extra HPD polling

Colin Xu (4):
  drm/i915/gvt: Add one missing MMIO handler for D_SKL_PLUS
  drm/i915/gvt: Fix two CFL MMIO handling caused by regression.
  drm/i915/gvt: Fix incorrect check of enabled bits in mask registers
  drm/i915/gvt: Use GFP_ATOMIC instead of GFP_KERNEL in atomic context

Dave Airlie (5):
  Merge tag 'drm-msm-fixes-2020-06-25' of
https://gitlab.freedesktop.org/drm/msm into drm-fixes
  Merge tag 'exynos-drm-fixes-for-v5.8-rc4' of
git://git.kernel.org/.../daeinki/drm-exynos into drm-fixes
  Merge tag 'drm-intel-fixes-2020-07-01' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.8-2020-07-01' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-07-02' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Eric Anholt (2):
  drm/msm: Fix address space size after refactor.
  drm/msm: Fix setup of a6xx create_address_space.

Ivan Mironov (1):
  drm/amd/powerplay: Fix NULL dereference in lock_bus() on Vega20 w/o RAS

Jani Nikula (1):
  Merge tag 'gvt-fixes-2020-06-17' of
https://github.com/intel/gvt-linux into drm-intel-fixes

John Stultz (1):
  drm/msm: Fix 0xlub in "Refactor address space initialization"

Jordan Crouse (1):
  drm/msm: Fix up the rest of the messed up address sizes

Kalyan Thota (1):
  drm/msm/dpu: request for display color blocks based on hw catalog entry

Krishna Manikandan (1):
  drm/msm/dpu: allow initialization of encoder locks during encoder init

Marek Szyprowski (1):
  drm/exynos: Properly propagate return value in drm_iommu_attach_device()

Navid Emamdoost (1):
  drm/exynos: fix ref count leak in mic_pre_enable

Nicholas Kazlauskas (1):
  drm/amd/display: Only revalidate bandwidth on medium and fast updates

Rodrigo Vivi (1):
  drm/i915: Include asm sources for {ivb, hsw}_clear_kernel.c

Sumit Semwal (1):
  dma-buf: Move dma_buf_release() from fops to dentry_ops

Tamseel Shams (1):
  drm/exynos: Remove dev_err() on platform_get_irq() failure

 drivers/dma-buf/dma-buf.c  |  54 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c   |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c |   4 +-
 drivers/gpu/drm/amd/display/dc/core/dc.c   |  10 +-
 .../gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c   |  11 +-
 drivers/gpu/drm/exynos/exynos_drm_dma.c|   4 +-
 drivers/gpu/drm/exynos/exynos_drm_g2d.c|   1 -
 drivers/gpu/drm/exynos/exynos_drm_mic.c|   4 +-
 drivers/gpu/drm/i915/gt/shaders/README |  46 
 .../gpu/d

Re: Maintainers / Kernel Summit 2020 planning kick-off

2020-06-30 Thread Dave Airlie
On Sat, 16 May 2020 at 02:41, Theodore Y. Ts'o  wrote:
>
> [ Feel free to forward this to other Linux kernel mailing lists as
>   appropriate -- Ted ]
>
> This year, the Maintainers and Kernel Summit will NOT be held in
> Halifax, August 25 -- 28th, as a result of the COVID-19 pandemic.
> Instead, we will be pursuing a virtual conference format for both the
> Maintainers and Kernel Summit, around the last week of August.
>
> As in previous years, the Maintainers Summit is invite-only, where the
> primary focus will be process issues around Linux Kernel Development.
> It will be limited to 30 invitees and a handful of sponsored
> attendees.

What timezone are the conferences being held in? It impacts on what I
can attend quite heavily :-)

Dave.


[git pull] drm fixes for v5.8-rc3

2020-06-25 Thread Dave Airlie
Hi Linus,

Usual rc3 pickup, lots of little fixes all over, The core VT
registration regression fix is probably the largest, otherwise ttm,
amdgpu and tegra are the bulk, with some minor driver fixes. No i915
pull this week which may or may not mean I get 2x of it next week,
we'll see how it goes.

Regards,
Dave.

drm-fixes-2020-06-26:
drm fixes for v5.8-rc3

core:
- fix VT registration regression

ttm:
- fix two fence leaks

amdgpu:
- Fix missed mutex unlock in DC error path
- Fix firmware leak for sdma5
- DC bpc property fixes

amdkfd:
- Fix memleak in an error path

radeon:
- Fix copy paste typo in NI DPM spll validation

rcar-du:
- build fix

tegra:
- add missing zpos property
- child driver registration fix
- debugfs cleanup fix
- doc fix

mcde:
- reorder fbdev setup

panel:
- fix connector type
- fix orientation for some panels

sun4i:
- fix dma/iommu configuration

uvesafb:
- respect blank flag
The following changes since commit 48778464bb7d346b47157d21ffde2af6b2d39110:

  Linux 5.8-rc2 (2020-06-21 15:45:29 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-06-26

for you to fetch changes up to 687a0ed337367be5267652af5f6dbcfc954b8732:

  Merge tag 'drm-misc-fixes-2020-06-25' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-06-26
13:49:17 +1000)


drm fixes for v5.8-rc3

core:
- fix VT registration regression

ttm:
- fix two fence leaks

amdgpu:
- Fix missed mutex unlock in DC error path
- Fix firmware leak for sdma5
- DC bpc property fixes

amdkfd:
- Fix memleak in an error path

radeon:
- Fix copy paste typo in NI DPM spll validation

rcar-du:
- build fix

tegra:
- add missing zpos property
- child driver registration fix
- debugfs cleanup fix
- doc fix

mcde:
- reorder fbdev setup

panel:
- fix connector type
- fix orientation for some panels

sun4i:
- fix dma/iommu configuration

uvesafb:
- respect blank flag


Adam Ford (1):
  drm/panel-simple: fix connector type for LogicPD Type28 Display

Bartlomiej Zolnierkiewicz (1):
  video: fbdev: uvesafb: fix "noblank" option handling

Bernard Zhao (1):
  drm/amd: fix potential memleak in err branch

Christophe JAILLET (1):
  gpu: host1x: Clean up debugfs in error handling path

Colton Lewis (1):
  gpu: host1x: Correct trivial kernel-doc inconsistencies

Daniel Gomez (1):
  drm: rcar-du: Fix build error

Daniel Vetter (1):
  drm/fb-helper: Fix vt restore

Dave Airlie (4):
  Merge tag 'du-fixes-20200621' of
git://linuxtv.org/pinchartl/media into drm-fixes
  Merge tag 'drm/tegra/for-5.8-rc3' of
git://anongit.freedesktop.org/tegra/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.8-2020-06-24' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-06-25' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Denis Efremov (1):
  drm/radeon: fix fb_div check in ni_init_smc_spll_table()

Hans de Goede (2):
  drm: panel-orientation-quirks: Add quirk for Asus T101HA panel
  drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003

John van der Kamp (1):
  drm/amdgpu/display: Unlock mutex on error

Linus Walleij (2):
  drm: mcde: Fix display initialization problem
  drm: mcde: Fix forgotten user of drm->dev_private

Maxime Ripard (1):
  drm/sun4i: mixer: Call of_dma_configure if there's an IOMMU

Nicolin Chen (1):
  drm/tegra: hub: Do not enable orphaned window group

Stylon Wang (2):
  drm/amd/display: Enable output_bpc property on all outputs
  drm/amd/display: Fix ineffective setting of max bpc property

Thierry Reding (4):
  gpu: host1x: Register child devices
  drm/tegra: hub: Register child devices
  gpu: host1x: Detach driver on unregister
  drm/tegra: Add zpos property for cursor planes

Thomas Zimmermann (1):
  Merge v5.8-rc1 into drm-misc-fixes

Tomi Valkeinen (1):
  drm/panel-simple: fix connector type for newhaven_nhd_43_480272ef_atxl

Wenhui Sheng (1):
  drm/amdgpu: add fw release for sdma v5_0

Xiyu Yang (2):
  drm/ttm: Fix dma_fence refcnt leak in ttm_bo_vm_fault_reserved
  drm/ttm: Fix dma_fence refcnt leak when adding move fence

 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c |  6 ++-
 drivers/gpu/drm/amd/amdkfd/kfd_process.c   |  1 +
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |  3 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c  |  4 +-
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c |  6 ++-
 drivers/gpu/drm/drm_fb_helper.c| 63 +-
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 14 ++---
 drivers/gpu/drm/mcde/mcde_display.c|  2 +-
 drivers/gpu/drm/mcde/mcde_drv.c|  3 +-
 drivers/gpu/drm/panel/panel-simple.c   |  2 +
 drivers/g

Re: linux-next: build failure after merge of the drm-misc tree

2020-06-23 Thread Dave Airlie
On Wed, 24 Jun 2020 at 11:36, Stephen Rothwell  wrote:
>
> Hi all,
>
> On Wed, 17 Jun 2020 10:59:29 +1000 Stephen Rothwell  
> wrote:
> >
> > After merging the drm-misc tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 
> > 'amdgpu_amdkfd_gpuvm_free_memory_of_gpu':
> > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1357:2: error: implicit 
> > declaration of function 'drm_gem_object_put_unlocked'; did you mean 
> > 'drm_gem_object_put_locked'? [-Werror=implicit-function-declaration]
> >  1357 |  drm_gem_object_put_unlocked(>bo->tbo.base);
> >   |  ^~~
> >   |  drm_gem_object_put_locked
> >
> > Caused by commit
> >
> >   ab15d56e27be ("drm: remove transient drm_gem_object_put_unlocked()")
> >
> > interacting with commit
> >
> >   fd9a9f8801de ("drm/amdgpu: Use GEM obj reference for KFD BOs")
> >
> > from Linus' tree.
> >
> > I have applied the following merge fix up patch for today.
> >
> > From: Stephen Rothwell 
> > Date: Wed, 17 Jun 2020 10:55:32 +1000
> > Subject: [PATCH] drm/amdgpu: remove stray drm_gem_object_put_unlocked
> >
> > Signed-off-by: Stephen Rothwell 
> > ---
> >  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 
> > b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> > index b91b5171270f..9015c7b76d60 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> > @@ -1354,7 +1354,7 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu(
> >   }
> >
> >   /* Free the BO*/
> > - drm_gem_object_put_unlocked(>bo->tbo.base);
> > + drm_gem_object_put(>bo->tbo.base);
> >   mutex_destroy(>lock);
> >   kfree(mem);
> >
> > --
> > 2.26.2
>
> This fix is now needed when I merge the drm tree :-(
>
> Given that the drm tree is based on v5.8-rc2 and the commit from Linus'
> tree above was merged before v5.8-rc1, the above patch should be
> applied to the drm tree (and should have been part of the patch that
> merged the drm-misc tree).  I am a bit suprised that the drm tree
> currently passes CI.

My bad, my local builds passed, as I had made the change but forgot
the commit --amend

Pushed out a new head with it in it now.

Dave.


[git pull] drm fixes for 5.7-rc2

2020-06-18 Thread Dave Airlie
Hi Linus,

rc2 fixes, just i915 and amd here, i915 has some workaround movement
so they get applied at the right times, and a timeslicing fix, along
with some display fixes. AMD has a few display floating point fix and
a devcgroup fix for amdkfd.

drm-fixes-2020-06-19:
drm fixes for 5.8-rc2

i915:
- Fix for timeslicing and virtual engines/unpremptable requests
  (+ 1 dependency patch)
- Fixes into TypeC register programming and interrupt storm detecting
- Disable DIP on MST ports with the transcoder clock still on
- Avoid missing GT workarounds at reset for HSW and older gens
- Fix for unwinding multiple requests missing force restore
- Fix encoder type check for DDI vswing sequence
- Build warning fixes

amdgpu:
- Fix kvfree/kfree mixup
- Fix hawaii device id in powertune configuration
- Display FP fixes
- Documentation fixes

amdkfd:
- devcgroup check fix
The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407:

  Linux 5.8-rc1 (2020-06-14 12:45:04 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-06-19

for you to fetch changes up to 8a7a3d1d0dcf2bb63dafe7275020420005e13e54:

  Merge tag 'amd-drm-fixes-5.8-2020-06-17' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-06-19
10:02:30 +1000)


drm fixes for 5.8-rc2

i915:
- Fix for timeslicing and virtual engines/unpremptable requests
  (+ 1 dependency patch)
- Fixes into TypeC register programming and interrupt storm detecting
- Disable DIP on MST ports with the transcoder clock still on
- Avoid missing GT workarounds at reset for HSW and older gens
- Fix for unwinding multiple requests missing force restore
- Fix encoder type check for DDI vswing sequence
- Build warning fixes

amdgpu:
- Fix kvfree/kfree mixup
- Fix hawaii device id in powertune configuration
- Display FP fixes
- Documentation fixes

amdkfd:
- devcgroup check fix


Alex Deucher (2):
  drm/amdgpu/pm: update comment to clarify Overdrive interfaces
  drm/amdgpu: fix documentation around busy_percentage

Arnd Bergmann (2):
  drm/i915/pmu: avoid an maybe-uninitialized warning
  drm/i915: work around false-positive maybe-uninitialized warning

Chris Wilson (10):
  drm/i915/gt: Incorporate the virtual engine into timeslicing
  drm/i915/selftests: Restore to default heartbeat
  drm/i915/gt: Prevent timeslicing into unpreemptable requests
  drm/i915/gt: Incrementally check for rewinding
  drm/i915/gt: Move hsw GT workarounds from init_clock_gating to workarounds
  drm/i915/gt: Move ivb GT workarounds from init_clock_gating to workarounds
  drm/i915/gt: Move vlv GT workarounds from init_clock_gating to workarounds
  drm/i915/gt: Move snb GT workarounds from init_clock_gating to workarounds
  drm/i915/gt: Move ilk GT workarounds from init_clock_gating to workarounds
  drm/i915/gt: Move gen4 GT workarounds from init_clock_gating to
workarounds

Dave Airlie (2):
  Merge tag 'drm-intel-fixes-2020-06-18' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.8-2020-06-17' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Denis Efremov (2):
  drm/amd/display: Use kvfree() to free coeff in build_regamma()
  drm/amd/display: Use kfree() to free rgb_user in
calculate_user_regamma_ramp()

Imre Deak (2):
  drm/i915/icl: Disable DIP on MST ports with the transcoder clock still on
  drm/i915/icl+: Fix hotplug interrupt disabling after storm detection

Khaled Almahallawy (1):
  drm/i915/tc: fix the reset of ln0

Lorenz Brun (1):
  drm/amdkfd: Use correct major in devcgroup check

Rodrigo Siqueira (1):
  drm/amd/display: Rework dsc to isolate FPU operations

Sandeep Raghuraman (1):
  drm/amdgpu: Replace invalid device ID with a valid device ID

Vandita Kulkarni (1):
  drm/i915/display: Fix the encoder type check

 Documentation/gpu/amdgpu.rst   |   9 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c |   4 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h  |   3 +-
 drivers/gpu/drm/amd/display/dc/dsc/Makefile|   2 -
 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c|  18 +-
 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c   | 151 -
 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.h   |   5 +-
 drivers/gpu/drm/amd/display/dc/dsc/rc_calc_dpi.c   |  27 +--
 .../drm/amd/display/modules/color/color_gamma.c|   4 +-
 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c   |   2 +-
 drivers/gpu/drm/i915/display/intel_ddi.c   |  12 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c|   8 +
 drivers/gpu/drm/i915/gt/intel_engine_cs.c  |   4 +-
 drivers/gpu/drm/i915/gt/intel_lrc.c|  52 -
 drivers/gpu/drm/i915/gt/intel_ring.c   |   4 +
 drivers/gpu/drm/i915/gt

Re: [git pull] drm fixes for 5.8-rc1 (updated pull)

2020-06-11 Thread Dave Airlie
(now with a subject you might see).

On Thu, 11 Jun 2020 at 18:38, Dave Airlie  wrote:
>
> Hi Linus,
>
> This is the update of the pull I sent earlier today, it's got a couple
> of more fixes along with the i915 fixes. One sun4i fix and a connector
> hotplug race The ast fix is for a regression in 5.6, and as mentioned
> previously one of the i915 ones fixes an oops reported by dhowells.
>
> definitely taking tomorrow off now :-)
>
> Regards,
> Dave.
>
> drm-next-2020-06-11-1:
> drm fixes for 5.7-rc1
>
> core:
> - fix race in connectors sending hotplug
>
> i915:
> - Avoid use after free in cmdparser
> - Avoid NULL dereference when probing all display encoders
> - Fixup to module parameter type
>
> sun4i:
> - clock divider fix
>
> ast:
> - 24/32 bpp mode setting fix
> The following changes since commit 8d286e2ff4400d313955b4203fc640ca6fd9228b:
>
>   Merge tag 'drm-intel-next-fixes-2020-06-04' of
> git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-06-08
> 11:59:57 +1000)
>
> are available in the Git repository at:
>
>   git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-06-11-1
>
> for you to fetch changes up to 66057dd1d1cf2149e0f5fdaee58d6ea69bc98048:
>
>   Merge tag 'drm-misc-next-fixes-2020-06-11' of
> git://anongit.freedesktop.org/drm/drm-misc into drm-next (2020-06-11
> 17:51:15 +1000)
>
> 
> drm fixes for 5.7-rc1
>
> core:
> - fix race in connectors sending hotplug
>
> i915:
> - Avoid use after free in cmdparser
> - Avoid NULL dereference when probing all display encoders
> - Fixup to module parameter type
>
> sun4i:
> - clock divider fix
>
> ast:
> - 24/32 bpp mode setting fix
>
> 
> Chris Wilson (2):
>   drm/i915/gem: Mark the buffer pool as active for the cmdparser
>   drm/i915/display: Only query DP state of a DDI encoder
>
> Colin Ian King (1):
>   drm/ast: fix missing break in switch statement for format->cpp[0] case 4
>
> Dave Airlie (2):
>   Merge tag 'drm-intel-next-fixes-2020-06-10' of
> git://anongit.freedesktop.org/drm/drm-intel into drm-next
>   Merge tag 'drm-misc-next-fixes-2020-06-11' of
> git://anongit.freedesktop.org/drm/drm-misc into drm-next
>
> Jani Nikula (1):
>   drm/i915/params: fix i915.reset module param type
>
> Jernej Skrabec (1):
>   drm/sun4i: hdmi ddc clk: Fix size of m divider
>
> Jeykumar Sankaran (1):
>   drm/connector: notify userspace on hotplug after register complete
>
>  drivers/gpu/drm/ast/ast_mode.c |  1 +
>  drivers/gpu/drm/drm_connector.c|  5 +++
>  drivers/gpu/drm/drm_sysfs.c|  3 --
>  drivers/gpu/drm/i915/display/intel_dp.c|  3 ++
>  drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 56 
> ++
>  drivers/gpu/drm/i915/i915_params.c |  2 +-
>  drivers/gpu/drm/sun4i/sun4i_hdmi.h |  2 +-
>  drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c |  2 +-
>  8 files changed, 60 insertions(+), 14 deletions(-)


Re: [PATCH 03/18] dma-fence: basic lockdep annotations

2020-06-11 Thread Dave Airlie
On Thu, 11 Jun 2020 at 18:01, Chris Wilson  wrote:
>
> Quoting Daniel Vetter (2020-06-04 09:12:09)
> > Design is similar to the lockdep annotations for workers, but with
> > some twists:
> >
> > - We use a read-lock for the execution/worker/completion side, so that
> >   this explicit annotation can be more liberally sprinkled around.
> >   With read locks lockdep isn't going to complain if the read-side
> >   isn't nested the same way under all circumstances, so ABBA deadlocks
> >   are ok. Which they are, since this is an annotation only.
> >
> > - We're using non-recursive lockdep read lock mode, since in recursive
> >   read lock mode lockdep does not catch read side hazards. And we
> >   _very_ much want read side hazards to be caught. For full details of
> >   this limitation see
> >
> >   commit e91498589746065e3ae95d9a00b068e525eec34f
> >   Author: Peter Zijlstra 
> >   Date:   Wed Aug 23 13:13:11 2017 +0200
> >
> >   locking/lockdep/selftests: Add mixed read-write ABBA tests
> >
> > - To allow nesting of the read-side explicit annotations we explicitly
> >   keep track of the nesting. lock_is_held() allows us to do that.
> >
> > - The wait-side annotation is a write lock, and entirely done within
> >   dma_fence_wait() for everyone by default.
> >
> > - To be able to freely annotate helper functions I want to make it ok
> >   to call dma_fence_begin/end_signalling from soft/hardirq context.
> >   First attempt was using the hardirq locking context for the write
> >   side in lockdep, but this forces all normal spinlocks nested within
> >   dma_fence_begin/end_signalling to be spinlocks. That bollocks.
> >
> >   The approach now is to simple check in_atomic(), and for these cases
> >   entirely rely on the might_sleep() check in dma_fence_wait(). That
> >   will catch any wrong nesting against spinlocks from soft/hardirq
> >   contexts.
> >
> > The idea here is that every code path that's critical for eventually
> > signalling a dma_fence should be annotated with
> > dma_fence_begin/end_signalling. The annotation ideally starts right
> > after a dma_fence is published (added to a dma_resv, exposed as a
> > sync_file fd, attached to a drm_syncobj fd, or anything else that
> > makes the dma_fence visible to other kernel threads), up to and
> > including the dma_fence_wait(). Examples are irq handlers, the
> > scheduler rt threads, the tail of execbuf (after the corresponding
> > fences are visible), any workers that end up signalling dma_fences and
> > really anything else. Not annotated should be code paths that only
> > complete fences opportunistically as the gpu progresses, like e.g.
> > shrinker/eviction code.
> >
> > The main class of deadlocks this is supposed to catch are:
> >
> > Thread A:
> >
> > mutex_lock(A);
> > mutex_unlock(A);
> >
> > dma_fence_signal();
> >
> > Thread B:
> >
> > mutex_lock(A);
> > dma_fence_wait();
> > mutex_unlock(A);
> >
> > Thread B is blocked on A signalling the fence, but A never gets around
> > to that because it cannot acquire the lock A.
> >
> > Note that dma_fence_wait() is allowed to be nested within
> > dma_fence_begin/end_signalling sections. To allow this to happen the
> > read lock needs to be upgraded to a write lock, which means that any
> > other lock is acquired between the dma_fence_begin_signalling() call and
> > the call to dma_fence_wait(), and still held, this will result in an
> > immediate lockdep complaint. The only other option would be to not
> > annotate such calls, defeating the point. Therefore these annotations
> > cannot be sprinkled over the code entirely mindless to avoid false
> > positives.
> >
> > v2: handle soft/hardirq ctx better against write side and dont forget
> > EXPORT_SYMBOL, drivers can't use this otherwise.
> >
> > v3: Kerneldoc.
> >
> > v4: Some spelling fixes from Mika
> >
> > Cc: Mika Kuoppala 
> > Cc: Thomas Hellstrom 
> > Cc: linux-me...@vger.kernel.org
> > Cc: linaro-mm-...@lists.linaro.org
> > Cc: linux-r...@vger.kernel.org
> > Cc: amd-...@lists.freedesktop.org
> > Cc: intel-...@lists.freedesktop.org
> > Cc: Chris Wilson 
> > Cc: Maarten Lankhorst 
> > Cc: Christian König 
> > Signed-off-by: Daniel Vetter 
>
> Introducing a global lockmap that cannot capture the rules correctly,

Can you document the rules all drivers should be following then,
because from here it looks to get refactored every version of i915,
and it would be nice if we could all aim for the same set of things
roughly. We've already had enough problems with amdgpu vs i915 vs
everyone else with fences, if this stops that in the future then I'd
rather we have that than just some unwritten rules per driver and
untestable.

Dave.


[git pull] drm fixes for 5.7-rc1 (updated pull)

2020-06-11 Thread Dave Airlie
Hi Linus,

This is the update of the pull I sent earlier today, it's got a couple
of more fixes along with the i915 fixes. One sun4i fix and a connector
hotplug race The ast fix is for a regression in 5.6, and as mentioned
previously one of the i915 ones fixes an oops reported by dhowells.

definitely taking tomorrow off now :-)

Regards,
Dave.

drm-next-2020-06-11-1:
drm fixes for 5.7-rc1

core:
- fix race in connectors sending hotplug

i915:
- Avoid use after free in cmdparser
- Avoid NULL dereference when probing all display encoders
- Fixup to module parameter type

sun4i:
- clock divider fix

ast:
- 24/32 bpp mode setting fix
The following changes since commit 8d286e2ff4400d313955b4203fc640ca6fd9228b:

  Merge tag 'drm-intel-next-fixes-2020-06-04' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-06-08
11:59:57 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-06-11-1

for you to fetch changes up to 66057dd1d1cf2149e0f5fdaee58d6ea69bc98048:

  Merge tag 'drm-misc-next-fixes-2020-06-11' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next (2020-06-11
17:51:15 +1000)


drm fixes for 5.7-rc1

core:
- fix race in connectors sending hotplug

i915:
- Avoid use after free in cmdparser
- Avoid NULL dereference when probing all display encoders
- Fixup to module parameter type

sun4i:
- clock divider fix

ast:
- 24/32 bpp mode setting fix


Chris Wilson (2):
  drm/i915/gem: Mark the buffer pool as active for the cmdparser
  drm/i915/display: Only query DP state of a DDI encoder

Colin Ian King (1):
  drm/ast: fix missing break in switch statement for format->cpp[0] case 4

Dave Airlie (2):
  Merge tag 'drm-intel-next-fixes-2020-06-10' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next
  Merge tag 'drm-misc-next-fixes-2020-06-11' of
git://anongit.freedesktop.org/drm/drm-misc into drm-next

Jani Nikula (1):
  drm/i915/params: fix i915.reset module param type

Jernej Skrabec (1):
  drm/sun4i: hdmi ddc clk: Fix size of m divider

Jeykumar Sankaran (1):
  drm/connector: notify userspace on hotplug after register complete

 drivers/gpu/drm/ast/ast_mode.c |  1 +
 drivers/gpu/drm/drm_connector.c|  5 +++
 drivers/gpu/drm/drm_sysfs.c|  3 --
 drivers/gpu/drm/i915/display/intel_dp.c|  3 ++
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 56 ++
 drivers/gpu/drm/i915/i915_params.c |  2 +-
 drivers/gpu/drm/sun4i/sun4i_hdmi.h |  2 +-
 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c |  2 +-
 8 files changed, 60 insertions(+), 14 deletions(-)


Re: [git pull] drm i915 fixes for rc1

2020-06-11 Thread Dave Airlie
On Thu, 11 Jun 2020 at 13:56, Dave Airlie  wrote:
>
> Hi Linus,

Hey actually skip this one in favour of the later one, one of the ast
fixes needs to get into stable as well.

Dave.


[git pull] drm i915 fixes for rc1

2020-06-10 Thread Dave Airlie
Hi Linus,

dhowells reported an oops, and the i915 team tracked it down to a
missing fix that didn't have correct tags, they've pulled it in along
with two other fixes.

I might have some more fixes for rc1, but I might not, taking the day
off tomorrow, so probably won't be in a hurry to process anything new
unless something urgent lands.

Thanks,
Dave.

drm-next-2020-06-11:
drm i915 fixes for 5.8-rc1

i915:
- Avoid use after free in cmdparser
- Avoid NULL dereference when probing all display encoders
- Fixup to module parameter type
The following changes since commit 8d286e2ff4400d313955b4203fc640ca6fd9228b:

  Merge tag 'drm-intel-next-fixes-2020-06-04' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-06-08
11:59:57 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-06-11

for you to fetch changes up to addb1e23bf72c47a3e2eb7cdad6dc8cdffa91384:

  Merge tag 'drm-intel-next-fixes-2020-06-10' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-06-11
11:49:04 +1000)


drm i915 fixes for 5.8-rc1

i915:
- Avoid use after free in cmdparser
- Avoid NULL dereference when probing all display encoders
- Fixup to module parameter type


Chris Wilson (2):
  drm/i915/gem: Mark the buffer pool as active for the cmdparser
  drm/i915/display: Only query DP state of a DDI encoder

Dave Airlie (1):
  Merge tag 'drm-intel-next-fixes-2020-06-10' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next

Jani Nikula (1):
  drm/i915/params: fix i915.reset module param type

 drivers/gpu/drm/i915/display/intel_dp.c|  3 ++
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 56 ++
 drivers/gpu/drm/i915/i915_params.c |  2 +-
 3 files changed, 52 insertions(+), 9 deletions(-)


[git pull] drm msm next for 5.8-rc1

2020-06-07 Thread Dave Airlie
Hi Linus,

This should be the final feature pull for drm for rc1. This tree has
been in next for a couple of weeks, but Rob missed an arm32 build
issue, so I was awaiting the tree with a patch reverted. The tree was
also based on an 5.7-rc5 tree so I didn't want to futz around with
backmerging just for this, so I'm sending it from a topic branch based
on v5.7.

Dave.

drm-next-msm-5.8-2020-06-08:
drm msm next for 5.8-rc1

* new gpu support: a405, a640, a650
* dpu: color processing support
* mdp5: support for msm8x36 (the thing with a405)
* some prep work for per-context pagetables (ie the part that
  does not depend on in-flight iommu patches)
* last but not least, UABI update for submit ioctl to support
  syncobj (from Bas)
The following changes since commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162:

  Linux 5.7 (2020-05-31 16:49:15 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-msm-5.8-2020-06-08

for you to fetch changes up to efe792f39ddbc6396b9142afff97855ee357b492:

  Merge https://gitlab.freedesktop.org/drm/msm into drm-next-msm-5.8
(2020-06-08 13:22:57 +1000)


drm msm next for 5.8-rc1

* new gpu support: a405, a640, a650
* dpu: color processing support
* mdp5: support for msm8x36 (the thing with a405)
* some prep work for per-context pagetables (ie the part that
  does not depend on in-flight iommu patches)
* last but not least, UABI update for submit ioctl to support
  syncobj (from Bas)


Bas Nieuwenhuizen (1):
  drm/msm: Add syncobj support.

Bjorn Andersson (1):
  drm/msm: Fix undefined "rd_full" link error

Christophe JAILLET (2):
  drm/msm/a6xx: Fix a typo in an error message
  drm/msm: Fix typo

Dave Airlie (1):
  Merge https://gitlab.freedesktop.org/drm/msm into drm-next-msm-5.8

Hongbo Yao (1):
  drm/msm/dpu: Fix compile warnings

Jonathan Marek (10):
  drm/msm: add msm_gem_get_and_pin_iova_range
  drm/msm: add internal MSM_BO_MAP_PRIV flag
  drm/msm/a6xx: use msm_gem for GMU memory objects
  drm/msm/a6xx: add A640/A650 to gpulist
  drm/msm/a6xx: HFI v2 for A640 and A650
  drm/msm/a6xx: A640/A650 GMU firmware path
  drm/msm/a6xx: update pdc/rscc GMU registers for A640/A650
  drm/msm/a6xx: enable GMU log
  drm/msm/a6xx: update a6xx_hw_init for A640 and A650
  drm/msm/a6xx: skip HFI set freq if GMU is powered down

Jordan Crouse (4):
  drm/msm: Check for powered down HW in the devfreq callbacks
  drm/msm: Attach the IOMMU device during initialization
  drm/msm: Refactor address space initialization
  drm/msm: Update the MMU helper function APIs

Kalyan Thota (3):
  drm/msm/dpu: add support for color processing blocks in dpu driver
  drm/msm/dpu: add support for pcc color block in dpu driver
  drm/msm/dpu: add support for clk and bw scaling for display

Konrad Dybcio (1):
  drm/msm/mdp5: Add MDP5 configuration for MSM8x36.

Krishna Manikandan (1):
  drm/msm/dpu: update bandwidth threshold check

Rob Clark (1):
  Revert "drm/msm/dpu: add support for clk and bw scaling for display"

Roy Spliet (1):
  drm/msm/mdp5: Fix mdp5_init error path for failed mdp5_kms allocation

Shawn Guo (2):
  drm/msm/a4xx: add adreno a405 support
  drm/msm/a4xx: add a405_registers for a405 device

kbuild test robot (2):
  drm/msm/a6xx: a6xx_hfi_send_start() can be static
  drm/msm/dpu: dpu_setup_dspp_pcc() can be static

 drivers/gpu/drm/msm/Makefile   |   1 +
 drivers/gpu/drm/msm/adreno/a2xx_gpu.c  |  16 +
 drivers/gpu/drm/msm/adreno/a3xx_gpu.c  |   1 +
 drivers/gpu/drm/msm/adreno/a4xx_gpu.c  |  83 -
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c  |   7 +
 drivers/gpu/drm/msm/adreno/a6xx.xml.h  |  14 +
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c  | 418 +++--
 drivers/gpu/drm/msm/adreno/a6xx_gmu.h  |  37 ++-
 drivers/gpu/drm/msm/adreno/a6xx_gmu.xml.h  |  48 +--
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c  |  70 -
 drivers/gpu/drm/msm/adreno/a6xx_hfi.c  | 123 +++-
 drivers/gpu/drm/msm/adreno/a6xx_hfi.h  |  50 ++-
 drivers/gpu/drm/msm/adreno/adreno_device.c |  35 +++
 drivers/gpu/drm/msm/adreno/adreno_gpu.c|  27 +-
 drivers/gpu/drm/msm/adreno/adreno_gpu.h|  23 ++
 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c  |  23 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c   |  95 --
 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h   |   2 +
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c|  12 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c |  48 ++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h |  39 +++
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c |  26 ++
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h |   3 +
 drivers/gpu/drm/msm/disp/dpu1/dp

[git pull] drm next fixes for 5.7-rc1

2020-06-07 Thread Dave Airlie
Hey Linus,

This are the fixes from last week for the stuff merged in the merge
window. It got a bunch of nouveau fixes for HDA audio on some new
GPUs, some i915 and some amdpgu fixes.

I've got another pull request with Rob's msm next stuff in it I'll
send along after this, it was in -next all along, but it needed a
revert before I merged it, and it also was on a different base, so
I'll sent a separate pull from my fixes branch to avoid me having to
backmerge anything here yet.

Dave.

drm-next-2020-06-08:
drm fixes for 5.7-rc1

i915:
- gvt: Fix one clang warning on debug only function
   Use ARRAY_SIZE for coccicheck warn
- Use after free fix for display global state.
- Whitelisting context-local timestamp on Gen9
  and two scheduler fixes with deps (Cc: stable)
- Removal of write flag from sysfs files where
  ineffective

nouveau:
- HDMI/DP audio HDA fixes
- display hang fix for Volta/Turing
- GK20A regression fix.

amdgpu:
- Prevent hwmon accesses while GPU is in reset
- CTF interrupt fix
- Backlight fix for renoir
- Fix for display sync groups
- Display bandwidth validation workaround
The following changes since commit 9ca1f474cea0edc14a1d7ec933e5472c0ff115d3:

  Merge tag 'amd-drm-next-5.8-2020-05-27' of
git://people.freedesktop.org/~agd5f/linux into drm-next (2020-05-28
16:10:17 +1000)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-06-08

for you to fetch changes up to 8d286e2ff4400d313955b4203fc640ca6fd9228b:

  Merge tag 'drm-intel-next-fixes-2020-06-04' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-06-08
11:59:57 +1000)


drm fixes for 5.7-rc1

i915:
- gvt: Fix one clang warning on debug only function
   Use ARRAY_SIZE for coccicheck warn
- Use after free fix for display global state.
- Whitelisting context-local timestamp on Gen9
  and two scheduler fixes with deps (Cc: stable)
- Removal of write flag from sysfs files where
  ineffective

nouveau:
- HDMI/DP audio HDA fixes
- display hang fix for Volta/Turing
- GK20A regression fix.

amdgpu:
- Prevent hwmon accesses while GPU is in reset
- CTF interrupt fix
- Backlight fix for renoir
- Fix for display sync groups
- Display bandwidth validation workaround


Aishwarya Ramakrishnan (1):
  drm/i915/gvt: Use ARRAY_SIZE for vgpu_types

Alex Deucher (2):
  drm/amdgpu/pm: return an error during GPU reset or suspend (v2)
  drm/amdgpu/display: use blanked rather than plane state for sync groups

Ben Skeggs (8):
  drm/nouveau/disp/gm200-: fix NV_PDISP_SOR_HDMI2_CTRL(n) selection
  drm/nouveau/kms/gt215-: fix race with audio driver runpm
  drm/nouveau/disp: provide hint to OR allocation about HDA requirements
  drm/nouveau/disp: split part of OR allocation logic into a function
  drm/nouveau/disp: modify OR allocation policy to account for HDA
requirements
  drm/nouveau/disp/gp100: split SOR implementation from gm200
  drm/nouveau/disp/gm200-: detect and potentially disable HDA
support on some SORs
  drm/nouveau/kms/nv50-: clear SW state of disabled windows harder

Chris Wilson (9):
  drm/i915: Don't set queue-priority hint when supressing the reschedule
  drm/i915/gt: Remove errant assertion in __intel_context_do_pin
  drm/i915: Disable semaphore inter-engine sync without timeslicing
  drm/i915: Avoid using rq->engine after free during i915_fence_release
  drm/i915/gem: Avoid iterating an empty list
  drm/i915: Reorder await_execution before await_request
  drm/i915/gt: Do not schedule normal requests immediately along virtual
  drm/i915: Check for awaits on still currently executing requests
  drm/i915: Whitelist context-local timestamp in the gen9 cmdparser

Dave Airlie (3):
  Merge branch 'linux-5.8' of git://github.com/skeggsb/linux into drm-next
  Merge tag 'amd-drm-fixes-5.8-2020-06-04' of
git://people.freedesktop.org/~agd5f/linux into drm-next
  Merge tag 'drm-intel-next-fixes-2020-06-04' of
git://anongit.freedesktop.org/drm/drm-intel into drm-next

Evan Quan (1):
  drm/amd/powerplay: ack the SMUToHost interrupt on receive V2

Harry Wentland (1):
  Revert "drm/amd/display: disable dcn20 abm feature for bring up"

Jani Nikula (2):
  drm/i915/params: don't expose inject_probe_failure in debugfs
  drm/i915/params: fix i915.fake_lmem_start module param sysfs permissions

Joonas Lahtinen (1):
  Merge tag 'gvt-next-fixes-2020-05-28' of
https://github.com/intel/gvt-linux into drm-intel-next-fixes

Nathan Chancellor (1):
  drm/i915: Mark check_shadow_context_ppgtt as maybe unused

Nicholas Kazlauskas (1):
  drm/amd/display: Revalidate bandwidth before commiting DC updates

Thierry Reding (1):
  drm/nouveau: gr/gk20a: Use firmware version 0

Ville Syrjälä (1):
  drm/i915: Fix global state use-after-frees wi

Re: [git pull] drm for 5.8-rc1

2020-06-02 Thread Dave Airlie
On Wed, 3 Jun 2020 at 08:14, Linus Torvalds
 wrote:
>
> On Mon, Jun 1, 2020 at 11:06 PM Dave Airlie  wrote:
> >
> > I've pushed a merged by me tree here, which I think gets them all
> > correct, but please let me know if you think different.
> > https://cgit.freedesktop.org/~airlied/linux/log/?h=drm-5.8-merged
>
> Ok, I get the same result, except my resolution to the simple encoder
> issue was slightly different. I removed the simple helper header
> include too as part of basically undoing the whole simple encoder
> conversion.

Yes sounds like my experience.

I spent time on the tides and it was a revert pretty much of the
commit in next, I just missed the header include line.

I also realised I'd likely mismerged earlier when fixing this up, I'm
going to have to put more time into merge fixing up, I'm still not
always happy with my methods of figuring out what the correct answer
is.

> But other than that we're identical, which is a good sign. Apparently
> the drm mis-merge in the middle got fixed up.

Cool, thanks for redoing it, since this was definitely one of the more
conflicty ones I've had in a while.

Dave.


Re: inux-next: build failure after merge of the drm-msm tree

2020-06-01 Thread Dave Airlie
On Tue, 2 Jun 2020 at 08:15, Stephen Rothwell  wrote:
>
> Hi Dave,
>
> On Fri, 29 May 2020 14:10:56 +1000 Stephen Rothwell  
> wrote:
> >
> > On Tue, 26 May 2020 14:08:41 +1000 Stephen Rothwell  
> > wrote:
> > >
> > > On Tue, 19 May 2020 15:09:55 +1000 Stephen Rothwell 
> > >  wrote:
> > > >
> > > > After merging the drm-msm tree, today's linux-next build (arm
> > > > multi_v7_defconfig) failed like this:
> > > >
> > > > ERROR: modpost: "__aeabi_ldivmod" [drivers/gpu/drm/msm/msm.ko] 
> > > > undefined!
> > > > ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/msm/msm.ko] 
> > > > undefined!
> > > >
> > > > Caused by commit
> > > >
> > > >   04d9044f6c57 ("drm/msm/dpu: add support for clk and bw scaling for 
> > > > display")
> > > >
> > > > I applied the following patch for today (this is mechanical, there may
> > > > be a better way):
> > > >
> > > > From: Stephen Rothwell 
> > > > Date: Tue, 19 May 2020 14:12:39 +1000
> > > > Subject: [PATCH] drm/msm/dpu: fix up u64/u32 division for 32 bit 
> > > > architectures
> > > >
> > > > Signed-off-by: Stephen Rothwell 
> > > > ---
> > > >  drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 23 ++-
> > > >  drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 15 
> > > >  2 files changed, 28 insertions(+), 10 deletions(-)
> > > >
> > > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c 
> > > > b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
> > > > index 9697abcbec3f..85c2a4190840 100644
> > > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
> > > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
> > > > @@ -10,6 +10,7 @@
> > > >  #include 
> > > >  #include 
> > > >  #include 
> > > > +#include 
> > > >
> > > >  #include "dpu_kms.h"
> > > >  #include "dpu_trace.h"
> > > > @@ -53,8 +54,11 @@ static u64 _dpu_core_perf_calc_bw(struct dpu_kms 
> > > > *kms,
> > > >   }
> > > >
> > > >   bw_factor = kms->catalog->perf.bw_inefficiency_factor;
> > > > - if (bw_factor)
> > > > - crtc_plane_bw = mult_frac(crtc_plane_bw, bw_factor, 100);
> > > > + if (bw_factor) {
> > > > + u64 quot = crtc_plane_bw;
> > > > + u32 rem = do_div(quot, 100);
> > > > + crtc_plane_bw = (quot * bw_factor) + ((rem * bw_factor) / 
> > > > 100);
> > > > + }
> > > >
> > > >   return crtc_plane_bw;
> > > >  }
> > > > @@ -89,8 +93,11 @@ static u64 _dpu_core_perf_calc_clk(struct dpu_kms 
> > > > *kms,
> > > >   }
> > > >
> > > >   clk_factor = kms->catalog->perf.clk_inefficiency_factor;
> > > > - if (clk_factor)
> > > > - crtc_clk = mult_frac(crtc_clk, clk_factor, 100);
> > > > + if (clk_factor) {
> > > > + u64 quot = crtc_clk;
> > > > + u32 rem = do_div(quot, 100);
> > > > + crtc_clk = (quot * clk_factor) + ((rem * clk_factor) / 100);
> > > > + }
> > > >
> > > >   return crtc_clk;
> > > >  }
> > > > @@ -234,8 +241,12 @@ static int _dpu_core_perf_crtc_update_bus(struct 
> > > > dpu_kms *kms,
> > > >   }
> > > >   }
> > > >
> > > > - avg_bw = kms->num_paths ?
> > > > - perf.bw_ctl / kms->num_paths : 0;
> > > > + if (kms->num_paths) {
> > > > + avg_bw = perf.bw_ctl;
> > > > + do_div(avg_bw, kms->num_paths);
> > > > + } else {
> > > > + avg_bw = 0;
> > > > + }
> > > >
> > > >   for (i = 0; i < kms->num_paths; i++)
> > > >   icc_set_bw(kms->path[i],
> > > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c 
> > > > b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> > > > index c2a6e3dacd68..ad95f32eac13 100644
> > > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> > > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> > > > @@ -9,6 +9,7 @@
> > > >
> > > >  #include 
> > > >  #include 
> > > > +#include 
> > > >
> > > >  #include 
> > > >  #include 
> > > > @@ -174,7 +175,11 @@ static void _dpu_plane_calc_bw(struct drm_plane 
> > > > *plane,
> > > >   plane_prefill_bw =
> > > >   src_width * hw_latency_lines * fps * fmt->bpp * scale_factor;
> > > >
> > > > - plane_prefill_bw = mult_frac(plane_prefill_bw, mode->vtotal, 
> > > > (vbp+vpw));
> > > > + {
> > > > + u64 quot = plane_prefill_bw;
> > > > + u32 rem = do_div(plane_prefill_bw, vbp + vpw);
> > > > + plane_prefill_bw = quot * mode->vtotal + rem * mode->vtotal / 
> > > > (vbp + vpw);
> > > > + }
> > > >
> > > >   pstate->plane_fetch_bw = max(plane_bw, plane_prefill_bw);
> > > >  }
> > > > @@ -204,9 +209,11 @@ static void _dpu_plane_calc_clk(struct drm_plane 
> > > > *plane)
> > > >   pstate->plane_clk =
> > > >   dst_width * mode->vtotal * fps;
> > > >
> > > > - if (src_height > dst_height)
> > > > - pstate->plane_clk = mult_frac(pstate->plane_clk,
> > > > - src_height, dst_height);
> > > > + if (src_height > dst_height) {
> > > > + u64 quot = pstate->plane_clk;
> > > > + u32 rem = do_div(quot, dst_height);
> > > > + pstate->plane_clk = quot * src_height + rem * src_height / 
> > > > 

[git pull] drm fixes for 5.7 final (apologies release)

2020-05-28 Thread Dave Airlie
Hey,

Apologies for previous PR, I did build it locally, I just don't build
EXPERT kernels, I expect if I ever get a new builder I should add a
few more configs to my list.

I've just dropped the i915 PR from this completely, I'm sure when they
wake up they'll be able to tell us what we are missing due to mistakes
made.

Dave.

drm-fixes-2020-05-29-1:
drm fixes for 5.7 final

amdgpu:
- display atomic test fix
- Fix soft hang in display vupdate code

ingenic:
- fix pointer cast
- fix crtc atomic check callback
The following changes since commit 9cb1fd0efd195590b828b9b865421ad345a4a145:

  Linux 5.7-rc7 (2020-05-24 15:32:54 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-29-1

for you to fetch changes up to ed9244bd0b265c4c0866a9246c6e7cca1cca3acf:

  Merge tag 'drm-misc-fixes-2020-05-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-05-29
12:11:11 +1000)


drm fixes for 5.7 final

amdgpu:
- display atomic test fix
- Fix soft hang in display vupdate code

ingenic:
- fix pointer cast
- fix crtc atomic check callback


Aric Cyr (1):
  drm/amd/display: Fix potential integer wraparound resulting in a hang

Dave Airlie (2):
  Merge tag 'amd-drm-fixes-5.7-2020-05-27' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-05-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Paul Cercueil (2):
  gpu/drm: ingenic: Fix bogus crtc_atomic_check callback
  gpu/drm: Ingenic: Fix opaque pointer casted to wrong type

Simon Ser (1):
  drm/amd/display: drop cursor position check in atomic test

 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 ---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 2 ++
 drivers/gpu/drm/ingenic/ingenic-drm.c | 6 +++---
 3 files changed, 5 insertions(+), 10 deletions(-)


Re: [git pull] drm fixes for 5.7-rc8/final

2020-05-28 Thread Dave Airlie
On Fri, 29 May 2020 at 12:02, Dave Airlie  wrote:
>
> On Fri, 29 May 2020 at 11:49, Linus Torvalds
>  wrote:
> >
> > On Thu, May 28, 2020 at 5:21 PM Dave Airlie  wrote:
> > >
> > > Seems to have wound down nicely, a couple of i915 fixes, amdgpu fixes
> > > and minor ingenic fixes.
> >
> > Dave, this doesn't even build. WTF?
> >
> > In drivers/gpu/drm/i915/gt/selftest_lrc.c, there's a
> > engine_heartbeat_disable() function that takes two arguments, but the
> > new "live_timeslice_nopreempt()" gives it only one.
> >
> > I'd blame a merge problem, since the failure is in new code, but the
> > problem exists in your top-of-tree, not just my merge.
> >
> > In fact, it's not even your merge of the i915 tree that is the source
> > of the problem (although the fact that you clearly didn't _test_ the
> > end result most definitely is _part_ of the problem!).
> >
> > Because the problem exists in the commit that introduced that thing:
> > commit 1f65efb624c4 ("drm/i915/gt: Prevent timeslicing into
> > unpreemptable requests").
> >
> > It's garbage, and never compiled.
>
> I thought I'd dropped the ball completely. but I see it's a selftest
> failure, I must not have selftests built in my config here, I don't do
> exhaustive builds randconfig
>
> This has also been built by Intel, but I'm assuming they missed their
> selftest bits as well.
>
> I'll revert that and resend.

I did drop the ball in one way, I see sfr reported it broken this morning

I normally expect stuff coming from Intel has been through their CI,
even their fixes tree generally gets pushed through that system before
I get it, and it usually catches these things.

I might have to push back on intel fixes this late in the day, as
maybe the land on next and cherry-pick to fixes model has made them a
bit lax on how much stuff goes through CI.

I've just drop the whole i915 fixes from the tree and will resend with
it removed.

Dave.


Re: [git pull] drm fixes for 5.7-rc8/final

2020-05-28 Thread Dave Airlie
On Fri, 29 May 2020 at 11:49, Linus Torvalds
 wrote:
>
> On Thu, May 28, 2020 at 5:21 PM Dave Airlie  wrote:
> >
> > Seems to have wound down nicely, a couple of i915 fixes, amdgpu fixes
> > and minor ingenic fixes.
>
> Dave, this doesn't even build. WTF?
>
> In drivers/gpu/drm/i915/gt/selftest_lrc.c, there's a
> engine_heartbeat_disable() function that takes two arguments, but the
> new "live_timeslice_nopreempt()" gives it only one.
>
> I'd blame a merge problem, since the failure is in new code, but the
> problem exists in your top-of-tree, not just my merge.
>
> In fact, it's not even your merge of the i915 tree that is the source
> of the problem (although the fact that you clearly didn't _test_ the
> end result most definitely is _part_ of the problem!).
>
> Because the problem exists in the commit that introduced that thing:
> commit 1f65efb624c4 ("drm/i915/gt: Prevent timeslicing into
> unpreemptable requests").
>
> It's garbage, and never compiled.

I thought I'd dropped the ball completely. but I see it's a selftest
failure, I must not have selftests built in my config here, I don't do
exhaustive builds randconfig

This has also been built by Intel, but I'm assuming they missed their
selftest bits as well.

I'll revert that and resend.

Sorry for the noise. I'll add self tests to my builds here for future ones.
Dave.


[git pull] drm fixes for 5.7-rc8/final

2020-05-28 Thread Dave Airlie
Hey Linus,

Seems to have wound down nicely, a couple of i915 fixes, amdgpu fixes
and minor ingenic fixes.

Should be it until the merge window.

Dave.

drm-fixes-2020-05-29:
drm fixes for 5.7 final

i915:
- gcc 9 compile warning fix
- timeslicing fixes

amdgpu:
- display atomic test fix
- Fix soft hang in display vupdate code

ingenic:
- fix pointer cast
- fix crtc atomic check callback
The following changes since commit 9cb1fd0efd195590b828b9b865421ad345a4a145:

  Linux 5.7-rc7 (2020-05-24 15:32:54 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-29

for you to fetch changes up to d099f415d50c3980339479f56f124f8bfa6875bc:

  Merge tag 'drm-misc-fixes-2020-05-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-05-29
09:25:23 +1000)


drm fixes for 5.7 final

i915:
- gcc 9 compile warning fix
- timeslicing fixes

amdgpu:
- display atomic test fix
- Fix soft hang in display vupdate code

ingenic:
- fix pointer cast
- fix crtc atomic check callback


Aric Cyr (1):
  drm/amd/display: Fix potential integer wraparound resulting in a hang

Arnd Bergmann (2):
  drm/i915/pmu: avoid an maybe-uninitialized warning
  drm/i915: work around false-positive maybe-uninitialized warning

Chris Wilson (2):
  drm/i915/gt: Incorporate the virtual engine into timeslicing
  drm/i915/gt: Prevent timeslicing into unpreemptable requests

Dave Airlie (3):
  Merge tag 'amd-drm-fixes-5.7-2020-05-27' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-05-28' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'drm-misc-fixes-2020-05-28' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Paul Cercueil (2):
  gpu/drm: ingenic: Fix bogus crtc_atomic_check callback
  gpu/drm: Ingenic: Fix opaque pointer casted to wrong type

Simon Ser (1):
  drm/amd/display: drop cursor position check in atomic test

 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |   7 --
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  |   2 +
 drivers/gpu/drm/i915/gt/intel_lrc.c|  31 --
 drivers/gpu/drm/i915/gt/selftest_lrc.c | 118 -
 drivers/gpu/drm/i915/gt/selftest_workarounds.c |   2 +
 drivers/gpu/drm/i915/i915_pmu.c|  84 +++
 drivers/gpu/drm/i915/i915_priolist_types.h |   2 +-
 drivers/gpu/drm/ingenic/ingenic-drm.c  |   6 +-
 8 files changed, 192 insertions(+), 60 deletions(-)


Re: clean up kernel_{read,write} & friends v2

2020-05-28 Thread Dave Airlie
On Fri, 29 May 2020 at 05:35, Al Viro  wrote:
>
> On Thu, May 28, 2020 at 12:22:08PM -0700, Joe Perches wrote:
>
> > Hard limits at 80 really don't work well, especially with
> > some of the 25+ character length identifiers used today.
>
> IMO any such identifier is a good reason for a warning.
>
> The litmus test is actually very simple: how unpleasant would it be
> to mention the identifiers while discussing the code over the phone?

That doesn't make sense though,

if you write the full english words out for something it'll be long
but easier to say over the phone,
if you use shortened kernel abbreviations it will be short but you'd
have to read out every letter.

To take an example:
this would read pretty well on the phone, maybe params could be parameters
amdgpu_atombios_get_leakage_vddc_based_on_leakage_params

vddc would be a stumbler.

try saying O_CREAT over the phone to someone not steeped in UNIX folklore.

Dave.


Re: [Nouveau] [PATCH] nouveau: add fbdev dependency

2020-05-27 Thread Dave Airlie
On Thu, 28 May 2020 at 00:36, Arnd Bergmann  wrote:
>
> On Wed, May 27, 2020 at 4:05 PM Ilia Mirkin  wrote:
> >
> > Isn't this already fixed by
> >
> > https://cgit.freedesktop.org/drm/drm/commit/?id=7dbbdd37f2ae7dd4175ba3f86f4335c463b18403
>
> Ok, I see that fixes the link error, but I when I created my fix, that did
> not seem like the correct solution because it reverts part of the original
> patch without reverting the rest of it. Unfortunately there was no
> changelog text in the first patch to explain why this is safe.

No it doesn't, I think you missed the pci in API name.

The initial behaviour doesn't use the pci version of the API, the
replacement did, and the fix used the drm wrapper around the pci one.

So this patch isn't necessary now that I've fixed it the other way,

Thanks,
Dave.


Re: mmotm 2020-05-25-16-56 uploaded (drm/nouveau)

2020-05-25 Thread Dave Airlie
On Tue, 26 May 2020 at 13:50, Randy Dunlap  wrote:
>
> On 5/25/20 4:57 PM, Andrew Morton wrote:
> > The mm-of-the-moment snapshot 2020-05-25-16-56 has been uploaded to
> >
> >http://www.ozlabs.org/~akpm/mmotm/
> >
> > mmotm-readme.txt says
> >
> > README for mm-of-the-moment:
> >
> > http://www.ozlabs.org/~akpm/mmotm/
> >
> > This is a snapshot of my -mm patch queue.  Uploaded at random hopefully
> > more than once a week.
> >
> > You will need quilt to apply these patches to the latest Linus release (5.x
> > or 5.x-rcY).  The series file is in broken-out.tar.gz and is duplicated in
> > http://ozlabs.org/~akpm/mmotm/series
> >
> > The file broken-out.tar.gz contains two datestamp files: .DATE and
> > .DATE--mm-dd-hh-mm-ss.  Both contain the string -mm-dd-hh-mm-ss,
> > followed by the base kernel version against which this patch series is to
> > be applied.
> >
>
> on x86_64:
>
> when CONFIG_DRM_NOUVEAU=y and CONFIG_FB=m:
>
> ld: drivers/gpu/drm/nouveau/nouveau_drm.o: in function `nouveau_drm_probe':
> nouveau_drm.c:(.text+0x1d67): undefined reference to 
> `remove_conflicting_pci_framebuffers'

I've pushed the fix for this to drm-next.

Ben just used the wrong API.

Dave.


Re: lockdep trace with xfs + mm in it from 5.7.0-rc5

2020-05-24 Thread Dave Airlie
On Sat, 23 May 2020 at 06:51, Darrick J. Wong  wrote:
>
> OTOH, it didn't take that long to whip up a patch.
>
> Dave, does this fix your problem?

I reproduced with 5.7.0-rc7, and tried this patch on top in the same
VM doing the same thing.

with this patch I no longer see the lockdep trace.

Tested-by: Dave Airlie 

Thanks,
Dave.


[git pull] drm fixes for v5.7-rc7

2020-05-22 Thread Dave Airlie
Hi Linus,

Things seemed to have quieten down, though no i915 pull (I even gave
them an extra 12 hours in case they were late). The amdgpu floating
point fix is probably the largest, but it just moves some code around
to it doesn't do fpu stuff outside the fpu boundaries. Otherwise it's
just a couple of vmwgfx fixes (maintainer change) and two etnaviv
fixes.

Dave.

drm-fixes-2020-05-23:
drm fixes for v5.7-rc7

vmwgfx:
- change maintainers
- fix redundant assignment
- fix parameter name
- fix return value

etnaviv:
- memory leak fix when userspace passes a invalid softpin address
- off-by-one crashing the kernel in the perfmon domain iteration when
  the GPU core has both 2D and 3D capabilities

amdgpu:
- DP fix
- Floating point fix
- Fix cursor stutter issue
The following changes since commit b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce:

  Linux 5.7-rc6 (2020-05-17 16:48:37 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-23

for you to fetch changes up to 7d9ff5eed4146bf026c69e766ff630bc0bd555bb:

  Merge tag 'amd-drm-fixes-5.7-2020-05-21' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-05-22
10:30:51 +1000)


drm fixes for v5.7-rc7

vmwgfx:
- change maintainers
- fix redundant assignment
- fix parameter name
- fix return value

etnaviv:
- memory leak fix when userspace passes a invalid softpin address
- off-by-one crashing the kernel in the perfmon domain iteration when
  the GPU core has both 2D and 3D capabilities

amdgpu:
- DP fix
- Floating point fix
- Fix cursor stutter issue


Christian Gmeiner (1):
  drm/etnaviv: fix perfmon domain interation

Colin Ian King (1):
  drm/vmwgfx: remove redundant assignment to variable ret

Dan Carpenter (1):
  drm/etnaviv: Fix a leak in submit_pin_objects()

Dave Airlie (3):
  Merge branch 'vmwgfx-fixes-5.7' of
git://people.freedesktop.org/~sroland/linux into drm-fixes
  Merge branch 'etnaviv/fixes' of
https://git.pengutronix.de/git/lst/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.7-2020-05-21' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Guixiong Wei (1):
  drm/vmwgfx: Fix parameter name in vmw_bo_init

Jan Schmidt (1):
  drm/edid: Add Oculus Rift S to non-desktop list

Jason Yan (1):
  drm/vmwgfx: Return true in function vmw_fence_obj_signaled()

Nicholas Kazlauskas (1):
  drm/amd/display: Defer cursor lock until after VUPDATE

Rodrigo Siqueira (1):
  drm/amd/display: Remove dml_common_def file

Roland Scheidegger (1):
  drm/vmwgfx: update MAINTAINERS entry

Vladimir Stempen (1):
  drm/amd/display: DP training to set properly SCRAMBLING_DISABLE

 MAINTAINERS|  4 +-
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   | 27 +
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 69 +-
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.h  |  5 ++
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_init.c  |  1 +
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c  |  1 +
 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_init.c  |  1 +
 drivers/gpu/drm/amd/display/dc/dml/Makefile|  2 -
 .../display/dc/dml/dcn20/display_rq_dlg_calc_20.h  |  1 -
 .../dc/dml/dcn20/display_rq_dlg_calc_20v2.h|  1 -
 .../display/dc/dml/dcn21/display_rq_dlg_calc_21.h  |  2 +-
 .../gpu/drm/amd/display/dc/dml/display_mode_lib.h  |  6 +-
 .../gpu/drm/amd/display/dc/dml/display_mode_vba.h  |  2 -
 .../amd/display/dc/dml/display_rq_dlg_helpers.h|  1 -
 .../amd/display/dc/dml/dml1_display_rq_dlg_calc.h  |  2 -
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.c   | 43 --
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.h   | 37 
 .../gpu/drm/amd/display/dc/dml/dml_inline_defs.h   | 15 -
 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h  |  5 ++
 drivers/gpu/drm/drm_edid.c |  3 +-
 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c   |  4 +-
 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c  |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c  |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c|  2 +-
 25 files changed, 137 insertions(+), 103 deletions(-)
 delete mode 100644 drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
 delete mode 100644 drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h


lockdep trace with xfs + mm in it from 5.7.0-rc5

2020-05-21 Thread Dave Airlie
Hi,

Just updated a rawhide VM to the Fedora 5.7.0-rc5 kernel, did some
package building,

got the below trace, not sure if it's known and fixed or unknown.

Dave.

  725.862536] ==
[  725.862564] WARNING: possible circular locking dependency detected
[  725.862591] 5.7.0-0.rc5.20200515git1ae7efb38854.1.fc33.x86_64 #1 Not tainted
[  725.862612] --
[  725.862630] kswapd0/159 is trying to acquire lock:
[  725.862645] 9b38d01a4470 (_nondir_ilock_class){}-{3:3},
at: xfs_ilock+0xde/0x2c0 [xfs]
[  725.862718]
   but task is already holding lock:
[  725.862735] bbb8bd00 (fs_reclaim){+.+.}-{0:0}, at:
__fs_reclaim_acquire+0x5/0x30
[  725.862762]
   which lock already depends on the new lock.

[  725.862785]
   the existing dependency chain (in reverse order) is:
[  725.862806]
   -> #1 (fs_reclaim){+.+.}-{0:0}:
[  725.862824]fs_reclaim_acquire+0x34/0x40
[  725.862839]__kmalloc+0x4f/0x270
[  725.862878]kmem_alloc+0x93/0x1d0 [xfs]
[  725.862914]kmem_alloc_large+0x4c/0x130 [xfs]
[  725.862945]xfs_attr_copy_value+0x74/0xa0 [xfs]
[  725.862984]xfs_attr_get+0x9d/0xc0 [xfs]
[  725.863021]xfs_get_acl+0xb6/0x200 [xfs]
[  725.863036]get_acl+0x81/0x160
[  725.863052]posix_acl_xattr_get+0x3f/0xd0
[  725.863067]vfs_getxattr+0x148/0x170
[  725.863081]getxattr+0xa7/0x240
[  725.863093]path_getxattr+0x52/0x80
[  725.863111]do_syscall_64+0x5c/0xa0
[  725.863133]entry_SYSCALL_64_after_hwframe+0x49/0xb3
[  725.863149]
   -> #0 (_nondir_ilock_class){}-{3:3}:
[  725.863177]__lock_acquire+0x1257/0x20d0
[  725.863193]lock_acquire+0xb0/0x310
[  725.863207]down_write_nested+0x49/0x120
[  725.863242]xfs_ilock+0xde/0x2c0 [xfs]
[  725.863277]xfs_reclaim_inode+0x3f/0x400 [xfs]
[  725.863312]xfs_reclaim_inodes_ag+0x20b/0x410 [xfs]
[  725.863351]xfs_reclaim_inodes_nr+0x31/0x40 [xfs]
[  725.863368]super_cache_scan+0x190/0x1e0
[  725.863383]do_shrink_slab+0x184/0x420
[  725.863397]shrink_slab+0x182/0x290
[  725.863409]shrink_node+0x174/0x680
[  725.863927]balance_pgdat+0x2d0/0x5f0
[  725.864389]kswapd+0x21f/0x510
[  725.864836]kthread+0x131/0x150
[  725.865277]ret_from_fork+0x3a/0x50
[  725.865707]
   other info that might help us debug this:

[  725.866953]  Possible unsafe locking scenario:

[  725.867764]CPU0CPU1
[  725.868161]
[  725.868531]   lock(fs_reclaim);
[  725.868896]lock(_nondir_ilock_class);
[  725.869276]lock(fs_reclaim);
[  725.869633]   lock(_nondir_ilock_class);
[  725.869996]
*** DEADLOCK ***

[  725.871061] 4 locks held by kswapd0/159:
[  725.871406]  #0: bbb8bd00 (fs_reclaim){+.+.}-{0:0}, at:
__fs_reclaim_acquire+0x5/0x30
[  725.871779]  #1: bbb7cef8 (shrinker_rwsem){}-{3:3}, at:
shrink_slab+0x115/0x290
[  725.872167]  #2: 9b39f07a50e8
(>s_umount_key#56){}-{3:3}, at: super_cache_scan+0x38/0x1e0
[  725.872560]  #3: 9b39f077f258
(>pag_ici_reclaim_lock){+.+.}-{3:3}, at:
xfs_reclaim_inodes_ag+0x82/0x410 [xfs]
[  725.873013]
   stack backtrace:
[  725.873811] CPU: 3 PID: 159 Comm: kswapd0 Not tainted
5.7.0-0.rc5.20200515git1ae7efb38854.1.fc33.x86_64 #1
[  725.874249] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS ?-20180724_192412-buildhw-07.phx2.fedoraproject.org-1.fc29
04/01/2014
[  725.875158] Call Trace:
[  725.875625]  dump_stack+0x8b/0xc8
[  725.876090]  check_noncircular+0x134/0x150
[  725.876547]  __lock_acquire+0x1257/0x20d0
[  725.877019]  lock_acquire+0xb0/0x310
[  725.877517]  ? xfs_ilock+0xde/0x2c0 [xfs]
[  725.877988]  down_write_nested+0x49/0x120
[  725.878473]  ? xfs_ilock+0xde/0x2c0 [xfs]
[  725.878955]  ? xfs_reclaim_inode+0x3f/0x400 [xfs]
[  725.879448]  xfs_ilock+0xde/0x2c0 [xfs]
[  725.879925]  xfs_reclaim_inode+0x3f/0x400 [xfs]
[  725.880414]  xfs_reclaim_inodes_ag+0x20b/0x410 [xfs]
[  725.880876]  ? sched_clock_cpu+0xc/0xb0
[  725.881343]  ? mark_held_locks+0x2d/0x80
[  725.881798]  ? _raw_spin_unlock_irqrestore+0x46/0x60
[  725.882268]  ? lockdep_hardirqs_on+0x11e/0x1b0
[  725.882734]  ? try_to_wake_up+0x249/0x820
[  725.883234]  xfs_reclaim_inodes_nr+0x31/0x40 [xfs]
[  725.883700]  super_cache_scan+0x190/0x1e0
[  725.884180]  do_shrink_slab+0x184/0x420
[  725.884653]  shrink_slab+0x182/0x290
[  725.885129]  shrink_node+0x174/0x680
[  725.885596]  balance_pgdat+0x2d0/0x5f0
[  725.886074]  kswapd+0x21f/0x510
[  725.886540]  ? finish_wait+0x90/0x90
[  725.887013]  ? balance_pgdat+0x5f0/0x5f0
[  725.887477]  kthread+0x131/0x150
[  725.887937]  ? __kthread_bind_mask+0x60/0x60
[  725.888410]  

Re: [RFC PATCH 0/4] DirectX on Linux

2020-05-19 Thread Dave Airlie
On Wed, 20 May 2020 at 08:42, Dave Airlie  wrote:
>
> On Wed, 20 May 2020 at 02:33, Sasha Levin  wrote:
> >
> > There is a blog post that goes into more detail about the bigger
> > picture, and walks through all the required pieces to make this work. It
> > is available here:
> > https://devblogs.microsoft.com/directx/directx-heart-linux . The rest of
> > this cover letter will focus on the Linux Kernel bits.
> >
> > Overview
> > 
> >
> > This is the first draft of the Microsoft Virtual GPU (vGPU) driver. The
> > driver exposes a paravirtualized GPU to user mode applications running
> > in a virtual machine on a Windows host. This enables hardware
> > acceleration in environment such as WSL (Windows Subsystem for Linux)
> > where the Linux virtual machine is able to share the GPU with the
> > Windows host.
> >
> > The projection is accomplished by exposing the WDDM (Windows Display
> > Driver Model) interface as a set of IOCTL. This allows APIs and user
> > mode driver written against the WDDM GPU abstraction on Windows to be
> > ported to run within a Linux environment. This enables the port of the
> > D3D12 and DirectML APIs as well as their associated user mode driver to
> > Linux. This also enables third party APIs, such as the popular NVIDIA
> > Cuda compute API, to be hardware accelerated within a WSL environment.
> >
> > Only the rendering/compute aspect of the GPU are projected to the
> > virtual machine, no display functionality is exposed. Further, at this
> > time there are no presentation integration. So although the D3D12 API
> > can be use to render graphics offscreen, there is no path (yet) for
> > pixel to flow from the Linux environment back onto the Windows host
> > desktop. This GPU stack is effectively side-by-side with the native
> > Linux graphics stack.
>
> Okay I've had some caffiene and absorbed some more of this.
>
> This is a driver that connects a binary blob interface in the Windows
> kernel drivers to a binary blob that you run inside a Linux guest.
> It's a binary transport between two binary pieces. Personally this
> holds little of interest to me, I can see why it might be nice to have
> this upstream, but I don't forsee any other Linux distributor ever
> enabling it or having to ship it, it's purely a WSL2 pipe. I'm not
> saying I'd be happy to see this in the tree, since I don't see the
> value of maintaining it upstream, but it probably should just exists
> in a drivers/hyperv type area.
>
> Having said that, I hit one stumbling block:
> "Further, at this time there are no presentation integration. "
>
> If we upstream this driver as-is into some hyperv specific place, and
> you decide to add presentation integration this is more than likely
> going to mean you will want to interact with dma-bufs and dma-fences.
> If the driver is hidden away in a hyperv place it's likely we won't
> even notice that feature landing until it's too late.
>
> I would like to see a coherent plan for presentation support (not
> code, just an architectural diagram), because I think when you
> contemplate how that works it will change the picture of how this
> driver looks and intergrates into the rest of the Linux graphics
> ecosystem.
>
> As-is I'd rather this didn't land under my purview, since I don't see
> the value this adds to the Linux ecosystem at all, and I think it's
> important when putting a burden on upstream that you provide some
> value.

I also have another concern from a legal standpoint I'd rather not
review the ioctl part of this. I'd probably request under DRI
developers abstain as well.

This is a Windows kernel API being smashed into a Linux driver. I
don't want to be tainted by knowledge of an API that I've no idea of
the legal status of derived works. (it this all covered patent wise
under OIN?)

I don't want to ever be accused of designing a Linux kernel API with
illgotten D3DKMT knowledge, I feel tainting myself with knowledge of a
properietary API might cause derived work issues.

Dave.


Re: [RFC PATCH 0/4] DirectX on Linux

2020-05-19 Thread Dave Airlie
On Wed, 20 May 2020 at 02:33, Sasha Levin  wrote:
>
> There is a blog post that goes into more detail about the bigger
> picture, and walks through all the required pieces to make this work. It
> is available here:
> https://devblogs.microsoft.com/directx/directx-heart-linux . The rest of
> this cover letter will focus on the Linux Kernel bits.
>
> Overview
> 
>
> This is the first draft of the Microsoft Virtual GPU (vGPU) driver. The
> driver exposes a paravirtualized GPU to user mode applications running
> in a virtual machine on a Windows host. This enables hardware
> acceleration in environment such as WSL (Windows Subsystem for Linux)
> where the Linux virtual machine is able to share the GPU with the
> Windows host.
>
> The projection is accomplished by exposing the WDDM (Windows Display
> Driver Model) interface as a set of IOCTL. This allows APIs and user
> mode driver written against the WDDM GPU abstraction on Windows to be
> ported to run within a Linux environment. This enables the port of the
> D3D12 and DirectML APIs as well as their associated user mode driver to
> Linux. This also enables third party APIs, such as the popular NVIDIA
> Cuda compute API, to be hardware accelerated within a WSL environment.
>
> Only the rendering/compute aspect of the GPU are projected to the
> virtual machine, no display functionality is exposed. Further, at this
> time there are no presentation integration. So although the D3D12 API
> can be use to render graphics offscreen, there is no path (yet) for
> pixel to flow from the Linux environment back onto the Windows host
> desktop. This GPU stack is effectively side-by-side with the native
> Linux graphics stack.

Okay I've had some caffiene and absorbed some more of this.

This is a driver that connects a binary blob interface in the Windows
kernel drivers to a binary blob that you run inside a Linux guest.
It's a binary transport between two binary pieces. Personally this
holds little of interest to me, I can see why it might be nice to have
this upstream, but I don't forsee any other Linux distributor ever
enabling it or having to ship it, it's purely a WSL2 pipe. I'm not
saying I'd be happy to see this in the tree, since I don't see the
value of maintaining it upstream, but it probably should just exists
in a drivers/hyperv type area.

Having said that, I hit one stumbling block:
"Further, at this time there are no presentation integration. "

If we upstream this driver as-is into some hyperv specific place, and
you decide to add presentation integration this is more than likely
going to mean you will want to interact with dma-bufs and dma-fences.
If the driver is hidden away in a hyperv place it's likely we won't
even notice that feature landing until it's too late.

I would like to see a coherent plan for presentation support (not
code, just an architectural diagram), because I think when you
contemplate how that works it will change the picture of how this
driver looks and intergrates into the rest of the Linux graphics
ecosystem.

As-is I'd rather this didn't land under my purview, since I don't see
the value this adds to the Linux ecosystem at all, and I think it's
important when putting a burden on upstream that you provide some
value.

Dave.


Re: [RFC PATCH 0/8] Qualcomm Cloud AI 100 driver

2020-05-18 Thread Dave Airlie
On Fri, 15 May 2020 at 00:12, Jeffrey Hugo  wrote:
>
> Introduction:
> Qualcomm Cloud AI 100 is a PCIe adapter card which contains a dedicated
> SoC ASIC for the purpose of efficently running Deep Learning inference
> workloads in a data center environment.
>
> The offical press release can be found at -
> https://www.qualcomm.com/news/releases/2019/04/09/qualcomm-brings-power-efficient-artificial-intelligence-inference
>
> The offical product website is -
> https://www.qualcomm.com/products/datacenter-artificial-intelligence
>
> At the time of the offical press release, numerious technology news sites
> also covered the product.  Doing a search of your favorite site is likely
> to find their coverage of it.
>
> It is our goal to have the kernel driver for the product fully upstream.
> The purpose of this RFC is to start that process.  We are still doing
> development (see below), and thus not quite looking to gain acceptance quite
> yet, but now that we have a working driver we beleive we are at the stage
> where meaningful conversation with the community can occur.


Hi Jeffery,

Just wondering what the userspace/testing plans for this driver.

This introduces a new user facing API for a device without pointers to
users or tests for that API.

Although this isn't a graphics driver, and Greg will likely merge
anything to the kernel you throw at him, I do wonder how to validate
the uapi from a security perspective. It's always interesting when
someone wraps a DMA engine with user ioctls, and without enough
information to decide if the DMA engine is secure against userspace
misprogramming it.

Also if we don't understand the programming API on board the device,
we can't tell if the "core" on the device are able to reprogram the
device engines either.

Figuring this out is difficult at the best of times, it helps if there
is access to the complete device documentation or user space side
drivers in order to faciliate this.

The other area I mention is testing the uAPI, how do you envisage
regression testing and long term sustainability of the uAPI?

Thanks,
Dave.


[git pull] drm fixes for 5.7-rc6

2020-05-15 Thread Dave Airlie
Hey Linus,

As mentioned last week an i915 PR came in late, but I left it, so the
i915 bits of this cover 2 weeks, which is why it's likely a bit larger
than usual. Otherwise it's mostly amdgpu fixes, one tegra fix, one
meson fix.

Regards,
Dave.

drm-fixes-2020-05-15:
drm fixes for v5.7-rc6

i915 (two weeks):
- Handle idling during i915_gem_evict_something busy loops (Chris)
- Mark current submissions with a weak-dependency (Chris)
- Propagate error from completed fences (Chris)
- Fixes on execlist to avoid GPU hang situation (Chris)
- Fixes couple deadlocks (Chris)
- Timeslice preemption fixes (Chris)
- Fix Display Port interrupt handling on Tiger Lake (Imre)
- Reduce debug noise around Frame Buffer Compression (Peter)
- Fix logic around IPC W/a for Coffee Lake and Kaby Lake (Sultan)
- Avoid dereferencing a dead context (Chris)

tegra:
- tegra120/4 smmu fixes

 amdgpu:
- Clockgating fixes
- Fix fbdev with scatter/gather display
- S4 fix for navi
- Soft recovery for gfx10
- Freesync fixes
- Atomic check cursor fix
- Add a gfxoff quirk
- MST fix

amdkfd:
- Fix GEM reference counting

meson:
- error code propogation fix
The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8:

  Linux 5.7-rc5 (2020-05-10 15:16:58 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-15

for you to fetch changes up to 1d2a1eb13610a9c8ec95f6f1e02cef55000f28e3:

  Merge tag 'drm-misc-fixes-2020-05-14' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-05-15
16:00:57 +1000)


drm fixes for v5.7-rc6

i915 (two weeks):
- Handle idling during i915_gem_evict_something busy loops (Chris)
- Mark current submissions with a weak-dependency (Chris)
- Propagate error from completed fences (Chris)
- Fixes on execlist to avoid GPU hang situation (Chris)
- Fixes couple deadlocks (Chris)
- Timeslice preemption fixes (Chris)
- Fix Display Port interrupt handling on Tiger Lake (Imre)
- Reduce debug noise around Frame Buffer Compression (Peter)
- Fix logic around IPC W/a for Coffee Lake and Kaby Lake (Sultan)
- Avoid dereferencing a dead context (Chris)

tegra:
- tegra120/4 smmu fixes

 amdgpu:
- Clockgating fixes
- Fix fbdev with scatter/gather display
- S4 fix for navi
- Soft recovery for gfx10
- Freesync fixes
- Atomic check cursor fix
- Add a gfxoff quirk
- MST fix

amdkfd:
- Fix GEM reference counting

meson:
- error code propogation fix


Alex Deucher (2):
  drm/amdgpu: force fbdev into vram
  drm/amdgpu: implement soft_recovery for gfx10

Bernard Zhao (1):
  drm/meson: pm resume add return errno branch

Chris Wilson (10):
  drm/i915: Avoid dereferencing a dead context
  drm/i915/gt: Make timeslicing an explicit engine property
  drm/i915: Check current i915_vma.pin_count status first on unbind
  drm/i915/gt: Yield the timeslice if caught waiting on a user semaphore
  drm/i915/gem: Remove object_is_locked assertion from
unpin_from_display_plane
  drm/i915/execlists: Avoid reusing the same logical CCID
  drm/i915/execlists: Track inflight CCID
  drm/i915: Propagate error from completed fences
  drm/i915: Mark concurrent submissions with a weak-dependency
  drm/i915: Handle idling during i915_gem_evict_something busy loops

Colin Xu (1):
  drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of
inheritance.

Dave Airlie (5):
  Merge tag 'drm-intel-fixes-2020-05-07' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'drm/tegra/for-5.7-fixes' of
git://anongit.freedesktop.org/tegra/linux into drm-fixes
  Merge tag 'amd-drm-fixes-5.7-2020-05-13' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-intel-fixes-2020-05-13-1' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'drm-misc-fixes-2020-05-14' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Evan Quan (4):
  drm/amdgpu: disable MGCG/MGLS also on gfx CG ungate
  drm/amdgpu: drop unnecessary cancel_delayed_work_sync on PG ungate
  drm/amd/powerplay: perform PG ungate prior to CG ungate
  drm/amdgpu: enable hibernate support on Navi1X

Felix Kuehling (1):
  drm/amdgpu: Use GEM obj reference for KFD BOs

Imre Deak (1):
  drm/i915/tgl+: Fix interrupt handling for DP AUX transactions

Leo (Hanghong) Ma (1):
  drm/amd/amdgpu: Update update_config() logic

Nicholas Kazlauskas (1):
  drm/amd/display: Fix vblank and pageflip event handling for FreeSync

Peter Jones (1):
  Make the "Reducing compressed framebufer size" message be DRM_INFO_ONCE()

Rodrigo Vivi (1):
  Merge tag 'gvt-fixes-2020-05-12' of
https://github.com/intel/gvt-linux into drm-intel-fixes

Simon Ser (1):
  drm/amd/display: add basic atomic check for cursor plane

Sultan Alsawaf (1):
  drm/i

Re: [Intel-gfx] [PATCH 3/3] misc/habalabs: don't set default fence_ops->wait

2020-05-11 Thread Dave Airlie
On Mon, 11 May 2020 at 19:37, Oded Gabbay  wrote:
>
> On Mon, May 11, 2020 at 12:11 PM Daniel Vetter  wrote:
> >
> > It's the default.
> Thanks for catching that.
>
> >
> > Also so much for "we're not going to tell the graphics people how to
> > review their code", dma_fence is a pretty core piece of gpu driver
> > infrastructure. And it's very much uapi relevant, including piles of
> > corresponding userspace protocols and libraries for how to pass these
> > around.
> >
> > Would be great if habanalabs would not use this (from a quick look
> > it's not needed at all), since open source the userspace and playing
> > by the usual rules isn't on the table. If that's not possible (because
> > it's actually using the uapi part of dma_fence to interact with gpu
> > drivers) then we have exactly what everyone promised we'd want to
> > avoid.
>
> We don't use the uapi parts, we currently only using the fencing and
> signaling ability of this module inside our kernel code. But maybe I
> didn't understand what you request. You want us *not* to use this
> well-written piece of kernel code because it is only used by graphics
> drivers ?
> I'm sorry but I don't get this argument, if this is indeed what you meant.

We would rather drivers using a feature that has requirements on
correct userspace implementations of the feature have a userspace that
is open source and auditable.

Fencing is tricky, cross-device fencing is really tricky, and having
the ability for a closed userspace component to mess up other people's
drivers, think i915 shared with closed habana userspace and shared
fences, decreases ability to debug things.

Ideally we wouldn't offer users known untested/broken scenarios, so
yes we'd prefer that drivers that intend to expose a userspace fencing
api around dma-fence would adhere to the rules of the gpu drivers.

I'm not say you have to drop using dma-fence, but if you move towards
cross-device stuff I believe other drivers would be correct in
refusing to interact with fences from here.

Dave.


[git pull] drm fixes for 5.7-rc5

2020-05-07 Thread Dave Airlie
Hey Linus,

Another pretty normal week, didn't get any i915 fixes yet, so next
week I'd expect double the usual i915, but otherwise a bunch of amdgpu
and some scattered other fixes.

Dave.

drm-fixes-2020-05-08:
drm fixes for 5.7-rc5

hdcp:
- fix HDCP regression

amdgpu:
- Runtime PM fixes
- DC fix for PPC
- Misc DC fixes

virtio:
- fix context ordering issue

sun4i:
- old gcc warning fix

ingenic-drm:
- missing module support
The following changes since commit 0e698dfa282211e414076f9dc7e83c1c288314fd:

  Linux 5.7-rc4 (2020-05-03 14:56:04 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-08

for you to fetch changes up to a9fe6f18cde03c20facbf75dc910a372c1c1025b:

  Merge tag 'drm-misc-fixes-2020-05-07' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2020-05-08
15:04:25 +1000)


drm fixes for 5.7-rc5

hdcp:
- fix HDCP regression

amdgpu:
- Runtime PM fixes
- DC fix for PPC
- Misc DC fixes

virtio:
- fix context ordering issue

sun4i:
- old gcc warning fix

ingenic-drm:
- missing module support


Arnd Bergmann (1):
  sun6i: dsi: fix gcc-4.8

Aurabindo Pillai (1):
  drm/amd/display: Prevent dpcd reads with passive dongles

Daniel Kolesa (1):
  drm/amd/display: work around fp code being emitted outside of
DC_FP_START/END

Dave Airlie (2):
  Merge tag 'amd-drm-fixes-5.7-2020-05-06' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes
  Merge tag 'drm-misc-fixes-2020-05-07' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes

Evan Quan (2):
  drm/amdgpu: move kfd suspend after ip_suspend_phase1
  drm/amdgpu: drop redundant cg/pg ungate on runpm enter

Gurchetan Singh (1):
  drm/virtio: create context before RESOURCE_CREATE_2D in 3D mode

H. Nikolaus Schaller (1):
  drm: ingenic-drm: add MODULE_DEVICE_TABLE

Michel Dänzer (1):
  drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT

Roman Li (1):
  drm/amd/display: fix counter in wait_for_no_pipes_pending

Sean Paul (1):
  drm: Fix HDCP failures when SRM fw is missing

Sung Lee (1):
  drm/amd/display: Update DCN2.1 DV Code Revision

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  7 ++---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 17 +++-
 drivers/gpu/drm/amd/display/dc/core/dc.c   |  5 ++--
 .../gpu/drm/amd/display/dc/dcn20/dcn20_resource.c  | 31 --
 .../display/dc/dml/dcn21/display_rq_dlg_calc_21.c  |  8 +++---
 drivers/gpu/drm/amd/display/dc/os_types.h  |  2 +-
 drivers/gpu/drm/drm_hdcp.c |  8 +-
 drivers/gpu/drm/ingenic/ingenic-drm.c  |  1 +
 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c |  2 +-
 drivers/gpu/drm/virtio/virtgpu_drv.h   |  1 +
 drivers/gpu/drm/virtio/virtgpu_gem.c   |  3 +++
 drivers/gpu/drm/virtio/virtgpu_ioctl.c |  3 +--
 12 files changed, 57 insertions(+), 31 deletions(-)


[git pull] drm fixes for 5.7-rc4

2020-04-30 Thread Dave Airlie
Hi Linus,

Regular scheduled fixes pull for graphics. Nothing to extreme bunch of
amdgpu fixes, i915 and qxl fixes, along with some misc ones.

All seems to be progressing normally.

Dave.

drm-fixes-2020-05-01:
drm fixes for 5.7-rc4

core:
- EDID off by one DTD fix
- DP mst write return code fix

dma-buf:
- fix SET_NAME ioctl uapi
- doc fixes

amdgpu:
- Fix a green screen on resume issue
- PM fixes for SR-IOV
- SDMA fix for navi
- Renoir display fixes
- Cursor and pageflip stuttering fixes
- Misc additional display fixes
- (uapi) Add additional DCC tiling flags for navi1x

i915:
- Fix selftest refcnt leak (Xiyu)
- Fix gem vma lock (Chris)
- Fix gt's i915_request.timeline acquire by checking if cacheline is
valid (Chris)
- Fix IRQ postinistall fault masks (Matt)

qxl:
- use after gree fix
- fix lost kunmap
- release leak fix

virtio:
- context destruction fix
The following changes since commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c:

  Linux 5.7-rc3 (2020-04-26 13:51:02 -0700)

are available in the Git repository at:

  git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-05-01

for you to fetch changes up to e3dcd86b3b4c045a4db17c02340138a4c514fe20:

  Merge tag 'amd-drm-fixes-5.7-2020-04-29' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2020-05-01
11:19:55 +1000)


drm fixes for 5.7-rc4

core:
- EDID off by one DTD fix
- DP mst write return code fix

dma-buf:
- fix SET_NAME ioctl uapi
- doc fixes

amdgpu:
- Fix a green screen on resume issue
- PM fixes for SR-IOV
 SDMA fix for navi
- Renoir display fixes
- Cursor and pageflip stuttering fixes
- Misc additional display fixes
- (uapi) Add additional DCC tiling flags for navi1x

i915:
- Fix selftest refcnt leak (Xiyu)
- Fix gem vma lock (Chris)
- Fix gt's i915_request.timeline acquire by checking if cacheline is
valid (Chris)
- Fix IRQ postinistall fault masks (Matt)

qxl:
- use after gree fix
- fix lost kunmap
- release leak fix

virtio:
- context destruction fix


Aric Cyr (1):
  drm/amd/display: Use cursor locking to prevent flip delays

Aurabindo Pillai (1):
  drm/amd/display: DispalyPort: Write OUI only if panel supports it

Chris Wilson (2):
  drm/i915/gem: Hold obj->vma.lock over for_each_ggtt_vma()
  drm/i915/gt: Check cacheline is valid before acquiring

Daniel Vetter (1):
  dma-buf: Fix SET_NAME ioctl uapi

Dave Airlie (3):
  Merge tag 'drm-misc-fixes-2020-04-30' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
  Merge tag 'drm-intel-fixes-2020-04-30' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
  Merge tag 'amd-drm-fixes-5.7-2020-04-29' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Dmytro Laktyushkin (2):
  drm/amd/display: check if REFCLK_CNTL register is present
  drm/amd/display: fix rn soc bb update

Gurchetan Singh (1):
  drm/virtio: only destroy created contexts

Lyude Paul (1):
  drm/dp_mst: Fix drm_dp_send_dpcd_write() return code

Marek Olšák (3):
  drm/amdgpu: add tiling flags from Mesa
  drm/amdgpu: invalidate L2 before SDMA IBs (v2)
  drm/amdgpu: bump version for invalidate L2 before SDMA IBs

Matt Roper (1):
  drm/i915: Use proper fault mask in interrupt postinstall too

Nicholas Kazlauskas (1):
  drm/amd/display: Defer cursor update around VUPDATE for all ASIC

Randy Dunlap (1):
  dma-buf: fix documentation build warnings

Rodrigo Siqueira (1):
  drm/amd/display: Fix green screen issue after suspend

Sung Lee (1):
  drm/amd/display: Update downspread percent to match spreadsheet for DCN2.1

Tiecheng Zhou (2):
  Revert "drm/amd/powerplay: avoid using pm_en before it is initialized"
  drm/amd/powerplay: avoid using pm_en before it is initialized revised

Vasily Averin (4):
  drm/qxl: qxl_release leak in qxl_draw_dirty_fb()
  drm/qxl: qxl_release leak in qxl_hw_surface_alloc()
  drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()
  drm/qxl: qxl_release use after free

Ville Syrjälä (1):
  drm/edid: Fix off-by-one in DispID DTD pixel clock

Xiaodong Yan (1):
  drm/amd/display: blank dp stream before re-train the link

Xiyu Yang (1):
  drm/i915/selftests: Fix i915_address_space refcnt leak

 drivers/dma-buf/dma-buf.c  |  7 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c|  3 +-
 drivers/gpu/drm/amd/amdgpu/navi10_sdma_pkt_open.h  | 16 +
 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 14 +++-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 38 ---
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   | 27 
 drivers/gpu/drm/amd/display/dc/core/dc_stream.c| 40 ++-
 .../amd/display/dc/dce110/dce110_hw_sequencer.c|  1 +
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 10 +++
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.h  | 

  1   2   3   4   5   6   7   8   9   10   >