[openib-general] kernel vapi

Olivier Cozette olivier.cozette at seanodes.com
Tue Apr 26 09:56:32 PDT 2005


	Hello,

Sorry, but i don't the good list to tell about my problem, so a post it
to this list.

I'm using a kernel 2.4 with openib 1.0 with an x86-64 smp, and i tried
to port the vping to kernel space
(ib-support/third_party/mellanox_thca_host_native_2_6/src/HCA/examples/vping).

I have removed all the tcp things, and all the thread relative things.

If i prohibite the call of schedule() (uninteruptible process, so the pc
is no more usable), the server receive data from one userspace client.

But if i use schedule() in anywere in the code, for example in the
get_next_rq_cqe(), my module oops with a probleme in __switch_to. 

With more debugging, i find that current->thread.io_bitmap_ptr have very
strange value ( 0x1 , 0x3 , 0x565554535251504f ) or sometimes a good
value (in normal kernel space ). When there are bad value, the
_switch_to crash within "memcpy(tss->io_bitmap,
next->io_bitmap_ptr,IO_BITMAP_SIZE*sizeof(u32));" or with a "mov %db6,%
rax" instruction.

My module seems stable when i set current->thread.io_bitmap_ptr to NULL,
but it crash when i type "top" or "ps aux".


So if anyone know an issue please help me.

	Olivier




More information about the general mailing list