Message ID | 20211018123751.72794-2-fbarrat@linux.ibm.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=isMHjZIx; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=<UNKNOWN>) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HXxHc42nNz9sPf for <incoming@patchwork.ozlabs.org>; Mon, 18 Oct 2021 23:38:20 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HXxHc2f7mz304J for <incoming@patchwork.ozlabs.org>; Mon, 18 Oct 2021 23:38:20 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=isMHjZIx; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=fbarrat@linux.ibm.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=isMHjZIx; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HXxHD2xbwz2ynr for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 23:37:59 +1100 (AEDT) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19I9qDKN017478 for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 08:37:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=FqjeNVKjVC7AbBcEGPMbSt5Q7ulDeUZvYL7afC+zCv4=; b=isMHjZIxojOkIYmRczZznSfGnk3a/dblCD/Xa6SyRVM+WRCNbymmvV416kuk3Bf4dATA /DNVe6tJp4jyjHeP4kClWjs2vv46DDVVJpD7Rd5OUcuf2vQ3vatcDB4mj4zc7BmsENpn UTbO7+artXae3DzeVLzMh0NzUTWjHbB3cxMMHvpzWaFe67o4SFEInQsWVzswWJWr9n6O n/JgDlcUYifKprDCYvE9uNkkvzr7kdELjq5ZQ7T5lrnrEaVbn3/Kvknpva6VX0jqgdL9 xdIEy9pHHnrkCU6Z8Kl12CPE0bwN74OVuqNIC18GRBGoiGgo+0LAnB+jOv0U05qFLlnz rA== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bs6np3bnp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 08:37:57 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 19ICbUOf021894 for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 12:37:54 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma06ams.nl.ibm.com with ESMTP id 3bqp0je81c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 12:37:54 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 19ICbq4m2360018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 12:37:52 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4670C4C046 for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 12:37:52 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1D8D14C040 for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 12:37:52 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.145.170.57]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP for <skiboot@lists.ozlabs.org>; Mon, 18 Oct 2021 12:37:52 +0000 (GMT) From: Frederic Barrat <fbarrat@linux.ibm.com> To: skiboot@lists.ozlabs.org Date: Mon, 18 Oct 2021 14:37:46 +0200 Message-Id: <20211018123751.72794-2-fbarrat@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018123751.72794-1-fbarrat@linux.ibm.com> References: <20211018123751.72794-1-fbarrat@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: hIFg4V1nFhOn1RGZ_Lqc5CSTIgu6996s X-Proofpoint-ORIG-GUID: hIFg4V1nFhOn1RGZ_Lqc5CSTIgu6996s X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_03,2021-10-14_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=948 adultscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 impostorscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110180075 Subject: [Skiboot] [PATCH 1/6] i2c: Add more info to debug trace X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
PCI hotplug on Rainier (and ZZ)
|
expand
|
diff --git a/core/i2c.c b/core/i2c.c index b4313d43..8f4c01c5 100644 --- a/core/i2c.c +++ b/core/i2c.c @@ -215,10 +215,11 @@ int64_t i2c_request_sync(struct i2c_request *req) *(unsigned char *)(req->rw_buf+i)); } - prlog(PR_DEBUG, "I2C: %s req op=%x offset=%x buf=%s buflen=%d " - "delay=%lu/%lld rc=%lld\n", - (rc) ? "!!!!" : "----", req->op, req->offset, - buf, req->rw_len, tb_to_msecs(waited), req->timeout, rc); + /* print the device address shifted by one to match all hw docs */ + prlog(PR_DEBUG, "I2C: %s bus=%x req op=%x dev_addr=%x offset=%x buf=%s buflen=%d delay=%lu/%lld rc=%lld\n", + (rc) ? "!!!!" : "----", req->bus->opal_id, req->op, + req->dev_addr << 1, req->offset, buf, req->rw_len, + tb_to_msecs(waited), req->timeout, rc); return rc; }
Add the bus ID and device address when showing the result of an i2c request. It makes debug easier when several requests are flying simultaneously. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> --- core/i2c.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)