Re: [RFC][PATCH] Add sysfs entry that displays MSI-X IRQs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 20, 2008 at 11:24:07AM +1100, Vincent Rizza wrote:
> I've made some more changes based on the feedback. I figured if the
> sysfs entries were removed before the msi_desc structs were deleted
> from msi_list then we wouldn't have to worry about synchronization.

I'm not sure that's true.  Fortunately, there's an easy way to find out.

(sleep 10; cat) < /sys/bus/pci/..../msix_irq/0

then rmmod the driver (assuming it takes less than ten seconds to unload
... if it takes longer, increase the sleep above).

If you get an oops, then you have some more worrying to do ;-)

For bonus points, if the above doesn't oops, try hot-unplugging the
device as well (if you don't have the hardware to do this, use fakephp
to simulate it).

> How does it look? What's the decision on the directory name?

I still don't like it being called 'msix_irq'.  As I said, we could also
put MSI interrupts in the same directory.  What's wrong with just
'interrupts'?  or 'irqs' if you want to be picky.  If your problem with
tht is that 'irq' isn't in there, we could call it 'aux_irqs' or
'extra_irqs' or something, i suppose.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux