From patchwork Thu Apr 19 05:50:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 900593 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40RSqJ31GYz9s1t for ; Thu, 19 Apr 2018 15:54:20 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40RSqJ1lSpzF220 for ; Thu, 19 Apr 2018 15:54:20 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=stewart@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com 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 40RSq71qsWzF22G for ; Thu, 19 Apr 2018 15:54:11 +1000 (AEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3J5nCvs120019 for ; Thu, 19 Apr 2018 01:54:08 -0400 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hen268qv2-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Thu, 19 Apr 2018 01:54:08 -0400 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Apr 2018 01:54:07 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 19 Apr 2018 01:54:05 -0400 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3J5s5on46465044 for ; Thu, 19 Apr 2018 05:54:05 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D70602803F for ; Thu, 19 Apr 2018 01:53:28 -0400 (EDT) Received: from birb.localdomain (unknown [9.102.50.46]) by b01ledav001.gho.pok.ibm.com (Postfix) with SMTP id 565692803E for ; Thu, 19 Apr 2018 01:53:28 -0400 (EDT) Received: by birb.localdomain (Postfix, from userid 1000) id 6A4A14EC649; Thu, 19 Apr 2018 15:54:00 +1000 (AEST) From: Stewart Smith To: skiboot@lists.ozlabs.org Date: Thu, 19 Apr 2018 15:50:58 +1000 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18041905-0044-0000-0000-00000407C35A X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008881; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01020035; UDB=6.00520432; IPR=6.00799273; MB=3.00020656; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-19 05:54:07 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041905-0045-0000-0000-00000839C91A Message-Id: <20180419055059.11386-1-stewart@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-19_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804190052 Subject: [Skiboot] [PATCH 1/2] core/test/run-trace: fix on ppc64el X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Hackish fix from benh Suggested-by: Benjamin Herrenschmidt Signed-off-by: Stewart Smith --- core/trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/trace.c b/core/trace.c index 4364aea57d1d..ef7c2ca05ae1 100644 --- a/core/trace.c +++ b/core/trace.c @@ -127,7 +127,8 @@ void trace_add(union trace *trace, u8 type, u16 len) assert(trace->hdr.type != TRACE_OVERFLOW); #endif /* Skip traces not enabled in the debug descriptor */ - if (!((1ul << trace->hdr.type) & debug_descriptor.trace_mask)) + if (trace->hdr.type < (8 * sizeof(debug_descriptor.trace_mask)) && + !((1ul << trace->hdr.type) & debug_descriptor.trace_mask)) return; trace->hdr.timestamp = cpu_to_be64(mftb()); From patchwork Thu Apr 19 05:50:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 900594 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40RSqX1rqfz9s1t for ; Thu, 19 Apr 2018 15:54:32 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40RSqW6vc3zF22G for ; Thu, 19 Apr 2018 15:54:31 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=stewart@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-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 lists.ozlabs.org (Postfix) with ESMTPS id 40RSqQ0hbzzF22g for ; Thu, 19 Apr 2018 15:54:25 +1000 (AEST) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3J5nDTD089993 for ; Thu, 19 Apr 2018 01:54:23 -0400 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0b-001b2d01.pphosted.com with ESMTP id 2heknw40xt-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Thu, 19 Apr 2018 01:54:22 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Apr 2018 23:54:21 -0600 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 18 Apr 2018 23:54:05 -0600 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3J5s5gq7471566 for ; Wed, 18 Apr 2018 22:54:05 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 128D8BE042 for ; Wed, 18 Apr 2018 23:54:05 -0600 (MDT) Received: from birb.localdomain (unknown [9.102.50.46]) by b03ledav005.gho.boulder.ibm.com (Postfix) with SMTP id 9751FBE038 for ; Wed, 18 Apr 2018 23:54:04 -0600 (MDT) Received: by birb.localdomain (Postfix, from userid 1000) id 6D01D4EC56C; Thu, 19 Apr 2018 15:54:01 +1000 (AEST) From: Stewart Smith To: skiboot@lists.ozlabs.org Date: Thu, 19 Apr 2018 15:50:59 +1000 X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180419055059.11386-1-stewart@linux.ibm.com> References: <20180419055059.11386-1-stewart@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18041905-0024-0000-0000-000018402BD6 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008881; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01020036; UDB=6.00520432; IPR=6.00799272; MB=3.00020656; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-19 05:54:21 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041905-0025-0000-0000-00004F95FE79 Message-Id: <20180419055059.11386-2-stewart@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-19_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804190052 Subject: [Skiboot] [PATCH 2/2] external/trace: fix makefile X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Stewart Smith --- external/trace/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/trace/Makefile b/external/trace/Makefile index b39738072877..3b6684bf1f4d 100644 --- a/external/trace/Makefile +++ b/external/trace/Makefile @@ -1,5 +1,5 @@ HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc.*/BIG/') -CFLAGS=-g -Wall -DHAVE_$(HOSTEND)_ENDIAN -I../../include +CFLAGS=-g -Wall -DHAVE_$(HOSTEND)_ENDIAN -I../../include -I../../ dump_trace: dump_trace.c