lkml.org 
[lkml]   [2019]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[git pull] habanalabs next for 5.2
Hi Greg,

This is the major pull request for habanalabs driver for kernel 5.2.

All of the patches were submitted more then a couple of weeks ago and were
in my repository at fdo which is being checked by the Intel kbuild robot,
so I believe they are clean in terms of compilation in different
architectures.

Please see the tag message for details on what this pull request contains.

Thanks,
Oded

The following changes since commit d358b1733fc33d9f0261ce07c3d328787652245d:

chardev: update comment based on the code (2019-04-02 17:49:58 +0200)

are available in the Git repository at:

git://people.freedesktop.org/~gabbayo/linux tags/misc-habanalabs-next-2019-04-19

for you to fetch changes up to 9f201aba56b92c3daa4b76efae056ddbb80d91e6:

habanalabs: prevent device PTE read/write during hard-reset (2019-04-06 15:33:38 +0300)

----------------------------------------------------------------
This tag contains many changes for kernel 5.2.

The major changes are:
- Add a new IOCTL for debug, profiling and trace operations on the device.
This will allow the user to perform profiling and debugging of the
deep learning topologies that are executing on the ASIC.

- Add a shadow table for the ASIC's MMU page tables to avoid doing page
table walks on the device's DRAM during map/unmap operations.

- re-factor of ASIC-dependent code to be common code for all ASICs

In addition, there are many small fixes and changes. The notable ones are:
- Allow accessing the DRAM using virtual address through the debugFS
interface. Until now, only physical addresses were valid, but that is
useless for debugging when working with MMU.

- Allow the user to modify the TPC clock relaxation value to better
control TPC power consumption during topology execution.

- Allow the user to inquire about the device's status
(operational/Malfunction/in-reset) in the INFO IOCTL.

- Improvements to the device's removal function, to prevent crash in case
of force removal by the OS.

- Prevent PTE read/write during hard-reset. This will improve stability of
the device during hard-reset.

----------------------------------------------------------------
Dalit Ben Zoor (3):
habanalabs: set new golden value to tpc clock relaxation
habanalabs: allow user to modify TPC clock relaxation value
habanalabs: add device status option to INFO IOCTL

Dotan Barak (1):
habanalabs: remove implicit include from header files

Igor Grinberg (1):
habanalabs: add new device CPU boot status

Oded Gabbay (18):
habanalabs: rename goya_non_fatal_events array to all events
habanalabs: use EQ MSI/X ID per chip
habanalabs: remove unused defines
habanalabs: ratelimit warnings at start of IOCTLs
uapi/habanalabs: add some comments in habanalabs.h
habanalabs: keep track of the device's dma mask
habanalabs: never fail hard reset of device
habanalabs: improve error messages
habanalabs: remove trailing blank line from EOF
habanalabs: prevent CPU soft lockup on Palladium
habanalabs: remove extra semicolon
uapi/habanalabs: fix some comments in uapi file
habanalabs: refactoring in goya.c
habanalabs: ASIC_AUTO_DETECT enum value is redundant
habanalabs: split mmu/no-mmu code paths in memory ioctl
habanalabs: all FD must be closed before removing device
habanalabs: improve IOCTLs behavior when disabled or reset
habanalabs: prevent device PTE read/write during hard-reset

Omer Shpigelman (3):
habanalabs: add MMU shadow mapping
habanalabs: add new IOCTL for debug, tracing and profiling
habanalabs: add goya implementation for debug configuration

Tomer Tayar (5):
habanalabs: Move device CPU code into common file
habanalabs: Move PCI code into common file
habanalabs: Remove unneeded function pointers
habanalabs: Add a printout with the name of a busy engine
habanalabs: Allow accessing DRAM virtual addresses via debugfs

