From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oded Gabbay Subject: Re: [PULL] drm-amdkfd-next Date: Mon, 18 May 2015 09:31:45 +0300 Message-ID: References: <20150518062940.GA23029@odedg-home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0171060839==" Return-path: Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 8EFE96E3EA for ; Sun, 17 May 2015 23:32:16 -0700 (PDT) Received: by obbkp3 with SMTP id kp3so115419363obb.3 for ; Sun, 17 May 2015 23:32:16 -0700 (PDT) In-Reply-To: <20150518062940.GA23029@odedg-home> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Dave Airlie Cc: Maling list - DRI developers List-Id: dri-devel@lists.freedesktop.org --===============0171060839== Content-Type: multipart/alternative; boundary=047d7b5d33dadb56800516555ab7 --047d7b5d33dadb56800516555ab7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, May 18, 2015 at 9:29 AM, Oded Gabbay wrote: > Hi Dave, > > Here is the pull request of amdkfd for 4.2 > > drm-amdkfd-next-2015-05-18: > > - Add the interrupts & events modules, including new IOCTLs to create and > wait > on events. The HSA RT open source stack is mainly using events to know > when > a dispatched work has been completed. In addition, this module is > a pre-requisite for the next module I'm going to upstream - debugger > support > > This module also handles H/W exceptions, such as memory exception > received > through the IOMMUv2 H/W and Bad Opcode exception receieved from the GPU= . > > - Adding a new kernel module parameter to let the user decide whether he > wants > to receive a SIGTERM when a memory exception occurs inside the GPU > kernel and > the HSA application doesn't wait on an appropriate event, or if he just > want > to receive notification about this event in dmesg. The default is the > latter. > > - Additional improvements for SDMA code > > - Update my email address in Maintainers file as I'm leaving AMD in two > weeks. > > Thanks, > > Oded > > The following changes since commit > dde10068e1a4798fa44e68a5d08b5dfe3602cbba: > > Merge branch 'drm-armada-devel' of git:// > ftp.arm.linux.org.uk/~rmk/linux-arm into drm-next (2015-05-15 15:24:41 > +1000) > > are available in the git repository at: > > ssh://gabbayo@people.freedesktop.org/~gabbayo/linux > tags/drm-amdkfd-next-2015-05-18 > > for you to fetch changes up to a441b1ddc5ad53aaa9e6d4d0b98387b1cf0a9ba8: > > drm/amdkfd: change driver version to 0.7.2 (2015-05-18 09:15:28 +0300) > > ---------------------------------------------------------------- > Alexey Skidanov (2): > drm/amdkfd: Add memory exception handling > drm/amdkfd: Add bad opcode exception handling > > Andrew Lewycky (4): > drm/amdkfd: Add interrupt handling module > drm/amdkfd: add events IOCTL set definitions > drm/amdkfd: Add the events module > drm/amdkfd: Implement events IOCTLs > > Firo Yang (1): > drm/amdkfd: Remove unessary void pointer cast > > Oded Gabbay (7): > drm/amdkfd: reformat some debug prints > drm/amdkfd: Use new struct for asic specific ops > drm/amdkfd: make the sdma vm init to be asic specific > MAINTAINERS: update amdkfd Oded's email address > drm/radeon: Add init interrupt kfd->kgd interface > drm/amdkfd: Add module parameter of send_sigterm > drm/amdkfd: change driver version to 0.7.2 > > MAINTAINERS | 2 +- > drivers/gpu/drm/amd/amdkfd/Makefile | 1 + > drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c | 66 ++ > drivers/gpu/drm/amd/amdkfd/cik_int.h | 41 + > drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 87 +- > drivers/gpu/drm/amd/amdkfd/kfd_device.c | 52 +- > .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 30 +- > .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.h | 21 +- > .../drm/amd/amdkfd/kfd_device_queue_manager_cik.c | 18 +- > .../drm/amd/amdkfd/kfd_device_queue_manager_vi.c | 10 +- > drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c | 15 +- > drivers/gpu/drm/amd/amdkfd/kfd_events.c | 965 > +++++++++++++++++++++ > drivers/gpu/drm/amd/amdkfd/kfd_events.h | 84 ++ > drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c | 188 ++++ > drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c | 5 +- > drivers/gpu/drm/amd/amdkfd/kfd_module.c | 9 +- > drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 75 ++ > drivers/gpu/drm/amd/amdkfd/kfd_process.c | 27 +- > drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 2 + > drivers/gpu/drm/radeon/cik_reg.h | 2 + > drivers/gpu/drm/radeon/cikd.h | 1 + > drivers/gpu/drm/radeon/radeon_kfd.c | 21 +- > include/uapi/linux/kfd_ioctl.h | 96 +- > 23 files changed, 1778 insertions(+), 40 deletions(-) > create mode 100644 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c > create mode 100644 drivers/gpu/drm/amd/amdkfd/cik_int.h > create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_events.c > create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_events.h > create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c > =E2=80=8BFixing Alex's email address.=E2=80=8B =E2=80=8BSorry.=E2=80=8B --=20 Oded --047d7b5d33dadb56800516555ab7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Ma= y 18, 2015 at 9:29 AM, Oded Gabbay <oded.gabbay@gmail.com> wrote:
Hi Dave,

