[git pull] drm-amdkfd-fixes 4.14

2017-09-24 Thread Oded Gabbay
Hi Dave,

This is amdkfd pull request for 4.14-rc3.

It contains the following fixes:
- correct checking of return value
- send correct parameter to function (According to the parameter type)
- avoid spamming of dmesg log
- fix queue wrapping calculations

Thanks,
Oded

The following changes since commit 56eac98b8a0bbb72132340dbfedc912c68c4bd56:

  Merge tag 'exynos-drm-fixes-for-v4.14-rc1' of 
git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes 
(2017-09-21 08:02:39 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2017-09-24

for you to fetch changes up to d42818354081b0805872f4a11c16778a8fbe53ac:

  drm/amdkfd: Print event limit messages only once per process (2017-09-24 
14:10:26 +0300)


Colin Ian King (1):
  drm/amdkfd: check for null dev to avoid a null pointer dereference

Felix Kuehling (2):
  drm/amdkfd: Fix incorrect destroy_mqd parameter
  drm/amdkfd: Print event limit messages only once per process

Yong Zhao (1):
  drm/amdkfd: Fix kernel-queue wrapping bugs

 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c  |  2 ++
 drivers/gpu/drm/amd/amdkfd/kfd_events.c   |  5 -
 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c | 20 
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h |  1 +
 4 files changed, 23 insertions(+), 5 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] drm-amdkfd-fixes

2017-07-18 Thread Oded Gabbay
Hi Dave,

This is a pull request for 4.13-rc2/3. The first patch addresses a bug that
appears when doing over-subscription of queues, due to a miscalculation of
the number of available compute queues. The other three patches remove
dead code that was created from the bugfix.

Thanks,
Oded

The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:

  Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2017-07-18

for you to fetch changes up to f835edf9aec13bc8abb3dd4836151773cc359f42:

  drm/amdgpu: Remove unused field kgd2kfd_shared_resources.num_mec (2017-07-13 
20:21:56 -0500)


Jay Cornwall (4):
  drm/amdgpu: Fix KFD oversubscription by tracking queues correctly
  drm/amdkfd: Remove unused references to shared_resources.num_mec
  drm/radeon: Remove initialization of shared_resources.num_mec
  drm/amdgpu: Remove unused field kgd2kfd_shared_resources.num_mec

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c| 3 +--
 drivers/gpu/drm/amd/amdkfd/kfd_device.c   | 4 
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 7 ---
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h | 1 -
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h   | 3 ---
 drivers/gpu/drm/radeon/radeon_kfd.c   | 1 -
 6 files changed, 1 insertion(+), 18 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PULL] drm-amdkfd-fixes

2016-08-09 Thread Oded Gabbay
Hi Dave,

Just one patch for -rc that fixes a printk format error.

Thanks,

   Oded

The following changes since commit 36e9d08b58f44c3a02974c405ccaaa6ecfaf05b8:

  drm/cirrus: Fix NULL pointer dereference when registering the fbdev 
