Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp289061lqb; Tue, 4 Jun 2024 11:19:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7OinmmZJilAQYsq8132NdYXUULDnsqMZYGt3xsVd9/7sf/rr2W4oOuKZyDGHPyzDZDwQBZ7BjLWN2iz9KqiMm7DfLrTfQHIMKAof4AQ== X-Google-Smtp-Source: AGHT+IHfosTX87TGb1X62+/BoeA931kXRpuRX0xv/T69JBLsscy8BEv+FJzntKtOoPdOT65WfmTS X-Received: by 2002:a05:6a20:728f:b0:1af:cb73:c8f5 with SMTP id adf61e73a8af0-1b2b73f8c7amr454073637.14.1717525157333; Tue, 04 Jun 2024 11:19:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717525157; cv=pass; d=google.com; s=arc-20160816; b=VkfvrQFFRiOvO10fvOcpoHNft5SggkWsT9qAtn4vOzZP401wiD1QFk0tRlhunkAi5D UgroqO6fdRWBi2Dt+ZGhTn2m7DsjLa9hqWaFdwJO6frLUUL6Tt6iAhNZqm55frqfFXyb 73dqJotqEw12gby7Ceti0ZtKxB1qmiS2IDvZmIp9d9Oqtmk66dpJjHXU1JMNHMSOnVlS R8kNcGOJbKSTTxTtjtEYpRcGfsjcUCvOVgvsuh9Q978MkwbY0zLN9d0QwhBoKDaDr5X8 NwEofWgY03eE2bUu55ghmNQ7+H3H2RO+JTJOIantm5NarpDgkDraOMmLwf45ZFqeN9xF TYPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZUgzrsyOOdxRTiOJ88p9kNZ3QAwSZ6yVLkKPBe295ac=; fh=hohUpYEdH23M5jvOEiXYPo5OilWr3lGH2sYGdJRygiU=; b=StFkoX9RAZqEM2tKiCr6wkvtiUbQ7Etw/SUkvaRDZ+Z+esBb79rAGLb9wJHI2jjOhp TNQsXgDLcMAWbTuXnJrplKL218HKVdQFVuaLV0TBOMYGqP3VhdXbrdjF79q9qMSfOpaT UrLoCRlNheAMf/H7bV3PHXq+wPbvetmXG5ekLMA8ZAYn7Y4EbDUkdem1sdpf6rmifuS0 jxnQ14hstQi3XWovAtsg1NrWNnqkNpX86L2Toi3ZYA9ME+Edj1wyHn3XZDWhowQ5OexZ iEc3tRZCojR/8OUP7xyykK0w3PFXG3fqZC0HcYIIMaiSRh4TjbgVaV1ZV3eakvqYSTm+ L7+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FQfXZ7qA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201237-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540f5f7bsi8637463a12.79.2024.06.04.11.19.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201237-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FQfXZ7qA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201237-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 67203281C1D for ; Tue, 4 Jun 2024 18:19:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C17C614A4F1; Tue, 4 Jun 2024 18:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FQfXZ7qA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E8064149009; Tue, 4 Jun 2024 18:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717525145; cv=none; b=k1tISUBGBLQQz6aroYSldscJ6QHRnwciEnUWVMy02hxHT/5RVzzjYeVc1O92fa7yo5ZkHX0hAJmAEbPI9SwlOwQPFpB3M8E33YN9DMerTyl+DfEcyXGw+D1HYR6/jhFIVDjOQq0CO/PhPdc0Nu6ObDLxgYtl9Xl+j3v44PtdauE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717525145; c=relaxed/simple; bh=Fj2iv3w04YP3vwjFljiCyn/pZZfn1H3lpJDW7soKt1A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D4xYQAnm7pIB7IFEaonaU4AY2NblEyYcXs9gOvWvptWaeVsjfYFYylSNfXkuHtecr7zebztQyG0Zu58dAsEer+as1NU+76Md7bmHVmpRzV2xWRxl+iKy82kBLWxmh3m3m3Q3YqRCxl1xBtYNCGGsmT0OT53Tqj1F4I7ZnRrXrG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FQfXZ7qA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B135CC2BBFC; Tue, 4 Jun 2024 18:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717525144; bh=Fj2iv3w04YP3vwjFljiCyn/pZZfn1H3lpJDW7soKt1A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FQfXZ7qAEwiL2AlMpVQpMU2RxUuNigU3AM7Iakr6rTtcSCkuHId3Af1Q65rLy8ZJ6 NbnklDEEiB3KI9WffSVVGYXxfSFpPvKjUyUyTiYdYqqym/x+E9rT5q7h5pSo2wGkFf A4OkPk3aB6K4dJqidvLZzrojdjVrp06jv4Aeo7WgnKew9ILOMwU+Iz9zUEhb6/UIFC ddjs0+20sl6yGd/1ArYQjHkPC88GbhB/+QcKitPCICeiXBl9E+jDgZV/5n8wusZcY4 U6vaxfldHAp03E7Mdtgw0dmw2bbL7ozvjFHY+I6TJ/S9NImETdh25vmHaKCxTbVNgf bYDAl/eCZELRg== Date: Tue, 4 Jun 2024 19:18:59 +0100 From: Simon Horman To: Anshumali Gaur Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Subbaraya Sundeep , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [net-next PATCH v3] octeontx2-af: Add debugfs support to dump NIX TM topology Message-ID: <20240604181859.GD791188@kernel.org> References: <20240603112249.6403-1-agaur@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240603112249.6403-1-agaur@marvell.com> On Mon, Jun 03, 2024 at 04:52:48PM +0530, Anshumali Gaur wrote: > This patch adds support to dump NIX transmit queue topology. > There are multiple levels of scheduling/shaping supported by > NIX and a packet traverses through multiple levels before sending > the packet out. At each level, there are set of scheduling/shaping > rules applied to a packet flow. > > Each packet traverses through multiple levels > SQ->SMQ->TL4->TL3->TL2->TL1 and these levels are mapped in a parent-child > relationship. > > This patch dumps the debug information related to all TM Levels in > the following way. > > Example: > $ echo > /sys/kernel/debug/octeontx2/nix/tm_tree > $ cat /sys/kernel/debug/octeontx2/nix/tm_tree > > A more desriptive set of registers at each level can be dumped > in the following way. > > Example: > $ echo > /sys/kernel/debug/octeontx2/nix/tm_topo > $ cat /sys/kernel/debug/octeontx2/nix/tm_topo > > Signed-off-by: Anshumali Gaur > --- > v3: > - Addressed review comments given by Wojciech Drewek > 1. Removed unnecessary goto statement > 2. Moved valid SQ check before AF mbox > v2: > - Addressed review comments given by Simon Horman > 1. Resolved indentation issues Hi Anshumali, Thanks for the updates. Reviewed-by: Simon Horman