Linux kernel regressions
 help / color / mirror / Atom feed
From: Ricky WU <ricky_wu@realtek.com>
To: Jade Lovelace <lists@jade.fyi>
Cc: "paul.grandperrin@gmail.com" <paul.grandperrin@gmail.com>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
	Roger Tseng <rogerable@realtek.com>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>,
	Wei_wang <wei_wang@realsil.com.cn>
Subject: RE: Regression since 6.1.46 (commit 8ee39ec): rtsx_pci from drivers/misc/cardreader breaks NVME power state, preventing system boot
Date: Tue, 19 Sep 2023 09:11:04 +0000	[thread overview]
Message-ID: <5acda839bf8b4d5f960d623662b001ec@realtek.com> (raw)
In-Reply-To: <20230919080447.2594902-3-lists@jade.fyi>


Hi Jade,

I think you have some misunderstand, our set clkreg register is not go directly to control CLKREQ# after setting....
Our device keep CLKREQ# low until enter ASPM, so the system let our device to ASPM mode then we release this CLKREQ# pin

> 
> > In the past if the BIOS(config space) not set L1-substate our driver will keep
> drive low CLKREQ# when HOST want to enter power saving state that make
> whole system not enter the power saving state.
> 
> > But this patch we release the CLKREQ# to HOST, make whole system can
> enter power saving state success when the HOST want to enter the power
> saving state, but I don't  know why this system can not wake out success from
> power saving state"
> 
> >
> 
> > This is a PCIE CLKREQ# design problem on those platform, the pcie spec
> allow device release the CLKREQ# to HOST, this patch only do this....
> 
> 
> 
> I spent some time debugging today but I am not a PCIe expert. I think
> 
> that the card reader is actually violating the PCIe spec by not forcing
> 
> CLKREQ# low on systems that don't support ASPM, as appears to be done
> 
> (accidentally?) by the regressing driver change.
> 
> 
> 
> The kernel logs on the affected system states the following:
> 
> [    0.142326] ACPI FADT declares the system doesn't support PCIe ASPM, so
> disable it
> 
> 
> 
> The PCIe 3.0 spec states (in the description of the Link Control
> 
> Register), regarding enabling clock power management:
> 
> > Enable Clock Power Management – Applicable only for Upstream Ports and
> with form factors that support a “Clock Request” (CLKREQ#) mechanism, this
> bit operates as follows:
> 
> > 0b Clock power management is disabled and device must hold CLKREQ#
> signal low.
> 
> > 1b When this bit is Set, the device is permitted to use CLKREQ# signal to
> power manage Link clock
> 
> > according to protocol defined in appropriate form factor specification.
> 
> 
> 
> My reading of this is that on this system which does not support ASPM
> 
> and therefore also does not support clock PM, the driver must have the
> 
> device hold the line low, but I may be wrong.
> 
> 
> 
> It's still unclear to me based on studying the schematic of the laptop
> 
> and the PCH datasheet why the one PCIe port is able to break the other
> 
> one like it does. The CLKREQ# lines are simply connected directly to the
> 
> SRCCLKREQ# lines of the PCH, plus a 10k pull-up to 3v3, which seems
> 
> entirely reasonable; any breakage surely would be some software/firmware
> level
> 
> misconfiguration.
> 
> 
> 
> Jade


      reply	other threads:[~2023-09-19  9:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 12:29 Regression since 6.1.46 (commit 8ee39ec): rtsx_pci from drivers/misc/cardreader breaks NVME power state, preventing system boot Paul Grandperrin
2023-09-12 17:10 ` Linux regression tracking (Thorsten Leemhuis)
2023-09-13  5:03   ` Greg KH
2023-09-19  2:20     ` Ricky WU
2023-09-19  7:06       ` Greg KH
2023-09-20  7:30         ` Ricky WU
2023-09-20  7:34           ` Greg KH
2023-09-20  8:32             ` Ricky WU
2023-09-26 11:23               ` Salvatore Bonaccorso
2023-09-26 11:51                 ` Linux regression tracking (Thorsten Leemhuis)
2023-09-20  9:33           ` Paul Grandperrin
2023-09-13  3:10 ` Ricky WU
2023-09-19  8:04   ` Jade Lovelace
2023-09-19  9:11     ` Ricky WU [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=5acda839bf8b4d5f960d623662b001ec@realtek.com \
    --to=ricky_wu@realtek.com \
    --cc=lists@jade.fyi \
    --cc=paul.grandperrin@gmail.com \
    --cc=regressions@lists.linux.dev \
    --cc=rogerable@realtek.com \
    --cc=stable@vger.kernel.org \
    --cc=wei_wang@realsil.com.cn \
    /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