Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1031936pxb; Tue, 14 Sep 2021 14:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrSa4/x5DybPuU2ErixfRpgpCaCrd8FIKbLvrvLI3dtJsIQOU63jGT9iazEdv2GI6bUCPa X-Received: by 2002:a92:8702:: with SMTP id m2mr13217593ild.250.1631655442996; Tue, 14 Sep 2021 14:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631655442; cv=none; d=google.com; s=arc-20160816; b=hbpQnVFiYDsWM8Jf3ylNp+ISnssBvZwXOxf+YnsVnWXAbtvER+laga1oh68vpEXBPN 4O/vJmJi2PnwD0iR6p9RtmcFR7KsWskt61mS2bqlTbnJvkjqWoU4y+Als/fUR4jBXrxo Nbj0N0F1hsv+q6+PmqU+3wHuB+6pLGxV02t2tdA+uX2zG5VSj1qt45Yhk3NwDFNwP/MP owBBc4TaGpwcqvDtsPM9XnnfwbrYc9SEn6OTpCu/FVTzdhbcJ5+M+zSvcWNcREvdeQNG Gy2tkCtHogubh29JUZKp2S7jxD24WbVmd7tfKXbdKH/7eJwHGCVfXkXgAv4PSo3R557w r+nA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8YkWHHZWBMRmrxft3c4znvxzx63UXOJv+ONJc9YVRQQ=; b=m2He2rOiQLYDs6J7kOJRo6YhKOdc8jHeybdkDaI9yG1EVBqbKDGAxj3m2mCanL1i3z XDZRkwZZrkbk44G7PRN4gNRzmCvtgRTJ1znCgmCCJMbWiFdGtWar3kNChLtCHKE2gawk z9N8zi1tyrtPE2OVjyCcpjNGWwfse9NGzQov5goZvNjqvan79u95vsPs7n+tbPf5seFF XrBdg0RNHrj2F1hTHkoBL3yv2lTsmq6TUM7wWLxR56rC+ZsaJkHsCk9BBBfyAkM3D/Of 7jXxjoixhkdnaItNvQfyTkfbIophQfF/Kc6xqUvR3racfcTjJj7070szKX1kG1BPulJ2 rofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=lXbWXt13; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g126si10757713jag.77.2021.09.14.14.37.12; Tue, 14 Sep 2021 14:37:22 -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=@ibm.com header.s=pp1 header.b=lXbWXt13; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235044AbhINVhh (ORCPT + 99 others); Tue, 14 Sep 2021 17:37:37 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:59612 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234905AbhINVhc (ORCPT ); Tue, 14 Sep 2021 17:37:32 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 18ELTJCa017399; Tue, 14 Sep 2021 17:35:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=8YkWHHZWBMRmrxft3c4znvxzx63UXOJv+ONJc9YVRQQ=; b=lXbWXt13RjOsf2zyJHLQ+OSzHbSOwO8aU5UI3GIq6qY2cdChb4RsgsrgqvOm1i5XlwsA mIxQWaaoufyMdXaX32SGJ+UBSQKaWOIasdpcRbrnq2K8viVbb7nKYpMe4k1tWY3zp4yx ruRKLjqm5q5g6fCfpgbL3zrOEBYMK09o2MP5rTfxsWQKI1cbpUMWmm4vE76dp+6Lmbin /F41KyTtZl7pSVm1xGdAn40fLYPrwf1S8JXpuMGGoITLO1+ad7qT/Az0Y1V9D4lQjt/T QhItDV2orPKbzyVZJ7sUSv0vPBB84uR/Lw4Y77xbtMAfftd0A3DFI/DlnHwskGbVl9ar /Q== Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 3b33psg40g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Sep 2021 17:35:47 -0400 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 18ELRpIP016509; Tue, 14 Sep 2021 21:35:46 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma01dal.us.ibm.com with ESMTP id 3b0m3d37v2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Sep 2021 21:35:45 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 18ELZiCY17236382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Sep 2021 21:35:44 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 851E1136055; Tue, 14 Sep 2021 21:35:44 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 12212136066; Tue, 14 Sep 2021 21:35:43 +0000 (GMT) Received: from v0005c16.aus.stglabs.ibm.com (unknown [9.211.154.14]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 14 Sep 2021 21:35:43 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: 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, eajames@linux.ibm.com Subject: [PATCH 0/3] occ: fsi and hwmon: Extract and provide the SBEFIFO FFDC Date: Tue, 14 Sep 2021 16:35:40 -0500 Message-Id: <20210914213543.73351-1-eajames@linux.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: dXVbggaTbo18cX80ZZMiKriM-p5bRR-h X-Proofpoint-GUID: dXVbggaTbo18cX80ZZMiKriM-p5bRR-h X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 bulkscore=0 clxscore=1011 suspectscore=0 adultscore=0 spamscore=0 mlxlogscore=716 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109140123 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, users have no way to obtain the FFDC (First Failure Data Capture) provided by the SBEFIFO when an operation fails. To remedy this, add code in the FSI OCC driver to store this FFDC in the user's response buffer and set the response length accordingly. On the hwmon side, there is a need at the application level to perform side-band operations in response to SBE errors. Therefore, add a new binary sysfs file that provides the FFDC (or lack thereof) when there is an SBEFIFO error. Now applications can take action when an SBE error is detected. Eddie James (3): fsi: occ: Use a large buffer for responses fsi: occ: Store the SBEFIFO FFDC in the user response buffer hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs drivers/fsi/fsi-occ.c | 184 ++++++++++++++++++++----------------- drivers/hwmon/occ/p9_sbe.c | 98 +++++++++++++++++++- include/linux/fsi-occ.h | 3 + 3 files changed, 202 insertions(+), 83 deletions(-) -- 2.27.0