From: Jinfeng Wang <jinfeng.wang.cn@windriver.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: d-gole@ti.com, ronald.wahl@legrand.com, broonie@kernel.org,
matthew.gerlach@altera.com, khairul.anuar.romli@altera.com,
stable@vger.kernel.org
Subject: Re: [PATCH 6.6 1/2] Revert "spi: cadence-quadspi: fix cleanup of rx_chan on failure paths"
Date: Thu, 4 Sep 2025 14:54:48 +0800 [thread overview]
Message-ID: <de014a11-0c2c-4022-b14c-faf01e9d76b4@windriver.com> (raw)
In-Reply-To: <2025090339-pursuable-gradient-4781@gregkh>
On 9/3/25 16:22, Greg KH wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Wed, Sep 03, 2025 at 03:58:14PM +0800, jinfeng.wang.cn@windriver.com wrote:
>> From: Jinfeng Wang <jinfeng.wang.cn@windriver.com>
>>
>> This reverts commit 1af6d1696ca40b2d22889b4b8bbea616f94aaa84.
> What is the upstream commit id for this?
I'm sorry, I didn't describe this clearly. Let me try to summarize and
clarify the issue:
### Background on the Commits and Dependencies:
- **Upstream Commit Chain**:
- Original feature: 0578a6dbfe75 ("spi: spi-cadence-quadspi: add
runtime pm support") – Introduces runtime power management support.
- Fix 1: 86401132d7bb ("spi: spi-cadence-quadspi: Fix missing unwind
goto warnings") – Fix unwind issue introduced by the previous commit.
- Fix 2: b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime
unbalance") – Fix unbalance issue introduced by the previous
two commits.
- Fix 3: 04a8ff1bc351 ("spi: cadence-quadspi: fix cleanup of rx_chan
on failure paths") – Fix cleanup issue introduced by previous commit.
- **Backports to 6.6.y Stable Branch**:
- Only the later fixes (Fix 2 and Fix 3) were backported:
- b07f349d1864 as cdfb20e4b34a ("spi: spi-cadence-quadspi: Fix pm
runtime unbalance") – Note: This backport differs from the upstream commit.
- 04a8ff1bc351 as 1af6d1696ca4 ("spi: cadence-quadspi: fix cleanup
of rx_chan on failure paths").
- The foundational commits (0578a6dbfe75 and 86401132d7bb) were
**not** backported to 6.6.y.
### The Problem:
- Without reverting these backports, we see the error: "cadence-qspi
ff8d2000.spi: Unbalanced pm_runtime_enable!" on 6.6.y.
- This error occurs because:
- The backported fixes (especially cdfb20e4b34a) assume the presence
of the earlier commits (0578a6dbfe75 and 86401132d7bb), which isn't in
6.6.y.
### Proposed Solutions and Testing:
- **Option 1: Revert the Backports** (this patch):
- Revert cdfb20e4b34a and 1af6d1696ca4.
- Result: The "unbalanced pm_runtime_enable" error disappears, and
the system works without issues.
- **Option 2: Backport the Foundational Commits**:
- First revert cdfb20e4b34a and 1af6d1696ca4. Then backport the
original feature and Fix 1, Fix 2, Fix 3, and 959043afe53a to avoid boot
hang.(I just identified the cause of boot hang. The commit 959043afe53a
is key to preventing the hang)
- Result: The "unbalanced pm_runtime_enable" error does not appear.
The newer kernels have all these commits including 959043afe53a, so
there is no boot hang issue in newer kernels.
I think Option 1 is simple and easy to fix "Unbalanced
pm_runtime_enable!" error. My patches are Option 1. If you have any
objections, please let me know.
Thanks.
Jinfeng
>
>> There is cadence-qspi ff8d2000.spi: Unbalanced pm_runtime_enable! error
>> without this revert.
>>
>> After reverting commit cdfb20e4b34a ("spi: spi-cadence-quadspi: Fix pm runtime unbalance")
>> and commit 1af6d1696ca4 ("spi: cadence-quadspi: fix cleanup of rx_chan on failure paths"),
>> Unbalanced pm_runtime_enable! error does not appear.
>>
>> These two commits are backported from upstream commit b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime unbalance")
>> and commit 04a8ff1bc351 ("spi: cadence-quadspi: fix cleanup of rx_chan on failure paths").
>>
>> The commit 04a8ff1bc351 ("spi: cadence-quadspi: fix cleanup of rx_chan on failure paths")
>> fix commit b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime unbalance").
>>
>> The commit b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime unbalance") fix
>> commit 86401132d7bb ("spi: spi-cadence-quadspi: Fix missing unwind goto warnings").
>>
>> The commit 86401132d7bb ("spi: spi-cadence-quadspi: Fix missing unwind goto warnings") fix
>> commit 0578a6dbfe75 ("spi: spi-cadence-quadspi: add runtime pm support").
> I am sorry, but I can not parse any of this.
>
>> 6.6.y only backport commit b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime unbalance")
>> and commit 04a8ff1bc351 ("spi: cadence-quadspi: fix cleanup of rx_chan on failure paths"),
>> but does not backport commit 0578a6dbfe75 ("spi: spi-cadence-quadspi: add runtime pm support")
>> and commit 86401132d7bb ("spi: spi-cadence-quadspi: Fix missing unwind goto warnings").
>> And the backport of commit b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime unbalance")
>> differs with the original patch. So there is Unbalanced pm_runtime_enable error.
>>
>> If revert the backport for commit b07f349d1864 ("spi: spi-cadence-quadspi: Fix pm runtime unbalance")
>> and commit 04a8ff1bc351 ("spi: cadence-quadspi: fix cleanup of rx_chan on failure paths"), there is no error.
>> If backport commit 0578a6dbfe75 ("spi: spi-cadence-quadspi: add runtime pm support") and
>> commit 86401132d7bb ("spi: spi-cadence-quadspi: Fix missing unwind goto warnings"), there
>> is hang during booting. I didn't find the cause of the hang.
> Is this hang also in newer kernels? Why is this only an issue in older
> kernels?
>
> thanks,
>
> greg k-h
prev parent reply other threads:[~2025-09-04 6:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 7:58 [PATCH 6.6 1/2] Revert "spi: cadence-quadspi: fix cleanup of rx_chan on failure paths" jinfeng.wang.cn
2025-09-03 7:58 ` [PATCH 6.6 2/2] Revert "spi: spi-cadence-quadspi: Fix pm runtime unbalance" jinfeng.wang.cn
2025-09-03 8:22 ` [PATCH 6.6 1/2] Revert "spi: cadence-quadspi: fix cleanup of rx_chan on failure paths" Greg KH
2025-09-04 6:54 ` Jinfeng Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=de014a11-0c2c-4022-b14c-faf01e9d76b4@windriver.com \
--to=jinfeng.wang.cn@windriver.com \
--cc=broonie@kernel.org \
--cc=d-gole@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=khairul.anuar.romli@altera.com \
--cc=matthew.gerlach@altera.com \
--cc=ronald.wahl@legrand.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox