Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp307093pxb; Tue, 12 Apr 2022 02:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUW4GvccVAaFu9wuxgH+riKzUgej9HvTU2YeABs4XA9N7kh4RYypFewY5Zoa+AHcn6W32I X-Received: by 2002:a63:2586:0:b0:39d:904b:3ee5 with SMTP id l128-20020a632586000000b0039d904b3ee5mr2482327pgl.455.1649755431673; Tue, 12 Apr 2022 02:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649755431; cv=none; d=google.com; s=arc-20160816; b=a9CkASDjiZc/GHEM7BEza4xTfRWZ+ecnlPWrF7yMuZRKiYxlvUPTQI0u7KqN03vn/Z 0vNVGYN1kYINZhJqPjyKzv1nkFYvE8bUYowsps00S0WPmoobIL1TCjfwG2eT+HNS+nPL oDuQuCxp8oFICj+z8NpDTQIbVUuCgfdsOlePCwJUT9zeFkkA2iuNzqWvgi+f1O5TRufe Mqc9f8ouj+9L5ud/hrTe6qnoTK6HhKWS555SBVTT2ZZKxeMBC6nTq9ZfA1FpxaVJpiFr 9kCBTtWtxW68OkDf0TRz2uH3Ks8R1FOjW4e6iIbGT2Yr2QZyyIdxiXyKTMwo8zZSw948 44bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=srFoickd1zlR+kJjOTObZ61tAEx/5+zynW0TfHZUqk4=; b=N6mBvPiY08xUA8SKbAslz2FWSNOQveETmgo161Hf8tRcti57xOxyktBYrz4ZCTVaDo tXS48sgD2m7w4hz9dUCcC2inJXf6ExuFM1H4FmkEhEbwkF5C6WOa1iJHHJnPVeLhrciv s+RYS16dQpNXIYIVHJ7qB2QwTbx42DnO30TUZWDRhY4mqONQjx8LZslg+XIauuuyUMYN KIfJb7vF+TaALlWvHfTfDbAo5KoFQMnMcp6sK+hzvc9NRtjipPAojJlHCPXGQg58JoAT LU9aY8uz/4sQYXGxV6fUvNMtRpkr5zz4bO3uZL5MQp9kkO6pX5hXPAMLag1TxDZN9x4k U7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gCKdLNuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a056a001a0600b004fa7782f609si11357234pfv.24.2022.04.12.02.23.32; Tue, 12 Apr 2022 02:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gCKdLNuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245082AbiDLCU3 (ORCPT + 99 others); Mon, 11 Apr 2022 22:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238771AbiDLCU0 (ORCPT ); Mon, 11 Apr 2022 22:20:26 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98DBF33E26 for ; Mon, 11 Apr 2022 19:18:10 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id b16so20868982ioz.3 for ; Mon, 11 Apr 2022 19:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=srFoickd1zlR+kJjOTObZ61tAEx/5+zynW0TfHZUqk4=; b=gCKdLNuZBSmjfleHx7DWHk2dt/R22/YnwJEkeczkHmul3xFo7Avio96a80MTlR5FdW kt/AKIj/b20OuGyMzwtRhr0kR8aUMwJjLbVeO0mlQg/T8O1ENVRgwu1GbqDr+KujeX5e DcjRoRCndOzZw3olTMnGOfBqE8R/iJG0zGgyjyzKwoIUFYj7FuEBRa3ozrF8MM4kzP2A 4VNhLmwui6p2QqLKkNEpf7iSuPz9f3iTkGrOs6mEOLqurwiOTlNACnVV0eviSWrbYEDT AnzkwfJGvBvAFyYhZ9Af8Lvl16MXcv6ozhiuQTZdNBgHwCtgWKA7I7SYDMW2iibmwbAz 1Yug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=srFoickd1zlR+kJjOTObZ61tAEx/5+zynW0TfHZUqk4=; b=AsZ+j9a/DfUe3izgDg41T8G35mTsBjuV4JPpr7TQUZBvzW/ThWBFBiUsygM2DZUiW3 F9EzdVW3a2/VTgo9nZg9tJFULtl/VYe1tJXZGLbkHTC03Q6EKtQRM33FPr9o09WxCQgG i0Mbrg8TdxC7+xqhCvOI4faZB9zKSnczuT7QcNVCtSGNNDtd7vIlCivMWfTN8Z0Y+Bkd OQaADrPX9+xv9kL8M3gaDYiBG7BHf4u1t8rhZaAkbtfcTN7o0Gel/cFPGTK+Wbn9yAWd BkV/izEdXl81oTdUNIS+6UvWUPlBKM9h02QVcn4rIBEzG5hdAwqYQX5fBXEECxgfReVO OBFg== X-Gm-Message-State: AOAM530nku5KBIPm2T9Ml5o7nrUgRofWy2PV8W9TV6bf3UvWIDWtx/GS +9UIAYH7aGwYd0rmrHoKoKS4Lg== X-Received: by 2002:a05:6638:22c5:b0:326:2b3a:b08b with SMTP id j5-20020a05663822c500b003262b3ab08bmr5318649jat.250.1649729889994; Mon, 11 Apr 2022 19:18:09 -0700 (PDT) Received: from [172.22.22.4] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id x186-20020a6bc7c3000000b00648deae6630sm21825052iof.54.2022.04.11.19.18.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Apr 2022 19:18:08 -0700 (PDT) Message-ID: <2412ec25-37bf-fa12-6cbf-7cd697b1cf05@linaro.org> Date: Mon, 11 Apr 2022 21:18:07 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v3] interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate Content-Language: en-US To: Stephen Boyd , djakov@kernel.org, okukatla@codeaurora.org, quic_mdtipton@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Tipton , mka@chromium.org, dianders@chromium.org References: <20211125174751.25317-1-djakov@kernel.org> From: Alex Elder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/22 2:06 PM, Stephen Boyd wrote: >> The second problem you have is exhibited by the IPA driver if >> the "fix" commit (upstream b95b668eaaa2) is back-ported to the >> Linux 5.10.y LTS branch (along with some other prerequisite >> commits). We can conclude that applying the above commit >> makes the bandwidth for an unused interconnect (or perhaps >> the rate for the IPA core clock) get set to zero. And in that >> case, an attempt to access IPA hardware leads to the crash you >> observed. >> >> The IPA driver does not implement runtime power management >> until Linux v5.15. You later said you thought enabling that >> might ensure the clock and interconnects were active when >> needed by the IPA driver, and I concur (but there could be a >> little more to it). > Is the runtime PM patch series necessary to enable the IPA clk and > interconnects? Things don't look good on 5.10.y and I'm not sure it will > be workable. Commit b1d681d8d324 ("interconnect: Add sync state > support") was introduced in v5.10 and that seems to be the commit that > broke suspend on Lazor. > This isn't a response to your complete message but I'm going to respond to this part. Before runtime PM was in place, the "IPA clock" (which was a logical notion representing the IPA core clock and all the interconnects it uses) was enabled before the IPA hardware was first touched. It was disabled again when system suspend occurred, and re-enabled again on system resume. At one time we did observe the XO clock turning off. I'm not sure that answers your question. But bottom line is that system suspend/resume were supported (and made IPA clock+interconnects get shut off and then on again), but not runtime PM. -Alex