Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp777432pxb; Thu, 5 Nov 2020 12:44:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJydXZhhuVfOf+p8BgCNAU8NRniaTBVDMSXV2yQqtdvHQ9wQ4bGO2LUze6lxp/eDT9D66xuV X-Received: by 2002:a50:930a:: with SMTP id m10mr4651095eda.288.1604609084705; Thu, 05 Nov 2020 12:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604609084; cv=none; d=google.com; s=arc-20160816; b=G1yp7REpYwDAlkkdfredQdchq1pMm8rShD3eMMujINFA9T9QXuA12qn25VNU/ioCzZ fCsuZaoA0/InuW/wou6hsR1zoy4OiA8O0tmo/BHC6FSoK77ZHve4jHN63fxB5j23UsEC Qfx2AWcbLgCpiy4ITcTfJcZFlnxe5yF1WrU7o2nDvWqeFA3y0+p87XkASOvcVJ4GRrJ/ DdFxrjEXMSJY1H34fqRX4eJDnix3A3C8onx6r8grH7Ta6vD6JxOPnH0gyaCtrHQ/zU6K DpFsa0xBUbdz4+8PbX3Ijbvv2I4/dqldHgUDD84w4dTHBLOiZu4u0Cs3wXp7vwitpkQZ 64Fg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jYDs4QdlPmZNV5o9q//n6pO0ybWcshUSy9CD6ODkTAk=; b=udJAnO5T26TXtEEFGTD0Yo8s5k8dlyathr9tAZjq1UykaPZ3yBkPGDm9jKYVSzS1m/ Fbc1/96KRMKE8AZvNmZYqBAMHj1Wl1vVyFKGwOF4SF1Cm+HRvVnOZI3aGPVJu8+19jOu fGo00Pu6Wrlia3YkXeBfUdiOsXhFHHVR5UB2LVi8UsJODNoWBQqsfTR0hywSmLQHP6JP 5owFglU8fa5ZUgU2anZ9H4P0zZ1iRXN7GxAE4IsaFkFZY3DdporTkufdQALLTgwktQLa 9WsL5a1n36yWLO9VQcGKK6kcDN1zS3AZg/EWKS0EPWpqVO1spqcTnYAXCsgfDrBpJ7KT aubQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ffEqWGOH; 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 g18si1888632edh.40.2020.11.05.12.44.21; Thu, 05 Nov 2020 12:44:44 -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=ffEqWGOH; 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 S1732175AbgKEUmH (ORCPT + 99 others); Thu, 5 Nov 2020 15:42:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:44748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731234AbgKEUmH (ORCPT ); Thu, 5 Nov 2020 15:42:07 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (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 84661206F7; Thu, 5 Nov 2020 20:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604608926; bh=gcniyV4BLIOdDD2xhp++Udmuw/hzW6PcHHy7tEZfv4Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ffEqWGOHT6yhDNYGQz03MfWqeypVqAPk9Hisq0JVRyZ9RvnseqFLW7qH/G8eKKMUc Y2PlqAOCCMxn1KyPF2Rrw0sGleWH+zzrSQEjrZhStqTkYGKSbBq/Y2zEgsY2/D4Wfa latkZbUby7M2e6cd3cXxnjqAdYLiC15V3OQdBj8U= Date: Thu, 5 Nov 2020 12:42:04 -0800 From: Jakub Kicinski To: Saeed Mahameed Cc: George Cherian , "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" Subject: Re: [PATCH v2 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX Message-ID: <20201105124204.4dbea042@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <011c4d4e2227df793f615b7638165c266763e24a.camel@kernel.org> References: <20201105090724.761a033d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <011c4d4e2227df793f615b7638165c266763e24a.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 05 Nov 2020 11:23:54 -0800 Saeed Mahameed wrote: > 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 Actually, the counter in the driver is unnecessary, right? Devlink counts errors. > 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 ? I see devlink health reporters a way of collecting errors reports which for the most part are just shared with the vendor. IOW firmware (or hardware) bugs. Obviously as you say without recover and additional context in the report the value is quite diminished. But _if_ these are indeed "report me to the vendor" kind of events then at least they should use our current mechanics for such reports - which is dl-health. Without knowing what these events are it's quite hard to tell if devlink health is an overkill or counter is sufficient. Either way - printing these to the logs is definitely the worst choice :)