Skip to content
Snippets Groups Projects
Commit c7f92fa8 authored by Erik von Reis's avatar Erik von Reis
Browse files

RCG: Dolphin broadcast node changed from 4 to 252. This change allows node 4...

RCG: Dolphin broadcast node changed from 4 to 252.  This change allows node 4 to work like a normal node.

Exported Dolphin segments now properly unexported when there's an error farther down the line during initialization.

Some slight improvements to Dolphin initialization error messages.
parent df549e3b
No related branches found
No related tags found
1 merge request!262RCG: Dolphin broadcast node changed from 4 to 252.
......@@ -104,7 +104,7 @@ init_dolphin( int modules )
}
err = sci_export_segment( segment[ ii ], 0, DIS_BROADCAST );
printk("DIS segment export status %d\n", err);
printk("DIS segment export status 0x%x\n", err);
if ( err )
{
sci_remove_segment( &segment[ ii ], 0 );
......@@ -115,6 +115,7 @@ init_dolphin( int modules )
if ( read_addr == 0 )
{
printk("DIS sci_local_kernel_virtual_address returned 0\n");
sci_unexport_segment( segment[ ii ], 0, 0);
sci_remove_segment( &segment[ ii ], 0 );
return -4;
}
......@@ -128,7 +129,9 @@ init_dolphin( int modules )
udelay( MAX_UDELAY );
err = sci_connect_segment( NO_BINDING,
4, // DIS_BROADCAST_NODEID_GROUP_ALL
252, //broadcast node - should not match any
// actual node number.
// 252 taken from sisci driver code.
0,
0,
ii,
......@@ -139,6 +142,7 @@ init_dolphin( int modules )
printk("DIS connect segment status %d\n", err);
if ( err )
{
sci_unexport_segment( segment[ ii ], 0, 0);
sci_remove_segment( &segment[ ii ], 0 );
return -5;
}
......@@ -150,10 +154,11 @@ init_dolphin( int modules )
0,
IPC_TOTAL_ALLOC_SIZE,
&client_map_handle[ ii ] );
printk("DIS segment mapping status %d\n", err);
printk("DIS segment mapping status 0x%x\n", err);
if ( err )
{
sci_disconnect_segment( &remote_segment_handle[ ii ], 0 );
sci_unexport_segment( segment[ ii ], 0, 0);
sci_remove_segment( &segment[ ii ], 0 );
return -6;
}
......@@ -164,6 +169,7 @@ init_dolphin( int modules )
// printk ("Got zero pointer from
// sci_kernel_virtual_address_of_mapping\n");
sci_disconnect_segment( &remote_segment_handle[ ii ], 0 );
sci_unexport_segment( segment[ ii ], 0, 0);
sci_remove_segment( &segment[ ii ], 0 );
return -7;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment