Linux CXL
 help / color / mirror / Atom feed
* [PATCH] hw/pci-bridge/pci_expander_bridge: Fix HDM passthrough condition
@ 2025-03-23  8:04 Li Zhijian
  2025-04-07  2:59 ` Zhijian Li (Fujitsu)
  0 siblings, 1 reply; 5+ messages in thread
From: Li Zhijian @ 2025-03-23  8:04 UTC (permalink / raw)
  To: Jonathan Cameron, qemu-devel
  Cc: Fan Ni, linux-cxl, Marcel Apfelbaum, Li Zhijian

Reverse the logical condition for HDM passthrough support in
pci_expander_bridge. This patch ensures the HDM passthrough condition
is evaluated only when hdm_for_passthrough is set to true, aligning
behavior with intended semantics and comments.

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
---

This change corrects what appears to be a previous mistake in logic
regarding HDM passthrough conditions.
---
 hw/pci-bridge/pci_expander_bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c
index 3396ab4bdd..25f8922d76 100644
--- a/hw/pci-bridge/pci_expander_bridge.c
+++ b/hw/pci-bridge/pci_expander_bridge.c
@@ -307,7 +307,7 @@ static void pxb_cxl_dev_reset(DeviceState *dev)
      * The CXL specification allows for host bridges with no HDM decoders
      * if they only have a single root port.
      */
-    if (!PXB_CXL_DEV(dev)->hdm_for_passthrough) {
+    if (PXB_CXL_DEV(dev)->hdm_for_passthrough) {
         dsp_count = pcie_count_ds_ports(hb->bus);
     }
     /* Initial reset will have 0 dsp so wait until > 0 */
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-29 15:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-23  8:04 [PATCH] hw/pci-bridge/pci_expander_bridge: Fix HDM passthrough condition Li Zhijian
2025-04-07  2:59 ` Zhijian Li (Fujitsu)
2025-04-15 16:47   ` Jonathan Cameron
2025-04-29  1:11     ` Zhijian Li (Fujitsu)
2025-04-29 15:50       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox