Re: [ofa-general] Re: [ewg] [PATCH] ib_core: save process's virtual address in struct ib_umem

2009-01-29 Thread Roland Dreier
  I see... you're right - no need to stick the address into struct
  ib_umem. Following this email is a new patch for mlx4_ib only. I
  excluded support for both powerpc and ia64 since I could not find a
  way to get HPAGE_SIZE (or HPAGE_SHIFT) for them.

#include asm/page.h ?

 - R.
___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg


Re: [ofa-general] Re: [ewg] [PATCH] ib_core: save process's virtual address in struct ib_umem

2009-01-29 Thread Eli Cohen
On Thu, Jan 29, 2009 at 07:33:22AM -0800, Roland Dreier wrote:
   I see... you're right - no need to stick the address into struct
   ib_umem. Following this email is a new patch for mlx4_ib only. I
   excluded support for both powerpc and ia64 since I could not find a
   way to get HPAGE_SIZE (or HPAGE_SHIFT) for them.
 
 #include asm/page.h ?
 
It does not help. The problem with powerpc is that HPAGE_SHIFT is an
unexported variable and for ia64 it's hpage_shift.
___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg


Re: [ofa-general] Re: [ewg] [PATCH] ib_core: save process's virtual address in struct ib_umem

2009-01-29 Thread Roland Dreier
  It does not help. The problem with powerpc is that HPAGE_SHIFT is an
  unexported variable and for ia64 it's hpage_shift.

I see.  hpage_shift is exported on ia64, so that should be OK.  And I
guess for powerpc it is just a matter of adding an export so we can use
it in a module.

 - R.
___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg


Re: [ofa-general] Re: [ewg] [PATCH] ib_core: save process's virtual address in struct ib_umem

2009-01-26 Thread Roland Dreier
  It is has to be saved either at the low level driver's mr object,
  e.g. struct mlx4_ib_mr, or at a common place like struct ib_umem. Do
  you prefer that it will be saved in struct mlx4_ib_mr?

I don't see why it has to be saved anywhere?  The only place you use
umem-address is in handle_hugetlb_usermr(), and you could just as
easily pass in start directly as a parameter (since
mlx4_ib_reg_user_mr() has that value in a parameter anyway).

 - R.
___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg