[pull] radeon and amdgpu drm-fixes-4.6

2016-05-04 Thread Alex Deucher
Hi Dave,

A few small fixes for 4.6:
- fix a hang in the display engine seen with some bad modes
- Metadata use after free fix

The following changes since commit ea99697814d6e64927e228675a6eb7fa76014648:

  Merge branch 'drm-fixes-4.6' of git://people.freedesktop.org/~agd5f/linux 
into drm-fixes (2016-04-29 14:31:44 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6

for you to fetch changes up to 0126d4b9a516256f2432ca0dc78ab293a8255378:

  drm/amdgpu: make sure vertical front porch is at least 1 (2016-05-03 14:50:59 
-0400)


Alex Deucher (2):
  drm/radeon: make sure vertical front porch is at least 1
  drm/amdgpu: make sure vertical front porch is at least 1

Dave Airlie (1):
  drm/amdgpu: set metadata pointer to NULL after freeing.

 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 +
 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 4 
 drivers/gpu/drm/radeon/atombios_encoders.c | 4 
 3 files changed, 9 insertions(+)


[pull] radeon and amdgpu drm-fixes-4.6

2016-04-27 Thread Alex Deucher
Hi Dave,

A few fixes for 4.6.
- revert amdgpu PX commit that was previously reverted on the radeon side
- cleaned up version of the NI+ MC update display fix for radeon
- TTM kref fix

The following changes since commit 18cdfe751f26ffa610f2a7b59775c5cc4c1c9619:

  Merge branch 'drm-fixes-4.6' of git://people.freedesktop.org/~agd5f/linux 
into drm-fixes (2016-04-22 10:39:26 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6

for you to fetch changes up to afc4542105f2b5a3bc6f0f3530d7ccbc94ca90fb:

  drm/amdgpu: disable vm interrupts with vm_fault_stop=2 (2016-04-27 12:27:10 
-0400)


Alex Deucher (2):
  Revert "drm/amdgpu: disable runtime pm on PX laptops without dGPU power 
control"
  drm/amdgpu: print a message if ATPX dGPU power control is missing

Flora Cui (2):
  drm/ttm: fix kref count mess in ttm_bo_move_to_lru_tail
  drm/amdgpu: disable vm interrupts with vm_fault_stop=2

Vitaly Prosyak (1):
  drm/radeon: fix vertical bars appear on monitor (v2)

 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c |  11 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c   |   8 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c|   5 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c|   5 +-
 drivers/gpu/drm/radeon/evergreen.c   | 154 ++-
 drivers/gpu/drm/radeon/evergreen_reg.h   |  46 +++
 drivers/gpu/drm/ttm/ttm_bo.c |  17 +--
 7 files changed, 219 insertions(+), 27 deletions(-)


[pull] radeon and amdgpu drm-fixes-4.6

2016-04-22 Thread Dave Airlie
On 21 April 2016 at 02:05, Alex Deucher  wrote:
> Hi Dave,
>
> Misc radeon and amdgpu bug fixes for 4.6.  The big change is a patch
> to fix possible display problems on NI and newer parts when reprogramming
> the mc when DP is in use.
>
> The following changes since commit ff3e84e8e479c3ba7148f8dc35a56cf091ab56d9:
>
>   Merge branch 'exynos-drm-fixes' of 
> git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into 
> drm-fixes (2016-04-14 13:06:19 +1000)
>
> are available in the git repository at:
>
>   git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6
>
> for you to fetch changes up to e030c67f21803c8b03e9a50f70742312dceb2a78:
>
>   amdgpu/uvd: add uvd fw version for amdgpu (2016-04-20 11:46:10 -0400)
>
> 
> Alex Deucher (8):
>   drm/radeon: fix initial connector audio value
>   drm/radeon: print pci revision as well as pci ids on driver load
>   drm/radeon: add a quirk for a XFX R9 270X
>   drm/amdgpu/acp: fix resume on CZ systems with AZ audio
>   Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power 
> control"
>   drm/radeon: print a message if ATPX dGPU power control is missing
>   drm/amdgpu: use defines for CRTCs and AMFT blocks
>   drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
>
> Jérôme Glisse (2):
>   drm/radeon: forbid mapping of userptr bo through radeon device file
>   drm/amdgpu: forbid mapping of userptr bo through radeon device file
>
> Rex Zhu (1):
>   drm/amdgpu: when suspending, if uvd/vce was running. need to cancel 
> delay work.
>
> Sonny Jiang (1):
>   amdgpu/uvd: add uvd fw version for amdgpu
>
> Vitaly Prosyak (1):
>   drm/radeon: fix vertical bars appear on monitor

While I'm sure this patch fixes a problem, it's pretty ugly,
checkpatch doesn't like it,
and it fails coding standards by a long way and I haven't seen it on the list.

So no for this one just yet.

Dave.


[pull] radeon and amdgpu drm-fixes-4.6

2016-04-22 Thread Deucher, Alexander
> -Original Message-
> From: Dave Airlie [mailto:airlied at gmail.com]
> Sent: Thursday, April 21, 2016 7:52 PM
> To: Alex Deucher
> Cc: dri-devel; Deucher, Alexander
> Subject: Re: [pull] radeon and amdgpu drm-fixes-4.6
> 
> On 21 April 2016 at 02:05, Alex Deucher  wrote:
> > Hi Dave,
> >
> > Misc radeon and amdgpu bug fixes for 4.6.  The big change is a patch
> > to fix possible display problems on NI and newer parts when
> reprogramming
> > the mc when DP is in use.
> >
> > The following changes since commit
> ff3e84e8e479c3ba7148f8dc35a56cf091ab56d9:
> >
> >   Merge branch 'exynos-drm-fixes' of
> git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-
> fixes (2016-04-14 13:06:19 +1000)
> >
> > are available in the git repository at:
> >
> >   git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6
> >
> > for you to fetch changes up to
> e030c67f21803c8b03e9a50f70742312dceb2a78:
> >
> >   amdgpu/uvd: add uvd fw version for amdgpu (2016-04-20 11:46:10 -0400)
> >
> > 
> > Alex Deucher (8):
> >   drm/radeon: fix initial connector audio value
> >   drm/radeon: print pci revision as well as pci ids on driver load
> >   drm/radeon: add a quirk for a XFX R9 270X
> >   drm/amdgpu/acp: fix resume on CZ systems with AZ audio
> >   Revert "drm/radeon: disable runtime pm on PX laptops without dGPU
> power control"
> >   drm/radeon: print a message if ATPX dGPU power control is missing
> >   drm/amdgpu: use defines for CRTCs and AMFT blocks
> >   drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
> >
> > Jérôme Glisse (2):
> >   drm/radeon: forbid mapping of userptr bo through radeon device file
> >   drm/amdgpu: forbid mapping of userptr bo through radeon device file
> >
> > Rex Zhu (1):
> >   drm/amdgpu: when suspending, if uvd/vce was running. need to cancel
> delay work.
> >
> > Sonny Jiang (1):
> >   amdgpu/uvd: add uvd fw version for amdgpu
> >
> > Vitaly Prosyak (1):
> >   drm/radeon: fix vertical bars appear on monitor
> 
> While I'm sure this patch fixes a problem, it's pretty ugly,
> checkpatch doesn't like it,
> and it fails coding standards by a long way and I haven't seen it on the list.
> 
> So no for this one just yet.

Updated request at the same URL.

Alex


> 
> Dave.


[pull] radeon and amdgpu drm-fixes-4.6

2016-04-20 Thread Alex Deucher
Hi Dave,

Misc radeon and amdgpu bug fixes for 4.6.  The big change is a patch
to fix possible display problems on NI and newer parts when reprogramming
the mc when DP is in use.

The following changes since commit ff3e84e8e479c3ba7148f8dc35a56cf091ab56d9:

  Merge branch 'exynos-drm-fixes' of 
git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes 
(2016-04-14 13:06:19 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6

for you to fetch changes up to e030c67f21803c8b03e9a50f70742312dceb2a78:

  amdgpu/uvd: add uvd fw version for amdgpu (2016-04-20 11:46:10 -0400)


Alex Deucher (8):
  drm/radeon: fix initial connector audio value
  drm/radeon: print pci revision as well as pci ids on driver load
  drm/radeon: add a quirk for a XFX R9 270X
  drm/amdgpu/acp: fix resume on CZ systems with AZ audio
  Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power 
control"
  drm/radeon: print a message if ATPX dGPU power control is missing
  drm/amdgpu: use defines for CRTCs and AMFT blocks
  drm/amdgpu: bump the afmt limit for CZ, ST, Polaris

Jérôme Glisse (2):
  drm/radeon: forbid mapping of userptr bo through radeon device file
  drm/amdgpu: forbid mapping of userptr bo through radeon device file

Rex Zhu (1):
  drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay 
work.

Sonny Jiang (1):
  amdgpu/uvd: add uvd fw version for amdgpu

Vitaly Prosyak (1):
  drm/radeon: fix vertical bars appear on monitor

 drivers/gpu/drm/amd/amdgpu/amdgpu.h  |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c  |   4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c  |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h |   6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c  |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c  |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c  |   1 +
 drivers/gpu/drm/radeon/evergreen.c   | 149 ++-
 drivers/gpu/drm/radeon/evergreen_reg.h   |  45 
 drivers/gpu/drm/radeon/radeon_atpx_handler.c |  11 +-
 drivers/gpu/drm/radeon/radeon_connectors.c   |   7 +-
 drivers/gpu/drm/radeon/radeon_device.c   |  14 +--
 drivers/gpu/drm/radeon/radeon_ttm.c  |   2 +
 drivers/gpu/drm/radeon/si_dpm.c  |   1 +
 14 files changed, 230 insertions(+), 20 deletions(-)


[pull] radeon and amdgpu drm-fixes-4.6

2016-04-13 Thread Alex Deucher
Hi Dave,

Just a few minor fixes for radeon and amdgpu.

The following changes since commit 7c0ecda15b01bc88d762d9263d2cf0f69ffd4c23:

  drm/amdgpu: total vram size also reduces pin size (2016-04-05 15:23:31 -0400)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6

for you to fetch changes up to 303f551c8e8dfca4df4e01612f0f393c2e5744e4:

  drm/amd/amdgpu: fix irq domain remove for tonga ih (2016-04-07 11:03:46 -0400)


Chunming Zhou (1):
  drm/amdgpu: add invisible pin size statistic

Dave Airlie (2):
  drm/radeon/mst: port some MST setup code from DAL.
  drm/radeon: use helper for mst connector dpms.

Junwei Zhang (1):
  drm/amd/amdgpu: fix irq domain remove for tonga ih

 drivers/gpu/drm/amd/amdgpu/amdgpu.h|  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 12 
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c  |  2 +-
 drivers/gpu/drm/radeon/ni_reg.h|  2 ++
 drivers/gpu/drm/radeon/radeon_dp_mst.c | 31 +++---
 6 files changed, 33 insertions(+), 17 deletions(-)


[pull] radeon and amdgpu drm-fixes-4.6

2016-04-06 Thread Alex Deucher
Hi Dave,

Lots of misc bug fixes for radeon and amdgpu and one for ttm.
- fix vram info fetching on Fiji and unposted boards
- additional vblank fixes from the conversion to drm_vblank_on/off
- UVD dGPU suspend and resume fixes
- lots of powerplay fixes
- fix a fence leak in the pageflip code
- ttm fix for platforms where CPU is 32 bit, but physical addresses are >32bits

The following changes since commit 72b9ff0612ad8fc969b910cd00ac16b57a1a9ba4:

  drm/udl: Use unlocked gem unreferencing (2016-04-01 13:22:33 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-fixes-4.6

for you to fetch changes up to 7c0ecda15b01bc88d762d9263d2cf0f69ffd4c23:

  drm/amdgpu: total vram size also reduces pin size (2016-04-05 15:23:31 -0400)


Alex Deucher (4):
  drm/amdgpu/gmc: move vram type fetching into sw_init
  drm/amdgpu/gmc: use proper register for vram type on Fiji
  drm/amdgpu: print vram type rather than just DDR
  drm/ttm: use phys_addr_t for ttm_bus_placement

Christian König (1):
  drm/amdgpu: fix leaking fence in the pageflip code

Chunming Zhou (2):
  drm/amdgpu: fence wait old rcu slot
  drm/amdgpu: total vram size also reduces pin size

Leo Liu (2):
  drm/amdgpu: save and restore UVD context with suspend and resume
  drm/amdgpu: save and restore the firwmware cache part when suspend resume

Michel Dänzer (3):
  drm/radeon: Set vblank_disable_allowed = true
  drm/amdgpu: Set vblank_disable_allowed = true
  drm/radeon: Only call drm_vblank_on/off between drm_vblank_init/cleanup

Rex Zhu (9):
  drm/amd/powerplay: fix segment fault issue in multi-display case.
  drm/amdgpu: add an cgs interface to notify amdgpu the dpm state.
  drm/amdgpu: Not support disable dpm in powerplay.
  drm/amd/powerplay: notify amdgpu whether dpm is enabled or not.
  drm/amdgpu: check dpm state before pm system fs initialized.
  drm/amd/powerplay: add new Fiji function for not setting same ps.
  drm/amd/powerplay: Need to change boot to performance state in resume.
  drm/amd/powerplay: fix issue that resume back, dpm can't work on FIJI.
  drm/amd/powerplay: add uvd/vce dpm enabling flag default.

 drivers/gpu/drm/amd/amdgpu/amdgpu.h|  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c| 24 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c  |  8 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c|  2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c|  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 15 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c  | 10 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c| 58 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c  | 16 ++---
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c  | 23 +---
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c  |  4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c  |  4 +-
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c  |  7 ++-
 drivers/gpu/drm/amd/include/cgs_common.h   |  8 +++
 .../drm/amd/powerplay/eventmgr/eventactionchains.c |  4 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c   | 69 ++
 .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c  | 16 -
 drivers/gpu/drm/radeon/atombios_crtc.c |  6 +-
 drivers/gpu/drm/radeon/radeon_irq_kms.c|  2 +
 drivers/gpu/drm/radeon/radeon_legacy_crtc.c|  6 +-
 include/drm/ttm/ttm_bo_api.h   |  2 +-
 22 files changed, 210 insertions(+), 78 deletions(-)