Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1075076pxu; Fri, 16 Oct 2020 03:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDgjdFauQDGNzTNBzhguHifhVU2q8KyYoQ+Xqphfg8iGmFLizHLUr0Ian/x6/nCKx2Q4P5 X-Received: by 2002:a17:906:e2d7:: with SMTP id gr23mr2995021ejb.360.1602843297121; Fri, 16 Oct 2020 03:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602843297; cv=none; d=google.com; s=arc-20160816; b=MGc0eLfXTwoQ6HnRqImvBEXCL9a/Az14nfD85tb0Nl0xeG5vbkHWBq00U0okFeg2oo WkH2lJ6ePClwpZyaWzo/0hskJsIoNR3hyIAW/oguYQjgj3TSRuK4Cr7/aIEnfqTfgpb3 35SW6ixCuxlDlN/wYC19phIUDu7ONPIrFkrjiict7l0AaoDIBcKFsFlA/oF4QVkXFGcm UrFeeRuUQ3kaHwsU9hTx3lD5RfbxdxgAhNKb2/WgVmc7R+XnIosXqMD1sJrc/8z3pjoi Gji6+geK750Z+jj7ly3mG/Ku+behTGtKumctmqS9uXuDxu2OUd1Cozcn3dZvVw3u87Nz /6JA== 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:dmarc-filter:sender :dkim-signature; bh=gzPRw3CFiSVVQK51VCZmIGv7u20AkX6SlLmvSNm3nk0=; b=WkA48N20Zcfg+5aEEdntqt422nRsnoieC0g2MLFaU09vlBp/AvNv7pO0tEzdJTo5BE j2LiKZ+JiCbHh16597fa/WrjrQyQQLJS6t+q8w4eP62O7bObo23BsamMPjiN1p4AcavU KFQsCWYdwCLNdjUxNYuzr1SR1rlfmRmaZIYi1FKdEiXb5PxJ29td6cK8tNDKZOH0j3m+ sVfG56I3cUPSKNWjE9hDBc0mIBkEHi6by6aYcxztrwUMxWVlVRRnijDUQRjFGe+C9dxk Nqy+1phETVd4da0nPFcxpKSyNVQU6bEfsU8hUeRrke16tibgEkluDagArBKPK8CP0axl caPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=hzkm14jo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si1267137edu.43.2020.10.16.03.14.35; Fri, 16 Oct 2020 03:14:57 -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=@mg.codeaurora.org header.s=smtp header.b=hzkm14jo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406537AbgJPKL3 (ORCPT + 99 others); Fri, 16 Oct 2020 06:11:29 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:52637 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395274AbgJPKL3 (ORCPT ); Fri, 16 Oct 2020 06:11:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602843088; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=gzPRw3CFiSVVQK51VCZmIGv7u20AkX6SlLmvSNm3nk0=; b=hzkm14joQEldr1QdBcbmFmHGVjgDXV1sSynObwAuSmfDpG9BQU4v9kxoj/g8tRCusCArQ9gN 7gQqICjT9TB+KPByX5Km6+is/G1z35KExX9ucWiwilzX0HthwDzZj2+TGrvDcQN9zTxGIjVX xOFmqvho5y2JjLesZLF8H5aRZfQ= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5f89719e57b88ccb563f6500 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 16 Oct 2020 10:10:38 GMT Sender: saiprakash.ranjan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2E14EC43387; Fri, 16 Oct 2020 10:10:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-253.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 63965C433F1; Fri, 16 Oct 2020 10:10:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 63965C433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=saiprakash.ranjan@codeaurora.org From: Sai Prakash Ranjan To: Mathieu Poirier , Suzuki K Poulose , Mike Leach Cc: coresight@lists.linaro.org, Stephen Boyd , denik@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sai Prakash Ranjan Subject: [PATCH] coresight: etm4x: Skip setting LPOVERRIDE bit for qcom,skip-power-up Date: Fri, 16 Oct 2020 15:40:25 +0530 Message-Id: <20201016101025.26505-1-saiprakash.ranjan@codeaurora.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a bug on the systems supporting to skip power up (qcom,skip-power-up) where setting LPOVERRIDE bit(low-power state override behaviour) will result in CPU hangs/lockups even on the implementations which supports it. So skip setting the LPOVERRIDE bit for such platforms. Fixes: 02510a5aa78d ("coresight: etm4x: Add support to skip trace unit power up") Signed-off-by: Sai Prakash Ranjan --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index abd706b216ac..6096d7abf80d 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -779,7 +779,7 @@ static void etm4_init_arch_data(void *info) * LPOVERRIDE, bit[23] implementation supports * low-power state override */ - if (BMVAL(etmidr5, 23, 23)) + if (BMVAL(etmidr5, 23, 23) && (!drvdata->skip_power_up)) drvdata->lpoverride = true; else drvdata->lpoverride = false; base-commit: 3477326277451000bc667dfcc4fd0774c039184c -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation