Re: [PATCH 3/3] MMC: FSL SDHC: Add support for hard-wired (permanent) card. Kernel version 3.4.47

2013-06-10 Thread Oded Gabbay
: On 02.06.2013 08:38, Oded Gabbay wrote: This patch adds support of recognizing hard-wired (permanent) cards to Freescale's SDHC host driver. This is done by adding the option fsl,card-wired to the SDHC device-tree entry. Detection of this option is done in the probe function. Update documentation

Re: [PATCH 3/3] MMC: FSL SDHC: Add support for hard-wired (permanent) card. Kernel version 3.4.47

2013-06-10 Thread Oded Gabbay
Hi All, Just noticed that 3.4.47/8 doesn't have the mmc_of_parse (compared to 3.9.4). Therefore, I will not use it and just fix the code to recognize the property non-removable Best regards, Oded On 06/10/2013 04:43 PM, Oded Gabbay wrote: Hi Dirk, You are absolutely right. I will revise

[PATCH] MMC: FSL SDHC: Add support for non-removable card. Kernel version 3.4.48

2013-06-10 Thread Oded Gabbay
] from 6-jun-2013: https://patchwork.kernel.org/patch/2649231/ Signed-off-by: Oded Gabbay ogab...@advaoptical.com --- drivers/mmc/host/sdhci-of-esdhc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index e70f22f

[PATCH] MDIO: FSL_PQ_MDIO: Fix bug on incorrect offset of tbipa register

2013-06-12 Thread Oded Gabbay
) of the fsl_pq_mdio_match array. Note: This patch may break MDIO functionallity of some old Freescale's SoC until Freescale will fix their device tree files. Basically, every device tree which contains an mdio device that is compatible to fsl,gianfar-tbi should be examined. Signed-off-by: Oded Gabbay ogab

Re: [PATCH] MDIO: FSL_PQ_MDIO: Fix bug on incorrect offset of tbipa register

2013-06-12 Thread Oded Gabbay
Oded Gabbay wrote: Note: This patch may break MDIO functionallity of some old Freescale's SoC until Freescale will fix their device tree files. Basically, every device tree which contains an mdio device that is compatible to fsl,gianfar-tbi should be examined. On 06/12/2013 04:04 PM, Timur

[PATCH 1/2] MMC: P2020 SDHC: Add support for 8-bit bus width and non-removable card

2013-06-12 Thread Oded Gabbay
detecs if the non-removable property is set in the device tree. The function esdhc_pltfm_bus_width was added because the bus width configuration is platform specific. Signed-off-by: Oded Gabbay ogab...@advaoptical.com --- drivers/mmc/host/sdhci-esdhc.h| 7 +++ drivers/mmc/host/sdhci

[PATCH 2/2] MMC: P2020 SDHC: Fix bug when writing to SDHCI_HOST_CONTROL register

2013-06-12 Thread Oded Gabbay
depends on the first patch of this set (total of 2 patches) Signed-off-by: Oded Gabbay ogab...@advaoptical.com --- drivers/mmc/host/sdhci-of-esdhc.c | 14 ++ include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b

Re: [PATCH] MDIO: FSL_PQ_MDIO: Fix bug on incorrect offset of tbipa register

2013-06-13 Thread Oded Gabbay
On 06/12/2013 09:31 PM, Scott Wood wrote: On 06/12/2013 10:08:29 AM, Sebastian Andrzej Siewior wrote: On 06/12/2013 02:47 PM, Oded Gabbay wrote: This patch fixes a bug in the fsl_pq_mdio.c module and in relevant device-tree files regarding the correct offset of the tbipa register

[PATCH v2 1/2] MMC: P2020 SDHC: Add support for 8-bit bus width and non-removable card

2013-06-16 Thread Oded Gabbay
detecs if the non-removable property is set in the device tree. The function esdhc_pltfm_bus_width was added because the bus width configuration is platform specific. Signed-off-by: Oded Gabbay ogab...@advaoptical.com Reviewed-by: Anton Vorontsov an...@enomsg.org --- drivers/mmc/host/sdhci-esdhc.h

