Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2834692pxb; Tue, 21 Sep 2021 08:38:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI3fXjifM6+E3S4hBC/+eKjJbhLGm4QHv4IeSXNuBBLnzc2ELVXERnO/I73m+sYsTggl02 X-Received: by 2002:a05:6402:319a:: with SMTP id di26mr36506066edb.84.1632238737189; Tue, 21 Sep 2021 08:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632238737; cv=none; d=google.com; s=arc-20160816; b=vKfTe3o0eBLtkPOssMC5Y5vwMyM4B2NAhJhnhbIYy2bMN3aQPzRFRmNtzPPQr3Ir0F Q1uXAi6wzMF5C+Un4G/UpSFp5Vjlz/NUkAH/zLs5Jof5QhcVaneGFazVmaJTp8eZ3odT Ej3U38zHrWHr/Rjy4ahqgDA0HEeC5w+ckHzzs1zmn/Rq1oCqIkQGyGhNWRA7xNmG2rpQ 1c1Odw/BVMA0z+mfCSbPO+CQo7mReb6h0uTF7OHsNrOBcWj5339Ew6JSVEoQctp2m8wX zhXxTI0r87WA8i2Zy/RlvcFzI9qO1K3yvaxBt4D2tKNk54HQMPjJPt0Ta82ESncOinQe bPTw== 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=8ZrYui4eRWCWffVTZpOgm6GWistSd+oydaGdgbHwNrs=; b=yXzztGdgjc0LP1amadJOSwgZ2/GmcLmYCC34U2fJi0V4Nl0Zd/XO8Kv6UC9SMVhzZn GhzaWU1Q8V6oFPvnz7jCawgFrfZ428Nf7HC01DMpkUu8xeMtE/i8dYalNEgMoGgAQV3K Gzw25oEMLS7d6JAHPFEKg3TL3OyggFV9ekVK2oQGLqSSlS6q5TpBq4nW9XW7EaLq9tzZ Bzu+i+XkURqekAckVlhIG+Bq7TuD+0hcsdjPWd9bU1fdWL/C0Ga/pWjDZzy4XWxryKCN M6Ou2TPWlrriVfCqtZnnIaZx6D0yJDOSEdJQoOAzEABs4+E9KXkx2+uV4pC4yc4UYB/r YTaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aawSD7Lv; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si6927522edm.144.2021.09.21.08.38.32; Tue, 21 Sep 2021 08:38:57 -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=@linuxfoundation.org header.s=korg header.b=aawSD7Lv; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234088AbhIUPil (ORCPT + 99 others); Tue, 21 Sep 2021 11:38:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:60794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233860AbhIUPik (ORCPT ); Tue, 21 Sep 2021 11:38:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6985660E08; Tue, 21 Sep 2021 15:37:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632238631; bh=1L59Qf8dZlUk3zyJnpg6Mrmzjp8u5lw/A8gCnR4hqtA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aawSD7LvOO0CmvE94phTcMeCNI0F76yi1WFd7TKgEA+Fs58sGjRbMyS1f1lBmo2iV +bGV42SQqB+0dVvhHIsU6CkeWEoNKhtqcR4w0ePBB6Jnm4h/lnpfVzRJB2eF2HUo3G tY9QKgkZPRSogClE8X8GfB43KzfDHOGq5QTmHDEI= Date: Tue, 21 Sep 2021 17:37:09 +0200 From: Greg KH To: Eddie James Cc: linux-fsi@lists.ozlabs.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, joel@jms.id.au, linux@roeck-us.net, jdelvare@suse.com, alistair@popple.id.au, jk@ozlabs.org Subject: Re: [PATCH 3/3] hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs Message-ID: References: <20210914213543.73351-1-eajames@linux.ibm.com> <20210914213543.73351-4-eajames@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210914213543.73351-4-eajames@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 04:35:43PM -0500, Eddie James wrote: > Save any FFDC provided by the OCC driver, and provide it to userspace > through a binary sysfs entry. Do some basic state management to > ensure that userspace can always collect the data if there was an > error. Notify polling userspace when there is an error too. > > Signed-off-by: Eddie James > --- > drivers/hwmon/occ/p9_sbe.c | 98 +++++++++++++++++++++++++++++++++++++- > 1 file changed, 97 insertions(+), 1 deletion(-) You forgot a Documentation/ABI/ entry :( Binary sysfs files are for "pass through to the hardware" only, you should not be dumping kernel data to userspace through them. I can't really determine if this is the case here or not, as there's no documentation saying what you are trying to represent here... thanks, greg k-h