drivers/misc/habanalabs/Makefile | 2 +-
drivers/misc/habanalabs/command_buffer.c | 7 +
drivers/misc/habanalabs/command_submission.c | 5 +-
drivers/misc/habanalabs/debugfs.c | 96 ++-
drivers/misc/habanalabs/device.c | 77 +-
drivers/misc/habanalabs/firmware_if.c | 325 ++++++++
drivers/misc/habanalabs/goya/Makefile | 3 +-
drivers/misc/habanalabs/goya/goya.c | 884 +++++----------------
drivers/misc/habanalabs/goya/goyaP.h | 47 +-
drivers/misc/habanalabs/goya/goya_coresight.c | 620 +++++++++++++++
drivers/misc/habanalabs/goya/goya_security.c | 15 +-
drivers/misc/habanalabs/habanalabs.h | 110 ++-
drivers/misc/habanalabs/habanalabs_drv.c | 7 +-
drivers/misc/habanalabs/habanalabs_ioctl.c | 139 +++-
drivers/misc/habanalabs/include/armcp_if.h | 10 +-
.../include/goya/asic_reg/cpu_ca53_cfg_masks.h | 1 -
.../include/goya/asic_reg/cpu_ca53_cfg_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/cpu_if_regs.h | 1 -
.../include/goya/asic_reg/cpu_pll_regs.h | 1 -
.../include/goya/asic_reg/dma_ch_0_regs.h | 1 -
.../include/goya/asic_reg/dma_ch_1_regs.h | 1 -
.../include/goya/asic_reg/dma_ch_2_regs.h | 1 -
.../include/goya/asic_reg/dma_ch_3_regs.h | 1 -
.../include/goya/asic_reg/dma_ch_4_regs.h | 1 -
.../include/goya/asic_reg/dma_macro_masks.h | 1 -
.../include/goya/asic_reg/dma_macro_regs.h | 1 -
.../include/goya/asic_reg/dma_nrtr_masks.h | 1 -
.../include/goya/asic_reg/dma_nrtr_regs.h | 1 -
.../include/goya/asic_reg/dma_qm_0_masks.h | 1 -
.../include/goya/asic_reg/dma_qm_0_regs.h | 1 -
.../include/goya/asic_reg/dma_qm_1_regs.h | 1 -
.../include/goya/asic_reg/dma_qm_2_regs.h | 1 -
.../include/goya/asic_reg/dma_qm_3_regs.h | 1 -
.../include/goya/asic_reg/dma_qm_4_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/goya_masks.h | 12 -
.../habanalabs/include/goya/asic_reg/goya_regs.h | 3 +-
.../habanalabs/include/goya/asic_reg/ic_pll_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/mc_pll_regs.h | 1 -
.../include/goya/asic_reg/mme1_rtr_masks.h | 1 -
.../include/goya/asic_reg/mme1_rtr_regs.h | 1 -
.../include/goya/asic_reg/mme2_rtr_regs.h | 1 -
.../include/goya/asic_reg/mme3_rtr_regs.h | 1 -
.../include/goya/asic_reg/mme4_rtr_regs.h | 1 -
.../include/goya/asic_reg/mme5_rtr_regs.h | 1 -
.../include/goya/asic_reg/mme6_rtr_regs.h | 1 -
.../include/goya/asic_reg/mme_cmdq_masks.h | 1 -
.../include/goya/asic_reg/mme_cmdq_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/mme_masks.h | 1 -
.../include/goya/asic_reg/mme_qm_masks.h | 1 -
.../habanalabs/include/goya/asic_reg/mme_qm_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/mme_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/mmu_masks.h | 1 -
.../habanalabs/include/goya/asic_reg/mmu_regs.h | 1 -
.../include/goya/asic_reg/pci_nrtr_masks.h | 1 -
.../include/goya/asic_reg/pci_nrtr_regs.h | 1 -
.../include/goya/asic_reg/pcie_aux_regs.h | 1 -
.../include/goya/asic_reg/pcie_wrap_regs.h | 306 +++++++
.../include/goya/asic_reg/psoc_emmc_pll_regs.h | 1 -
.../include/goya/asic_reg/psoc_global_conf_masks.h | 1 -
.../include/goya/asic_reg/psoc_global_conf_regs.h | 1 -
.../include/goya/asic_reg/psoc_mme_pll_regs.h | 1 -
.../include/goya/asic_reg/psoc_pci_pll_regs.h | 1 -
.../include/goya/asic_reg/psoc_spi_regs.h | 1 -
.../include/goya/asic_reg/sram_y0_x0_rtr_regs.h | 1 -
.../include/goya/asic_reg/sram_y0_x1_rtr_regs.h | 1 -
.../include/goya/asic_reg/sram_y0_x2_rtr_regs.h | 1 -
.../include/goya/asic_reg/sram_y0_x3_rtr_regs.h | 1 -
.../include/goya/asic_reg/sram_y0_x4_rtr_regs.h | 1 -
.../habanalabs/include/goya/asic_reg/stlb_masks.h | 1 -
.../habanalabs/include/goya/asic_reg/stlb_regs.h | 1 -
.../include/goya/asic_reg/tpc0_cfg_masks.h | 1 -
.../include/goya/asic_reg/tpc0_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc0_cmdq_masks.h | 1 -
.../include/goya/asic_reg/tpc0_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc0_eml_cfg_masks.h | 1 -
.../include/goya/asic_reg/tpc0_eml_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc0_nrtr_masks.h | 1 -
.../include/goya/asic_reg/tpc0_nrtr_regs.h | 1 -
.../include/goya/asic_reg/tpc0_qm_masks.h | 1 -
.../include/goya/asic_reg/tpc0_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc1_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc1_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc1_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc1_rtr_regs.h | 1 -
.../include/goya/asic_reg/tpc2_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc2_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc2_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc2_rtr_regs.h | 1 -
.../include/goya/asic_reg/tpc3_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc3_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc3_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc3_rtr_regs.h | 1 -
.../include/goya/asic_reg/tpc4_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc4_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc4_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc4_rtr_regs.h | 1 -
.../include/goya/asic_reg/tpc5_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc5_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc5_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc5_rtr_regs.h | 1 -
.../include/goya/asic_reg/tpc6_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc6_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc6_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc6_rtr_regs.h | 1 -
.../include/goya/asic_reg/tpc7_cfg_regs.h | 1 -
.../include/goya/asic_reg/tpc7_cmdq_regs.h | 1 -
.../include/goya/asic_reg/tpc7_nrtr_regs.h | 1 -
.../include/goya/asic_reg/tpc7_qm_regs.h | 1 -
.../include/goya/asic_reg/tpc_pll_regs.h | 1 -
drivers/misc/habanalabs/include/goya/goya.h | 4 -
.../habanalabs/include/goya/goya_async_events.h | 9 +
.../misc/habanalabs/include/goya/goya_coresight.h | 199 +++++
drivers/misc/habanalabs/include/goya/goya_fw_if.h | 2 +
drivers/misc/habanalabs/include/hl_boot_if.h | 3 +-
.../habanalabs/include/hw_ip/mmu/mmu_general.h | 16 +-
.../habanalabs/include/hw_ip/pci/pci_general.h | 23 +
drivers/misc/habanalabs/memory.c | 193 ++---
drivers/misc/habanalabs/mmu.c | 600 +++++++-------
drivers/misc/habanalabs/pci.c | 402 ++++++++++
include/uapi/misc/habanalabs.h | 158 +++-
120 files changed, 3118 insertions(+), 1250 deletions(-)
create mode 100644 drivers/misc/habanalabs/firmware_if.c
create mode 100644 drivers/misc/habanalabs/goya/goya_coresight.c
create mode 100644 drivers/misc/habanalabs/include/goya/asic_reg/pcie_wrap_regs.h
create mode 100644 drivers/misc/habanalabs/include/goya/goya_coresight.h
create mode 100644 drivers/misc/habanalabs/include/hw_ip/pci/pci_general.h
create mode 100644 drivers/misc/habanalabs/pci.c

\
 
 \ /
  Last update: 2019-04-19 21:37    [W:0.052 / U:1.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site