From patchwork Thu Jun 20 08:35:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ofir Bitton X-Patchwork-Id: 13704966 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 634CFC27C79 for ; Thu, 20 Jun 2024 08:35:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A95CC10E0BE; Thu, 20 Jun 2024 08:35:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=habana.ai header.i=@habana.ai header.b="dIx1Nx95"; dkim-atps=neutral Received: from mail02.habana.ai (habanamailrelay.habana.ai [213.57.90.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA50B10E0BE for ; Thu, 20 Jun 2024 08:35:53 +0000 (UTC) Received: internal info suppressed DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=habana.ai; s=default; t=1718872560; bh=hux7GUTuAiUg4uHgNeO6Xy3XdXf0ker+7b7tRkvmEac=; h=Date:From:To:Cc:Subject:From; b=dIx1Nx955z6MdhJNYkMUohlMyi78AOhG76RSmCz05wRUUDBM+x+Yyex+QPJrGTeoP 5AEl5oQ7yakqF7IwdNEX5smNYE6CO9Dnap4mM/nmnL+RDMTqDTOAUTeHpS1Wczs1Ve r8Q3rZ9cHK4vZq6y9NlJdToJRS3afe2IiAy1u+VsHfJ0ub/8KfQvF1xdHfIaIHt5o0 XE8OLmETB48+rj1A3JfVNjHnm6Ib0fmUnKVpCpwFqeTPmAHRASTQIB8xmz2nvfyP7x FmLDhOlTqF+QvZ5yZj2A+oP1YphvP0dcWBXichIzyp161mR+yFQT3ju1bTCY+fgvRk HOxktxk3ANCXg== Received: from obitton-vm-u22.habana-labs.com (localhost [127.0.0.1]) by obitton-vm-u22.habana-labs.com (8.15.2/8.15.2/Debian-22ubuntu3) with ESMTPS id 45K8Zegn1749731 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 20 Jun 2024 11:35:40 +0300 Received: (from obitton@localhost) by obitton-vm-u22.habana-labs.com (8.15.2/8.15.2/Submit) id 45K8ZdLw1749715; Thu, 20 Jun 2024 11:35:39 +0300 Date: Thu, 20 Jun 2024 11:35:39 +0300 From: Ofir Bitton To: airlied@gmail.com, daniel.vetter@ffwll.ch Cc: dri-devel@lists.freedesktop.org Subject: [git pull] habanalabs for drm-next-6.11 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Dave, Sima. Habanalabs pull request for 6.11. Adding support for Gaudi2-D product, minor debugfs uapi changes this time. Just minor features, improvements, code cleanups and bug fixes. In addition the maintainer change is included. Full details are in the signed tag. Thanks, Ofir The following changes since commit 1ddaaa244021aba8496536a6627b4ad2bc0f936a: Merge tag 'amd-drm-next-6.11-2024-06-07' of https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-06-11 14:01:55 +1000) are available in the Git repository at: https://github.com/HabanaAI/drivers.accel.habanalabs.kernel.git tags/drm-habanalabs-next-2024-06-20 for you to fetch changes up to 824a450c0d90a9922321842155f563087f8c30f7: accel/habanalabs: gradual sleep in polling memory macro (2024-06-19 09:49:11 +0300) ---------------------------------------------------------------- This tag contains habanalabs driver changes for v6.11. The notable changes are: - uAPI changes: - Use device-name directory in debugfs-driver-habanalabs. - Expose server type in debugfs. - New features and improvements: - Gradual sleep in polling memory macro. - Reduce Gaudi2 MSI-X interrupt count to 128. - Add Gaudi2-D revision support. - Firmware related changes: - Add timestamp to CPLD info. - Gaudi2: Assume hard-reset by firmware upon MC SEI severe error. - Align Gaudi2 interrupt names. - Check for errors after preboot is ready. - Bug fixes and code cleanups: - Move heartbeat work initialization to early init. - Fix a race when receiving events during reset. - Change the heartbeat scheduling point. - Maintainers: - Change habanalabs maintainer and git repo path. ---------------------------------------------------------------- Ariel Suller (1): accel/habanalabs/gaudi2: align interrupt names to table Dani Liberman (2): accel/habanalabs: add device name to error print accel/habanalabs: separate nonce from max_size in cpucp_packet struct Didi Freiman (1): accel/habanalabs: gradual sleep in polling memory macro Farah Kassabri (6): accel/habanalabs/gaudi2: update interrupts related headers accel/habanalabs: add heartbeat debug info accel/habanalabs: check for errors after preboot is ready accel/habanalabs/gaudi2: add GAUDI2D revision support accel/habanalabs: change the heartbeat scheduling point accel/habanalabs: add more info upon cpu pkt timeout Igal Zeltser (1): accel/habanalabs: use msg_header instead of desc_header Ilia Levi (1): accel/habanalabs: additional print in device-in-use info Oded Gabbay (1): MAINTAINERS: Change habanalabs maintainer and git repo path Ofir Bitton (3): accel/habanalabs/gaudi2: align embedded specs headers accel/habanalabs: remove timestamp registration debug prints accel/habanalbs/gaudi2: reduce interrupt count to 128 Ohad Sharabi (4): accel/habanalabs/gaudi2: use single function to compare FW versions accel/habanalabs: restructure function that checks heartbeat received accel/habanalabs: no CPUCP prints on heartbeat failure accel/habanalabs: add device name to invalidation failure msg Rakesh Ughreja (1): accel/habanalabs/gaudi2: unsecure edma max outstanding register Tal Cohen (1): accel/habanalabs: disable EQ interrupt after disabling pci Tal Risin (1): accel/habanalabs: expose server type in debugfs Tomer Tayar (11): accel/habanalabs: use parent device for trace events accel/habanalabs/gaudi2: revise return value handling in gaudi2_hbm_sei_handle_read_err() accel/habanalabs/gaudi2: assume hard-reset by FW upon MC SEI severe error accel/habanalabs: add an EQ size ASIC property accel/habanalabs: move hl_eq_heartbeat_event_handle() to common code accel/habanalabs: use device-name directory in debugfs-driver-habanalabs accel/habanalabs: add a common handler for clock change events accel/habanalabs: revise print on EQ heartbeat failure accel/habanalabs: dump the EQ entries headers on EQ heartbeat failure accel/habanalabs: print timestamp of last PQ heartbeat on EQ heartbeat failure accel/habanalabs: move heartbeat work initialization to early init Vitaly Margolin (1): accel/habanalabs: add cpld ts cpld_timestamp cpucp .../ABI/testing/debugfs-driver-habanalabs | 12 +- MAINTAINERS | 4 +- .../accel/habanalabs/common/command_submission.c | 13 -- drivers/accel/habanalabs/common/debugfs.c | 22 +- drivers/accel/habanalabs/common/device.c | 240 +++++++++++++++----- drivers/accel/habanalabs/common/firmware_if.c | 229 ++++++++++++------- drivers/accel/habanalabs/common/habanalabs.h | 76 +++++-- drivers/accel/habanalabs/common/habanalabs_drv.c | 5 +- drivers/accel/habanalabs/common/hwmon.c | 60 ++--- drivers/accel/habanalabs/common/irq.c | 33 ++- drivers/accel/habanalabs/common/memory_mgr.c | 37 +++- drivers/accel/habanalabs/common/mmu/mmu.c | 14 +- drivers/accel/habanalabs/common/pci/pci.c | 4 +- drivers/accel/habanalabs/common/sysfs.c | 8 +- drivers/accel/habanalabs/gaudi/gaudi.c | 12 +- drivers/accel/habanalabs/gaudi2/gaudi2.c | 88 ++------ drivers/accel/habanalabs/gaudi2/gaudi2P.h | 8 +- drivers/accel/habanalabs/gaudi2/gaudi2_security.c | 1 + drivers/accel/habanalabs/goya/goya.c | 13 +- drivers/accel/habanalabs/include/gaudi2/gaudi2.h | 4 +- .../include/gaudi2/gaudi2_async_ids_map_extended.h | 244 ++++++++++----------- .../accel/habanalabs/include/gaudi2/gaudi2_fw_if.h | 27 +-- .../habanalabs/include/gaudi2/gaudi2_reg_map.h | 8 + .../habanalabs/include/hw_ip/pci/pci_general.h | 3 +- include/linux/habanalabs/cpucp_if.h | 20 +- include/linux/habanalabs/hl_boot_if.h | 29 ++- 26 files changed, 725 insertions(+), 489 deletions(-)