Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2115528lqb; Mon, 27 May 2024 08:18:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRWAwL3b/cRTurL39Bj3VH1Nubu0VrhfmHc+ADi1O6e2KV0e2k/7ooGe3b3JAmHVR+RkdymikGdDfZA0j4nE7KRhOjR8i1OuhlQ+Iaow== X-Google-Smtp-Source: AGHT+IHHMmxBtNfT+x4K7EPqOFDS2oszmPgcKFv8+gSB4LZe4NMPGXQ0xRk1rpubX3xlOc2W2ON0 X-Received: by 2002:a05:620a:5374:b0:792:b9e7:2f1d with SMTP id af79cd13be357-794ab0835c9mr972383885a.21.1716823125111; Mon, 27 May 2024 08:18:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716823125; cv=pass; d=google.com; s=arc-20160816; b=jBHj/idVCNBeQeZRwj6MJ086fN7q/u8yFEm6iCmghjxURNDYEsZqaypwM/4SDdmayY GlBOtuctRqbtAyYMcV5UiCUsDR4dsdyAeMx0Y2r1sVuG+APUJdUmzaRLe3uI6nKIj90I L0EdSGhq2XqLPDecUepvfgOWVBUvHZXyq+R2pzasuFD5Hx8dkO48bBiMN5qYnL6K599h GGqxmDr4nOEMaRX1Jc6qNbABUnVHhmpa9xN0Nf7ewlJkiKaBd/BYCs9I2p9XGtXDJWGC USiTW7wyKzZaAdAVMNMq3M7NedEJVVZ17fVcnDh+J6CxcQf7Kc5AkJCV1zJus54irwfS 1utA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Ky81i2clotQZ5B/AgEcrUDlLHKor5701/sBoXuy+mFg=; fh=PceJZ/KGF6ujSpGwn68DXpj5qiXzqwvBM4Q702GUgLM=; b=ABUDZpa2680seej9CFb0z5Rv/3eqGISTkjvAMehhqratrdBUNMPxzU5JlZ5rOXSYmi BkPFGne1RVYEmNfQXWbe79sKCEwTwfFkWsk6P0TXIYKw/zcuUfaZNeBCX+iN9Zy22sDT urnPwaNrhcQLdxX+Ywg5MQJrht6cOzBnOPl0ORQeyZLdYNsPMh1fU2Pw2/g/JB+/0avR w8t73I99xRBLBl8DVCJrl6l1ytldY5y7/ZeRNx0dtLc+Sp4h8TjU6rnB4P+k9WXCOHyo 5UIJzOstkrmgDaZTqW9PVLES3mAg7e/zbhUQ1/4YeLvOcGhut8Gj5JVyU3LJuhvBM+Pf ELmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@habana.ai header.s=default header.b=b3UkZcLJ; arc=pass (i=1 spf=pass spfdomain=habana.ai dkim=pass dkdomain=habana.ai dmarc=pass fromdomain=habana.ai); spf=pass (google.com: domain of linux-kernel+bounces-191035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=habana.ai Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd4b91bsi796054485a.565.2024.05.27.08.18.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:18:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@habana.ai header.s=default header.b=b3UkZcLJ; arc=pass (i=1 spf=pass spfdomain=habana.ai dkim=pass dkdomain=habana.ai dmarc=pass fromdomain=habana.ai); spf=pass (google.com: domain of linux-kernel+bounces-191035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=habana.ai Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D1B361C20E56 for ; Mon, 27 May 2024 15:18:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80AF116F297; Mon, 27 May 2024 15:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=habana.ai header.i=@habana.ai header.b="b3UkZcLJ" Received: from mail02.habana.ai (habanamailrelay02.habana.ai [62.90.112.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4CF215EFD8 for ; Mon, 27 May 2024 15:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.90.112.121 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716822162; cv=none; b=L3I0oxv9UWKPRarikQh0I3K2WjE/X/AXZas72i0V1jqNDmsWCekkLPDF0lZDJoPtutrEWUQcncoVyHhffNZY1JE9pAIVYK5kBcxYV4Sq1F1Sd71nufD3vWXWn1pT055DLRqK8aCLnhd9V1k3aDMb6KDsb1Df6/df1thJak0uAWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716822162; c=relaxed/simple; bh=ZcfMiJyaPvcvjXhfFV/nyPzUmJd+dTs0K+agxcaJbBY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NPQJh9Nig9yPcodUL9xQuBbqTLBeminbbZwyZn03Bo5673DZJibPRSnNcgfdh7IcgeuXfK8UrriFo814aUgI/U7m/KorfdsdZfXjlI9n8BYGG49pyITlpyhZ8u2oIgjCQluWxDdojIlCMAeOHdNhEVWK/fI7FD59z6lsygQHmJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=habana.ai; spf=pass smtp.mailfrom=habana.ai; dkim=pass (2048-bit key) header.d=habana.ai header.i=@habana.ai header.b=b3UkZcLJ; arc=none smtp.client-ip=62.90.112.121 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=habana.ai Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=habana.ai Received: internal info suppressed DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=habana.ai; s=default; t=1716822151; bh=ZcfMiJyaPvcvjXhfFV/nyPzUmJd+dTs0K+agxcaJbBY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b3UkZcLJW39/vkf1VZmonAUe6ysAQe8LFeZXSyI409Iv/rfGPy4xxazxDo3Bj7lCh 9qCJrvA+vLI3JqZ6jK5pUU8IPwfTy/Z5OoVq6iyBV8OoctwMrhT8jsBIPid4sWWdpc eDHClNSyqwuvcLi5RwH1Nqm9YTBUVFayc+6drxR74Ro+luToqO6e/6RWuLSQIJfMgt 0Djm2tVmxa6SLtPJpDua3W1tGhoYoOBdM4AzWmteb/TxZl6Uq5JPhadyaQiHw5ZaIq qlWgZ46xfvYMpGir+aDJ+7FsmqtStezwIW5pLc4qQ/M+BXKNCToSe8Hx9GFolwHzNJ wQc1YKlz1uyhA== 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 ESMTP id 44RF2PiT1954007; Mon, 27 May 2024 18:02:25 +0300 From: Ofir Bitton To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Tomer Tayar Subject: [PATCH 2/8] accel/habanalabs: use device-name directory in debugfs-driver-habanalabs Date: Mon, 27 May 2024 18:02:18 +0300 Message-Id: <20240527150224.1953969-2-obitton@habana.ai> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240527150224.1953969-1-obitton@habana.ai> References: <20240527150224.1953969-1-obitton@habana.ai> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Tomer Tayar The device debugfs directory was modified to be named as the parent device name. Update the description of 'mmu' and 'mmu_error' to use the new path. Signed-off-by: Tomer Tayar Reviewed-by: Ofir Bitton --- Documentation/ABI/testing/debugfs-driver-habanalabs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/ABI/testing/debugfs-driver-habanalabs b/Documentation/ABI/testing/debugfs-driver-habanalabs index efbb78bedb8b..3318a14f35b9 100644 --- a/Documentation/ABI/testing/debugfs-driver-habanalabs +++ b/Documentation/ABI/testing/debugfs-driver-habanalabs @@ -217,7 +217,7 @@ Description: Displays the hop values and physical address for a given ASID and virtual address. The user should write the ASID and VA into the file and then read the file to get the result. e.g. to display info about VA 0x1000 for ASID 1 you need to do: - echo "1 0x1000" > /sys/kernel/debug/accel/0/mmu + echo "1 0x1000" > /sys/kernel/debug/accel//mmu What: /sys/kernel/debug/accel//mmu_error Date: Mar 2021 @@ -226,8 +226,8 @@ Contact: fkassabri@habana.ai Description: Check and display page fault or access violation mmu errors for all MMUs specified in mmu_cap_mask. e.g. to display error info for MMU hw cap bit 9, you need to do: - echo "0x200" > /sys/kernel/debug/accel/0/mmu_error - cat /sys/kernel/debug/accel/0/mmu_error + echo "0x200" > /sys/kernel/debug/accel//mmu_error + cat /sys/kernel/debug/accel//mmu_error What: /sys/kernel/debug/accel//monitor_dump Date: Mar 2022 -- 2.34.1