[PATCH v2 2/2] MMC: P2020 SDHC: Fix bug when writing to SDHCI_HOST_CONTROL register

2013-06-16 Thread Oded Gabbay
depends on the first patch of this set (total of 2 patches) Signed-off-by: Oded Gabbay ogab...@advaoptical.com Reviewed-by: Anton Vorontsov an...@enomsg.org --- drivers/mmc/host/sdhci-of-esdhc.c | 14 ++ include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 16 insertions(+) diff

[PATCH 3/3] MMC: FSL SDHC: Add support for hard-wired (permanent) card. Kernel version 3.4.47

2013-06-02 Thread Oded Gabbay
-by: Oded Gabbay ogab...@advaoptical.com --- Documentation/devicetree/bindings/mmc/fsl-esdhc.txt | 3 +++ drivers/mmc/host/sdhci-of-esdhc.c | 4 2 files changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/fsl-esdhc.txt b/Documentation/devicetree/bindings

[PATCH 2/3] MMC: P2020 SDHC: Fix bug when writing to SDHCI_HOST_CONTROL register. Kernel version 3.4.47

2013-06-02 Thread Oded Gabbay
-by: Oded Gabbay ogab...@advaoptical.com --- drivers/mmc/host/sdhci-of-esdhc.c | 10 ++ include/linux/mmc/sdhci.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 6f433b8..e70f22f 100644

[PATCH 1/3] MMC: P2020 SDHC: Add support for 8-bit bus width connection. Kernel version 3.4.47

2013-06-02 Thread Oded Gabbay
-by: Oded Gabbay ogab...@advaoptical.com --- drivers/mmc/host/sdhci-esdhc.h| 7 ++ drivers/mmc/host/sdhci-of-esdhc.c | 49 ++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc.h b/drivers/mmc/host/sdhci-esdhc.h

[PATCH 00/83] AMD HSA kernel driver

2014-07-10 Thread Oded Gabbay
bug drm/radeon: Extending kfd interface hsa/radeon: Adding max clock speeds to topology hsa/radeon: Alternating the source of max clock hsa/radeon: Exclusive access for perf. counters Michael Varga (1): hsa/radeon: debugging print statements Oded Gabbay (45): mm: Add kfd_process

[PATCH 01/83] mm: Add kfd_process pointer to mm_struct

2014-07-10 Thread Oded Gabbay
, it releases the kfd_process object and all relevant resources. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- include/linux/mm_types.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 678097c..6179107 100644 --- a/include/linux

[PATCH 02/83] drm/radeon: reduce number of free VMIDs and pipes in KV

2014-07-10 Thread Oded Gabbay
To support HSA on KV, we need to limit the number of vmids and pipes that are available for radeon's use with KV. This patch reserves VMIDs 8-15 for KFD (so radeon can only use VMIDs 0-7) and also makes radeon thinks that KV has only a single MEC with a single pipe in it Signed-off-by: Oded

[PATCH 06/83] drm/radeon: Add kfd--kgd interfaces of memory allocation/mapping

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 129 include/linux/radeon_kfd.h | 23 +++ 2 files changed, 152 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_kfd.c b/drivers/gpu/drm/radeon

[PATCH 03/83] drm/radeon: Report doorbell configuration to kfd

2014-07-10 Thread Oded Gabbay
Radeon and KFD share the doorbell aperture. Radeon sets it up, takes the doorbells required for its own rings and reports the setup to KFD. Radeon reserved doorbells are at the start of the doorbell aperture. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon.h

[PATCH 08/83] drm/radeon: Add calls to initialize and finalize kfd from radeon

2014-07-10 Thread Oded Gabbay
, the initialize call fails and the radeon driver continues normally. This patch also adds calls to probe, initialize and finalize a kfd device per radeon device using the kgd--kfd interface. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_drv.c | 6 ++ drivers/gpu

[PATCH 07/83] drm/radeon: Add kfd--kgd interface of locking srbm_gfx_cntl register

2014-07-10 Thread Oded Gabbay
This patch adds a new interface to kfd2kgd_calls structure, which allows the kfd to lock and unlock the srbm_gfx_cntl register Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 20 include/linux/radeon_kfd.h | 4 2 files

