Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp474118lqo; Thu, 16 May 2024 11:24:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTfBq5YyKf/5ECczNMcCRcMUxq16Xx9o3vcvV19pktmr3heloHkhzYjFfkVFJsio2s+/qzujJN4u1U3CMBSPeXLi9GWrL+NjhH/imCgQ== X-Google-Smtp-Source: AGHT+IE5TjDnxYw6epUq0ScMrkJfVFNoGUP8Nr3ELM4zX86pjYNAMWNzgD338KFsIoRoMsC7l/hz X-Received: by 2002:a17:90b:3bcd:b0:2b6:c4d7:fc2e with SMTP id 98e67ed59e1d1-2b6ccc73077mr18949176a91.31.1715883869821; Thu, 16 May 2024 11:24:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715883869; cv=pass; d=google.com; s=arc-20160816; b=tvTjcv4oAD+93FvFcOYgvHqEKQ0R05EH2ZmTMW7h7ZTFnTsXPb2MceV0y5BIovjzwo tToVSZAVKTxQeku6S7LayxRf3C87T0K08ZkPw2A8R6d9+OdujGGodvY5VNYZcVVZ0yFW jks9UAluqLyMuBIVjxziLyp7EQM2mF5BEP25RwIrfRTmh7tbj5qaatU7lFYIC3DdmBtY Ph52OlIzefhLLpFMuRjNt48bAdQsN/bj8RDMeaGEAKk8MHxWPnnn8TJJX93xiRH2ojzy EByMRW7hdJK+wHqABeEQQE3cCqKKdrVi5JLOmdEf1KL1rHPNFLakzvkIXF6DEJa8RKm0 /6Iw== 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=wnARRSgz2Wy63EPYwjGONgg7SPU8BXAI/uH83DK3Sg4=; fh=r7jucx4EDwcx4QmKdJY/B/BWs7eG+xdxvoZ3FO/I2uA=; b=eQMto9M1pYk1asyP445c+FHNcd1SlyGsb7ATiFy8aLnn+7yRgI8ewD4M8ftxypNTU3 OBLQ/K3fImv2PHunLyQ2R+etY824O+o2nkW5KHhDgeCdV5MNE9D8kfVu761k/KyXSr9p pCcudaV9qfVY/xGyYt0N/aTUJ204jDUSNvoXLOuy5UKnDYyr+mC4WP56q3MV4jQ8QQ/2 xsO8Ek0MP5BW8TEdow+EC7KGST2k+GAqJvjMnY+PXXdRLirXaKSp21lcjfAsLifhjP9g 43W1fLAdV1U1LmiRwchtyfj+7g4B9Et4rvtN27yyMQ4ZSQ0hpqGOCxmQyuVncBl+3j8r ipDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GeGJzPW6; 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-181449-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67177e750si16520250a91.176.2024.05.16.11.24.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 11:24:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181449-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GeGJzPW6; 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-181449-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181449-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7347E28360D for ; Thu, 16 May 2024 18:24:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03C9215B99E; Thu, 16 May 2024 18:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="GeGJzPW6" 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 C4350158215; Thu, 16 May 2024 18:19:34 +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=1715883576; cv=none; b=NMNdgeiby+08CfeqqhQ0HZKz6TH4Bemt/Lc8mvdCRd10j/vrQSFl2VRTpqRnfRcO47ol1lELAKXyjOh0dJwpoNFG3FVQL6uwaQD1hotz77uOe5IBPfHA1BoR+bnX2oVDslyySsx+lCBClOIuzbJ7ICr0/BDZeAPYdgJaVWEj+s0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715883576; c=relaxed/simple; bh=LAd7Fl8eb8f+PoK+Joq8lwmFZ5yAW+ThBAA+WrvtsPw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Sm2TtW0cjcxhoTt48HDCU89T17fNyzogzWscLbnBiTOyM0aQBJFc1SofNuYzktpS8tRavieLrw25uMXy0HDBEeyVsOCPxVkdXbmXdzMTXrG9puJBrgWAHtXml9y8xAj7MNkWLpq4Zue+MtnevYP2e3+/tnrEp8COfqlPwgs5AVQ= 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=GeGJzPW6; 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 (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44GI884M018646; Thu, 16 May 2024 18:19:14 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=wnARRSgz2Wy63EPYwjGONgg7SPU8BXAI/uH83DK3Sg4=; b=GeGJzPW6uikch9wCo1emNQMBww5Ai7ttVgNZNWgEjoAd3+fdbsn0jHT2NvbvWCzjTc5o +waPUv5YwpZ3aD8zxbFBDMpfFumJTGS+uOhimSZXC+rqpgAsLOJA+UxGxUXcp7Ogtwl+ ofdbF98a8BEbiCHtc10WLuCmTfcyI83xc3lx2EOw+KZJd9xuLGdCvhhZ+56zwUXDeFLp eCEPIMy9zOwSNgRkGHilE5cmOYiQtZ52gqDi4SFZ+KE1VtCdl7/kowwXUYmbY+D94dgo m2KbwAzKIiBcSOQ+srMWh+JWW7PoCTA/p816jmbsnbz2svz+7S5+XAAGkg7dg5/Sziim Tw== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y5q5980mw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 18:19:14 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44GFouQj005504; Thu, 16 May 2024 18:19:13 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3y2nq331vt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 18:19:13 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44GIJBre48628114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 May 2024 18:19:13 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AD81158077; Thu, 16 May 2024 18:19:09 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6D49C58078; Thu, 16 May 2024 18:19:09 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.107.19]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 16 May 2024 18:19:09 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, broonie@kernel.org, andi.shyti@kernel.org, joel@jms.id.au, alistair@popple.id.au, jk@ozlabs.org, andrew@codeconstruct.com.au, linux-aspeed@lists.ozlabs.org, eajames@linux.ibm.com Subject: [PATCH v3 07/40] fsi: core: Add slave error trace Date: Thu, 16 May 2024 13:18:34 -0500 Message-Id: <20240516181907.3468796-8-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240516181907.3468796-1-eajames@linux.ibm.com> References: <20240516181907.3468796-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: ReVqXMOLippEPnRoYDqbhXhFX-j2thCO X-Proofpoint-ORIG-GUID: ReVqXMOLippEPnRoYDqbhXhFX-j2thCO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-16_07,2024-05-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=953 suspectscore=0 mlxscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 phishscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405160132 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 b3029f9c05e4a..93bbdcf50a89a 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 fed8835f438e5..5509afc98ee8b 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