ehca firmware interface based on Anton Blanchard's new hvcall interface
Quoted 2 lines
-
shca->ib_device.node_type=RDMA_NODE_IB_CA;
+shca->ib_device.node_type=IB_NODE_CA;
My mistake, I tested against Paul's git tree only and then used a wrong patch script, which exchanged those defines.
This time I did all manually and tested also against your git tree with Anton's patch
http://ozlabs.org/pipermail/linuxppc-dev/2006-July/024556.html.
Thanks!
Nam Nguyen
---
ehca_main.c | 5 hcp_if.c | 845 ++++++++++++++++++++---------------------------------------- hcp_if.h | 2 hipz_hw.h | 2 ipz_pt_fn.h | 7 5 files changed, 298 insertions(+), 563 deletions(-)
drivers/infiniband/hw/ehca/ehca_main.c +3 -2
@@ -5,6 +5,7 @@* * Authors: Heiko J Schick <[email protected]> * Hoang-Nam Nguyen <[email protected]> +* Joachim Fenkes <[email protected]> * * Copyright (c) 2005 IBM Corporation *
@@ -48,7 +49,7 @@ #include "hcp_if.h"MODULE_LICENSE ("Dual BSD/GPL" );MODULE_AUTHOR ("Christoph Raisch <[email protected]>" );MODULE_DESCRIPTION ("IBM eServer HCA InfiniBand Device Driver" ); -MODULE_VERSION ("SVNEHCA_0015" ); +MODULE_VERSION ("SVNEHCA_0016" );int ehca_open_aqp1 =0 ;int ehca_debug_level =0 ;
@@ -749,7 +750,7 @@ int __init ehca_module_init(void)int ret;printk (KERN_INFO "eHCA Infiniband Device Driver " -"(Rel.: SVNEHCA_0015)\n" ); +"(Rel.: SVNEHCA_0016)\n" );idr_init (&ehca_qp_idr);idr_init (&ehca_cq_idr);spin_lock_init (&ehca_qp_idr_lock);
drivers/infiniband/hw/ehca/hcp_if.c +291 -554
1,131 lines not on this page · raw message
drivers/infiniband/hw/ehca/hcp_if.h +1 -1
@@ -107,7 +107,7 @@ u64 hipz_h_register_rpage_eq(const strucconst u64 logical_address_of_page, const u64 count); -u32 hipz_h_query_int_state (const struct ipz_adapter_handle +u64 hipz_h_query_int_state (const struct ipz_adapter_handle hcp_adapter_handle,u32 ist);
drivers/infiniband/hw/ehca/hipz_hw.h +0 -2
@@ -184,8 +184,6 @@ struct hipz_mrmwmm { }; -#define MRX_HCR_LPARID_VALID EHCA_BMASK_IBM(0,0) -#define MRMWMM_OFFSET (x) offsetof(struct hipz_mrmwmm,x)struct hipz_qpedmm {
drivers/infiniband/hw/ehca/ipz_pt_fn.h +3 -4
@@ -226,10 +226,9 @@ static inline void *ipz_eqit_eq_get_inc_ {void *ret =ipz_qeit_get (queue);u32 qe = *(u8 *) ret; -if ((qe >>7 ) == (queue->toggle_state &1 )) -ipz_qeit_eq_get_inc (queue);/* this is a good one */ -else - ret =NULL ; +if ((qe >>7 ) != (queue->toggle_state &1 )) +return NULL ; +ipz_qeit_eq_get_inc (queue);/* this is a good one */ return ret; }
drivers/infiniband/hw/ehca/ehca_main.c +3 -2
@@ -5,6 +5,7 @@* * Authors: Heiko J Schick <[email protected]> * Hoang-Nam Nguyen <[email protected]> +* Joachim Fenkes <[email protected]> * * Copyright (c) 2005 IBM Corporation *
@@ -48,7 +49,7 @@ #include "hcp_if.h"MODULE_LICENSE ("Dual BSD/GPL" );MODULE_AUTHOR ("Christoph Raisch <[email protected]>" );MODULE_DESCRIPTION ("IBM eServer HCA InfiniBand Device Driver" ); -MODULE_VERSION ("SVNEHCA_0015" ); +MODULE_VERSION ("SVNEHCA_0016" );int ehca_open_aqp1 =0 ;int ehca_debug_level =0 ;
@@ -749,7 +750,7 @@ int __init ehca_module_init(void)int ret;printk (KERN_INFO "eHCA Infiniband Device Driver " -"(Rel.: SVNEHCA_0015)\n" ); +"(Rel.: SVNEHCA_0016)\n" );idr_init (&ehca_qp_idr);idr_init (&ehca_cq_idr);spin_lock_init (&ehca_qp_idr_lock);
drivers/infiniband/hw/ehca/hcp_if.c +291 -554
1,131 lines not on this page · raw message
drivers/infiniband/hw/ehca/hcp_if.h +1 -1
@@ -107,7 +107,7 @@ u64 hipz_h_register_rpage_eq(const strucconst u64 logical_address_of_page, const u64 count); -u32 hipz_h_query_int_state (const struct ipz_adapter_handle +u64 hipz_h_query_int_state (const struct ipz_adapter_handle hcp_adapter_handle,u32 ist);
drivers/infiniband/hw/ehca/hipz_hw.h +0 -2
@@ -184,8 +184,6 @@ struct hipz_mrmwmm { }; -#define MRX_HCR_LPARID_VALID EHCA_BMASK_IBM(0,0) -#define MRMWMM_OFFSET (x) offsetof(struct hipz_mrmwmm,x)struct hipz_qpedmm {
drivers/infiniband/hw/ehca/ipz_pt_fn.h +3 -4
@@ -226,10 +226,9 @@ static inline void *ipz_eqit_eq_get_inc_ {void *ret =ipz_qeit_get (queue);u32 qe = *(u8 *) ret; -if ((qe >>7 ) == (queue->toggle_state &1 )) -ipz_qeit_eq_get_inc (queue);/* this is a good one */ -else - ret =NULL ; +if ((qe >>7 ) != (queue->toggle_state &1 )) +return NULL ; +ipz_qeit_eq_get_inc (queue);/* this is a good one */ return ret; }
Thanks, I rolled this up in the ehca patch in my tree.
Anyway both Paul and I merged with Linus today, so the hcall cleanup and ehca are both upstream. It would be great if you could do a quick check to make sure that ehca works in Linus's current git tree.
Thanks,
Roland
Hi Roland,
Quoted 3 lines
Anyway both Paul and I merged with Linus today, so the hcall cleanup and ehca are both upstream. It would be great if you could do a quick check to make sure that ehca works in Linus's current git tree.
I compiled Linus's git tree and did some basic tests successfully with ehca (ipoib, userspace, netpipe tcp/ib).
Thanks!
Nam Nguyen