[PATCH 13/83] hsa/radeon: Add 2 new IOCTL to kfd, CREATE_QUEUE and DESTROY_QUEUE

2014-07-10 Thread Oded Gabbay
. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 155 ++ drivers/gpu/hsa/radeon/kfd_doorbell.c | 11 +++ include/uapi/linux/kfd_ioctl.h| 69 +++ 3 files changed, 235 insertions(+) create mode 100644

[PATCH 15/83] hsa/radeon: Add interrupt handling module

2014-07-10 Thread Oded Gabbay
-pressure to the hardware. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile| 2 +- drivers/gpu/hsa/radeon/kfd_device.c| 1 + drivers/gpu/hsa/radeon/kfd_interrupt.c | 179 + drivers/gpu/hsa/radeon/kfd_priv.h | 18

[PATCH 17/83] hsa/radeon: Handle deactivation of queues using interrupts

2014-07-10 Thread Oded Gabbay
, each cell is represents queues for a specific pipe. When a queue should be deactivated, it is inserted to the wait queue. The event that triggers the waitqueue is a dequeue-complete interrupt that arrives through the isr function of the scheduler. Signed-off-by: Oded Gabbay oded.gab...@amd.com

[PATCH 16/83] hsa/radeon: Add the isr function of the KFD scehduler

2014-07-10 Thread Oded Gabbay
. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/cik_int.h | 50 drivers/gpu/hsa/radeon/cik_regs.h | 2 + drivers/gpu/hsa/radeon/kfd_sched_cik_static.c | 56 +++ 3 files changed, 108 insertions

[PATCH 25/83] hsa/radeon: fix the OEMID assignment in kfd_topology

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_crat.h | 2 ++ drivers/gpu/hsa/radeon/kfd_topology.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_crat.h b/drivers/gpu/hsa/radeon/kfd_crat.h index 587455d..a374fa3

[PATCH 27/83] hsa/radeon: Implement hsaKmtSetMemoryPolicy

2014-07-10 Thread Oded Gabbay
From: Andrew Lewycky andrew.lewy...@amd.com This patch adds support in KFD for the hsaKmtSetMemoryPolicy HSA thunk API call Signed-off-by: Andrew Lewycky andrew.lewy...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/cik_regs.h | 1 + drivers/gpu

[PATCH 26/83] hsa/radeon: Make binding of process to device permanent

2014-07-10 Thread Oded Gabbay
From: Andrew Lewycky andrew.lewy...@amd.com Permanently bind the process to the device. The binding survives even when all queues are destroyed. Process exit and device removal terminate the binding. Signed-off-by: Andrew Lewycky andrew.lewy...@amd.com Signed-off-by: Oded Gabbay oded.gab

[PATCH 22/83] drm/radeon: Add calls to suspend and resume of kfd driver

2014-07-10 Thread Oded Gabbay
-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/cik.c| 7 +++ drivers/gpu/drm/radeon/radeon_kfd.c | 16 2 files changed, 23 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index e0c8052..b1c50f4 100644

[PATCH 21/83] hsa/radeon: Add kgd--kfd interfaces for suspend and resume

2014-07-10 Thread Oded Gabbay
This patch adds two new interfaces to the kgd2kfd structure. Those interfaces are for doing suspend and resume of a kfd device, when its matching radeon device does suspend and resume. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile | 2 +- drivers/gpu/hsa

[PATCH 24/83] drm/radeon/cik: Call kfd isr function

2014-07-10 Thread Oded Gabbay
When radeon handles interrupts for cik, propogate this interrupt to kfd. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/cik.c| 4 drivers/gpu/drm/radeon/radeon_kfd.c | 6 ++ 2 files changed, 10 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik.c b

[PATCH 28/83] mm: Change timing of notification to IOMMUs about a page to be invalidated

