Message ID | 20230323220518.3247530-1-m.szyprowski@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:1828:b0:ab:1fc6:e12a with SMTP id l40csp85513dyk; Thu, 23 Mar 2023 15:22:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bJZ40H7rqKiyivTUozeTk3ADPFJp46fQzalgAlA5G2/eEFOZLzwESxGZU8SbSjsdfcRRyz X-Received: by 2002:a17:907:2d29:b0:8fa:b2b:9de with SMTP id gs41-20020a1709072d2900b008fa0b2b09demr706562ejc.25.1679610134803; Thu, 23 Mar 2023 15:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679610134; cv=none; d=google.com; s=arc-20160816; b=wsn9KgN90xkY60YsoQihrXHPRZEH3N2YqrFNE8TvoNfcxdAEGiyMRpJ/KBAmcsdPD+ 892fTskj9uQPz0XB+qNcdPRj6KEjdJoqV7wwuPrT28Et/8NGLCeq39S927vOd3UvFxFB MLTsA+B7w3kXAtpVmCQlAIfeSCUTcvmoyjHKYzS0gM7XOUIyb3mn/WOIgc3le5W9QvhH NbN8uU8j9WTFFp31M8A1OtrXgZrLhRcfYLpCJ0wxGG2xB/i9/DvkSiF42ZPQEHc8Fq/E XQova7kcgNujmzbYCTSDVRv7McsVq16Br/mm0a2WeBcS6pfy0NI7Gg5GBoOsVZIeKVDh BqUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:cms-type:content-transfer-encoding :mime-version:message-id:date:subject:cc:from:dkim-signature :dkim-filter; bh=5Lbl5bKgLKPGiIQxLj5SL1DAD29KRyFFElVJqXhN01o=; b=ev9AGfzQXNPGYizTYmpcxyeadTiw86562uvmUAMObh2H+EcJIsYKWTI8lr57xtEzkB 6v4VfoNAmoz3rWYshJ13kpZD8TOMxMHUUulJPY5xknfmMmR1YYdLc+OhOtKyaVxsfPRl QT5QjMwVw+XwrCPk3ZuQk1dO5RuY9kGXpzJ5/kHaOl8NGAeAKEHDokt2z2aeTZTtVHHH aYVCDl07loXCMXEBO3KMO2WUQfuKCvBc9LdyRbSquOE4J3P4GUukGGkneiVohXIJfc35 YLXomrbzveoPZZuEk+SXU84HIinRF0ZHyjRGQDUXt9iZOgd61vZxRws84ErmvrOj4Tmi P8GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@samsung.com header.s=mail20170921 header.b=d5wc0sr+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ke27-20020a17090798fb00b008b1785971dcsi19425128ejc.630.2023.03.23.15.21.47; Thu, 23 Mar 2023 15:22:14 -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=fail header.i=@samsung.com header.s=mail20170921 header.b=d5wc0sr+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbjCWWFg (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Thu, 23 Mar 2023 18:05:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjCWWFe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 23 Mar 2023 18:05:34 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DEA4113C3 for <linux-kernel@vger.kernel.org>; Thu, 23 Mar 2023 15:05:33 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230323220530euoutp0231692821bda758f69d0ed88f92ea7c85~PK5rwcc8g0050700507euoutp02k for <linux-kernel@vger.kernel.org>; Thu, 23 Mar 2023 22:05:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230323220530euoutp0231692821bda758f69d0ed88f92ea7c85~PK5rwcc8g0050700507euoutp02k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1679609130; bh=5Lbl5bKgLKPGiIQxLj5SL1DAD29KRyFFElVJqXhN01o=; h=From:To:Cc:Subject:Date:References:From; b=d5wc0sr+W25PkNPpmFNdZnyVh3Nr9Itmh3kQbP9ts58JQSDrM2jXgmCi4Fv+Q3dg9 Jx5RilDnbLTW8TfIm39YN0hDHKVwVsbmVJT0KdViipldIYa3MU/l+cHnylGNbLprra UllymMbizNnuCtX/mJQpdBJ83iJ4GSS3haGZ8PJM= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230323220530eucas1p2844a72b527bddc25652d795d16ae1fc4~PK5rhdLH40921709217eucas1p2I; Thu, 23 Mar 2023 22:05:30 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D6.E4.10014.A2DCC146; Thu, 23 Mar 2023 22:05:30 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230323220529eucas1p12e5e1bbe2a31fe775cd9e6244f9282ce~PK5rNWmq63056830568eucas1p1d; Thu, 23 Mar 2023 22:05:29 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230323220529eusmtrp21b32b8b32c1e6452ca04811db18af17b~PK5rMmz931308013080eusmtrp2G; Thu, 23 Mar 2023 22:05:29 +0000 (GMT) X-AuditID: cbfec7f5-ba1ff7000000271e-3a-641ccd2a1600 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 48.CD.09583.92DCC146; Thu, 23 Mar 2023 22:05:29 +0000 (GMT) Received: from AMDC2765.eu.corp.samsungelectronics.net (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230323220529eusmtip1f4f067690a3006c03da172c780237ffa~PK5qtHyT41538215382eusmtip1V; Thu, 23 Mar 2023 22:05:29 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Douglas Anderson <dianders@chromium.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS Date: Thu, 23 Mar 2023 23:05:18 +0100 Message-Id: <20230323220518.3247530-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRmVeSWpSXmKPExsWy7djPc7paZ2VSDC7sYrM49/g3i8W2DhuL qQ+fsFmcXXaQzaJj8nYWi29XOpgsJu4/y25xedccNou1R+6yO3B6zG64yOKxc9Zddo9NqzrZ PO5c28Pm0bdlFaPH501yAWxRXDYpqTmZZalF+nYJXBnbD11lK+jjqDi7Pb6BsZW9i5GTQ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qzrZ PO5c28Pm0bdlFaPH501yAWxRejZF+aUlqQoZ+cUltkrRhhZGeoaWFnpGJpZ6hsbmsVZGpkr6 djYpqTmZZalF+nYJehnbD11lK+jjqDi7Pb6BsZW9i5GTQ0LAROLM0ttsXYxcHEICSxklJl65 BpWQkTg5rYEVwhaW+HOtC6qomUli2danYEVsAoYSXW9BEpwcIgIsEiu/f2cBKWIWuMckMW/e T0aQhLCAk8SsFZ/BJrEIqEpcO3EGrJlXwF7iyYNuZogN8hL7D55lhogLSpyc+YQFxGYGijdv nc08gZFvFpLULCSpBYxMqxhFUkuLc9Nzi430ihNzi0vz0vWS83M3MQIjYNuxn1t2MK589VHv ECMTB+MhRgkOZiURXjdmiRQh3pTEyqrUovz4otKc1OJDjKZA901klhJNzgfGYF5JvKGZgamh iZmlgamlmbGSOK9nQUeikEB6YklqdmpqQWoRTB8TB6dUA1OvzsmlFY/bg1s0H5zxMa+MvtRw wFw3qOLPiYO+zj5/5t7ffsXGQWRKxvMox6kiIvbHnHo//FjBzvyklJnbe9qRt3HmISdC7LP+ 7inWeeqlXlJ7bKPBjNcHbjGJf7RyWMqzYH7/naPXdX6+2zaLITBghWQuM1uw60U/nQo/Cc0s Hf7F/5ys550NZ5hz6smBdYdvXjs+I/7DPjWZU6afTiW/sb+f0W8i2vE7LKHtwy7Tc2GB/O+z DhYdLv6sKtJZdfkJi+l7jS6t3Cd6HtqO35LfxicG/2+KNRTWC2VcvsKsjfusa7W3rTBXzPLW q0xW184w2K0+WJDHlblktVDv2oSbuxbE3/9uo7JzjuHGU0osxRmJhlrMRcWJALO8wC0JAwAA X-CMS-MailID: 20230323220529eucas1p12e5e1bbe2a31fe775cd9e6244f9282ce X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230323220529eucas1p12e5e1bbe2a31fe775cd9e6244f9282ce X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230323220529eucas1p12e5e1bbe2a31fe775cd9e6244f9282ce References: <CGME20230323220529eucas1p12e5e1bbe2a31fe775cd9e6244f9282ce@eucas1p1.samsung.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761198204179325436?= X-GMAIL-MSGID: =?utf-8?q?1761198876870982499?= |
Series |
regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS
|
|
Commit Message
Marek Szyprowski
March 23, 2023, 10:05 p.m. UTC
Restore synchronous probing for 'qcom,pm8150-rpmh-regulators' because
otherwise the UFSHC device is not properly initialized on QRB5165-RB5
board.
Fixes: ed6962cc3e05 ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers between 4.14 and 4.19")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
drivers/regulator/qcom-rpmh-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 23 Mar 2023 23:05:18 +0100, Marek Szyprowski wrote: > Restore synchronous probing for 'qcom,pm8150-rpmh-regulators' because > otherwise the UFSHC device is not properly initialized on QRB5165-RB5 > board. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS commit: 58973046c1bf782cac01644a9dcd8e5bba9c2f16 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
Hi, On 23.03.2023 23:08, Doug Anderson wrote: > On Thu, Mar 23, 2023 at 3:05 PM Marek Szyprowski > <m.szyprowski@samsung.com> wrote: >> Restore synchronous probing for 'qcom,pm8150-rpmh-regulators' because >> otherwise the UFSHC device is not properly initialized on QRB5165-RB5 >> board. >> >> Fixes: ed6962cc3e05 ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers between 4.14 and 4.19") >> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> >> --- >> drivers/regulator/qcom-rpmh-regulator.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > I don't object to this patch landing temporarily, but can you provide > any more details, please? On Qualcomm Chromebooks I'm not seeing any > issues with RPMH regulators probing asynchronously, so I can only > assume that there's a bug in the UFSHC driver that's being tickled. You are right. I've analyzed this case further and it turned out that it was my fault. In short - 'rootwait' kernel cmdline parameter was missing and root was specified as '/dev/sda7'. UFSHC driver properly retried probing after it cannot get its regulators, but it happened at the same time when kernel tried to mount rootfs. I was confused that this is really a regulator issue, because the mentioned /dev/sda* devices were properly reported as available in the system in the root mounting failure message, but adding the 'rootwait' cmdline parameter fixed this problem. It would be safe to revert this change. I'm really sorry for the false report and the noise. Best regards
On Fri, Mar 24, 2023 at 12:18:53PM +0100, Marek Szyprowski wrote: > Hi, > > On 23.03.2023 23:08, Doug Anderson wrote: > > On Thu, Mar 23, 2023 at 3:05 PM Marek Szyprowski > > <m.szyprowski@samsung.com> wrote: > >> Restore synchronous probing for 'qcom,pm8150-rpmh-regulators' because > >> otherwise the UFSHC device is not properly initialized on QRB5165-RB5 > >> board. > >> > >> Fixes: ed6962cc3e05 ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers between 4.14 and 4.19") > >> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> > >> --- > >> drivers/regulator/qcom-rpmh-regulator.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > > I don't object to this patch landing temporarily, but can you provide > > any more details, please? On Qualcomm Chromebooks I'm not seeing any > > issues with RPMH regulators probing asynchronously, so I can only > > assume that there's a bug in the UFSHC driver that's being tickled. > > You are right. I've analyzed this case further and it turned out that it > was my fault. In short - 'rootwait' kernel cmdline parameter was missing > and root was specified as '/dev/sda7'. > > UFSHC driver properly retried probing after it cannot get its > regulators, but it happened at the same time when kernel tried to mount > rootfs. I was confused that this is really a regulator issue, because > the mentioned /dev/sda* devices were properly reported as available in > the system in the root mounting failure message, but adding the > 'rootwait' cmdline parameter fixed this problem. It would be safe to > revert this change. I'm really sorry for the false report and the noise. > It looks like this got applied, but reading your above message makes it seem like this patch is not necessary. Did I understand that correctly? If so we should see if Mark can drop / revert it? Thanks, Andrew
Hi, On Fri, Mar 24, 2023 at 7:12 AM Andrew Halaney <ahalaney@redhat.com> wrote: > > On Fri, Mar 24, 2023 at 12:18:53PM +0100, Marek Szyprowski wrote: > > Hi, > > > > On 23.03.2023 23:08, Doug Anderson wrote: > > > On Thu, Mar 23, 2023 at 3:05 PM Marek Szyprowski > > > <m.szyprowski@samsung.com> wrote: > > >> Restore synchronous probing for 'qcom,pm8150-rpmh-regulators' because > > >> otherwise the UFSHC device is not properly initialized on QRB5165-RB5 > > >> board. > > >> > > >> Fixes: ed6962cc3e05 ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers between 4.14 and 4.19") > > >> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> > > >> --- > > >> drivers/regulator/qcom-rpmh-regulator.c | 2 +- > > >> 1 file changed, 1 insertion(+), 1 deletion(-) > > > I don't object to this patch landing temporarily, but can you provide > > > any more details, please? On Qualcomm Chromebooks I'm not seeing any > > > issues with RPMH regulators probing asynchronously, so I can only > > > assume that there's a bug in the UFSHC driver that's being tickled. > > > > You are right. I've analyzed this case further and it turned out that it > > was my fault. In short - 'rootwait' kernel cmdline parameter was missing > > and root was specified as '/dev/sda7'. > > > > UFSHC driver properly retried probing after it cannot get its > > regulators, but it happened at the same time when kernel tried to mount > > rootfs. I was confused that this is really a regulator issue, because > > the mentioned /dev/sda* devices were properly reported as available in > > the system in the root mounting failure message, but adding the > > 'rootwait' cmdline parameter fixed this problem. It would be safe to > > revert this change. I'm really sorry for the false report and the noise. > > > > It looks like this got applied, but reading your above message makes it > seem like this patch is not necessary. Did I understand that correctly? > > If so we should see if Mark can drop / revert it? Ah, sorry. I didn't reply with breadcrumbs. The revert is at: https://lore.kernel.org/r/20230324063357.1.Ifdf3625a3c5c9467bd87bfcdf726c884ad220a35@changeid -Doug
diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 4826d60e5d95..903032b2875f 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -1462,7 +1462,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table); static struct platform_driver rpmh_regulator_driver = { .driver = { .name = "qcom-rpmh-regulator", - .probe_type = PROBE_PREFER_ASYNCHRONOUS, + .probe_type = PROBE_FORCE_SYNCHRONOUS, .of_match_table = of_match_ptr(rpmh_regulator_match_table), }, .probe = rpmh_regulator_probe,