Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1262149pxv; Fri, 16 Jul 2021 05:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcxaBwhk8q9WNcZtOMP+xtHYuIYjN2aT91+CrbZhxCkxhvY2uHH11yyeunjOYk+gn89BtF X-Received: by 2002:a05:6602:8c3:: with SMTP id h3mr7116788ioz.144.1626438887554; Fri, 16 Jul 2021 05:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626438887; cv=none; d=google.com; s=arc-20160816; b=UjEXVgIfQXbsMeKuQnDP7UqbkHnCdZ/2kxR4OELUpV2SlpbDM/ppVS30W+1XhgVzfr GwbvYqAewMGeHq368nf7E4LO71cBu0rEVtUhZ0VhUIBPmzPmNqAlsvgI3fm1X/Ebe4OD UA0XsyffJNR2I+VqrVMQboAqdn9VoKqrjfxbgDxu88E3po76cu4NMieETqDf4HlmratW suhU6fbQ9CxWwAORwxAd350ARl0JrSQ0f+k2wiy8IuGxriphEp6TnbtjoUDijX2Z30Fn YYpbd8+s4c9gfjWbw/R6Wz5BbdG1o7uL0EQh3hOLcnFsG0ajEEZohsM097XYgld9dLvK /Psg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:date:message-id:from:references:cc:to :subject:dkim-signature; bh=0Lwu11beQDdFZ8ffUrgkaFTgZdcYzWaIB1OUG3ImFKA=; b=EqICFBlCvF1ZWbhYXohLlRGvLSHrrHeWL0mRYNlqjq8P/1obt6LXARPR5crb0WXfm8 vyqcfCz1Fdg76mlTV6wnPAn4zrYhv8nR9Xe2O7KdwBOw7OUzfQlQXujw3/nAsF6lDx7X oqyP/LHPmr4mHy8Zg23MKy66EzHbGlILHSSi3fWbaDln78DV9EcLJc3QSLS5/mycPGiW cBsVGnsPGGIMn0sdyZPvTKnYYgHTJu7muesND2UBWjMzZUmq2TaM8Rch/cbISHrJ83j2 +BD3RyY/JmTFcwbovRQs9qHkPbkjMhlKmp6aG2XJ1Y1R1iNpZ78DNgO+SYYm2S7KOpM+ hP6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PT8Nnh/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si11650430iol.91.2021.07.16.05.34.33; Fri, 16 Jul 2021 05:34:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PT8Nnh/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239003AbhGPMgm (ORCPT + 99 others); Fri, 16 Jul 2021 08:36:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:41260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbhGPMgl (ORCPT ); Fri, 16 Jul 2021 08:36:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F06BA611C1; Fri, 16 Jul 2021 12:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626438827; bh=gz2n8iniBPCEVDw34i7UdhmpqPYyoxr5WKn1hgeXFFI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=PT8Nnh/Q5uUVfmZSwbxyOTgjQJDUkDrj3YtaOT7f4irINzwamnauYE5Wn+qQZRqAx 0SLgs/LQ6vOlYsk4l+jB4/iSsIZA86rIlUuhwg85gSzPXrG0ktaXmq1CSOFHXcave3 TWiOZ/P+y2veOD8PgmH2+G2ou9bfKeTTgtE4gnBycqLD1OtpGJmA2yJBUcZmdu0BEM GnYuYUKR1sXiSUHx3D3A+GSbYZ1YeCSsAfs4MmNxMLL+eMR9XeYwGzqZkC8Jd1XzJa Y3ZODwAUicNao5kCaU62Da1qax9fvq1wbvlhqGcQGEmrJeS0bpZb19WteO/vrBxTf+ 6Psvbf81oKReA== Subject: Re: [PATCH V5 1/1] misc: NOC Probe Counters To: Arnd Bergmann , pandith.n@intel.com Cc: gregkh , Linux Kernel Mailing List , furong.zhou@intel.com, mgross@linux.intel.com, mallikarjunappa.sangannavar@intel.com, Andy Shevchenko , lakshmi.bai.raja.subramanian@intel.com, Linux PM list References: <20210713065347.21554-1-pandith.n@intel.com> From: Georgi Djakov Message-ID: <483da98c-b2fe-87e3-0f68-0de5b4184136@kernel.org> Date: Fri, 16 Jul 2021 15:33:41 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pandith, On 13.07.21 10:22, Arnd Bergmann wrote: > On Tue, Jul 13, 2021 at 8:54 AM wrote: >> >> From: Pandith N >> >> Add support for Network on Chip(NOC) counters. Enable features to configure >> and capture NOC probe counters, needed for DDR bandwidth measurement. NOC >> driver is specific to Intel Keem Bay SOC. NOC hardware counters are used >> for DDR statistics profiling, it is not related to timers. >> Interface details are provided in include/uapi/linux/noc_uapi.h >> >> Signed-off-by: Pandith N >> Reviewed-by: Mark Gross > > I'm missing some explanation here regarding why this is not part of > drivers/interconnect/. > > I assume you have discussed this with Georgi Djakov before, but if not, then > please do. From a very high-level perspective, I would have guessed that this > would be part of the interconnect framework, with any user facing setup being > either derived from the DT, or exposed through debugfs. Thank you for the patch! We already have several drivers that support some NXP and Qualcomm Network-On-Chip hardware, that is also based on FlexNoC. I suspect that they also may support counters, but nobody added that support yet. So maybe it makes sense to have this in drivers/interconnect/. I am wondering what is the plan for this. Who will be using the info from this counters - is it some driver or tool? Who and how will use the statistics? We already have some debugfs interface that shows the current bandwidth thats being requested by users on the several ports. Maybe we could add also information about measured bandwidth? Before doing a detailed review on the patch, i would like to learn more about how this and is there any specific reason for choosing ioctl interface for this? Thanks! > > (full quote below for Georgi, no further comments there) Thank you Arnd! BR, Georgi