2014-07-10 Thread Oded Gabbay
...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- mm/rmap.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mm/rmap.c b/mm/rmap.c index 196cd0c..73d4c3d 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1231,13 +1231,17 @@ static int try_to_unmap_one(struct page *page

[PATCH 23/83] drm/radeon/cik: Don't touch int of pipes 1-7

2014-07-10 Thread Oded Gabbay
HSA radeon driver (kfd) should set interrupts for pipes 1-7. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/cik.c | 71 +--- 1 file changed, 1 insertion(+), 70 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu

[PATCH 18/83] hsa/radeon: Enable interrupts in KFD scheduler

2014-07-10 Thread Oded Gabbay
This patch enables the use of interrupts in the KFD scheduler when the scheduler performs its initialization. It also disables the interrupts when the scheduler stops its work. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_sched_cik_static.c | 28

[PATCH 32/83] hsa/radeon: implementing IOCTL for clock counters

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Implemented new IOCTL to query the CPU and GPU clock counters. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 37

[PATCH 30/83] hsa/radeon: Fix list of supported devices

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_device.c b/drivers/gpu/hsa/radeon/kfd_device.c index b627e57..a21c095 100644

[PATCH 20/83] hsa/radeon: Add interrupt callback function to kgd2kfd interface

2014-07-10 Thread Oded Gabbay
This patch adds a new callback function to the kgd2kfd interface. The new callback is for propagating interrupts from radeon driver to the kfd driver. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_module.c | 1 + include/linux/radeon_kfd.h | 1 + 2 files

[PATCH 36/83] hsa/radeon: fixing clock counters bug

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Fixed wrong reporting of timestamps in kfd_ioctl_get_clock_counters. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 47/83] hsa/radeon: Add support allocating kernel doorbells

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This patch adds infrastructure to allocate doorbells which are not exposed to user space. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_doorbell.c | 76

[PATCH 37/83] hsa/radeon: Print ISR info only in debug mode

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_sched_cik_static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/hsa/radeon/kfd_sched_cik_static.c b/drivers/gpu/hsa/radeon/kfd_sched_cik_static.c index 5bfde5c..7573d25 100644

[PATCH 39/83] drm/radeon: Extending kfd interface

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Adding new function to the interface used by kfd. The new function retrieves the max engine clock speed. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 11

[PATCH 51/83] hsa/radeon: Add packet manager module

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com The packet manager module builds PM4 packets for the sole use of the CP scheduler. Those packets are used by the HIQ to submit runlists to the CP. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon

[PATCH 45/83] hsa/radeon: debugging print statements

2014-07-10 Thread Oded Gabbay
From: Michael Varga michael.va...@amd.com Added debug print statements so critical errors during init may be debugged more easily. Signed-off-by: Michael Varga michael.va...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device.c | 18

[PATCH 52/83] hsa/radeon: Add process queue manager module

2014-07-10 Thread Oded Gabbay
@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile| 3 +- drivers/gpu/hsa/radeon/kfd_priv.h | 29 ++ drivers/gpu/hsa/radeon/kfd_process_queue_manager.c | 370 + 3 files changed, 401 insertions(+), 1

[PATCH 82/83] drm/radeon: Remove lock functions from kfd2kgd interface

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 44 - include/linux/radeon_kfd.h | 10 - 2 files changed, 54 deletions(-) diff --git

[PATCH 62/83] hsa/radeon: Fix timeout calculation in sync_with_hw

2014-07-10 Thread Oded Gabbay
This patch fixes a bug in the timeout calculation done in sync_with_hw functions. The original code assumed that jiffies is incremented in ms. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_kernel_queue.c | 14 ++ 1 file changed, 10 insertions(+), 4

[PATCH 83/83] hsa/radeon: Update module version to 0.6.2

2014-07-10 Thread Oded Gabbay
This version is intended for upstreaming to the Linux kernel 3.17 Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_module.c b/drivers/gpu/hsa/radeon

[PATCH 68/83] hsa/radeon: Update module version to 0.6.0

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/hsa/radeon/kfd_module.c b/drivers/gpu/hsa/radeon/kfd_module.c index fbfcce6..33cee3c 100644 --- a/drivers/gpu/hsa/radeon

[PATCH 74/83] hsa/radeon: Adding some error messages

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_chardev.c b/drivers/gpu/hsa/radeon

