public inbox for linux-coco@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization
@ 2026-01-11  7:38 Li Ming
  2026-01-12  2:54 ` Xu Yilun
  2026-01-13 19:10 ` Bjorn Helgaas
  0 siblings, 2 replies; 5+ messages in thread
From: Li Ming @ 2026-01-11  7:38 UTC (permalink / raw)
  To: dan.j.williams; +Cc: linux-pci, linux-coco, linux-kernel, Li Ming

During pci_ide_init(), it will write PCI_ID_RESERVED_STREAM_ID into all
unused selective IDE stream blocks. In a selective IDE stream block, IDE
stream ID field is in selective IDE stream control register instead of
selective IDE stream capability register.

Fixes: 079115370d00 ("PCI/IDE: Initialize an ID for all IDE streams")
Signed-off-by: Li Ming <ming.li@zohomail.com>
---
 drivers/pci/ide.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/ide.c b/drivers/pci/ide.c
index f0ef474e1a0d..26f7cc94ec31 100644
--- a/drivers/pci/ide.c
+++ b/drivers/pci/ide.c
@@ -168,7 +168,7 @@ void pci_ide_init(struct pci_dev *pdev)
 	for (u16 i = 0; i < nr_streams; i++) {
 		int pos = __sel_ide_offset(ide_cap, nr_link_ide, i, nr_ide_mem);
 
-		pci_read_config_dword(pdev, pos + PCI_IDE_SEL_CAP, &val);
+		pci_read_config_dword(pdev, pos + PCI_IDE_SEL_CTL, &val);
 		if (val & PCI_IDE_SEL_CTL_EN)
 			continue;
 		val &= ~PCI_IDE_SEL_CTL_ID;
-- 
2.34.1


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

* Re: [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization
  2026-01-11  7:38 [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization Li Ming
@ 2026-01-12  2:54 ` Xu Yilun
  2026-01-13 19:10 ` Bjorn Helgaas
  1 sibling, 0 replies; 5+ messages in thread
From: Xu Yilun @ 2026-01-12  2:54 UTC (permalink / raw)
  To: Li Ming; +Cc: dan.j.williams, linux-pci, linux-coco, linux-kernel

On Sun, Jan 11, 2026 at 03:38:23PM +0800, Li Ming wrote:
> During pci_ide_init(), it will write PCI_ID_RESERVED_STREAM_ID into all
> unused selective IDE stream blocks. In a selective IDE stream block, IDE
> stream ID field is in selective IDE stream control register instead of
> selective IDE stream capability register.
> 
> Fixes: 079115370d00 ("PCI/IDE: Initialize an ID for all IDE streams")
> Signed-off-by: Li Ming <ming.li@zohomail.com>
> ---
>  drivers/pci/ide.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/ide.c b/drivers/pci/ide.c
> index f0ef474e1a0d..26f7cc94ec31 100644
> --- a/drivers/pci/ide.c
> +++ b/drivers/pci/ide.c
> @@ -168,7 +168,7 @@ void pci_ide_init(struct pci_dev *pdev)
>  	for (u16 i = 0; i < nr_streams; i++) {
>  		int pos = __sel_ide_offset(ide_cap, nr_link_ide, i, nr_ide_mem);
>  
> -		pci_read_config_dword(pdev, pos + PCI_IDE_SEL_CAP, &val);
> +		pci_read_config_dword(pdev, pos + PCI_IDE_SEL_CTL, &val);

Reviewed-by: Xu Yilun <yilun.xu@linux.intel.com>

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

* Re: [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization
  2026-01-11  7:38 [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization Li Ming
  2026-01-12  2:54 ` Xu Yilun
@ 2026-01-13 19:10 ` Bjorn Helgaas
  2026-01-14 16:15   ` dan.j.williams
  1 sibling, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2026-01-13 19:10 UTC (permalink / raw)
  To: Li Ming; +Cc: dan.j.williams, linux-pci, linux-coco, linux-kernel

On Sun, Jan 11, 2026 at 03:38:23PM +0800, Li Ming wrote:
> During pci_ide_init(), it will write PCI_ID_RESERVED_STREAM_ID into all
> unused selective IDE stream blocks. In a selective IDE stream block, IDE
> stream ID field is in selective IDE stream control register instead of
> selective IDE stream capability register.
> 
> Fixes: 079115370d00 ("PCI/IDE: Initialize an ID for all IDE streams")
> Signed-off-by: Li Ming <ming.li@zohomail.com>

Acked-by: Bjorn Helgaas <bhelgaas@google.com>

Dan, I assume you'll take this?  It looks like you've merged
everything to do with ide.c.

> ---
>  drivers/pci/ide.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/ide.c b/drivers/pci/ide.c
> index f0ef474e1a0d..26f7cc94ec31 100644
> --- a/drivers/pci/ide.c
> +++ b/drivers/pci/ide.c
> @@ -168,7 +168,7 @@ void pci_ide_init(struct pci_dev *pdev)
>  	for (u16 i = 0; i < nr_streams; i++) {
>  		int pos = __sel_ide_offset(ide_cap, nr_link_ide, i, nr_ide_mem);
>  
> -		pci_read_config_dword(pdev, pos + PCI_IDE_SEL_CAP, &val);
> +		pci_read_config_dword(pdev, pos + PCI_IDE_SEL_CTL, &val);
>  		if (val & PCI_IDE_SEL_CTL_EN)
>  			continue;
>  		val &= ~PCI_IDE_SEL_CTL_ID;
> -- 
> 2.34.1
> 

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

* Re: [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization
  2026-01-13 19:10 ` Bjorn Helgaas
@ 2026-01-14 16:15   ` dan.j.williams
  2026-01-23  1:40     ` dan.j.williams
  0 siblings, 1 reply; 5+ messages in thread
From: dan.j.williams @ 2026-01-14 16:15 UTC (permalink / raw)
  To: Bjorn Helgaas, Li Ming
  Cc: dan.j.williams, linux-pci, linux-coco, linux-kernel

Bjorn Helgaas wrote:
> On Sun, Jan 11, 2026 at 03:38:23PM +0800, Li Ming wrote:
> > During pci_ide_init(), it will write PCI_ID_RESERVED_STREAM_ID into all
> > unused selective IDE stream blocks. In a selective IDE stream block, IDE
> > stream ID field is in selective IDE stream control register instead of
> > selective IDE stream capability register.
> > 
> > Fixes: 079115370d00 ("PCI/IDE: Initialize an ID for all IDE streams")
> > Signed-off-by: Li Ming <ming.li@zohomail.com>
> 
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
> 
> Dan, I assume you'll take this?  It looks like you've merged
> everything to do with ide.c.

Yes, I have cleared some CXL backlog from over the holidays and will get
this queued.

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

* Re: [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization
  2026-01-14 16:15   ` dan.j.williams
@ 2026-01-23  1:40     ` dan.j.williams
  0 siblings, 0 replies; 5+ messages in thread
From: dan.j.williams @ 2026-01-23  1:40 UTC (permalink / raw)
  To: dan.j.williams, Bjorn Helgaas, Li Ming
  Cc: dan.j.williams, linux-pci, linux-coco, linux-kernel

dan.j.williams@ wrote:
> Bjorn Helgaas wrote:
> > On Sun, Jan 11, 2026 at 03:38:23PM +0800, Li Ming wrote:
> > > During pci_ide_init(), it will write PCI_ID_RESERVED_STREAM_ID into all
> > > unused selective IDE stream blocks. In a selective IDE stream block, IDE
> > > stream ID field is in selective IDE stream control register instead of
> > > selective IDE stream capability register.
> > > 
> > > Fixes: 079115370d00 ("PCI/IDE: Initialize an ID for all IDE streams")
> > > Signed-off-by: Li Ming <ming.li@zohomail.com>
> > 
> > Acked-by: Bjorn Helgaas <bhelgaas@google.com>
> > 
> > Dan, I assume you'll take this?  It looks like you've merged
> > everything to do with ide.c.
> 
> Yes, I have cleared some CXL backlog from over the holidays and will get
> this queued.

Now applied and will show up soon in tsm.git.

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

end of thread, other threads:[~2026-01-23  1:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-11  7:38 [PATCH 1/1] PCI/IDE: Fix reading a wrong reg for unused sel stream initialization Li Ming
2026-01-12  2:54 ` Xu Yilun
2026-01-13 19:10 ` Bjorn Helgaas
2026-01-14 16:15   ` dan.j.williams
2026-01-23  1:40     ` dan.j.williams

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