From: Haakon Bugge <haakon.bugge@oracle.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>,
Sinan Kaya <okaya@codeaurora.org>,
Casey Leedom <leedom@chelsio.com>,
Ashok Raj <ashok.raj@intel.com>,
"David S. Miller" <davem@davemloft.net>,
dingtianhong <dingtianhong@huawei.com>,
Alexander Duyck <alexander.h.duyck@intel.com>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PCI/ACPI: Do not fiddle with ExtTag and RO in program_hpx_type2
Date: Wed, 7 Jan 2026 17:58:14 +0000 [thread overview]
Message-ID: <1C290028-E094-48E3-B2CC-29734CEBC97C@oracle.com> (raw)
In-Reply-To: <D49C0D9C-96F9-4D2A-974C-7B6E0CBFB235@oracle.com>
>
>
>> On 5 Dec 2025, at 13:28, Håkon Bugge <Haakon.Bugge@oracle.com> wrote:
>>
>> After commit 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if
>> supported"), the kernel controls enablement of extended tags
>> (ExtTag). Similar, after commit a99b646afa8a ("PCI: Disable PCIe
>> Relaxed Ordering if unsupported"), the kernel controls the relaxed
>> ordering bit (RO), in the sense that the kernel keeps the bit set (if
>> already set) unless the RC does not support it.
>>
>> On some platforms, when program_hpx_type2() is called and the _HPX
>> object's Type2 records are, let's say, dubious, we may end up
>> resetting ExtTag and RO, although they were explicit set or kept set
>> by the OSPM [1].
>>
>> The Advanced Configuration and Power Interface (ACPI) Specification
>> version 6.6 has a provision that gives the OSPM the ability to
>> control these bits any way. In a note in section 6.2.9, it is stated:
>>
>> "OSPM may override the settings provided by the _HPX object's Type2
>> record (PCI Express Settings) or Type3 record (PCI Express Descriptor
>> Settings) when OSPM has assumed native control of the corresponding
>> feature."
>>
>> So, in order to preserve the increased performance of ExtTag and RO on
>> platforms that support any of these, we make sure program_hpx_type2()
>> doesn't reset them.
>>
>> [1] Operating System-directed configuration and Power Management
>>
>> Fixes: 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")
>> Fixes: a99b646afa8a ("PCI: Disable PCIe Relaxed Ordering if unsupported")
>> Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
>
> A gentle ping on this one.
And a re-ping.
Thxs, Håkon
>
> Thxs, Håkon
next prev parent reply other threads:[~2026-01-07 17:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 14:28 [PATCH] PCI/ACPI: Do not fiddle with ExtTag and RO in program_hpx_type2 Håkon Bugge
2025-12-18 12:20 ` Haakon Bugge
2026-01-07 17:58 ` Haakon Bugge [this message]
2026-01-07 18:13 ` Rafael J. Wysocki
2026-01-07 23:22 ` Bjorn Helgaas
2026-01-08 17:53 ` Bjorn Helgaas
2026-01-12 12:07 ` Haakon Bugge
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=1C290028-E094-48E3-B2CC-29734CEBC97C@oracle.com \
--to=haakon.bugge@oracle.com \
--cc=alexander.h.duyck@intel.com \
--cc=ashok.raj@intel.com \
--cc=bhelgaas@google.com \
--cc=davem@davemloft.net \
--cc=dingtianhong@huawei.com \
--cc=leedom@chelsio.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=okaya@codeaurora.org \
--cc=rafael@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