[PATCH 57/83] hsa/radeon: Eliminate warnings in compilation

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 6 +++--- drivers/gpu/hsa/radeon/kfd_kernel_queue.c | 4 ++-- drivers/gpu/hsa/radeon/kfd_queue.c| 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/hsa/radeon

[PATCH 80/83] drm/radeon: Add register access functions to kfd2kgd interface

2014-07-10 Thread Oded Gabbay
-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/cikd.h | 51 +- drivers/gpu/drm/radeon/radeon_kfd.c | 354 include/linux/radeon_kfd.h | 11 ++ 3 files changed, 415 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH 73/83] hsa/radeon: Adding qcm fence return status

2014-07-10 Thread Oded Gabbay
From: Yair Shachar yair.shac...@amd.com Waiting on fence returns status Signed-off-by: Yair Shachar yair.shac...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 6 -- drivers/gpu/hsa/radeon/kfd_priv.h | 2 ++ 2

[PATCH 76/83] hsa/radeon: Check oversubscription before destroying runlist

2014-07-10 Thread Oded Gabbay
check before the call to destroy the current runlist. If there is oversubscription, the function prints an error to dmesg and simply exits. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_packet_manager.c| 3 --- drivers/gpu/hsa/radeon/kfd_process_queue_manager.c

[PATCH 59/83] hsa/radeon: Exclusive access for perf. counters

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Introducing IOCTL implementation for controlling exclusive access to performace counters. The exclusive access is per GPU device. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa

[PATCH 79/83] hsa/radeon: Update module version to 0.6.1

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_module.c b/drivers/gpu/hsa/radeon/kfd_module.c index 33cee3c..c706236 100644 --- a/drivers/gpu/hsa/radeon

[PATCH 81/83] hsa/radeon: Eliminating all direct register accesses

2014-07-10 Thread Oded Gabbay
, the danger of sharing registers between the drivers is minimal. Having said that, we are planning to move the doorbells as well to radeon. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile | 2 +- drivers/gpu/hsa

[PATCH 77/83] hsa/radeon: Add local memory to topology

2014-07-10 Thread Oded Gabbay
From: Alexey Skidanov alexey.skida...@amd.com Signed-off-by: Alexey Skidanov alexey.skida...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/hsa/radeon/kfd_topology.c b/drivers/gpu

[PATCH 78/83] hsa/radeon: Don't verify cksum when parsing CRAT table

2014-07-10 Thread Oded Gabbay
This patch removes the checksum verification done when parsing a CRAT table. The verification was both erronous and redundant, as it is done by another piece of kernel code. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_topology.c | 29

[PATCH 75/83] hsa/radeon: Fixing minor issues with kernel queues (DIQ)

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com * re-execute runlist on kernel queues destruction. * delete kernel queues from pqm's queues list on pqm unint Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 4

[PATCH 71/83] hsa/radeon: Remove old scheduler code

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile | 5 +- drivers/gpu/hsa/radeon/kfd_sched_cik_static.c | 987 -- 2 files changed, 2 insertions(+), 990 deletions(-) delete mode 100644 drivers/gpu/hsa/radeon

[PATCH 65/83] hsa/radeon: fixing a bug to support 32b processes

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This commit is a bug fix for 32b hsa processes support Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/cik_regs.h | 1 + drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 8

[PATCH 72/83] hsa/radeon: Static analysis (smatch) fixes

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device.c | 3 +++ drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 2 +- drivers/gpu/hsa/radeon/kfd_mqd_manager.c | 1 + drivers/gpu/hsa/radeon/kfd_packet_manager.c | 3 ++- drivers

[PATCH 70/83] hsa/radeon: Fix compilation warnings

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_chardev.c b/drivers/gpu/hsa/radeon/kfd_chardev.c index 51f790f..09c9a61 100644 --- a/drivers/gpu/hsa

[PATCH 69/83] hsa/radeon: Fix initialization of sh_mem registers

2014-07-10 Thread Oded Gabbay
-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 48 --- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_device_queue_manager.c b/drivers/gpu/hsa/radeon/kfd_device_queue_manager.c index 5ec8da7