(2016-08-09 13:01:47 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2016-08-09

for you to fetch changes up to 6dae61627d1004895bfcee81d24482ec64cbecc5:

  drm/amdkfd: print doorbell offset as a hex value (2016-08-09 10:02:02 +0300)


Colin Ian King (1):
 drm/amdkfd: print doorbell offset as a hex value

drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


[PULL] drm-amdkfd-fixes

2016-06-03 Thread Oded Gabbay
Hi Dave,

This is a pull request for 4.7-rc2/3. The first patch fix a major bug in 
the process shutdown code. It was discovered due to my RHEL testing of amdkfd.
The second patch makes sure debug manager is destroyed when the process shuts 
down. The third patch addresses concerns of spamming the kernel log in 
specific machines.

Thanks,

Oded

The following changes since commit ab3ab68493aaac6fea4ad1bb597def9f48f41c71:

  drm/omap: fix unused variable warning. (2016-06-03 14:39:41 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2016-06-03

for you to fetch changes up to 0fbbbf8b599ff840ff1a3c0cc00dd67ba8a52c9c:

  drm/amdkfd: print once about mem_banks truncation (2016-06-03 08:50:40 +0300)


Oded Gabbay (3):
  drm/amdkfd: unbind only existing processes
  drm/amdkfd: destroy dbgmgr in notifier release
  drm/amdkfd: print once about mem_banks truncation

 drivers/gpu/drm/amd/amdkfd/kfd_process.c  | 70 +++
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c |  2 +-
 2 files changed, 44 insertions(+), 28 deletions(-)


[PULL] drm-amdkfd-fixes

2016-01-28 Thread Oded Gabbay
Hi Dave,

Just two small static analyzer code fixes for 4.5

Thanks,

  Oded

The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d:

  Linux 4.5-rc1 (2016-01-24 13:06:47 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2016-01-28

for you to fetch changes up to 642f0f2a1563b5ab6f5de896f602177ac1f06652:

  drm/amdkfd: Remove unnecessary cast in kfree (2016-01-28 14:40:11 +0200)


Amitoj Kaur Chawla (1):
  drm/amdkfd: Remove unnecessary cast in kfree

Colin Ian King (1):
  drm/amdgpu: fix non-ANSI declaration of 
amdgpu_amdkfd_gfx_*_get_functions()

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_process.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


[PULL] drm-amdkfd-fixes

2015-07-09 Thread Oded Gabbay
Hi Dave,

A single fix so far for 4.2:
- checking a pointer is not null before using it

Thanks,

Oded

The following changes since commit d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754:

  Linux 4.2-rc1 (2015-07-05 11:01:52 -0700)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-07-09

for you to fetch changes up to a0f67441b06525a1e5fd713ba0d75af4e5d6b198:

  drm/amdkfd: validate pdd where it acquired first (2015-07-09 13:27:52 +0300)


Maninder Singh (1):
  drm/amdkfd: validate pdd where it acquired first

 drivers/gpu/drm/amd/amdkfd/kfd_process.c | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)


[PULL] drm-amdkfd-fixes

2015-06-16 Thread Oded Gabbay
Hi Dave,

Two fixes before the 4.2 merge window:

- Dan fixed some range checks in the address watch ioctl impl. 
- Remove obsolete member from radeon_device structure

Thanks,

Oded

The following changes since commit 284b2884a967dbd98b4c4cf7a8b583f974affca4:

  Merge tag 'omapdrm-4.2-atomic' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
(2015-06-16 11:16:02 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux 
tags/drm-amdkfd-next-fixes-2015-06-16

for you to fetch changes up to 7861c7a4ca5c637f3cad1e343602a15e857140fd:

  drm/amdkfd: fix some range checks in address watch ioctl (2015-06-16 15:42:26 
+0300)


Dan Carpenter (1):
  drm/amdkfd: fix some range checks in address watch ioctl

Oded Gabbay (1):
  drm/radeon: remove obsolete kfd_bo from radeon_device

 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 6 +++---
 drivers/gpu/drm/radeon/radeon.h  | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)


[PULL] drm-amdkfd-fixes

2015-06-03 Thread Oded Gabbay
Hi Dave,

One minor fix for last -rc of 4.1. The fix moves the update of an attribute in
topology to *after* it is actually initialized.

Thanks,

Oded

The following changes since commit c65b99f046843d2455aa231747b5a07a999a9f3d:

  Linux 4.1-rc6 (2015-05-31 19:01:07 -0700)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-06-03

for you to fetch changes up to 826f5de84ceb6f96306ce4081b75a0539d8edd00:

  drm/amdkfd: fix topology bug with capability attr. (2015-06-03 21:45:54 +0300)


Alexey Skidanov (1):
  drm/amdkfd: fix topology bug with capability attr.

 drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[PULL] drm-amdkfd-fixes

2015-05-07 Thread Oded Gabbay
Hi Dave,

Please pull the following three bug fixes for next -rc:

- Add missing initialization of SDMA vm register when creating an SDMA queue
- Don't report local memory size, as we don't support local memory allocation 
  yet.
- Allow to unregister process with exisiting queues. Until now we blocked 
  it with BUG_ON, which was also an error by itself.

All three fixes are marked as stable.

Thanks,

Oded

The following changes since commit 5ebe6afaf0057ac3eaeb98defd5456894b446d22:

  Linux 4.1-rc2 (2015-05-03 19:22:23 -0700)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-05-07

for you to fetch changes up to 79b066bd76d501cfe8328142153da301f5ca11d1:

  drm/amdkfd: Initialize sdma vm when creating sdma queue (2015-05-07 17:38:06 
+0300)


Oded Gabbay (2):
  drm/amdkfd: allow unregister process with queues
  drm/amdkfd: Don't report local memory size

Xihan Zhang (1):
  drm/amdkfd: Initialize sdma vm when creating sdma queue

 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 7 +--
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 4 ++--
 2 files changed, 7 insertions(+), 4 deletions(-)


[PULL] drm-amdkfd-fixes

2015-03-19 Thread Oded Gabbay
Hi Dave,

Please pull the following three bug fixes for -rc5:

- Fixing SDMA initialization when in non-HWS mode (debug mode)
- Memory leak fix when destroying kernel queue
- Fix number of available compute pipelines according to new firmware

Thanks,

Oded

The following changes since commit 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda:

  Linux 4.0-rc4 (2015-03-15 17:38:20 -0700)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-03-19

for you to fetch changes up to e405ca3a1bf166f741506c07c2a277b5d48af8f7:

  drm/radeon: Changing number of compute pipe lines (2015-03-16 23:36:58 +0200)


Ben Goz (3):
  drm/amdkfd: destroy mqd when destroying kernel queue
  drm/amdkfd: Fix SDMA queue init. in non-HWS mode
  drm/radeon: Changing number of compute pipe lines

 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  | 10 +-
 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c  | 22 +-
 drivers/gpu/drm/radeon/radeon_kfd.c|  2 +-
 3 files changed, 23 insertions(+), 11 deletions(-)


[PULL] drm-amdkfd-fixes

2015-02-23 Thread Oded Gabbay
Hi Dave,

Two amdkfd fixes for -rc2:

- Fix a bug that caused 15% CPU performance drop in Kaveri. This was caused 
  because we overwritten the initialization of the first pipe (out of eight),
  which is dedicated to radeon operation. The fix was tested by Michel Dänzer.
  This bug was introduced by a patch I prepared (yeah, my bad) and was merged
  to 3.19-rc6. Therefore, I also marked it as Cc:stable.

- Fix sparse warning

Thanks,

Oded

The following changes since commit c517d838eb7d07bbe9507871fab3931deccff539:

  Linux 4.0-rc1 (2015-02-22 18:21:14 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-02-23

for you to fetch changes up to 64ea8f4af57cee9f8b0bf542819b41ee82acfcb9:

  drm/amdkfd: don't set get_pipes_num() as inline (2015-02-23 10:48:02 +0200)


Oded Gabbay (2):
  drm/amdkfd: Initialize only amdkfd's assigned pipelines
  drm/amdkfd: don't set get_pipes_num() as inline

 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 10 --
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h |  8 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c |  2 +-
 3 files changed, 11 insertions(+), 9 deletions(-)


[PULL] drm-amdkfd-fixes

2015-02-02 Thread Oded Gabbay
Hi Dave,

Final pull request for 3.19. 
Three small fixes that came up during last week, nothing scary:

- Accidently incremented a counter instead of decrementing it (copy-paste error)
- Module parameter of max num of queues must be at least 1 and not 0
- Don't do BUG() as a result from wrong user input

Thanks,
Oded


The following changes since commit e36f014edff70fc02b3d3d79cead1d58f289332e:

  Linux 3.19-rc7 (2015-02-01 20:07:21 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-02-02

for you to fetch changes up to b9dce23ddc949faa8ba138f8a0811e177c991bf1:

  drm/amdkfd: Don't create BUG due to incorrect user parameter (2015-02-02 
09:45:24 +0200)


Oded Gabbay (3):
  drm/amdkfd: Fix bug in accounting of queues
  drm/amdkfd: max num of queues can't be 0
  drm/amdkfd: Don't create BUG due to incorrect user parameter

 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  | 2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_module.c| 4 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 6 +-
 3 files changed, 8 insertions(+), 4 deletions(-)


[PULL] drm-amdkfd-fixes

2015-01-26 Thread Oded Gabbay
Hi Dave,

A couple of fixes for -rc7 in amdkfd:

- Forgot to free resources when creation of queue has failed
- Initialization of pipelines was incorrect (3 patches)

In addition, The patch "drm/amdkfd: Allow user to limit only queues per device" 
is not a fix, but I would like to push it for 3.19 as it changes the ABI 
between amdkfd and userspace (by changing the module parameters). I would 
prefer *not* to support the two deprecated module parameters if I don't have 
too, as amdkfd hasn't been released yet. 

However, if you think that this patch is not appropriate at this time, please 
remove it and I will prepare a new patch for 3.20 that keeps backward 
compatibility.

Thanks,

Oded

The following changes since commit 26bc420b59a38e4e6685a73345a0def461136dce:

  Linux 3.19-rc6 (2015-01-25 20:04:41 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-01-26

for you to fetch changes up to 9fa843e76d9092e5348aac7252cbb71f09902507:

  drm/amdkfd: Fix bug in call to init_pipelines() (2015-01-22 12:50:37 +0200)


Ben Goz (1):
  drm/amdkfd: PQM handle queue creation fault

Oded Gabbay (4):
  drm/amdkfd: Allow user to limit only queues per device
  drm/radeon: Don't increment pipe_id in kgd_init_pipeline
  drm/amdkfd: Fix bug in pipelines initialization
  drm/amdkfd: Fix bug in call to init_pipelines()

 drivers/gpu/drm/amd/amdkfd/kfd_device.c|  6 +-
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  | 78 +-
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.h  |  1 +
 drivers/gpu/drm/amd/amdkfd/kfd_module.c| 27 +++-
 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h  | 17 +++--
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 12 ++--
 drivers/gpu/drm/radeon/radeon_kfd.c|  2 +-
 8 files changed, 106 insertions(+), 39 deletions(-)


[PULL] drm-amdkfd-fixes

2015-01-13 Thread Oded Gabbay
Hi Dave,

Two fixes for -rc5 :

- Remove the interrupt SW ring buffer impl. as it is not used by any module
  in amdkfd.

- Fix a sparse warning

Thanks,

Oded

The following changes since commit eaa27f34e91a14cdceed26ed6c6793ec1d186115:

  linux 3.19-rc4 (2015-01-11 12:44:53 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-fixes-2015-01-13

for you to fetch changes up to 8dfe58b2063811b415626060316672741049d4d4:

  drm/amdkfd: Fix sparse warning (different address space) (2015-01-08 16:46:16 
+0200)


Michel Dänzer (1):
  drm/amdkfd: Drop interrupt SW ring buffer

Oded Gabbay (1):
  drm/amdkfd: Fix sparse warning (different address space)

 drivers/gpu/drm/amd/amdkfd/Makefile|   3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_device.c|  20 +--
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  |   2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c | 176 -
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h  |  15 --
 5 files changed, 3 insertions(+), 213 deletions(-)
 delete mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c