On Thu, 2014-04-03 at 20:38 +0530, shiv prakash Agarwal wrote: > Hi All, > > I have a stress test which write a specific 4B pattern to whole BAR > space for all BARs of a pcie device. > > Query is: > > 1. Is it allowed? Or will it have any side-effects? > 2. If No, is it not allowed for all BARs or some BARs only like BAR0? Of course it will have side-effects, it's conceptually the same as 'cat /dev/random > /dev/mem', but for a device instead of the kernel. What you're overwriting is device dependent, but in any case you're trashing something. The test sounds completely invalid to me. Thanks, Alex -- 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