[PATCH 66/83] hsa/radeon: Fix number of pipes per ME

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 2 +- drivers/gpu/hsa/radeon/kfd_device_queue_manager.h | 2 +- drivers/gpu/hsa/radeon/kfd_packet_manager.c | 2 +- 3

[PATCH 67/83] hsa/radeon: Removing hw pointer store module

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This module is unnecessary as we allocating read/write pointers from userspace thunk layer Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile| 2 +- drivers/gpu/hsa/radeon

[PATCH 63/83] hsa/radeon: Update module information and version

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_module.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_module.c b/drivers/gpu/hsa/radeon/kfd_module.c index 85069c5..fbfcce6 100644 --- a/drivers

[PATCH 64/83] hsa/radeon: update queue fault handling

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This commit adding fault handling for process queue manager update queue Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_process_queue_manager.c | 15 --- 1 file changed, 12 insertions

[PATCH 60/83] hsa/radeon: Rearrange structures in kfd_ioctl.h

2014-07-10 Thread Oded Gabbay
This patch rearranges the structures defined in kfd_ioctl.h so that all the uint64_t variables are located at the start of each structure and then all the uint32_t variables are located. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- include/uapi/linux/kfd_ioctl.h | 51

[PATCH 61/83] hsa/radeon: change another pr_info to pr_debug

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/hsa/radeon/kfd_topology.c b/drivers/gpu/hsa/radeon/kfd_topology.c index 213ae7b..059b7db 100644 --- a/drivers/gpu/hsa/radeon

[PATCH 55/83] hsa/radeon: Add IOCTL for update queue

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This patch adds a new IOCTL that enables the user to perform update to an HSA queue. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/cik_mqds.h | 1 - drivers/gpu/hsa/radeon

[PATCH 58/83] hsa/radeon: Various kernel styling fixes

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device_queue_manager.h | 6 +++--- drivers/gpu/hsa/radeon/kfd_hw_pointer_store.h | 6 +++--- drivers/gpu/hsa/radeon/kfd_kernel_queue.h | 6 +++--- drivers/gpu/hsa/radeon/kfd_module.c | 8

[PATCH 53/83] hsa/radeon: Add device queue manager module

2014-07-10 Thread Oded Gabbay
supports suspend/resume operation. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile |2 +- drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 1006 + drivers/gpu/hsa/radeon/kfd_priv.h

[PATCH 56/83] hsa/radeon: Queue Management integration with Memory Management

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This patch adding support for LDS aperture for user processes. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_device_queue_manager.c | 41 +-- 1 file changed, 39 insertions

[PATCH 54/83] hsa/radeon: Switch to new queue scheduler

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com This patch makes the switch between the old KFD queue scheduler to the new KFD queue scheduler. The new scheduler supports H/W CP scheduling, over-subscription of queues and pre-emption of queues. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay

[PATCH 49/83] hsa/radeon: Add kernel queue support for KFD

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com The kernel queue module enables the KFD to establish kernel queues, not exposed to user space. The kernel queues are used for HIQ (HSA Interface Queue) and DIQ (Debug Interface Queue) operations. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay

[PATCH 50/83] hsa/radeon: Add module parameter of scheduling policy

2014-07-10 Thread Oded Gabbay
Scheduling Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_module.c | 5 +++ drivers/gpu/hsa/radeon/kfd_priv.h | 65 + 2 files changed, 70 insertions(+) diff --git a/drivers/gpu/hsa/radeon

[PATCH 46/83] hsa/radeon: Add queue and hw_pointer_store modules

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com The queue module enables allocating and initializing queues uniformly. The hw_pointer_store module handles allocation and assignment of read and write pointers to user HSA queues. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com

[PATCH 48/83] hsa/radeon: Add mqd_manager module

2014-07-10 Thread Oded Gabbay
From: Ben Goz ben@amd.com The mqd_manager module handles MQD data structures. MQD stands for Memory Queue Descriptor, which is used by the H/W to keep the HSA queue state in memory. Signed-off-by: Ben Goz ben@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa

[PATCH 42/83] hsa/radeon: 32-bit processes support

