From: Oded Gabbay <oded.gabbay@amd.com>
To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
"David Airlie" <airlied@linux.ie>,
"Jérôme Glisse" <j.glisse@gmail.com>,
"Alexander Deucher" <alexdeucher@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
<John.Bridgman@amd.com>, "Joerg Roedel" <joro@8bytes.org>,
<Andrew.Lewycky@amd.com>, <deathsimple@vodafone.de>,
<michel.daenzer@amd.com>, Oded Gabbay <oded.gabbay@amd.com>
Subject: [PATCH v3 00/23] AMDKFD Kernel Driver
Date: Tue, 5 Aug 2014 18:30:28 +0300 [thread overview]
Message-ID: <1407252651-3539-1-git-send-email-oded.gabbay@amd.com> (raw)
Hi,
Here is the v3 patch set of amdkfd.
This version contains changes and fixes to code, as agreed on during the review
of the v2 patch set.
The major changes are:
- There are two new module parameters: # of processes and # of queues per
process. The defaults, as agreed on in the v2 review, are 32 and 128
respectively. This sets the default amount of GART address space that amdkfd
requires to 3.5MB (3MB for userspace queues mqds and 0.5MB for other stuff,
such as mqd for kernel queue, hpd for pipelines, etc.)
- All the GART address space usage of amdkfd is done inside a single contiguous
buffer that is allocated from system memory, and pinned to the start of the
GART during the startup of amdkfd (which is just after the startup of
radeon). The management of this buffer is done by the radeon sa manager.
This buffer is not evict-able.
- Mapping of doorbells is initiated by the userspace lib (by mmap syscall),
instead of initiating it from inside an ioctl (using vm_mmap).
- Removed ioctls for exclusive access to performance counters
- Added documentation about the QCM (Queue Control Management), apertures and
interfaces between amdkfd and radeon.
Two important notes:
- The topology patch has not been changed. Look at
http://lists.freedesktop.org/archives/dri-devel/2014-July/065042.html
for my response. I also put my answer as an explanation in the commit msg
of the patch.
- There are still some minor code style issues I need to fix. I didn't want
to delay v3 any further but I will publish either v4 with those fixes,
or just relevant patches if the whole patch set will be merged.
For people who like to review using git, the v3 patch set is located at:
http://cgit.freedesktop.org/~gabbayo/linux/log/?h=kfd-next-3.17-v3
In addition, I would like to announce that we have uploaded the userspace lib
that accompanies amdkfd. That lib is called "libhsakmt" and you can view it at:
http://cgit.freedesktop.org/~gabbayo/libhsakmt
Alexey Skidanov (1):
amdkfd: Implement the Get Process Aperture IOCTL
Andrew Lewycky (3):
amdkfd: Add basic modules to amdkfd
amdkfd: Add interrupt handling module
amdkfd: Implement the Set Memory Policy IOCTL
Ben Goz (8):
amdkfd: Add queue module
amdkfd: Add mqd_manager module
amdkfd: Add kernel queue module
amdkfd: Add module parameter of scheduling policy
amdkfd: Add packet manager module
amdkfd: Add process queue manager module
amdkfd: Add device queue manager module
amdkfd: Implement the create/destroy/update queue IOCTLs
Evgeny Pinchuk (2):
amdkfd: Add topology module to amdkfd
amdkfd: Implement the Get Clock Counters IOCTL
Oded Gabbay (9):
drm/radeon: reduce number of free VMIDs and pipes in KV
drm/radeon/cik: Don't touch int of pipes 1-7
drm/radeon: Report doorbell configuration to amdkfd
drm/radeon: adding synchronization for GRBM GFX
drm/radeon: Add radeon <--> amdkfd interface
Update MAINTAINERS and CREDITS files with amdkfd info
amdkfd: Add IOCTL set definitions of amdkfd
amdkfd: Add amdkfd skeleton driver
amdkfd: Add binding/unbinding calls to amd_iommu driver
CREDITS | 7 +
MAINTAINERS | 10 +
drivers/gpu/drm/radeon/Kconfig | 2 +
drivers/gpu/drm/radeon/Makefile | 3 +
drivers/gpu/drm/radeon/amdkfd/Kconfig | 10 +
drivers/gpu/drm/radeon/amdkfd/Makefile | 14 +
drivers/gpu/drm/radeon/amdkfd/cik_regs.h | 220 ++++
drivers/gpu/drm/radeon/amdkfd/kfd_aperture.c | 350 ++++++
drivers/gpu/drm/radeon/amdkfd/kfd_chardev.c | 511 +++++++++
drivers/gpu/drm/radeon/amdkfd/kfd_crat.h | 294 +++++
drivers/gpu/drm/radeon/amdkfd/kfd_device.c | 300 +++++
.../drm/radeon/amdkfd/kfd_device_queue_manager.c | 989 ++++++++++++++++
.../drm/radeon/amdkfd/kfd_device_queue_manager.h | 144 +++
drivers/gpu/drm/radeon/amdkfd/kfd_doorbell.c | 236 ++++
drivers/gpu/drm/radeon/amdkfd/kfd_interrupt.c | 161 +++
drivers/gpu/drm/radeon/amdkfd/kfd_kernel_queue.c | 330 ++++++
drivers/gpu/drm/radeon/amdkfd/kfd_kernel_queue.h | 66 ++
drivers/gpu/drm/radeon/amdkfd/kfd_module.c | 147 +++
drivers/gpu/drm/radeon/amdkfd/kfd_mqd_manager.c | 305 +++++
drivers/gpu/drm/radeon/amdkfd/kfd_mqd_manager.h | 88 ++
drivers/gpu/drm/radeon/amdkfd/kfd_packet_manager.c | 495 ++++++++
drivers/gpu/drm/radeon/amdkfd/kfd_pasid.c | 95 ++
drivers/gpu/drm/radeon/amdkfd/kfd_pm4_headers.h | 682 +++++++++++
drivers/gpu/drm/radeon/amdkfd/kfd_pm4_opcodes.h | 107 ++
drivers/gpu/drm/radeon/amdkfd/kfd_priv.h | 560 +++++++++
drivers/gpu/drm/radeon/amdkfd/kfd_process.c | 347 ++++++
.../drm/radeon/amdkfd/kfd_process_queue_manager.c | 346 ++++++
drivers/gpu/drm/radeon/amdkfd/kfd_queue.c | 85 ++
drivers/gpu/drm/radeon/amdkfd/kfd_topology.c | 1207 ++++++++++++++++++++
drivers/gpu/drm/radeon/amdkfd/kfd_topology.h | 168 +++
drivers/gpu/drm/radeon/cik.c | 154 +--
drivers/gpu/drm/radeon/cik_reg.h | 65 ++
drivers/gpu/drm/radeon/cikd.h | 53 +-
drivers/gpu/drm/radeon/radeon.h | 10 +
drivers/gpu/drm/radeon/radeon_device.c | 32 +
drivers/gpu/drm/radeon/radeon_drv.c | 5 +
drivers/gpu/drm/radeon/radeon_kfd.c | 525 +++++++++
drivers/gpu/drm/radeon/radeon_kfd.h | 177 +++
drivers/gpu/drm/radeon/radeon_kms.c | 7 +
include/uapi/linux/kfd_ioctl.h | 126 ++
40 files changed, 9338 insertions(+), 95 deletions(-)
create mode 100644 drivers/gpu/drm/radeon/amdkfd/Kconfig
create mode 100644 drivers/gpu/drm/radeon/amdkfd/Makefile
create mode 100644 drivers/gpu/drm/radeon/amdkfd/cik_regs.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_aperture.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_chardev.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_crat.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_device.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_device_queue_manager.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_device_queue_manager.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_doorbell.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_interrupt.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_kernel_queue.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_kernel_queue.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_module.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_mqd_manager.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_mqd_manager.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_packet_manager.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_pasid.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_pm4_headers.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_pm4_opcodes.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_priv.h
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_process.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_process_queue_manager.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_queue.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_topology.c
create mode 100644 drivers/gpu/drm/radeon/amdkfd/kfd_topology.h
create mode 100644 drivers/gpu/drm/radeon/radeon_kfd.c
create mode 100644 drivers/gpu/drm/radeon/radeon_kfd.h
create mode 100644 include/uapi/linux/kfd_ioctl.h
--
1.9.1
next reply other threads:[~2014-08-05 15:31 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 15:30 Oded Gabbay [this message]
2014-08-05 15:30 ` [PATCH v3 01/23] drm/radeon: reduce number of free VMIDs and pipes in KV Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 02/23] drm/radeon/cik: Don't touch int of pipes 1-7 Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 03/23] drm/radeon: Report doorbell configuration to amdkfd Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 04/23] drm/radeon: adding synchronization for GRBM GFX Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 05/23] drm/radeon: Add radeon <--> amdkfd interface Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 06/23] Update MAINTAINERS and CREDITS files with amdkfd info Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 07/23] amdkfd: Add IOCTL set definitions of amdkfd Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 08/23] amdkfd: Add amdkfd skeleton driver Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 09/23] amdkfd: Add topology module to amdkfd Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 10/23] amdkfd: Add basic modules " Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 11/23] amdkfd: Add binding/unbinding calls to amd_iommu driver Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 12/23] amdkfd: Add queue module Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 13/23] amdkfd: Add mqd_manager module Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 14/23] amdkfd: Add kernel queue module Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 15/23] amdkfd: Add module parameter of scheduling policy Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 16/23] amdkfd: Add packet manager module Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 17/23] amdkfd: Add process queue " Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 18/23] amdkfd: Add device " Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 19/23] amdkfd: Add interrupt handling module Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 20/23] amdkfd: Implement the create/destroy/update queue IOCTLs Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 21/23] amdkfd: Implement the Set Memory Policy IOCTL Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 22/23] amdkfd: Implement the Get Clock Counters IOCTL Oded Gabbay
2014-08-05 15:30 ` [PATCH v3 23/23] amdkfd: Implement the Get Process Aperture IOCTL Oded Gabbay
2014-08-05 17:11 ` [PATCH v3 00/23] AMDKFD Kernel Driver David Herrmann
2014-08-05 18:35 ` Oded Gabbay
2014-09-26 11:02 ` Oded Gabbay
2014-08-05 17:51 ` Jerome Glisse
2014-08-05 18:39 ` Bridgman, John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407252651-3539-1-git-send-email-oded.gabbay@amd.com \
--to=oded.gabbay@amd.com \
--cc=Andrew.Lewycky@amd.com \
--cc=John.Bridgman@amd.com \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=alexdeucher@gmail.com \
--cc=deathsimple@vodafone.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=j.glisse@gmail.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michel.daenzer@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome