[git pull] amdkfd fixes for 4.17 rc3/4

2018-04-24 Thread Oded Gabbay
Hi Dave,

A couple of small fixes for 4.17 rc3/4, nothing special:

- fix amdkfd Kconfig to select MMU_NOTIFIER
- allow clock retrieval in case GPU not present
- fix return code from function
- make function static (fix sparse warning)

Thanks,

Oded

The following changes since commit 6d08b06e67cd117f6992c46611dfb4ce267cd71e:

  Linux 4.17-rc2 (2018-04-22 19:20:09 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 7bbc0b950f34bf11c26a32b6beb92e7f3b93:

  drm/amdkfd: fix build, select MMU_NOTIFIER (2018-04-24 12:50:04 +0300)


Andres Rodriguez (1):
  drm/amdkfd: fix clock counter retrieval for node without GPU

Randy Dunlap (1):
  drm/amdkfd: fix build, select MMU_NOTIFIER

Wei Yongjun (1):
  drm/amdkfd: Fix the error return code in kfd_ioctl_unmap_memory_from_gpu()

kbuild test robot (1):
  drm/amdkfd: kfd_dev_is_large_bar() can be static

 drivers/gpu/drm/amd/amdkfd/Kconfig   |  1 +
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 17 +
 2 files changed, 10 insertions(+), 8 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] amdkfd fixes for 4.16 final

2018-03-25 Thread Oded Gabbay
Hi Dave,

Two small fixes for the final 4.16 release:

- Programming VMID correctly for scratch memory with HWS
- deallocating SDMA queues correctly in various situations

Thanks,

Oded

The following changes since commit 5a9f698feb11b198f17b2acebbfe0e2716a3beed:

  drm/ast: Fixed 1280x800 Display Issue (2018-03-23 09:50:54 +1000)

are available in the Git repository at:

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

for you to fetch changes up to 72a01d231dcb22a276209c7a924a8cd475fbaa9b:

  drm/amdkfd: Deallocate SDMA queues correctly (2018-03-23 15:30:34 -0400)


Felix Kuehling (2):
  drm/amdkfd: Fix scratch memory with HWS enabled
  drm/amdkfd: Deallocate SDMA queues correctly

 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c| 20 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c  |  3 +--
 2 files changed, 15 insertions(+), 8 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] amdkfd fixes for 4.16

2018-01-15 Thread Oded Gabbay
Hi Dave,

a couple of minor fixes for 4.16:

- fix NULL pointer dereference
- fix compiler warning on large define values
- remove unnecessary call to execute_queues_cpsch

Thanks,
Oded

The following changes since commit 9be712ef4612268c28b9f1e2d850d3ceab06ef66:

  Merge tag 'drm/tegra/for-4.16-rc1-fixes' of 
git://anongit.freedesktop.org/tegra/linux into drm-next (2018-01-12 11:46:19 
+1000)

are available in the Git repository at:

  git://people.freedesktop.org/~gabbayo/linux 
tags/drm-amdkfd-next-fixes-2018-01-15

for you to fetch changes up to 2e3dca53654ddc51bada4cee4ca32d0d266fc9dd:

  drm/amdkfd: Fix potential NULL pointer dereferences (2018-01-10 17:15:09 
-0600)


Gustavo A. R. Silva (1):
  drm/amdkfd: Fix potential NULL pointer dereferences

Oded Gabbay (1):
  drm/amdkfd: add ull suffix to 64bit defines

Yong Zhao (2):
  drm/amdkfd: Fix return value 0 when execute_queues_cpsch fails
  drm/amdkfd: don't always call execute_queues_cpsch()

 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 12 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h |  6 +++---
 drivers/gpu/drm/amd/amdkfd/kfd_process.c  |  8 +++-
 3 files changed, 16 insertions(+), 10 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] amdkfd fixes 4.15

2017-11-26 Thread Oded Gabbay
Hi Dave,

This is amdkfd pull request for -rc2. It contains three small fixes to the
CIK SDMA code, compilation error fix in kfd_ioctl.h and fix to accessing
a pointer after it was released.

Thanks,
Oded

The following changes since commit c209101fc1c91a318422733a3721ff6a9ff7899f:

  Merge tag 'drm-misc-fixes-2017-11-20' of 
git://anongit.freedesktop.org/drm/drm-misc into drm-next (2017-11-24 11:33:29 
+1000)

are available in the git repository at:

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

for you to fetch changes up to b4d085201d86af69cbda2214c6dafc0be240ef9f:

  uapi: fix linux/kfd_ioctl.h userspace compilation errors (2017-11-26 11:31:32 
+0200)


Dmitry V. Levin (1):
  uapi: fix linux/kfd_ioctl.h userspace compilation errors

Felix Kuehling (2):
  drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode
  drm/amdkfd: Fix SDMA oversubsription handling

Randy Dunlap (1):
  drm/amdkfd: fix amdkfd use-after-free GP fault