2014-07-10 Thread Oded Gabbay
From: Alexey Skidanov alexey.skida...@amd.com Initializing compat_ioctl properly. All ioctls args are packed. Signed-off-by: Alexey Skidanov alexey.skida...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 7 +-- drivers/gpu/hsa/radeon

[PATCH 43/83] hsa/radeon: NULL pointer dereference bug workaround

2014-07-10 Thread Oded Gabbay
From: Alexey Skidanov alexey.skida...@amd.com Signed-off-by: Alexey Skidanov alexey.skida...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_sched_cik_static.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/hsa/radeon

[PATCH 44/83] hsa/radeon: HSA64/HSA32 modes support

2014-07-10 Thread Oded Gabbay
From: Alexey Skidanov alexey.skida...@amd.com Added apertures initialization and appropriate ioctl Signed-off-by: Alexey Skidanov alexey.skida...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile | 2 +- drivers/gpu/hsa/radeon

[PATCH 41/83] hsa/radeon: Alternating the source of max clock

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Changing the source of the max engine clock value. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 34/83] drm/radeon: adding synchronization for GRBM GFX

2014-07-10 Thread Oded Gabbay
evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/cik.c | 26 ++ drivers/gpu/drm/radeon/radeon.h| 2 ++ drivers/gpu/drm/radeon/radeon_device.c | 1 + drivers/gpu/drm/radeon/radeon_kfd.c| 23

[PATCH 38/83] hsa/radeon: Workaround for a bug in amd_iommu

2014-07-10 Thread Oded Gabbay
This patch creates a workaround for a bug in amd_iommu driver, where the driver doesn't save all necessary information when going to suspend. The workaround removes a device from the IOMMU device list on suspend and register a resumed device in the IOMMU device list. Signed-off-by: Oded Gabbay

[PATCH 40/83] hsa/radeon: Adding max clock speeds to topology

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Adding support for CPU and GPU max clock speeds in node properties. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_topology.c | 6 -- 1 file changed, 4 insertions

[PATCH 19/83] hsa/radeon: Enable/Disable KFD interrupt module

2014-07-10 Thread Oded Gabbay
This patch add calls to initialize and finalize the KFD interrupt module. The calls are done per device initialize/finalize inside the kgd--kfd interface. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/cik_regs.h | 1 + drivers/gpu/hsa/radeon/kfd_device.c | 10

[PATCH 33/83] hsa/radeon: Fix coding style in cik_int.h

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/cik_int.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/hsa/radeon/cik_int.h b/drivers/gpu/hsa/radeon/cik_int.h index e98551d..350f0c2 100644 --- a/drivers/gpu/hsa

[PATCH 35/83] hsa/radeon: Print ioctl commnad only in debug mode

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_chardev.c b/drivers/gpu/hsa/radeon/kfd_chardev.c index d6fa980..dba6084 100644 --- a/drivers/gpu/hsa/radeon

[PATCH 29/83] hsa/radeon: Fix memory size allocated for HPD

2014-07-10 Thread Oded Gabbay
Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_sched_cik_static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/hsa/radeon/kfd_sched_cik_static.c b/drivers/gpu/hsa/radeon/kfd_sched_cik_static.c index 3c3e7d6..5bfde5c 100644

[PATCH 31/83] drm/radeon: extending kfd-kgd interface

2014-07-10 Thread Oded Gabbay
From: Evgeny Pinchuk evgeny.pinc...@amd.com Adding API for KFD to be able to query the GPU clock counter. Signed-off-by: Evgeny Pinchuk evgeny.pinc...@amd.com Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 9 + include/linux/radeon_kfd.h

[PATCH 04/83] drm/radeon: Add radeon -- kfd interface

2014-07-10 Thread Oded Gabbay
This patch adds the interface between the radeon driver and the kfd driver. The interface implementation is contained in radeon_kfd.c and radeon_kfd.h. The interface itself is represented by a pointer to struct kfd_dev. The pointer is located inside radeon_device structure. Signed-off-by: Oded

[PATCH 11/83] hsa/radeon: Add scheduler code

