Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp731396pxb; Thu, 5 Nov 2020 11:26:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjV4b4fjiK+902+MiFvJuFuSy+xvBW1/JqakIV1TzdP6mdjPowz+D+D/rcLwvwLkcKkiFE X-Received: by 2002:a17:906:2458:: with SMTP id a24mr3805635ejb.20.1604604365909; Thu, 05 Nov 2020 11:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604604365; cv=none; d=google.com; s=arc-20160816; b=u+k50AU4zjlyCBRIxvIlcQgGFPaMG4vxWxxwCTZtJzFl9FVTvuEdXo6H9OqVxx7Gc2 7bc4oTuBaWmXo6fV68Eo7YBaxixFiPErOlPadoqHaiNkPCRMzbbB1Qm0VNiQft8KDCN1 8rhcNUFAiRNe5uaNRfmFEGbQc3z+L+mrjnMTlY7jAz5wtHJHxAPWHIE1eHSqJlOp8e6O AdILcsRm9djZAEvqPwa6HlaHpR3zqBVBoNTktvHHAWtVys3nrwR5Bnsgv1aeOAzH8Vzg f/PYpBYQcO+weLSB4OhVinmC4ouKVerdpEz9d3zSOgJKRkJ2Ef70IBi/GUVFvzucOiCk e1iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=n52tEFkQOe4iaevmcWHG5JYJ7Qdm27eFE0h46ErK3OA=; b=A5cZvPhIbgkhglTmQO1m/ApJGZrD7bGkpPxOFQevPMlkgLmeilI2LuaKjKu1u5bcjk O2ra3KHnULDIMuM9+D4vDzfSA4poX2yPk0IEh4GeKsKYEpZiFPgm9bzjttBb00Hf4nWJ ZtOZvP2ryT8QuAE610bTmtd5O0FfS2oE+wk5sSC/93yRE62n7Qxo3lZVObP61H4h0VXD +jGUG3xNWcr9K1Shoswj+7xsqJNgo2aQWKzk+/lATTARe5q7DSWnIM/vymMdI1v9DE8i 7khzD66ZLqMjTgd93boGSclsq232jZabF5KPoPQZkT/S7gWIt1pR2Pmw4oWlzbhMDVrK +Flg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZGpTr0aO; 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 r6si1861339ejs.731.2020.11.05.11.25.42; Thu, 05 Nov 2020 11:26:05 -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=@kernel.org header.s=default header.b=ZGpTr0aO; 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 S1732046AbgKETX5 (ORCPT + 99 others); Thu, 5 Nov 2020 14:23:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:40226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgKETX5 (ORCPT ); Thu, 5 Nov 2020 14:23:57 -0500 Received: from lt-jalone-7480.mtl.com (c-24-6-56-119.hsd1.ca.comcast.net [24.6.56.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 52EF32078E; Thu, 5 Nov 2020 19:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604604236; bh=3k6//KuwKs+rVXLHhsgOfv8phTtZpNzR3vN12AlbkP4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ZGpTr0aOqv4peASmmBi0mWH3deFPAVivDt5Y6PchloQNHLasd5tfYNWjfus1mD+DG 1xVONr6qz2ms8BusCsKJDl+Dn7zumSB6yXxCVmgz961VuxotVxvCkxk9pLfrE8BGll /1mLhbpeZxRHBMJUKhgDs43yX0oexoL8dKAszle0= Message-ID: <011c4d4e2227df793f615b7638165c266763e24a.camel@kernel.org> Subject: Re: [PATCH v2 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX From: Saeed Mahameed To: Jakub Kicinski , George Cherian Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jiri Pirko , "davem@davemloft.net" , Sunil Kovvuri Goutham , Linu Cherian , Geethasowjanya Akula , "masahiroy@kernel.org" , "willemdebruijn.kernel@gmail.com" Date: Thu, 05 Nov 2020 11:23:54 -0800 In-Reply-To: <20201105090724.761a033d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> References: <20201105090724.761a033d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-11-05 at 09:07 -0800, Jakub Kicinski wrote: > On Thu, 5 Nov 2020 13:36:56 +0000 George Cherian wrote: > > > Now i am a little bit skeptic here, devlink health reporter > > > infrastructure was > > > never meant to deal with dump op only, the main purpose is to > > > diagnose/dump and recover. > > > > > > especially in your use case where you only report counters, i > > > don't believe > > > devlink health dump is a proper interface for this. > > These are not counters. These are error interrupts raised by HW > > blocks. > > The count is provided to understand on how frequently the errors > > are seen. > > Error recovery for some of the blocks happen internally. That is > > the reason, > > Currently only dump op is added. > > The previous incarnation was printing messages to logs, so I assume > these errors are expected to be relatively low rate. > > The point of using devlink health was that you can generate a netlink > notification when the error happens. IOW you need some calls to > devlink_health_report() or such. > > At least that's my thinking, others may disagree. If you report an error without recovering, devlink health will report a bad device state $ ./devlink health pci/0002:01:00.0: reporter npa state error error 1 recover 0 So you will need to implement an empty recover op. so if these events are informational only and they don't indicate device health issues, why would you report them via devlink health ?