From: Damien Le Moal <dlemoal@kernel.org>
To: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
linux-ide@vger.kernel.org, mika.westerberg@intel.com,
anshuman.gupta@intel.com, "Kurmi,
Suresh Kumar" <suresh.kumar.kurmi@intel.com>,
"Saarinen, Jani" <jani.saarinen@intel.com>,
lucas.demarchi@intel.com, Niklas Cassel <cassel@kernel.org>
Subject: Re: Regression on linux-next (next-20250708)
Date: Tue, 29 Jul 2025 07:20:36 +0900 [thread overview]
Message-ID: <8518279b-c16c-4333-b11b-88bd114a1f1b@kernel.org> (raw)
In-Reply-To: <8557d51a-3ee6-4f39-9bf7-5bd3d05c524f@intel.com>
On 7/29/25 01:37, Borah, Chaitanya Kumar wrote:
>> The question is though: do we want the user to "ignore" hotplug capability and
>> instead priviledge low power states. I guess we should have such capability.
>>
>
> Atleast a case can be made for debugging and testing use-cases.
>
>>> Also, are there other ways to detect a port is external other than
>>> receiving EOPNOTSUPP on the sysfs write?
>>
>> There is not. But it would be easy to add a sysfs port attribute, e.g.
>> /sys/class/ata_port/ata1/external which says "0" for regular ports and "1" for
>> external ports. We could also make this attribute writable in the case of
>> external port so that doing:
>>
>> echo 0 > /sys/class/ata_port/ata1/external
>>
>> forces the kernel to ignore the external nature of the port and allow user
>> control of the port/device LPM state.
>>
>> Would that work for your case ?
>>
>
> Something like this should solve our problem.
I looked at this, but it is not a trivial change because of how we manage
features, which is that we do not really differentiate between "port/device
supports feature X" and "Disable X because of Y". So disabling something at
runtime instead of at device scan time (or revalidation) needs some code
massaging to remember the initial "port/device supports feature X".
One thing that would be easy to add is a "libata.force=ignore_external_ports"
module parameter to completely ignore the external nature of ports. That
probably will be the easiest solution for your case.
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2025-07-28 22:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 6:43 Regression on linux-next (next-20250708) Borah, Chaitanya Kumar
2025-07-25 10:33 ` Damien Le Moal
2025-07-28 16:37 ` Borah, Chaitanya Kumar
2025-07-28 22:20 ` Damien Le Moal [this message]
2025-07-28 4:11 ` Damien Le Moal
2025-07-28 16:24 ` Borah, Chaitanya Kumar
2025-07-28 22:33 ` Damien Le Moal
2025-07-29 8:43 ` Borah, Chaitanya Kumar
2025-07-28 5:31 ` Damien Le Moal
2025-07-28 16:33 ` Borah, Chaitanya Kumar
2025-07-28 22:30 ` Damien Le Moal
2025-07-29 8:58 ` Borah, Chaitanya Kumar
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=8518279b-c16c-4333-b11b-88bd114a1f1b@kernel.org \
--to=dlemoal@kernel.org \
--cc=anshuman.gupta@intel.com \
--cc=cassel@kernel.org \
--cc=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.saarinen@intel.com \
--cc=linux-ide@vger.kernel.org \
--cc=lucas.demarchi@intel.com \
--cc=mika.westerberg@intel.com \
--cc=suresh.kumar.kurmi@intel.com \
/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