Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1913817rwd; Fri, 2 Jun 2023 01:53:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6QA2rCxY3tmZDN3kxcq5VCNr+8kngUKgPGfXwnbAgzF5zGfWw2zpPRXXBPkIF/bT04mOaO X-Received: by 2002:a05:6a00:c8e:b0:64d:1185:2411 with SMTP id a14-20020a056a000c8e00b0064d11852411mr9702459pfv.18.1685695990339; Fri, 02 Jun 2023 01:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685695990; cv=none; d=google.com; s=arc-20160816; b=yTuPY3zn1Rgg3uNBIqgffBxveaHKoQCHA1YnM74sX4hJKhny6aKY+kAAn0a4fHGKVa CQnSKEcO+jmWQchSzzVQleqbnrjRcCsguFZZtpN7f1k/tGROdMcctTLmF+sv8FdDbtWR fcCsoQAY+EnstkgPzVM4al912NTZJSdAx2u+e0STA4K4V1uKnzkjpQEzNN0ZpwqLgp8k 9QwVeMjskVR2HoMkZMOKKDcyODIwHzCAwceP1Ka7sjYEZBgdF/p9fn1Jr0MS12nK7JJk h/GTkKiiSTwKju0Bxs7wAX+URpuWDbWTKoEtVkaP7w3ZfkOAA7cynkWQ/3eVYvPxcpF1 zOvA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IoQFQr/nPSNFex22doBQPMhVul05JZ1RLUaTofGh6rc=; b=JAwg/fg8n6vF+aHCbmgOB/QLtQ/efwCBMLDvRIhaEotE3cOkqVvKKLfqNLBnModC/N aePdCeeUxO/YJAlTp0+hIJXxov1zwQyWm9ep5PGua/sM+86cRqi5EKD5NiYmhhhW+Ksq fEYn2phBMYXcnBKhBR0PY+FxwwJfn0zmV0UITLkpm30OLt+287+Gh73EI+HasSv0NfEt /12S5/ncRq7+BAKl1MnQa8oOILJVA8pQ70zuGdzsr+CbP8gYzTSMjWYUVLziTZ1rbeTJ 1J2HI2gwhm6jE/RiaDfxavq76rL9paAf8sYO3ojd+vF68b+hcoeagebI7xKNNvyZrIro J/NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oIOrjmJM; 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 w27-20020aa79a1b000000b0064d419dd566si403139pfj.205.2023.06.02.01.52.56; Fri, 02 Jun 2023 01:53:10 -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=oIOrjmJM; 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 S234854AbjFBItP (ORCPT + 99 others); Fri, 2 Jun 2023 04:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234570AbjFBIse (ORCPT ); Fri, 2 Jun 2023 04:48:34 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF301AD for ; Fri, 2 Jun 2023 01:48:31 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b1a7e31dcaso14572981fa.2 for ; Fri, 02 Jun 2023 01:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685695709; x=1688287709; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IoQFQr/nPSNFex22doBQPMhVul05JZ1RLUaTofGh6rc=; b=oIOrjmJMTtBBGOq/2Ap4Pc5fVooiIfofixNKfmoziFbJDansAXfxM2Lzl5qgL6CuK/ E0dmtS2SyWFo0da/54uB8NmmavclqDHnNVPpj9Rd31x71CHwZltsAxjHvrfytOFajcM8 mMqnp0hJPEwDKHxbC2P221cVgnFIttyu2aJ+s16T75ctesZk8ltNNDyzXij8lwvOM71E Gkj8SAju7i2h7BdQsVxZfFMAwyhVEDQaQtECkoE/3LCSd0fzXTAWY0SXE+t0pKYnLtm9 CuXFXPJiyomBtlI5sFvW7M5ZY+MTqqkjxJqN6Fyc1oKHcTAWO6mUcX/yZjLPTUCaOTxW QHbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685695709; x=1688287709; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IoQFQr/nPSNFex22doBQPMhVul05JZ1RLUaTofGh6rc=; b=bHfhw3/FMh+E7CnBsDIQuabGCwVNe4lKKIYkdGI1IEBtlryyPEzrzgC8wN1QUpouDT DEZlsqK+Ul903A00EpziNXDE30tQvDGHyRGkJLSSlUh0k1lskK/7q7hrF+lMT4wA4GDt oOTr1yayY3dRCzWjxnFv30zTmUDhwty/4bpaoSPSkSVr9TRb2Tl6RVDQd6DL7E7nZFpe lla2qi94D+EpMNZZcbSA/6FKcj+wbQpEzOKFZBCfxeyc4KHB8CJKsDR6dcCYt+jkpesQ 8iBZc1sNI8BSC6bNQeTqycEVosB8jHeRb+Il+BsVpRalYLEFhI9RDISDlbqepZ59UDE/ XNXg== X-Gm-Message-State: AC+VfDzC3Z8WDC9jlcKjw8t59zPWptQ+cnmlaUkVnw3+KrKdN5ZF7VUu /pPgZu9cFP+ebXYHCud2abpGBA== X-Received: by 2002:a2e:801a:0:b0:2ac:7d3b:6312 with SMTP id j26-20020a2e801a000000b002ac7d3b6312mr1323052ljg.22.1685695709498; Fri, 02 Jun 2023 01:48:29 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id w22-20020a2e9996000000b002ab5421959fsm142943lji.90.2023.06.02.01.48.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 01:48:28 -0700 (PDT) Message-ID: Date: Fri, 2 Jun 2023 10:48:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 4/4] clk: qcom: mmcc-msm8998: Fix the SMMU GDSC To: Jeffrey Hugo Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Michael Turquette , Stephen Boyd , Imran Khan , Rajendra Nayak , Joonwoo Park , Jeffrey Hugo , Marijn Suijten , Dmitry Baryshkov , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: <20230531-topic-8998_mmssclk-v1-0-2b5a8fc90991@linaro.org> <20230531-topic-8998_mmssclk-v1-4-2b5a8fc90991@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 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,URIBL_BLOCKED autolearn=unavailable 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 1.06.2023 16:14, Jeffrey Hugo wrote: > On Wed, May 31, 2023 at 3:01 AM Konrad Dybcio wrote: >> >> The SMMU GDSC doesn't have to be ALWAYS-ON and shouldn't feature the >> HW_CTRL flag (it's separate from hw_ctrl_addr). In addition to that, >> it should feature a cxc entry for bimc_smmu_axi_clk and be marked as >> votable. >> >> Fix all of these issues. >> >> Fixes: d14b15b5931c ("clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver") >> Signed-off-by: Konrad Dybcio > > Was this tested on a system where the bootloader has enabled the > display and it is active during Linux boot? No, I only have a device whose bootloader doesn't initialize display. > > I seem to recall that in that scenario, Linux would boot up, see that > the GDSC is on, not see any clients for it (still initializing), turn > it off, and kill the display which then results in either a mess of > errors or a bus lockup. I see 2 possible scenarios: either the display shuts off (because somebody hasn't described the hardware properly and Linux isn't) aware of all dependencies, or we get bus errors because we only shut down / initialize some hardware partially, also possibly due to bad dependency description. Konrad > > -Jeff