Message ID | 20231212142509.655094-1-amadeus@jmu.edu.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7757716vqy; Tue, 12 Dec 2023 06:26:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmm+zMY8b7frrD67+niCGXPl4C9wbZGw9DUsipa4i94010hlbk7j7jvULUIwJ0sk8n0Irp X-Received: by 2002:a05:6e02:170d:b0:35d:59a2:bc6 with SMTP id u13-20020a056e02170d00b0035d59a20bc6mr5114637ill.92.1702391161867; Tue, 12 Dec 2023 06:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702391161; cv=none; d=google.com; s=arc-20160816; b=pz42rDBqsp/Jk/iux4M7tGXvrTT0KWs4+KH3z+0QHVeYhkfbnFRT7XUWmo3VdFtpWh IW6M5XpnJTlECC+9L+sXGPJv1gxyqvowAdnMOBrPtTsY9wAImcjHK6zqRc1mStITv7m7 aOuXtHCGPV22T9kDvhbgyjGGc1pDTkG8NtP9TVnuOy65V7wf5xhwlU6c/J/QlURgj+wA 6/uIWolt8uH1XXOVGqnllD/ZhJwcAvwAbRGZe/3o1B7VgVxnkpRVWEo4zr/jYsvbQB6X v8EwnXAHNDobI/zj7NE6r4B/WsxMHg+50gxMgPq/2xhqRqpQjKzkYKx/PQYdD4Ip14Aj szxw== 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; bh=AtYcRtgphAoZDtgxEUi8yJ3ABkFvwyDEddoxR6SX4Vk=; fh=g+nNahtOuvuZvULWqGy4b+lP5w8oigRdrbxegyQVqhY=; b=o7Qg5l+s4UTWmPvHZxFOg2oX+GVWqVgT/74ZfrdxXls3Iebb0OppxW15DSXR/54Di9 HOacWhV3eyg6FMbzoE9AGNmIJx5N0mLXZ43q/zTQ2Q+rk0kf96bY/hc5mtWrLK0G9vA0 XEIwwdZOQUjqmq53WBnlCVIZySnYGiDbpcKmaEPDf9bNp/lp0+Aezhy/aJCbrKLfP7HA yhh9xinJiOC2t3x26fBfvChAwIlE9JxB7gD4OIE6//UcdNVy1MlkfnsqgAdbN2on+/e5 D6CCuWA6v1VYqTetdPlqSD6xDy8nqYHYQixwO8DxmCbF5WbjXnqftYXDpX6i2STodcYr 55tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e4-20020a63e004000000b005b902b61cbcsi7988079pgh.723.2023.12.12.06.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 06:26:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C6153807751E; Tue, 12 Dec 2023 06:25:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376573AbjLLOZc (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Tue, 12 Dec 2023 09:25:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376451AbjLLOZb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Dec 2023 09:25:31 -0500 Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35F3A8F; Tue, 12 Dec 2023 06:25:32 -0800 (PST) Received: from amadeus-Vostro-3710.lan (unknown [113.118.189.146]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 0AA0C800015; Tue, 12 Dec 2023 22:25:13 +0800 (CST) From: Chukun Pan <amadeus@jmu.edu.cn> To: Bjorn Andersson <andersson@kernel.org> Cc: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Ohad Ben-Cohen <ohad@wizery.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Chukun Pan <amadeus@jmu.edu.cn> Subject: [PATCH 1/1] hwspinlock: qcom: fix tcsr data for ipq6018 Date: Tue, 12 Dec 2023 22:25:09 +0800 Message-Id: <20231212142509.655094-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSEtNVkwdSh8ZTEoZQxhNGFUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUpPTVlXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8c5e6ae656b03akuuu0aa0c800015 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PiI6Agw5Cjw6Pz9PUR9JKRdK CS8aCR5VSlVKTEtJSEJKSkpIQ0tJVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUpPTVlXWQgBWUFJQ0xINwY+ X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 06:25:51 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785086514786394321 X-GMAIL-MSGID: 1785086514786394321 |
Series |
[1/1] hwspinlock: qcom: fix tcsr data for ipq6018
|
|
Commit Message
Chukun Pan
Dec. 12, 2023, 2:25 p.m. UTC
The tcsr_mutex hwlock register of the ipq6018 SoC is 0x20000[1], which
should not use the max_register configuration of older SoCs. This will
cause smem to be unable to probe, further causing devices that use
smem-part to parse partitions to fail to boot.
[ 2.118227] qcom-smem: probe of 4aa00000.memory failed with error -110
[ 22.273120] platform 79b0000.nand-controller: deferred probe pending
Remove 'qcom,ipq6018-tcsr-mutex' setting from of_match to fix this.
[1] commit 72fc3d58b87b ("arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size")
Fixes: 5d4753f741d8 ("hwspinlock: qcom: add support for MMIO on older SoCs")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
drivers/hwspinlock/qcom_hwspinlock.c | 1 -
1 file changed, 1 deletion(-)
Comments
On 12/12/2023 7:55 PM, Chukun Pan wrote: > The tcsr_mutex hwlock register of the ipq6018 SoC is 0x20000[1], which > should not use the max_register configuration of older SoCs. This will > cause smem to be unable to probe, further causing devices that use > smem-part to parse partitions to fail to boot. > > [ 2.118227] qcom-smem: probe of 4aa00000.memory failed with error -110 > [ 22.273120] platform 79b0000.nand-controller: deferred probe pending > > Remove 'qcom,ipq6018-tcsr-mutex' setting from of_match to fix this. Hi Chukun, This patch was already posted [2] and Bjorn applied the same [3]. Hi Bjorn, This patch is missing in linux-next. Could you please help check ? Thanks, Vignesh [2] https://lore.kernel.org/all/20230905095535.1263113-3-quic_viswanat@quicinc.com/ [3] https://lore.kernel.org/all/169522934567.2501390.1112201061322984444.b4-ty@kernel.org/ > > [1] commit 72fc3d58b87b ("arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size") > Fixes: 5d4753f741d8 ("hwspinlock: qcom: add support for MMIO on older SoCs") > Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> > --- > drivers/hwspinlock/qcom_hwspinlock.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c > index a0fd67fd2934..814dfe8697bf 100644 > --- a/drivers/hwspinlock/qcom_hwspinlock.c > +++ b/drivers/hwspinlock/qcom_hwspinlock.c > @@ -115,7 +115,6 @@ static const struct of_device_id qcom_hwspinlock_of_match[] = { > { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex }, > { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex }, > { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, > - { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, > { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, > { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, > { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index a0fd67fd2934..814dfe8697bf 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -115,7 +115,6 @@ static const struct of_device_id qcom_hwspinlock_of_match[] = { { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex }, { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex }, { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, - { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },