All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.21-rc1 5/5] ehca: query_port() returns LINK_UP instead UNKNOWN
@ 2007-02-15 16:10 Hoang-Nam Nguyen
  2007-02-15 17:48   ` Roland Dreier
  0 siblings, 1 reply; 4+ messages in thread
From: Hoang-Nam Nguyen @ 2007-02-15 16:10 UTC (permalink / raw)
  To: Roland Dreier, linux-kernel, linuxppc-dev, openib-general, hch, bos
  Cc: raisch, heiko.carstens

set port phys state as a result of ehca_query_port() to LINK_UP.
On pSeries ehca actually represents a logical HCA, whose phys/link state 
always is LINK_UP.


Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
---


 ehca_hca.c |    3 +++
 1 files changed, 3 insertions(+)


diff --git a/drivers/infiniband/hw/ehca/ehca_hca.c b/drivers/infiniband/hw/ehca/ehca_hca.c
index b7be950..30eb45d 100644
--- a/drivers/infiniband/hw/ehca/ehca_hca.c
+++ b/drivers/infiniband/hw/ehca/ehca_hca.c
@@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ib
 	props->active_width    = IB_WIDTH_12X;
 	props->active_speed    = 0x1;
 
+	/* at the moment (logical) link state is always LINK_UP */
+	props->phys_state      = 0x5;
+
 query_port1:
 	ehca_free_fw_ctrlblock(rblock);
 


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

* Re: [PATCH 2.6.21-rc1 5/5] ehca: query_port() returns LINK_UP instead UNKNOWN
  2007-02-15 16:10 [PATCH 2.6.21-rc1 5/5] ehca: query_port() returns LINK_UP instead UNKNOWN Hoang-Nam Nguyen
@ 2007-02-15 17:48   ` Roland Dreier
  0 siblings, 0 replies; 4+ messages in thread
From: Roland Dreier @ 2007-02-15 17:48 UTC (permalink / raw)
  To: Hoang-Nam Nguyen
  Cc: linux-kernel, linuxppc-dev, openib-general, hch, bos, raisch,
	heiko.carstens

Thanks, queued 1, 2, 3 and 5 for 2.6.21.

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

* Re: [PATCH 2.6.21-rc1 5/5] ehca: query_port() returns LINK_UP instead UNKNOWN
@ 2007-02-15 17:48   ` Roland Dreier
  0 siblings, 0 replies; 4+ messages in thread
From: Roland Dreier @ 2007-02-15 17:48 UTC (permalink / raw)
  To: Hoang-Nam Nguyen
  Cc: bos, heiko.carstens, linux-kernel, openib-general, hch,
	linuxppc-dev, raisch

Thanks, queued 1, 2, 3 and 5 for 2.6.21.

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

* [PATCH 2.6.21-rc1 5/5] ehca: query_port() returns LINK_UP instead UNKNOWN
@ 2007-02-14 16:41 Hoang-Nam Nguyen
  0 siblings, 0 replies; 4+ messages in thread
From: Hoang-Nam Nguyen @ 2007-02-14 16:41 UTC (permalink / raw)
  To: rolandd, linux-kernel, linuxppc-dev, openib-general, hch
  Cc: raisch, h.carstens

Hi,
this patch sets port phys state as a result of ehca_query_port() to LINK_UP.
On pSeries ehca actually represents a logical HCA, whose phys/link state always
is LINK_UP. 
Thanks
Nam


Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
---


 ehca_hca.c |    3 +++
 1 files changed, 3 insertions(+)


diff -Nurp infiniband_orig/drivers/infiniband/hw/ehca/ehca_hca.c infiniband_work/drivers/infiniband/hw/ehca/ehca_hca.c
--- infiniband_orig/drivers/infiniband/hw/ehca/ehca_hca.c       2007-02-14 13:11:45.000000000 +0100
+++ infiniband_work/drivers/infiniband/hw/ehca/ehca_hca.c       2007-02-14 12:53:52.000000000 +0100
@@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ib
        props->active_width    = IB_WIDTH_12X;
        props->active_speed    = 0x1;

+       /* at the moment (logical) link state is always LINK_UP */
+       props->phys_state      = 0x5;
+
 query_port1:
        ehca_free_fw_ctrlblock(rblock);


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

end of thread, other threads:[~2007-02-15 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 16:10 [PATCH 2.6.21-rc1 5/5] ehca: query_port() returns LINK_UP instead UNKNOWN Hoang-Nam Nguyen
2007-02-15 17:48 ` Roland Dreier
2007-02-15 17:48   ` Roland Dreier
  -- strict thread matches above, loose matches on Subject: below --
2007-02-14 16:41 Hoang-Nam Nguyen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.