Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp764133pxu; Mon, 23 Nov 2020 03:39:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxe1Ejg1mAwOZRvrdhNapjhHacKLeJ4UblEj0n76Xci8S3WH6Ia83LMgMyHk1lrTAoWmA2 X-Received: by 2002:a17:907:a8c:: with SMTP id by12mr27034188ejc.196.1606131561520; Mon, 23 Nov 2020 03:39:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606131561; cv=none; d=google.com; s=arc-20160816; b=pMFwRuTzEap+v+w9sXRklA3Yb/PTKg8FWbyENHhBBHEsWaKrsGhrn1Kcg61pOImvxe ge2Sy66d/b1pdsRuGTihswsAZeWxINkc+r89apZj8pXJhXgFkHchASQTdL/vPWK/12Eg sBqd1i5vzR6EuXP5JLC82MfADqnQgNNl+dCb2qcTlvwFAB006UUNdhjWddz00vhpVg/7 l8r/xr7aFJCTCj0utaUpQD7+YZeXuoRwPIMrnI4z0EX04RzjCwW9hGap0ghg3SJmGthw 48biHsUWzaN79X0+ofWrjvv8fCdP3I6f9zAykRXIIGwxKgDW7THP4ZMkt3fE2F/KMqGg pT1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0bl7Kw9PBeOZkOM3AU9ZrFXzlXTtytohxg5hwZHnBek=; b=0zDHSRLzIMCiqOhiL4UbghVMUEAoKPXIPSEvJM53ihlUZfSZhiDFlEvj8FevLvpXnb UDl//X9ME3n04Kd5VVD8gJtgyTFxlPvbuVutUjmH29ZrWcs/q7p4TsgvVZY/F9Uyhi0D nx2xeO9Lp61dQRHmSsLe1h+zP1G/TFK3CWWODYgtv9qLQf4aFEMWSJ0g1FoDdWVYOi5a jpg6P993wCYkMt9at/mQYtZ3jxy3jd+BmLyzln8mq6tihmcSj/xjns/5xFt1qncmK2dj ZAdM8eYJIijxrVruPtlfWXJTMIc5LC97SXSaFjrnuALEBpf6Y5BT4n3ar0F1qmkL2i81 6/dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=wxBV7DxK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si1921882edi.605.2020.11.23.03.38.57; Mon, 23 Nov 2020 03:39:21 -0800 (PST) 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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=wxBV7DxK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728996AbgKWLfB (ORCPT + 99 others); Mon, 23 Nov 2020 06:35:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728978AbgKWLfA (ORCPT ); Mon, 23 Nov 2020 06:35:00 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22147C0613CF for ; Mon, 23 Nov 2020 03:35:00 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id 23so18212966wrc.8 for ; Mon, 23 Nov 2020 03:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0bl7Kw9PBeOZkOM3AU9ZrFXzlXTtytohxg5hwZHnBek=; b=wxBV7DxKZ6O0gJlJiDb3k+rdD94vURVvZJ7cUt86oxOl+hj1Owgl9Gpc+xx9zBa/jA PJhb/Y4q8GM5OnTfQBQfv64dvJ8oao5oa9bzhxjuGxGNCVpDCjgdMeTKXhC5CGRFNMPJ 3z7jOzFZSedbs5Qrbys5Gw0sad+4H1UXhasXVM94z0OmfgdFFTly+DZVbOZDmFQfhhVI O2tJJoeML0CiVJxa07XG2YuGT//bh2pTyduTpRxru7b+aJlisVV6m+FVlh7mhVCWyhom z0OlhzEWhFExwpJZ8A5IVvq6IdvalfGXy2UOkBcoDiLUrj5Dj8OTvC+EZh/ZmOD9auoG 9AgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0bl7Kw9PBeOZkOM3AU9ZrFXzlXTtytohxg5hwZHnBek=; b=bk3FrBGrI4b9npU/3h4WKQwGM27iRzkNSHPcKhqz6w/API/YbjW6KzVUBAMkIyT0um F52lprGj2Hd4iINq33eqACgwtF+AOx3Kez9RTrPFnYnTTRGxBGQzu9Z7CuH78YDhJVmG e97lKRJ46mTNx3U/WtI5EE7Oq7EMjCg16asECUmhTqqmh/42R1Hus/B0+22H5av3iOLh x/HCISu2eF+kjlC5Z++4y05yYfrM88gJzFt09DLrDUlni2ojGKY5GAIMzkZZlBHNGKFw Enjf/jsdIEojrnRhku9Dzz4ncdRCMylzUg1Gc3F2JKRjvkHwXhd96oM1/J4ST9tMsjSa Lv4w== X-Gm-Message-State: AOAM532Xj8Sdo6KD2a/C/cMUa1AibBiWvLhxXASr8RooEomodPkNQ8Hg 0yiZe7lDec//iX/2mzzM7nvuoA== X-Received: by 2002:adf:9b85:: with SMTP id d5mr29419886wrc.9.1606131298536; Mon, 23 Nov 2020 03:34:58 -0800 (PST) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id h4sm18469801wrq.3.2020.11.23.03.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:34:58 -0800 (PST) Date: Mon, 23 Nov 2020 12:34:57 +0100 From: Jiri Pirko To: George Cherian Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , "davem@davemloft.net" , Sunil Kovvuri Goutham , Linu Cherian , Geethasowjanya Akula , "masahiroy@kernel.org" , "willemdebruijn.kernel@gmail.com" , "saeed@kernel.org" Subject: Re: [PATCHv4 net-next 2/3] octeontx2-af: Add devlink health reporters for NPA Message-ID: <20201123113457.GI3055@nanopsycho.orion> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, Nov 23, 2020 at 11:28:28AM CET, gcherian@marvell.com wrote: >Hi Jiri, > >> -----Original Message----- >> From: Jiri Pirko >> Sent: Monday, November 23, 2020 3:52 PM >> To: George Cherian >> Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; >> kuba@kernel.org; davem@davemloft.net; Sunil Kovvuri Goutham >> ; Linu Cherian ; >> Geethasowjanya Akula ; masahiroy@kernel.org; >> willemdebruijn.kernel@gmail.com; saeed@kernel.org >> Subject: Re: [PATCHv4 net-next 2/3] octeontx2-af: Add devlink health >> reporters for NPA >> >> Mon, Nov 23, 2020 at 03:49:06AM CET, gcherian@marvell.com wrote: >> > >> > >> >> -----Original Message----- >> >> From: Jiri Pirko >> >> Sent: Saturday, November 21, 2020 7:44 PM >> >> To: George Cherian >> >> Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; >> >> kuba@kernel.org; davem@davemloft.net; Sunil Kovvuri Goutham >> >> ; Linu Cherian ; >> >> Geethasowjanya Akula ; masahiroy@kernel.org; >> >> willemdebruijn.kernel@gmail.com; saeed@kernel.org >> >> Subject: Re: [PATCHv4 net-next 2/3] octeontx2-af: Add devlink health >> >> reporters for NPA >> >> >> >> Sat, Nov 21, 2020 at 05:02:00AM CET, george.cherian@marvell.com wrote: >> >> >Add health reporters for RVU NPA block. >> >> >NPA Health reporters handle following HW event groups >> >> > - GENERAL events >> >> > - ERROR events >> >> > - RAS events >> >> > - RVU event >> >> >An event counter per event is maintained in SW. >> >> > >> >> >Output: >> >> > # devlink health >> >> > pci/0002:01:00.0: >> >> > reporter npa >> >> > state healthy error 0 recover 0 # devlink health dump show >> >> >pci/0002:01:00.0 reporter npa >> >> > NPA_AF_GENERAL: >> >> > Unmap PF Error: 0 >> >> > Free Disabled for NIX0 RX: 0 >> >> > Free Disabled for NIX0 TX: 0 >> >> > Free Disabled for NIX1 RX: 0 >> >> > Free Disabled for NIX1 TX: 0 >> >> >> >> This is for 2 ports if I'm not mistaken. Then you need to have this >> >> reporter per-port. Register ports and have reporter for each. >> >> >> >No, these are not port specific reports. >> >NIX is the Network Interface Controller co-processor block. >> >There are (max of) 2 such co-processor blocks per SoC. >> >> Ah. I see. In that case, could you please structure the json differently. Don't >> concatenate the number with the string. Instead of that, please have 2 >> subtrees, one for each NIX. >> >NPA_AF_GENERAL: > Unmap PF Error: 0 > Free Disabled for NIX0 > RX: 0 > TX: 0 > Free Disabled for NIX1 > RX: 0 > TX: 0 > >Something like this? It should be 2 member array, use devlink_fmsg_arr_pair_nest_start() NIX { 0: {free disabled TX: 0, free disabled RX: 0,} 1: {free disabled TX: 0, free disabled RX: 0,} } something like this. > >Regards, >-George >> >> > >> >Moreover, this is an NPA (Network Pool/Buffer Allocator co- processor) >> reporter. >> >This tells whether a free or alloc operation is skipped due to the >> >configurations set by other co-processor blocks (NIX,SSO,TIM etc). >> > >> >https://urldefense.proofpoint.com/v2/url?u=https- >> 3A__www.kernel.org_doc >> >_html_latest_networking_device- >> 5Fdrivers_ethernet_marvell_octeontx2.htm >> >l&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=npgTSgHrUSLmXpBZJKVhk0 >> lE_XNvtVDl8 >> >ZA2zBvBqPw&m=FNPm6lB8fRvGYvMqQWer6S9WI6rZIlMmDCqbM8xrnxM >> &s=B47zBTfDlIdM >> >xUmK0hmQkuoZnsGZYSzkvbZUloevT0A&e= >> >> NAK. >