2014-07-10 Thread Oded Gabbay
This patch adds the code base of the scheduler, which handles queue creation, deletion and scheduling on the CP of the GPU. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile | 3 +- drivers/gpu/hsa/radeon/cik_regs.h | 213

[PATCH 14/83] hsa/radeon: Update MAINTAINERS and CREDITS files

2014-07-10 Thread Oded Gabbay
Update MAINTAINERS and CREDITS files with kfd driver information Signed-off-by: Oded Gabbay oded.gab...@amd.com --- CREDITS | 7 +++ MAINTAINERS | 8 2 files changed, 15 insertions(+) diff --git a/CREDITS b/CREDITS index 03343bf..c5f0aeae 100644 --- a/CREDITS +++ b/CREDITS

[PATCH 05/83] drm/radeon: Add kfd--kgd interface to get virtual ram size

2014-07-10 Thread Oded Gabbay
This patch adds a new interface to kfd2kgd_calls structure so that the kfd driver could get the virtual ram size of a specific radeon device. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/drm/radeon/radeon_kfd.c | 12 include/linux/radeon_kfd.h | 1 + 2

[PATCH 10/83] hsa/radeon: Add initialization and unmapping of doorbell aperture

2014-07-10 Thread Oded Gabbay
This patch adds initialization of the doorbell aperture when initializing a kfd device. It also adds a call to unmap the doorbell when a process unbinds from the kfd Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/Makefile | 3 +- drivers/gpu/hsa/radeon

[PATCH 12/83] hsa/radeon: Add kfd mmap handler

2014-07-10 Thread Oded Gabbay
/kfd. Signed-off-by: Oded Gabbay oded.gab...@amd.com --- drivers/gpu/hsa/radeon/kfd_chardev.c | 20 + drivers/gpu/hsa/radeon/kfd_doorbell.c | 85 +++ 2 files changed, 105 insertions(+) diff --git a/drivers/gpu/hsa/radeon/kfd_chardev.c b/drivers/gpu/hsa

Re: [PATCH v2 00/25] AMDKFD kernel driver

2014-07-21 Thread Oded Gabbay
On 20/07/14 20:46, Jerome Glisse wrote: On Thu, Jul 17, 2014 at 04:57:25PM +0300, Oded Gabbay wrote: Forgot to cc mailing list on cover letter. Sorry. As a continuation to the existing discussion, here is a v2 patch series restructured with a cleaner history and no totally-different-early

Re: [PATCH v2 00/25] AMDKFD kernel driver

2014-07-21 Thread Oded Gabbay
On 21/07/14 16:39, Christian König wrote: Am 21.07.2014 14:36, schrieb Oded Gabbay: On 20/07/14 20:46, Jerome Glisse wrote: On Thu, Jul 17, 2014 at 04:57:25PM +0300, Oded Gabbay wrote: Forgot to cc mailing list on cover letter. Sorry. As a continuation to the existing discussion, here

Re: [PATCH v2 00/25] AMDKFD kernel driver

2014-07-21 Thread Oded Gabbay
On 21/07/14 20:05, Daniel Vetter wrote: On Mon, Jul 21, 2014 at 11:58:52AM -0400, Jerome Glisse wrote: On Mon, Jul 21, 2014 at 05:25:11PM +0200, Daniel Vetter wrote: On Mon, Jul 21, 2014 at 03:39:09PM +0200, Christian König wrote: Am 21.07.2014 14:36, schrieb Oded Gabbay: On 20/07/14 20:46

Re: [PATCH v2 00/25] AMDKFD kernel driver

2014-07-21 Thread Oded Gabbay
On 21/07/14 18:54, Jerome Glisse wrote: On Mon, Jul 21, 2014 at 05:12:06PM +0300, Oded Gabbay wrote: On 21/07/14 16:39, Christian König wrote: Am 21.07.2014 14:36, schrieb Oded Gabbay: On 20/07/14 20:46, Jerome Glisse wrote: On Thu, Jul 17, 2014 at 04:57:25PM +0300, Oded Gabbay wrote: Forgot

  1   2   3   4   5   6   7   8   9   10   >