Here is the pull request of amdkfd for 4.2

drm-amdkfd-next-2015-05-18:

- Add the interrupts & events modules, including new IOCTLs to create a= nd wait
=C2=A0 on events. The HSA RT open source stack is mainly using events to kn= ow when
=C2=A0 a dispatched work has been completed. In addition, this module is =C2=A0 a pre-requisite for the next module I'm going to upstream - debu= gger support

=C2=A0 This module also handles H/W exceptions, such as memory exception re= ceived
=C2=A0 through the IOMMUv2 H/W and Bad Opcode exception receieved from the = GPU.

- Adding a new kernel module parameter to let the user decide whether he wa= nts
=C2=A0 to receive a SIGTERM when a memory exception occurs inside the GPU k= ernel and
=C2=A0 the HSA application doesn't wait on an appropriate event, or if = he just want
=C2=A0 to receive notification about this event in dmesg. The default is th= e latter.

- Additional improvements for SDMA code

- Update my email address in Maintainers file as I'm leaving AMD in two= weeks.

Thanks,

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Oded

The following changes since commit dde10068e1a4798fa44e68a5d08b5dfe3602cbba= :

=C2=A0 Merge branch 'drm-armada-devel' of git://ftp.arm.linux.org.uk/= ~rmk/linux-arm into drm-next (2015-05-15 15:24:41 +1000)

are available in the git repository at:

=C2=A0 ssh://gabbayo@people.freedesktop.org/~gabbayo/linux tags= /drm-amdkfd-next-2015-05-18

for you to fetch changes up to a441b1ddc5ad53aaa9e6d4d0b98387b1cf0a9ba8:
=C2=A0 drm/amdkfd: change driver version to 0.7.2 (2015-05-18 09:15:28 +030= 0)

----------------------------------------------------------------
Alexey Skidanov (2):
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Add memory exception handling
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Add bad opcode exception handling

Andrew Lewycky (4):
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Add interrupt handling module
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: add events IOCTL set definitions
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Add the events module
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Implement events IOCTLs

Firo Yang (1):
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Remove unessary void pointer cast

Oded Gabbay (7):
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: reformat some debug prints
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Use new struct for asic specific ops
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: make the sdma vm init to be asic specific<= br> =C2=A0 =C2=A0 =C2=A0 MAINTAINERS: update amdkfd Oded's email address =C2=A0 =C2=A0 =C2=A0 drm/radeon: Add init interrupt kfd->kgd interface =C2=A0 =C2=A0 =C2=A0 drm/amdkfd: Add module parameter of send_sigterm
=C2=A0 =C2=A0 =C2=A0 drm/amdkfd: change driver version to 0.7.2

=C2=A0MAINTAINERS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 =C2=A02 +-
=C2=A0drivers/gpu/drm/amd/amdkfd/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A01 +
=C2=A0drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c=C2=A0 =C2=A0|=C2=A0 = 66 ++
=C2=A0drivers/gpu/drm/amd/amdkfd/cik_int.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 41 +
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_chardev.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0|=C2=A0 87 +-
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_device.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 |=C2=A0 52 +-
=C2=A0.../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c=C2=A0 |=C2=A0 30 +-=
=C2=A0.../gpu/drm/amd/amdkfd/kfd_device_queue_manager.h=C2=A0 |=C2=A0 21 +-=
=C2=A0.../drm/amd/amdkfd/kfd_device_queue_manager_cik.c=C2=A0 |=C2=A0 18 +-=
=C2=A0.../drm/amd/amdkfd/kfd_device_queue_manager_vi.c=C2=A0 =C2=A0|=C2=A0 = 10 +-
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 |=C2=A0 15 +-
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_events.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 | 965 +++++++++++++++++++++
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_events.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 |=C2=A0 84 ++
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0| 188 ++++
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c=C2=A0 =C2=A0 =C2=A0 |= =C2=A0 =C2=A05 +-
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_module.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 |=C2=A0 =C2=A09 +-
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_priv.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 75 ++
=C2=A0drivers/gpu/drm/amd/amdkfd/kfd_process.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0|=C2=A0 27 +-
=C2=A0drivers/gpu/drm/amd/include/kgd_kfd_interface.h=C2=A0 =C2=A0 |=C2=A0 = =C2=A02 +
=C2=A0drivers/gpu/drm/radeon/cik_reg.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A02 +
=C2=A0drivers/gpu/drm/radeon/cikd.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A01 +
=C2=A0drivers/gpu/drm/radeon/radeon_kfd.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 |=C2=A0 21 +-
=C2=A0include/uapi/linux/kfd_ioctl.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 96 +-
=C2=A023 files changed, 1778 insertions(+), 40 deletions(-)
=C2=A0create mode 100644 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c =C2=A0create mode 100644 drivers/gpu/drm/amd/amdkfd/cik_int.h
=C2=A0create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_events.c
=C2=A0create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_events.h
=C2=A0create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c

=E2=80=8BFixing Alex's email address.=E2=80=8B
=E2=80=8BSorry.=E2=80=8B

--=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Oded
--047d7b5d33dadb56800516555ab7-- --===============0171060839== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0171060839==--