Message ID | 20240115153420.1525037-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-26178-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1779923dyc; Mon, 15 Jan 2024 07:40:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHYGMWKtK6+eO9pjJxSrVwxT8YvlWpRhTQbnUvgNDyhTBPE23+v/0tF2zqDpkQP7POS0Df X-Received: by 2002:a17:902:bc4c:b0:1d5:73d0:eb7d with SMTP id t12-20020a170902bc4c00b001d573d0eb7dmr6964004plz.18.1705333257630; Mon, 15 Jan 2024 07:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705333257; cv=none; d=google.com; s=arc-20160816; b=U4XTJCXYkrESEw7DskA2D+g7l9K/cNjpakqhdaexGQ29WhJPrFvOkO6cgBHjJxyZt/ U6EFUTpytc0+11cNB7LvOH8YqNNhyy6FdgOtevP0rGuJHxTnIYaWwra27BkLWrRrNrSk Oc4aOYU4/W30qrHTDgb0QEe1GtAZfMuGYp6HTT38ouNVYvjOVMALGAn7RQzSt2aZEoJ+ PHLIExg8XDhisx1/vcuMGigbJX7pwJzbZUlP0uf2lWaPVhpDiyJP5jSPOule8S5lXZCN IpZqqjdMBH3Rs/dzCEgJ/+kq4mtBwUspoTTBmQs1sKPxbAyisKZTxYM8O58SBcd+Gbbg GHEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=rmavEwniKj+GORH2KWsSxI48O1fqG3CA/6A3JkOsRZ4=; fh=FFQ0stFMDy1OEs7UzPG96+eNn4QFNWNj4YZ1aRFFPX8=; b=aWoHHx62QE4ccDf9zSDoLo0x7ACZn28Y3Ty6FqDtSjBTN6VTMWIHZaqhNuheDurVwG 6BXGZ2m3bvQ8XhTLKa92Zyjxdc8Qv9pVphUzRinocQydp0RZUAvS9WMiTHDbXShk7ZiB c9J/oVcOv6T3kNkw+9CpF/ZF5olWzOmzJ5najOKWZC3K5M5an5zadt5suPd0HzCp1z1T wpDXXuIwtU+xbSw82eaFfIzsSCcqCQENODa+eLuWP5NBuZU8be9UKbHadGWiqEgRoB3V 9d45KY0HpLGcWqpQRBCIg/rJV9+M05yR/JwN0Wkgj69nEgY30bJ/c43+D5GPbgie2Q9G rk8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhucPRlf; spf=pass (google.com: domain of linux-kernel+bounces-26178-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26178-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g11-20020a63564b000000b005cdf98f236esi8696628pgm.795.2024.01.15.07.40.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:40:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26178-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhucPRlf; spf=pass (google.com: domain of linux-kernel+bounces-26178-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26178-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9398828418C for <ouuuleilei@gmail.com>; Mon, 15 Jan 2024 15:34:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512ED17998; Mon, 15 Jan 2024 15:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hhucPRlf" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 343D917984 for <linux-kernel@vger.kernel.org>; Mon, 15 Jan 2024 15:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-55790581457so10066980a12.3 for <linux-kernel@vger.kernel.org>; Mon, 15 Jan 2024 07:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705332869; x=1705937669; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rmavEwniKj+GORH2KWsSxI48O1fqG3CA/6A3JkOsRZ4=; b=hhucPRlfCXgeN6cS7vjMBCEO3Nqpcpwi2qvTRRHXo34AxIxcSfDI2qqRSt6UZkiQkd nRWGr+fVvfSdwX3XHVmShmOJsLVmt6E4Ivy4JEUUfzq9LBgjcY+wA/bmLH7Vr7BVZFXz iWXSbF7uW7Fnl1fXt0eBMdQuykgo5O/fKDPn/2l4JCWuepp3klmCjC6E9SOlrfI7c6R9 kvfrvUEcra5N2pZO3vD4SwlrK/MGtw4veZpez0vnlpW2J1oWewPVAIFg16oFZrm2wB2N gJEWdWVFNzQ7qq5Y3tTvVG3srdEcre8pZf/W5DvGGpp0cEQXzMsqK/VWDyvUx2ZtCZaE /ClA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705332869; x=1705937669; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rmavEwniKj+GORH2KWsSxI48O1fqG3CA/6A3JkOsRZ4=; b=Ce4WN7PvuiYs+DLsAHlITJEmgLsGy+bGjct1qsseLCOfxqcOZkPesnxBWQtLQrvWRz wqbIMNqSziaxM78aEo1fy3mqZCjf/WFI5sWRToaEWzXbblQbMjyKVvyqMZawe0RaLuha HRukteojXMoeX7BaBF8Eij2EmOPqcy0ONoKZ/Aq9moOSak+tgsYMNjrISN5B/k+xpm1E hGmh5l3GP49vlUpRhFod3mpybueUrLvareDvrD48caiN6Uvp8iC0JnTiZ7pA71ThYZ+a X5i+7qnofJP15wFsqET1TxOKzcLKWHpQwv1IF6yj6XH27FaWKdBx/PkiENdNCnpAxb6V 0wwA== X-Gm-Message-State: AOJu0YwHCKySLVztKEUAZq/EYODybQ3CZ3jpWTTm286fv3D7+jbBo3sf mKevZ4iBfrbzLjR4Ghz81NV4ZKdaZqFi3A== X-Received: by 2002:a05:6402:31e4:b0:559:3aef:235a with SMTP id dy4-20020a05640231e400b005593aef235amr997796edb.13.1705332869499; Mon, 15 Jan 2024 07:34:29 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id j20-20020aa7c0d4000000b005576f4471besm5578604edp.42.2024.01.15.07.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:34:28 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Georgi Djakov <djakov@kernel.org>, Vinod Koul <vkoul@kernel.org>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, stable@vger.kernel.org Subject: [PATCH] interconnect: qcom: sm8450: Revert "interconnect: qcom: sm8450: Enable sync_state" Date: Mon, 15 Jan 2024 16:34:20 +0100 Message-Id: <20240115153420.1525037-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788171385541022987 X-GMAIL-MSGID: 1788171525590798154 |
Series |
interconnect: qcom: sm8450: Revert "interconnect: qcom: sm8450: Enable sync_state"
|
|
Commit Message
Krzysztof Kozlowski
Jan. 15, 2024, 3:34 p.m. UTC
Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable
sync_state"), because it causes serial console to corrupt, later freeze
and become either entirely corrupted or only print without accepting any
input.
Cc: <stable@vger.kernel.org>
Fixes: 16862f1b2110 ("interconnect: qcom: sm8450: Enable sync_state")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/interconnect/qcom/sm8450.c | 1 -
1 file changed, 1 deletion(-)
Comments
On 15/01/2024 16:38, Konrad Dybcio wrote: > On 15.01.2024 16:34, Krzysztof Kozlowski wrote: >> Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable >> sync_state"), because it causes serial console to corrupt, later freeze >> and become either entirely corrupted or only print without accepting any >> input. >> >> Cc: <stable@vger.kernel.org> >> Fixes: 16862f1b2110 ("interconnect: qcom: sm8450: Enable sync_state") >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- > > What's the board you're testing this on? And kernel base revision? HDK8450 > > The symptoms you mentioned happened for me with this on some recent > -next: This was bisected, so all mainline kernels with this patch. Reverting this patch helps (on top of that commit or on next). > > https://lore.kernel.org/lkml/f24f32f1213b4b9e9ff2b4a36922f8d6e3abac51.1704278832.git.viresh.kumar@linaro.org/ Best regards, Krzysztof
On 15.01.2024 16:55, Krzysztof Kozlowski wrote: > On 15/01/2024 16:38, Konrad Dybcio wrote: >> On 15.01.2024 16:34, Krzysztof Kozlowski wrote: >>> Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable >>> sync_state"), because it causes serial console to corrupt, later freeze >>> and become either entirely corrupted or only print without accepting any >>> input. >>> >>> Cc: <stable@vger.kernel.org> >>> Fixes: 16862f1b2110 ("interconnect: qcom: sm8450: Enable sync_state") >>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>> --- >> >> What's the board you're testing this on? And kernel base revision? > > HDK8450 > >> >> The symptoms you mentioned happened for me with this on some recent >> -next: > > This was bisected, so all mainline kernels with this patch. Reverting > this patch helps (on top of that commit or on next). I don't quite get your answer. Was reverting \/ the solution for you? Konrad > >> >> https://lore.kernel.org/lkml/f24f32f1213b4b9e9ff2b4a36922f8d6e3abac51.1704278832.git.viresh.kumar@linaro.org/
On 15.01.24 17:34, Krzysztof Kozlowski wrote: > Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable > sync_state"), because it causes serial console to corrupt, later freeze > and become either entirely corrupted or only print without accepting any > input. Sounds like some driver is not requesting bandwidth and is relying on bandwidth requests made by other drivers. Maybe we are missing some "interconnects" property in DT? Thanks, Georgi > Cc: <stable@vger.kernel.org> > Fixes: 16862f1b2110 ("interconnect: qcom: sm8450: Enable sync_state") > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > drivers/interconnect/qcom/sm8450.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/interconnect/qcom/sm8450.c b/drivers/interconnect/qcom/sm8450.c > index b3cd0087377c..952017940b02 100644 > --- a/drivers/interconnect/qcom/sm8450.c > +++ b/drivers/interconnect/qcom/sm8450.c > @@ -1888,7 +1888,6 @@ static struct platform_driver qnoc_driver = { > .driver = { > .name = "qnoc-sm8450", > .of_match_table = qnoc_of_match, > - .sync_state = icc_sync_state, > }, > }; >
On 15/01/2024 17:39, Konrad Dybcio wrote: > On 15.01.2024 16:55, Krzysztof Kozlowski wrote: >> On 15/01/2024 16:38, Konrad Dybcio wrote: >>> On 15.01.2024 16:34, Krzysztof Kozlowski wrote: >>>> Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable >>>> sync_state"), because it causes serial console to corrupt, later freeze >>>> and become either entirely corrupted or only print without accepting any >>>> input. >>>> >>>> Cc: <stable@vger.kernel.org> >>>> Fixes: 16862f1b2110 ("interconnect: qcom: sm8450: Enable sync_state") >>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>> --- >>> >>> What's the board you're testing this on? And kernel base revision? >> >> HDK8450 >> >>> >>> The symptoms you mentioned happened for me with this on some recent >>> -next: >> >> This was bisected, so all mainline kernels with this patch. Reverting >> this patch helps (on top of that commit or on next). > > I don't quite get your answer. Was reverting \/ the solution for you? Yes... Best regards, Krzysztof
On 15/01/2024 17:44, Georgi Djakov wrote: > On 15.01.24 17:34, Krzysztof Kozlowski wrote: >> Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable >> sync_state"), because it causes serial console to corrupt, later freeze >> and become either entirely corrupted or only print without accepting any >> input. > > Sounds like some driver is not requesting bandwidth and is relying on > bandwidth requests made by other drivers. Maybe we are missing some > "interconnects" property in DT? Yes, the debug UART (console) misses the interconnects. They could be added but it does not change the fact that console is broken since v6.6 and this was probably never tested on actual hardware :/ Best regards, Krzysztof
On 15.01.2024 18:59, Krzysztof Kozlowski wrote: > On 15/01/2024 17:44, Georgi Djakov wrote: >> On 15.01.24 17:34, Krzysztof Kozlowski wrote: >>> Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable >>> sync_state"), because it causes serial console to corrupt, later freeze >>> and become either entirely corrupted or only print without accepting any >>> input. >> >> Sounds like some driver is not requesting bandwidth and is relying on >> bandwidth requests made by other drivers. Maybe we are missing some >> "interconnects" property in DT? > > Yes, the debug UART (console) misses the interconnects. They could be > added but it does not change the fact that console is broken since v6.6 > and this was probably never tested on actual hardware :/ This patch? I definitely tested it out on a headless remote board.. Konrad
On 15/01/2024 19:17, Konrad Dybcio wrote: > On 15.01.2024 18:59, Krzysztof Kozlowski wrote: >> On 15/01/2024 17:44, Georgi Djakov wrote: >>> On 15.01.24 17:34, Krzysztof Kozlowski wrote: >>>> Revert commit 16862f1b2110 ("interconnect: qcom: sm8450: Enable >>>> sync_state"), because it causes serial console to corrupt, later freeze >>>> and become either entirely corrupted or only print without accepting any >>>> input. >>> >>> Sounds like some driver is not requesting bandwidth and is relying on >>> bandwidth requests made by other drivers. Maybe we are missing some >>> "interconnects" property in DT? >> >> Yes, the debug UART (console) misses the interconnects. They could be >> added but it does not change the fact that console is broken since v6.6 >> and this was probably never tested on actual hardware :/ > > This patch? I definitely tested it out on a headless remote board.. OK, then maybe something changed between your tests and when it was applied? Anyway issue is reproducible 100%. Even older kernel (v6.5) with your commit cherry-picked fails. Best regards, Krzysztof
diff --git a/drivers/interconnect/qcom/sm8450.c b/drivers/interconnect/qcom/sm8450.c index b3cd0087377c..952017940b02 100644 --- a/drivers/interconnect/qcom/sm8450.c +++ b/drivers/interconnect/qcom/sm8450.c @@ -1888,7 +1888,6 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sm8450", .of_match_table = qnoc_of_match, - .sync_state = icc_sync_state, }, };