shaoyunl (1):
  drm/amdkfd: Fix SDMA ring buffer size calculation

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c  | 47 --
 drivers/gpu/drm/amd/amdkfd/kfd_module.c|  3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   |  4 +-
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 18 +
 include/uapi/linux/kfd_ioctl.h | 22 +-
 5 files changed, 67 insertions(+), 27 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PULL] amdkfd-fixes

2015-01-06 Thread Oded Gabbay


On 01/06/2015 07:09 PM, Oded Gabbay wrote:
> Hi Dave,
>
> Here are a couple of bug fixes for the non-HWS path (used for bring-ups and
> debugging purposes only).
>
> Our QA team run a test on -rc2 and didn't discover any regressions,
> so I don't expect an additionl pull request for 3.19 unless something
> unexpected will pop-up.
Oops, sorry, but I forgot I have an important patch-set regarding fixing the 
IOCTL error handling as you asked me to do. Christian is still reviewing it but 
I definitely want it to be in 3.19 as that patch changes the IOCTLs.

Oded

>
>   Oded
>
> The following changes since commit 2f6bd4da08b5054ba933be6f7b17ed02ad6c4162:
>
>Merge tag 'amdkfd-fixes-2014-12-30' of 
> git://people.freedesktop.org/~gabbayo/linux into linus (2015-01-04 17:44:43 
> +1000)
>
> are available in the git repository at:
>
>
>git://people.freedesktop.org/~gabbayo/linux tags/amdkfd-fixes-2015-01-06
>
> for you to fetch changes up to 2030664b709caa769f2b6a1d2e71d8cb343c6884:
>
>drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS) (2015-01-05 
> 15:48:28 +0200)
>
> 
> Alexey Khoroshilov (1):
>drm/radeon: do not leave queue acquired if timeout happens in 
> kgd_hqd_destroy()
>
> Ben Goz (4):
>drm/amd: Fixing typos in kfd<->kgd interface
>drm/amdkfd: Load mqd to hqd in non-HWS mode
>drm/radeon: Assign VMID to PASID for IH in non-HWS mode
>drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS)
>
>   drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 15 +++
>   drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c  |  2 +-
>   drivers/gpu/drm/amd/include/kgd_kfd_interface.h   |  2 +-
>   drivers/gpu/drm/radeon/cikd.h |  2 ++
>   drivers/gpu/drm/radeon/radeon_kfd.c   | 11 ---
>   5 files changed, 27 insertions(+), 5 deletions(-)
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>


[PULL] amdkfd-fixes

2015-01-06 Thread Oded Gabbay
Hi Dave,

Here are a couple of bug fixes for the non-HWS path (used for bring-ups and 
debugging purposes only). 

Our QA team run a test on -rc2 and didn't discover any regressions, 
so I don't expect an additionl pull request for 3.19 unless something 
unexpected will pop-up.

Oded

The following changes since commit 2f6bd4da08b5054ba933be6f7b17ed02ad6c4162:

  Merge tag 'amdkfd-fixes-2014-12-30' of 
git://people.freedesktop.org/~gabbayo/linux into linus (2015-01-04 17:44:43 
+1000)

are available in the git repository at:


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

for you to fetch changes up to 2030664b709caa769f2b6a1d2e71d8cb343c6884:

  drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS) (2015-01-05 
15:48:28 +0200)


Alexey Khoroshilov (1):
  drm/radeon: do not leave queue acquired if timeout happens in 
kgd_hqd_destroy()

Ben Goz (4):
  drm/amd: Fixing typos in kfd<->kgd interface
  drm/amdkfd: Load mqd to hqd in non-HWS mode
  drm/radeon: Assign VMID to PASID for IH in non-HWS mode
  drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS)

 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 15 +++
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c  |  2 +-
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h   |  2 +-
 drivers/gpu/drm/radeon/cikd.h |  2 ++
 drivers/gpu/drm/radeon/radeon_kfd.c   | 11 ---
 5 files changed, 27 insertions(+), 5 deletions(-)


[PULL] amdkfd-fixes

2015-01-06 Thread Christian König
Am 06.01.2015 um 18:18 schrieb Oded Gabbay:
>
>
> On 01/06/2015 07:09 PM, Oded Gabbay wrote:
>> Hi Dave,
>>
>> Here are a couple of bug fixes for the non-HWS path (used for 
>> bring-ups and
>> debugging purposes only).
>>
>> Our QA team run a test on -rc2 and didn't discover any regressions,
>> so I don't expect an additionl pull request for 3.19 unless something
>> unexpected will pop-up.
> Oops, sorry, but I forgot I have an important patch-set regarding 
> fixing the IOCTL error handling as you asked me to do. Christian is 
> still reviewing it but I definitely want it to be in 3.19 as that 
> patch changes the IOCTLs.

