Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp741677rdb; Thu, 15 Feb 2024 14:10:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU540C8YSA8Y1/edkawwYLWrf4CIwwUy0uk54vC7td3VxXEVwQd0H6Sx1ymThMhozKQVR0qhCzjTVxR6eU5g0L0HOJw+TGaoWlOu676ug== X-Google-Smtp-Source: AGHT+IEIMXlzpET1w7CtcjNIHspZA93N+LWE9A7hD0gKxXZMNxEUNkCj6jz593nRpGOfJBQxKkj/ X-Received: by 2002:a05:651c:207:b0:2d0:f615:f7b7 with SMTP id y7-20020a05651c020700b002d0f615f7b7mr2098542ljn.14.1708035038828; Thu, 15 Feb 2024 14:10:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708035038; cv=pass; d=google.com; s=arc-20160816; b=y0I5jBC3RO1sCXzOI49oT0qsKzzQJD4xvEcHaEeAs+KuBZaET0GOzS7EpsDGwFfxc4 ZrpwS7hxpxu9O1wCiY2d6aVsvdSBiMWufPogHtIZNSfTwryj1lmjfYgyDm4JRqGbIOoP 24aZ4YpwFEiVibPoveGwlF/1Xu+4Zb03WPGMkdZfats6YPBPGw4ev6KRwQaUIY/67Y8J JuYUd1pCi5hveAbh+Q73AVWvgpy6twwckw4qIGZ0JYHNPsDj2vUO9qZjSmTV4o2l2oUS NauwNZ+74BhiSZv8ag57fUXKHGmJaMfPhNu7s0ejxi4QFIxXH1jBaXUTFZT6+NAPxM7n JaNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=CbVBtI9wWX/Vle86BDnixujDHBg2fVH5tOyNC480SYk=; fh=Usz7XAB1EI7Q/DdLEXd449E1MLGpSzqdCCNe5XKh9R0=; b=RaKI1/Ns0zOnW4vwvrdab+JHXWzB3CTE+BQ5UnoJVXy1E2X2ytuA9XMR2ywvUAVxKP w9iHEz6DMf/BAis0YkuIc3MJ/7wzHO4kDgyK+c9cCHliCAM6IzJ+2YDbsaSo4FWYxuOM JM7ff8qVFelr7zhNkpHDZwOGdCtehtWysiOrRTdmrpi6vUsh9ubwOKhMt7HQb9TV84jl 7Gjyrttk4Cxgsb7Bk+o9uiu5KBJYd/jJUgVm3eYX4ekRLfDJuJhUC4kkjHYfBBvN+4vc uFDCl1Nm0L5sXJH+pPTWEk7NpWmXdcOkReZYUYQzhCj6XYElkQtk/zHRAPB8UvDpOuRv kwNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MiCYFWaE; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-67740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a21-20020aa7d915000000b005618a8f2e06si1000075edr.608.2024.02.15.14.10.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:10:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MiCYFWaE; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-67740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8CDDC1F2385E for ; Thu, 15 Feb 2024 22:10:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 307FB14831E; Thu, 15 Feb 2024 22:08:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="MiCYFWaE" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27B72145B31; Thu, 15 Feb 2024 22:08:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708034906; cv=none; b=Y2D7jY9CJaCSTK5kTQvMLRubRdNbxVfpPlIOy8xE6NRNl1il8/VDPvlZnCAPvDcIaMZe5poxK7bbs7Apy0W8rpfdjReQjbjCZ6ZG4+40FKrr14IasgP/zhngadxGZOOydfVx/ozhtx7zJ3HxFf21Za/WLrAcxXV9l2i9dVXGqro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708034906; c=relaxed/simple; bh=F2EI8CjKMR5+W0auTiL1ZfI3q7DIl9lL0XVfiof8NJw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MNuweObTpd75vHV7hdUcd8j9RWUOhCSDk+LXZaL4MU7KVSG26lu6zxn7IrO0FmP12pGJBT6HCl+p+GjvzrdYnqbo0KmOtaCeGYDPf5/3KVhY+qdDSzsLPf3WELkGTr7V4TfMr2gcrw2Ibbtf7zZmCwC96lFYak1LvSS73wUohro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=MiCYFWaE; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41FLX1T3019287; Thu, 15 Feb 2024 22:08:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=CbVBtI9wWX/Vle86BDnixujDHBg2fVH5tOyNC480SYk=; b=MiCYFWaEMiJz9u050bK9Ky+XFQ9cps906GqUsuxLU0lc1W+nJ2+OTK8J1AvQ0zIcNuot QILQVEmTVxIXkV9H7PXx/frVP/G3GSggo9/XcByI7btD8rPt1XWiK1jW7W6jVPyPDufy 2KcjTx38E2mI8aR8L0GGa3fRPeQ2L0rtz50Q4CoZZ5v1rgnsaNZmaIhlq34SBbcfZtQH bdWYvE3FhtJV1fkNsyWnwRLmAEV8VW20hW66t1LH5mbeLS0NX7kf32CDFyNK/nu9MX5G 1IXydwpYToZToM8B/PrCCerevvJjedcHL5Oc3Pk8H1NfEhho0ZLYywZKygiIGl5JdTOd Eg== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w9tmf8mx1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 22:08:08 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41FLB5ue010083; Thu, 15 Feb 2024 22:08:07 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3w6npm7812-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 22:08:07 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41FM854o46596566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Feb 2024 22:08:07 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 27C0E58075; Thu, 15 Feb 2024 22:08:05 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D1A3358081; Thu, 15 Feb 2024 22:08:04 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.14.18]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 15 Feb 2024 22:08:04 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, andi.shyti@kernel.org, eajames@linux.ibm.com, alistair@popple.id.au, joel@jms.id.au, jk@ozlabs.org, sboyd@kernel.org, mturquette@baylibre.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Subject: [PATCH 09/33] fsi: core: Add slave error trace Date: Thu, 15 Feb 2024 16:07:35 -0600 Message-Id: <20240215220759.976998-10-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240215220759.976998-1-eajames@linux.ibm.com> References: <20240215220759.976998-1-eajames@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: wWQh76vqmlatYEeFJLW8EAXOCTTuDROz X-Proofpoint-ORIG-GUID: wWQh76vqmlatYEeFJLW8EAXOCTTuDROz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-15_20,2024-02-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 mlxlogscore=983 adultscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 malwarescore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402150171 Trace out the FSI slave status and interrupt status. Signed-off-by: Eddie James --- drivers/fsi/fsi-core.c | 1 + include/trace/events/fsi.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c index a989a2007c0f..e6ed2d0773b6 100644 --- a/drivers/fsi/fsi-core.c +++ b/drivers/fsi/fsi-core.c @@ -185,6 +185,7 @@ static int fsi_slave_report_and_clear_errors(struct fsi_slave *slave) dev_dbg(&slave->dev, "status: 0x%08x, sisc: 0x%08x\n", be32_to_cpu(stat), be32_to_cpu(irq)); + trace_fsi_slave_error(slave, be32_to_cpu(irq), be32_to_cpu(stat)); /* clear interrupts */ return fsi_master_write(master, link, id, FSI_SLAVE_BASE + FSI_SISC, diff --git a/include/trace/events/fsi.h b/include/trace/events/fsi.h index fed8835f438e..5509afc98ee8 100644 --- a/include/trace/events/fsi.h +++ b/include/trace/events/fsi.h @@ -115,6 +115,25 @@ TRACE_EVENT(fsi_master_unregister, TP_printk("fsi%d (%d links)", __entry->master_idx, __entry->n_links) ); +TRACE_EVENT(fsi_slave_error, + TP_PROTO(const struct fsi_slave *slave, uint32_t sisc, uint32_t sstat), + TP_ARGS(slave, sisc, sstat), + TP_STRUCT__entry( + __field(int, master_idx) + __field(int, link) + __field(uint32_t, sisc) + __field(uint32_t, sstat) + ), + TP_fast_assign( + __entry->master_idx = slave->master->idx; + __entry->link = slave->link; + __entry->sisc = sisc; + __entry->sstat = sstat; + ), + TP_printk("fsi%d:%02d sisc:%08x sstat:%08x", __entry->master_idx, __entry->link, + __entry->sisc, __entry->sstat) +); + TRACE_EVENT(fsi_slave_init, TP_PROTO(const struct fsi_slave *slave), TP_ARGS(slave), -- 2.39.3