[pull] radeon and amdgpu drm-next-4.14

2017-08-18 Thread Alex Deucher
Hi Dave,

More changes for 4.14.  Highlights:
- command submission overhead improvements
- Huge page support for vega10
- physical mode support for mjpeg for asics that don't support UVD vm
- improve ttm_mem_type_manager_func debug
- misc ttm fixes, cleanups
- misc gpuvm cleanups

The following changes since commit 8824c751eb61ebffb053c291199932845bac88b4:

  Merge tag 'omapdrm-4.14' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
(2017-08-18 05:41:32 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-next-4.14

for you to fetch changes up to df9bcb0652bbfde1b37bda98f0ad1fa7fda46d67:

  drm/ttm: use reservation_object_trylock in ttm_bo_individualize_resv v2 
(2017-08-18 12:02:58 -0400)


Christian König (18):
  drm/ttm: remove nonsense wait in ttm_bo_cleanup_refs_and_unlock
  drm/ttm: individualize BO reservation obj when they are freed
  drm/amdgpu: only move VM BOs in the LRU during validation v2
  drm/amdgpu: only bind VM shadows after validation v2
  drm/amdgpu: fix Vega10 HW config for 2MB pages
  drm/ttm: make ttm_mem_type_manager_func debug more useful
  drm/radeon: fix incorrect use of the lru_lock
  drm/amdgpu: fix incorrect use of the lru_lock
  drm/amdgpu: move debug print into the MM managers
  drm/amdgpu: move gtt usage tracking into the gtt manager v2
  drm/amdgpu: move vram usage tracking into the vram manager v2
  drm/amdgpu: SHADOW and VRAM_CONTIGUOUS flags shouldn't be used by 
userspace
  drm/amdgpu: cleanup static CSA handling
  drm/amdgpu: remove superflous amdgpu_bo_kmap in the VM
  drm/amdgpu: drop the extra VM huge page flag v2
  drm/amdgpu: separate bo_va structure
  drm/amdgpu: rename VM invalidated to moved
  drm/ttm: use reservation_object_trylock in ttm_bo_individualize_resv v2

Chunming Zhou (1):
  drm/amdgpu: save list length when fence is signaled

Ken Wang (1):
  drm/amdgpu: fix vega10 graphic hang issue in S3 test

Leo Liu (2):
  drm/amdgpu: add MJPEG check for UVD physical mode msg buffer
  drm/amdgpu: bump version for support of UVD MJPEG decode

Roger He (2):
  drm/amd/amdgpu: store fragment_size in vm_manager
  drm/amd/amdgpu: expose fragment size as module parameter (v2)

Tom St Denis (1):
  drm/amd/amdgpu: Add tracepoint for DMA page mapping (v4)

Xiangliang.Yu (1):
  drm/ttm: Fix accounting error when fail to get pages for pool

 drivers/gpu/drm/amd/amdgpu/amdgpu.h   |   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c|  29 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c|   7 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c   |   7 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c   |   8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c   |  48 ++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c   |  25 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c|  52 --
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h|  14 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c  |  13 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h |  60 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c   |  76 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h   |   4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c   |   4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c  |  25 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h  |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c| 248 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h|  34 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c  |  77 +++-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c |  10 +-
 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c  |   7 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c |   9 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c |  10 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c |  10 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c |  11 +-
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c   |   7 +-
 drivers/gpu/drm/amd/amdgpu/soc15d.h   |   1 +
 drivers/gpu/drm/nouveau/nouveau_ttm.c |   6 +-
 drivers/gpu/drm/radeon/radeon_ttm.c   |  10 +-
 drivers/gpu/drm/ttm/ttm_bo.c  |  64 +--
 drivers/gpu/drm/ttm/ttm_bo_manager.c  |   5 +-
 drivers/gpu/drm/ttm/ttm_page_alloc.c  |   2 +-
 drivers/gpu/drm/virtio/virtgpu_ttm.c  |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c |   4 +-
 include/drm/ttm/ttm_bo_driver.h   |   5 +-
 35 files changed, 521 insertions(+), 381 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[pull] radeon and amdgpu drm-next-4.14

2017-08-16 Thread Alex Deucher
Hi Dave,

More features for 4.14.  Nothing too major here.  I have a few more additional
patches for large page support in vega10 among other things, but they require
some resevation object patches from drm-misc-next, so I'll send that request
once you've pulled the latest drm-misc-next.  Highlights:
- Fixes for ACP audio on stoney
- SR-IOV fixes for vega10
- various powerplay fixes
- lots of code clean up

The following changes since commit 09ef2378dc42339f3871584dc26d27da220277cb:

  Merge tag 'drm-misc-next-2017-08-08' of 
git://anongit.freedesktop.org/git/drm-misc into drm-next (2017-08-10 10:47:33 
+1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-next-4.14

for you to fetch changes up to 37899a5254917e17418bbb23086d55e38faaa659:

  drm/amdgpu/gfx7: fix function name (2017-08-15 14:46:23 -0400)


Alex Deucher (10):
  drm/amdgpu: make wb 256bit function names consistent
  drm/amdgpu: drop old ip definitions for gfxhub and mmhub
  drm/amdgpu/sdma4: drop unused register header
  drm/amdgpu/sdma4: set wptr shadow atomically (v2)
  drm/amdgpu/sdma4: drop hdp flush from wptr shadow update
  drm/amdgpu/sdma4: drop allocation of poll_mem_offs
  drm/amdgpu/sdma4: move wptr polling setup
  drm/amdgpu: use 256 bit buffers for all wb allocations (v2)
  drm/amd/powerplay: add CZ profile support
  drm/amdgpu/gfx7: fix function name

Christian König (8):
  drm/amdgpu: cleanup kptr handling
  drm/amdgpu: consistent use u64_to_user_ptr
  drm/amdgpu: move some defines around
  drm/amdgpu: shadow and mn list are mutually exclusive
  drm/amdgpu: improve amdgpu_bo_create_kernel
  drm/amdgpu: add amdgpu_bo_create_reserved
  drm/amdgpu: use amdgpu_bo_create_kernel more often
  drm/amdgpu: use amdgpu_bo_free_kernel more often

Cihangir Akturk (2):
  drm/amdgpu: switch to drm_*{get,put} helpers
  drm/radeon: switch to drm_*{get,put} helpers

Dan Carpenter (1):
  drm/amdgpu: Uninitialized variable in amdgpu_ttm_backend_bind()

Evan Quan (5):
  drm/amdgpu: update vega10 golden setting
  drm/amd/powerplay: updated vega10 fan control
  drm/amd/powerplay: update didt configs
  drm/amdgpu: fix missing endian-safe guard
  drm/amdgpu: jt_size was wrongly counted twice

Felix Kuehling (1):
  drm/amdgpu: Fix KFD initialization for multi-GPU systems

Frank Min (8):
  drm/amdgpu: Clear vce ring wptr for SRIOV
  drm/amdgpu: Enable uvd and vce gpu re-init for SRIOV gpu reset
  drm/amdgpu/vce4: Remove vce interrupt enable related code for sriov
  drm/amdgpu: Skip uvd and vce ring test for SRIOV
  drm/amdgpu: According hardware design revert vce and uvd doorbell 
assignment
  drm/amdgpu/vce4: optimize vce 4.0 init table sequence for SRIOV
  drm/amdgpu/uvd7: optimize uvd initialization sequence for SRIOV
  drm/amdgpu/sdma4: Enable sdma poll mem addr on vega10 for SRIOV

Hawking Zhang (1):
  drm/amdgpu: ignore digest_size when loading sdma fw for raven

Huang Rui (1):
  drm/amdgpu: set gfx_v9_0_ip_funcs as static

Jean Delvare (5):
  drm/amdgpu: Fix undue fallthroughs in golden registers initialization
  drm/amdgpu: Fix dce_v6_0_disable_dce warning
  drm/amdgpu: Fix amdgpu_pm_acpi_event_handler warning
  drm/radeon: Make radeon_atif_handler static
  drm/amdgpu: Make amdgpu_atif_handler static

Junwei Zhang (1):
  drm/amd/powerplay: add vclk/dclkSoftMin support for raven

Kent Russell (4):
  drm/amdgpu: Fix stolen typo
  drm/radeon: Fix stolen typo
  drm/amdgpu: Fix preferred typo
  drm/radeon: Fix preferred typo

Leo Liu (1):
  drm/amdgpu: disable vcn power control for now

Rex Zhu (7):
  drm/amd/powerplay: delete PCC error message in smu7_hwmgr.c
  drm/amd/powerplay: fix force dpm level failed on CZ
  drm/amd/powerplay: fix set highest mclk level failed on Vega10
  drm/amd/powerplay: fix PSI not enabled by kmd
  drm/amd/powerplay: fix coccinelle warnings in vega10_hwmgr.c
  drm/amd/powerplay: refine dmesg info under powerplay.
  drm/amd/powerplay: fix coding style in hwmgr.c

Trigger Huang (1):
  drm/amdgpu: don't finish the ring if not initialized

Vijendar Mukunda (2):
  drm/amd/amdgpu: Added a quirk for Stoney platform
  drm/amd/amdgpu: Disabling Power Gating for Stoney platform

Xiangliang.Yu (1):
  drm/amdgpu/dce_virtual: remove error message for vega10

Yong Zhao (3):
  drm/amdgpu: Add support for filling a buffer with 64 bit value
  drm/amdgpu: Add a parameter to amdgpu_bo_create()
  drm/amdgpu: Support IOMMU on Raven

 drivers/gpu/drm/amd/amdgpu/amdgpu.h| 100 ++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c|  72 ---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c   |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c |  40 ++--
 

Re: [pull] radeon and amdgpu drm-next-4.14

2017-08-01 Thread Alex Deucher
Ping?  Just wanted to make sure this didn't get missed.

Thanks,

Alex


On Thu, Jul 27, 2017 at 12:00 PM, Alex Deucher  wrote:
> Hi Dave,
>
> New features for 4.14:
> - Stop reprogramming the MC, the vbios already does this in asic_init
> - Reduce internal gart to 256M (this does not affect the ttm GTT pool size)
> - Initial support for huge pages
> - Rework bo migration logic
> - Lots of improvements for vega10
> - Powerplay fixes
> - Additional Raven enablement
> - SR-IOV improvements
> - Bug fixes
> - Code cleanup
>
> The following changes since commit 6419ec78c6726aa54ff103aceffbf19d546d3d1b:
>
>   Merge branch 'drm-next-4.13' of git://people.freedesktop.org/~agd5f/linux 
> into drm-next (2017-07-13 13:38:22 +1000)
>
> are available in the git repository at:
>
>   git://people.freedesktop.org/~agd5f/linux drm-next-4.14
>
> for you to fetch changes up to 799c7b20b26078e1e3b1c7d38e9ffce9bb56348d:
>
>   drm/amdgpu: fix header on gfx9 clear state (2017-07-27 11:17:45 -0400)
>
> 
> Alex Deucher (31):
>   drm/amdgpu: use kernel is_power_of_2 rather than local version
>   drm/amdgpu: disable vga render in dce hw_init
>   drm/amdgpu/gmc8: use the vram location programmed by the vbios
>   drm/amdgpu/gmc7: use the vram location programmed by the vbios
>   drm/amdgpu/gmc6: use the vram location programmed by the vbios
>   drm/amdgpu/gmc8: drop fb location programming
>   drm/amdgpu/gmc7: drop fb location programming
>   drm/amdgpu/gmc6: drop fb location programming
>   drm/amdgpu: drop set_vga_render_state from display funcs
>   drm/amdgpu: remove *_mc_access from display funcs
>   drm/amdgpu/atombios: use bios_scratch_reg_offset for atombios
>   drm/amdgpu: unify some atombios/atomfirmware scratch reg functions
>   drm/amdgpu/atombios: add function for whether we need asic_init
>   drm/amdgpu/atom: fix atom_fw check
>   drm/amdgpu/atomfirmware: implement vram_width for APUs
>   drm/amdgpu/gmc9: get vram width from atom for Raven
>   drm/amdgpu: add nbio 6.1 register init function
>   drm/amdgpu/soc15: init nbio registers for vega10
>   drm/amdgpu: check scratch registers to see if we need post (v2)
>   drm/amdgpu: add get_clock_info for atomfirmware
>   drm/amdgpu: call atomfirmware get_clock_info for atomfirmware systems
>   drm/amdgpu/soc15: drop dead function
>   drm/amdgpu: implement si_read_bios_from_rom
>   drm/amdgpu/gfx: keep all compute queues on the same pipe
>   drm/amdgpu: remove VM shadow WARN_ONs
>   drm/amdgpu: enable huge page handling in the VM v5
>   drm/amdgpu/gmc6: disable legacy vga features in gmc init (v2)
>   drm/amdgpu/gmc7: disable legacy vga features in gmc init
>   drm/amdgpu/gmc8: disable legacy vga features in gmc init
>   drm/amdgpu/gmc9: disable legacy vga features in gmc init
>   drm/amdgpu: fix header on gfx9 clear state
>
> Alex Xie (2):
>   drm/amdgpu: Free resources of bo_list when idr_alloc fails
>   drm/amdgpu: Fix blocking in RCU critical section(v2)
>
> Arvind Yadav (3):
>   drm: radeon: radeon_ttm: constify ttm_place structures.
>   drm: radeon: constify drm_prop_enum_list structures.
>   drm: amd: amdgpu: constify ttm_place structures.
>
> Christian König (31):
>   drm/amdgpu: simplify VM shadow handling v2
>   drm/amdgpu: cleanup initializing gtt_size
>   drm/amdgpu: fix amdgpu_debugfs_gem_bo_info
>   drm/amdgpu: move ring helpers to amdgpu_ring.h
>   drm/amdgpu: fix amdgpu_ring_write_multiple
>   drm/amdgpu: allow flushing VMID0 before IB execution as well
>   drm/amdgpu: add vm_needs_flush parameter to amdgpu_copy_buffer
>   drm/amdgpu: bind BOs to TTM only once
>   drm/amdgpu: bind BOs with GTT space allocated directly v2
>   drm/amdgpu: remove stale TODO comment
>   drm/amdgpu: trace VM flags as 64bits
>   drm/amdgpu: reserve the first 2x512 pages of GART
>   drm/amdgpu: add amdgpu_gart_map function v2
>   drm/amdgpu: use the GTT windows for BO moves v2
>   drm/amdgpu: stop mapping BOs to GTT
>   drm/amdgpu: remove maximum BO size limitation v2
>   drm/amdgpu: use TTM values instead of MC values for the info queries
>   drm/amdgpu: move GART struct and function into amdgpu_gart.h v2
>   drm/amdgpu: remove gtt_base_align handling
>   drm/amdgpu: consistent name all GART related parts
>   drm/amdgpu: limit the GTT manager address space
>   drm/amdgpu: add new gttsize module parameter v2
>   drm/amdgpu: change gartsize default to 256MB
>   drm/amdgpu: fix VM flush for CPU based updates
>   drm/amdgpu: fix amdgpu_vm_bo_wait
>   drm/amdgpu: trace setting VM page tables with the CPU as well
>   drm/amdgpu: flush the HDP only once for CPU based VM updates
>   drm/amdgpu: make sure BOs are always kunmapped
>   drm/amdgpu: map VM 

[pull] radeon and amdgpu drm-next-4.14

2017-07-27 Thread Alex Deucher
Hi Dave,

New features for 4.14:
- Stop reprogramming the MC, the vbios already does this in asic_init
- Reduce internal gart to 256M (this does not affect the ttm GTT pool size)
- Initial support for huge pages
- Rework bo migration logic
- Lots of improvements for vega10
- Powerplay fixes
- Additional Raven enablement
- SR-IOV improvements
- Bug fixes
- Code cleanup

The following changes since commit 6419ec78c6726aa54ff103aceffbf19d546d3d1b:

  Merge branch 'drm-next-4.13' of git://people.freedesktop.org/~agd5f/linux 
into drm-next (2017-07-13 13:38:22 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-next-4.14

for you to fetch changes up to 799c7b20b26078e1e3b1c7d38e9ffce9bb56348d:

  drm/amdgpu: fix header on gfx9 clear state (2017-07-27 11:17:45 -0400)


Alex Deucher (31):
  drm/amdgpu: use kernel is_power_of_2 rather than local version
  drm/amdgpu: disable vga render in dce hw_init
  drm/amdgpu/gmc8: use the vram location programmed by the vbios
  drm/amdgpu/gmc7: use the vram location programmed by the vbios
  drm/amdgpu/gmc6: use the vram location programmed by the vbios
  drm/amdgpu/gmc8: drop fb location programming
  drm/amdgpu/gmc7: drop fb location programming
  drm/amdgpu/gmc6: drop fb location programming
  drm/amdgpu: drop set_vga_render_state from display funcs
  drm/amdgpu: remove *_mc_access from display funcs
  drm/amdgpu/atombios: use bios_scratch_reg_offset for atombios
  drm/amdgpu: unify some atombios/atomfirmware scratch reg functions
  drm/amdgpu/atombios: add function for whether we need asic_init
  drm/amdgpu/atom: fix atom_fw check
  drm/amdgpu/atomfirmware: implement vram_width for APUs
  drm/amdgpu/gmc9: get vram width from atom for Raven
  drm/amdgpu: add nbio 6.1 register init function
  drm/amdgpu/soc15: init nbio registers for vega10
  drm/amdgpu: check scratch registers to see if we need post (v2)
  drm/amdgpu: add get_clock_info for atomfirmware
  drm/amdgpu: call atomfirmware get_clock_info for atomfirmware systems
  drm/amdgpu/soc15: drop dead function
  drm/amdgpu: implement si_read_bios_from_rom
  drm/amdgpu/gfx: keep all compute queues on the same pipe
  drm/amdgpu: remove VM shadow WARN_ONs
  drm/amdgpu: enable huge page handling in the VM v5
  drm/amdgpu/gmc6: disable legacy vga features in gmc init (v2)
  drm/amdgpu/gmc7: disable legacy vga features in gmc init
  drm/amdgpu/gmc8: disable legacy vga features in gmc init
  drm/amdgpu/gmc9: disable legacy vga features in gmc init
  drm/amdgpu: fix header on gfx9 clear state

Alex Xie (2):
  drm/amdgpu: Free resources of bo_list when idr_alloc fails
  drm/amdgpu: Fix blocking in RCU critical section(v2)

Arvind Yadav (3):
  drm: radeon: radeon_ttm: constify ttm_place structures.
  drm: radeon: constify drm_prop_enum_list structures.
  drm: amd: amdgpu: constify ttm_place structures.

Christian König (31):
  drm/amdgpu: simplify VM shadow handling v2
  drm/amdgpu: cleanup initializing gtt_size
  drm/amdgpu: fix amdgpu_debugfs_gem_bo_info
  drm/amdgpu: move ring helpers to amdgpu_ring.h
  drm/amdgpu: fix amdgpu_ring_write_multiple
  drm/amdgpu: allow flushing VMID0 before IB execution as well
  drm/amdgpu: add vm_needs_flush parameter to amdgpu_copy_buffer
  drm/amdgpu: bind BOs to TTM only once
  drm/amdgpu: bind BOs with GTT space allocated directly v2
  drm/amdgpu: remove stale TODO comment
  drm/amdgpu: trace VM flags as 64bits
  drm/amdgpu: reserve the first 2x512 pages of GART
  drm/amdgpu: add amdgpu_gart_map function v2
  drm/amdgpu: use the GTT windows for BO moves v2
  drm/amdgpu: stop mapping BOs to GTT
  drm/amdgpu: remove maximum BO size limitation v2
  drm/amdgpu: use TTM values instead of MC values for the info queries
  drm/amdgpu: move GART struct and function into amdgpu_gart.h v2
  drm/amdgpu: remove gtt_base_align handling
  drm/amdgpu: consistent name all GART related parts
  drm/amdgpu: limit the GTT manager address space
  drm/amdgpu: add new gttsize module parameter v2
  drm/amdgpu: change gartsize default to 256MB
  drm/amdgpu: fix VM flush for CPU based updates
  drm/amdgpu: fix amdgpu_vm_bo_wait
  drm/amdgpu: trace setting VM page tables with the CPU as well
  drm/amdgpu: flush the HDP only once for CPU based VM updates
  drm/amdgpu: make sure BOs are always kunmapped
  drm/amdgpu: map VM BOs for CPU based updates only once
  drm/amdgpu: fix amdgpu_bo_gpu_accessible()
  drm/amdgpu: increase fragmentation size for Vega10 v2

Chunming Zhou (1):
  drm/amdgpu: ttm_bind only when user needs gpu_addr in bo pin

Colin Ian King (1):
  drm/amdgpu: make arrays pctl0_data and pctl1_data static

Dan Carpenter (1):