Still haven't found time to look closer into it. But feel free to send 
it out cause the general approach sounded good and it is Acked-by: 
Christian König 

Regards,
Christian.

>
> Oded
>
>>
>> Oded
>>
>> The following changes since commit 
>> 2f6bd4da08b5054ba933be6f7b17ed02ad6c4162:
>>
>>Merge tag 'amdkfd-fixes-2014-12-30' of 
>> git://people.freedesktop.org/~gabbayo/linux into linus (2015-01-04 
>> 17:44:43 +1000)
>>
>> are available in the git repository at:
>>
>>
>>git://people.freedesktop.org/~gabbayo/linux 
>> tags/amdkfd-fixes-2015-01-06
>>
>> for you to fetch changes up to 2030664b709caa769f2b6a1d2e71d8cb343c6884:
>>
>>drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS) 
>> (2015-01-05 15:48:28 +0200)
>>
>> 
>> Alexey Khoroshilov (1):
>>drm/radeon: do not leave queue acquired if timeout happens in 
>> kgd_hqd_destroy()
>>
>> Ben Goz (4):
>>drm/amd: Fixing typos in kfd<->kgd interface
>>drm/amdkfd: Load mqd to hqd in non-HWS mode
>>drm/radeon: Assign VMID to PASID for IH in non-HWS mode
>>drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS)
>>
>>   drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 15 
>> +++
>>   drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c  |  2 +-
>>   drivers/gpu/drm/amd/include/kgd_kfd_interface.h   |  2 +-
>>   drivers/gpu/drm/radeon/cikd.h |  2 ++
>>   drivers/gpu/drm/radeon/radeon_kfd.c   | 11 ---
>>   5 files changed, 27 insertions(+), 5 deletions(-)
>> ___
>> dri-devel mailing list
>> dri-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>>
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel



[PULL] amdkfd-fixes

2014-12-30 Thread Oded Gabbay
Hi Dave,

A couple of bug fixes for 3.19-rc3, or for -rc4 if you decide to skip -rc3.

Highlights:

- Link order changes in drm/Makefile and drivers/Makefile to fix issue
  when amdkfd, radeon and amd_iommu_v2 are compiled inside the kernel 
  image.

- Consider kernel configuration (using #IFDEFs) when radeon initializes
  amdkfd, due to a specific configuration that makes symbol_request() 
  return a non-NULL value when a symbol doesn't exists. Rusty Russel
  is helping me to find the root cause, but it may take a while because
  of year-end so I'm sending this as a band-aid solution.

Other fixes include topology, pasid allocations and queues accounting.

Thanks and a happy new year

Oded

The following changes since commit b7392d2247cfe6771f95d256374f1a8e6a6f48d6:

  Linux 3.19-rc2 (2014-12-28 16:49:37 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/amdkfd-fixes-2014-12-30

for you to fetch changes up to 38c2adfb00db045a876dd667040abc01b788ad61:

  drm/radeon: Init amdkfd only if it was compiled (2014-12-29 14:46:00 +0200)


Ben Goz (1):
  amdkfd: Fixing topology bug in building sysfs nodes

Oded Gabbay (5):
  amdkfd: Fix accounting of device queues
  amdkfd: Remove duplicate include
  drivers: Move iommu/ before gpu/ in Makefile
  drm: Put amdkfd before radeon in drm Makefile
  drm/radeon: Init amdkfd only if it was compiled

Sasha Levin (1):
  amdkfd: actually allocate longs for the pasid bitmask

 drivers/Makefile  |  6 --
 drivers/gpu/drm/Makefile  |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c  |  1 -
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 13 +++--
 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c|  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c |  2 +-
 drivers/gpu/drm/radeon/radeon_kfd.c   | 12 
 7 files changed, 30 insertions(+), 8 deletions(-)


[PULL] amdkfd-fixes

2014-12-23 Thread Oded Gabbay
Hi Dave,

Two fixes for amdkfd.

- Display MEC fw version in topology. Without this, the HSA userspace
  stack is broken.

- Init apertures information only once per process

The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672:

  Linux 3.19-rc1 (2014-12-20 17:08:50 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/amdkfd-fixes-2014-12-23

for you to fetch changes up to dd59239a9862a42e4b8d47e4aaa8d595d08c29ab:

  amdkfd: init aperture once per process (2014-11-18 13:56:23 +0200)


Alexey Skidanov (1):
  amdkfd: init aperture once per process

Oded Gabbay (3):
  drm/amd: Add get_fw_version to kfd-->kgd interface
  drm/radeon: Add implementation of get_fw_version
  amdkfd: Display MEC fw version in topology node

 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c|  4 --
 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c|  6 +--
 drivers/gpu/drm/amd/amdkfd/kfd_process.c|  9 +
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c   |  8 +++-
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 15 +++
 drivers/gpu/drm/radeon/radeon_kfd.c | 53 +
 6 files changed, 85 insertions(+), 10 deletions(-)