Skip to contentSkip to conversation

ibmveth and LIOBN field

DISCUSSION Benjamin Herrenschmidt 2 participants 2 messages Oct 18, 2006

lore
Share & tools
lore
#0 lore raw

Hi Santiago !

I'm a bit annoyed by a bit of code in the ibmveth driver:

It accesses the iommu table pointer, to get the index and put it into it's own private adapter->liobn member. However, that is never used anywhere except in ibmveth_seq_show() for the /proc stuff to display this LIOBN value.

Is this actually useful ? I'd like to just remove that code. I'm changing the DMA operations management globally in the powerpc architecture and that code now needs fixups. I've done them, but it annoys me to have this driver dive into data structures like iommu_table that is should have no business mucking with.

Cheers,
Ben.

#1 lore raw
Quoted 10 lines · Benjamin Herrenschmidt

Hi Santiago !

I'm a bit annoyed by a bit of code in the ibmveth driver:

It accesses the iommu table pointer, to get the index and put it into it's own private adapter->liobn member. However, that is never used anywhere except in ibmveth_seq_show() for the /proc stuff to display th'is LIOBN value.

Is this actually useful ? I'd like to just remove that code.

I'll gladly sign off a patch that removes that code. I think we used liobn in the driver a long time ago to do the tce mappings before we merged all the common virtual io code into arch/powerpc/vio.c.

Signature · 3 lines
Santiago A. Leon
Power Linux Development
IBM Linux Technology Center