testing of Xen PCIbackend support for slot and bus reset
@Konrad
I'm interesting in testing your latest iteration of bus reset support. Actually I cloned your devel/xen-pciback.slot_and_bus.v2.1 <http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git/log/?h=devel/xen-pciback.slot_and_bus.v2.1> branch and tested that but did not seem to reset the vga card. I did capture dmesg output which was nice and clean regarding resetting the device but don't have it handy.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Any progress in testing the branch?
I can see one thing that could explain if the function isn't called. The reset file is only created if it doesn't exist. I know it's unlikely for a gpu, but have you verified that your driver didn't export a "reset"-file without these patches? As far as I can tell, the drivers reset function will be used instead of pcistub_reset_pci_dev() in the presence of a "reset"-file.
/Martin
2014-08-17 3:52 GMT+02:00 Richie <[email protected]>:
Quoted 9 lines
@Konrad
I'm interesting in testing your latest iteration of bus reset support. Actually I cloned your devel/xen-pciback.slot_and_bus.v2.1
<http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git/log/?h=devel/xen-pciback.slot_and_bus.v2.1>
branch and tested that but did not seem to reset the vga card. I did capture dmesg output which was nice and clean regarding resetting the device but don't have it handy.
Quoted 6 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 8 lines · Martin Öhrling
Any progress in testing the branch?
I can see one thing that could explain if the function isn't called. The reset file is only created if it doesn't exist. I know it's unlikely for a gpu, but have you verified that your driver didn't export a "reset"-file without these patches? As far as I can tell, the drivers reset function will be used instead of
pcistub_reset_pci_dev()in the presence of a "reset"-file.
Use the 'do_flr' SysFS instead of the 'reset'. Once an PCI device is 'owned' by PCIback the 'reset' is no longer routed to the GPU driver.
And the 'reset' does not do a bus-reset (whcih is what you need for most GPUs).
Quoted 25 lines
/Martin
2014-08-17 3:52 GMT+02:00 Richie <[email protected]>:
Quoted 9 lines
@Konrad
I'm interesting in testing your latest iteration of bus reset support. Actually I cloned your devel/xen-pciback.slot_and_bus.v2.1
<http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git/log/?h=devel/xen-pciback.slot_and_bus.v2.1>
branch and tested that but did not seem to reset the vga card. I did capture dmesg output which was nice and clean regarding resetting the device but don't have it handy.Quoted 6 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 4 lines
Use the '
do_flr' SysFS instead of the 'reset'. Once an PCI device is 'owned' by PCIback the 'reset' is no longer routed to the GPU driver.
Got a bit confused by the conditional check for the presence of reset file in pcistub_try_create_reset_file(). You are absolutely correct in that these devices are owned by pciback and not another driver. Can an alternate reset file (with another reset function) be created at an earlier stage or is this a guard to prevent the reset file (calling pcistub_reset_store()) from being created multiple times?
Still a bit confused. I may be missing something, but the sysfs file name used for pcistub_reset_pci_dev() seems to be "reset". The function shall do FLR and, if possible, D3/bus/slot reset as fallback but only if it has no side effects for other functions on the device (equivalent to a real FLR). Shouldn't this function be registered as en emulated "do_flr" file instead of "reset"?
And the 'reset' does not do a bus-reset (whcih is what you need for
Quoted 2 lines
most GPUs).
The reset function in this branch looks similar to the one in devel/xen-pciback.slot_and_bus.v0. I have tested the latter and I can verify that it works well. I had to do some additional changes to avoid infinite wait after a couple of reboots but the reset function worked well.
/Martin
Quoted 4 lines
Quoted 4 lines
/Martin
Quoted 26 lines
Quoted 7 lines
2014-08-17 3:52 GMT+02:00 Richie <[email protected]>:
Quoted 5 lines
@Konrad
I'm interesting in testing your latest iteration of bus reset support. Actually I cloned your devel/xen-pciback.slot_and_bus.v2.1 <
Quoted 16 lines
Quoted 11 lines
branch and tested that but did not seem to reset the vga card. I did capture dmesg output which was nice and clean regarding resetting the device but don't have it handy.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
My mistake. Just realised that the "reset" file is the name of what I though should be "do_flr" in sysfs.
/Martin
2014-10-28 16:06 GMT+01:00 Martin Öhrling <martin@öhrling.se>:
Quoted 23 lines
Use the '
do_flr' SysFS instead of the 'reset'. Once an PCI deviceQuoted 3 lines
is 'owned' by PCIback the 'reset' is no longer routed to the GPU driver.
Got a bit confused by the conditional check for the presence of reset file in
pcistub_try_create_reset_file(). You are absolutely correct in that these devices are owned by pciback and not another driver. Can an alternate reset file (with another reset function) be created at an earlier stage or is this a guard to prevent the reset file (callingpcistub_reset_store()) from being created multiple times?Still a bit confused. I may be missing something, but the sysfs file name used for
pcistub_reset_pci_dev()seems to be "reset". The function shall do FLR and, if possible, D3/bus/slot reset as fallback but only if it has no side effects for other functions on the device (equivalent to a real FLR). Shouldn't this function be registered as en emulated "do_flr" file instead of "reset"?And the 'reset' does not do a bus-reset (whcih is what you need for
Quoted 2 lines
most GPUs).
Quoted 39 lines
The reset function in this branch looks similar to the one in devel/xen-pciback.slot_and_bus.v0. I have tested the latter and I can verify that it works well. I had to do some additional changes to avoid infinite wait after a couple of reboots but the reset function worked well.
/Martin
Quoted 30 lines
Quoted 11 lines
/Martin
2014-08-17 3:52 GMT+02:00 Richie <[email protected]>:
Quoted 5 lines
@Konrad
I'm interesting in testing your latest iteration of bus reset support. Actually I cloned your devel/xen-pciback.slot_and_bus.v2.1 <
Quoted 16 lines
Quoted 11 lines
branch and tested that but did not seem to reset the vga card. I did capture dmesg output which was nice and clean regarding resetting the device but don't have it handy.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel