From patchwork Fri Nov 27 17:52:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11936967 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 470C6C3E8C5 for ; Fri, 27 Nov 2020 17:54:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA2EE2224A for ; Fri, 27 Nov 2020 17:54:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fMluAYqc"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r5tnZOw8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA2EE2224A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ck0TlpLfeTELZFLRR2xMzAKncerz1ipbrdlSb1MlL3M=; b=fMluAYqc7DSTtTn8EEBGIjiML j2Br8iLlGTBH3KS27apUCLvLvh7tMBe+QSAsv3B3+Ehof7RJV9JeE/9wx1afaCxulJny/kI23Cema KGQ2f79g4UcXnfeR7SaqoEZ32AW0g1pd2A6PGciAWfQgN21kzeIc8q9lhDq7ZnVukmwqKoxlDwijb S6oXVB4NDYkLPjAJMdx8ySSjGjeFgqVxC908dyVY6N2MEupx9RWj6bDSzX7Wi6yR6VbfuEmczr5wk 1TfnWy5FTpk9bQpCLod4aklX9/RnTatYpDWGSE9ve3ZeMh9CU0B6twBBic/YCx1XLcBLrJXjw05TP uSqNroRFQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kihvc-0004c9-ED; Fri, 27 Nov 2020 17:53:04 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kihvZ-0004b7-2o for linux-arm-kernel@lists.infradead.org; Fri, 27 Nov 2020 17:53:02 +0000 Received: by mail-pg1-x542.google.com with SMTP id o4so2605777pgj.0 for ; Fri, 27 Nov 2020 09:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lvGDkQIA9hhTIQSfQu8qh4Je4X5ShxpEEQWekjkOaZM=; b=r5tnZOw8d43aRLz9oo+Vhkqkf1mGz6qMnzFbjlh3Cp64+y6bHOxidHVuYn7+P98/dV QQRKlUDdGIedh1sebBcCgcjQVsacj2yaFDgmMDA02ftyeAkjEhdEBikRqKtmOfVVDDWz i6afTWDYtHpT56Ul2yb/UfGqk7IbykqESscyBqTdabmQDlKHLApz7yLf0FYjtItfYyDU 5Lp43A1z9PqiepFB18m9V3RIAttE0uq3V8wjR1kdpKsbNPKmaRWrjDKtrPMcAOPKrlQg Vq7BnQ0+YWsFmukGOLXwOaNIGOym6oHyTEswoABcKqUm0hk5VP4QE5TzWMgE9cG4bOsH 9s+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lvGDkQIA9hhTIQSfQu8qh4Je4X5ShxpEEQWekjkOaZM=; b=GDeK7j4z/YK0uh33fsmxPTtgAriCRJTCnPfIfyiM8VoETQpa6kM2qQCO/Lg/1CQDPu XGohS50eKDO2nCWzWKCalKrkuM0jQPKIcjzX0qxcL2fs844mX+m6uxUDxL439V4ZLwxt n1IXwiCojWQwYUIL6laBXkYKL1c//xiQfHevYeZwp68RvZy5zkq4SFW3MGFj+F/Rruz2 m+iPywW1qerVyMhXW6EU/o2bXTvM5unu59MlhY0SjvFDkOA9KhReOrAI6Ltmic8oFhIV 2fa/1vtVcIA+02zfR+q7hLwlnmza4X+VDF7iIsLB0HjpSK9B1q6BaztiHHOqCNZAQGWe bgXQ== X-Gm-Message-State: AOAM533niYi7ab+8IvflVpoWOvAxPxBL8Kqi6hQwfNuHl4Qr0C/mr3d0 vnwCAJiPi8VONOLk8VNltzcaSg== X-Google-Smtp-Source: ABdhPJzbApJT7adzDXAFrFGSVT8ecMLt32mMowR/GAPY+3MKXy1QjhfToEFLl6peHRPLCMYv4VsOCQ== X-Received: by 2002:a05:6a00:792:b029:197:ff4c:5997 with SMTP id g18-20020a056a000792b0290197ff4c5997mr8293874pfu.52.1606499579066; Fri, 27 Nov 2020 09:52:59 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id t18sm10536724pji.1.2020.11.27.09.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 09:52:58 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 01/15] coresight: etm4x: Skip setting LPOVERRIDE bit for qcom, skip-power-up Date: Fri, 27 Nov 2020 10:52:42 -0700 Message-Id: <20201127175256.1092685-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201127175256.1092685-1-mathieu.poirier@linaro.org> References: <20201127175256.1092685-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201127_125301_403755_843084CB X-CRM114-Status: GOOD ( 14.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sai Prakash Ranjan 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. Cc: stable@vger.kernel.org Fixes: 02510a5aa78d ("coresight: etm4x: Add support to skip trace unit power up") Signed-off-by: Sai Prakash Ranjan Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- 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;