* [PATCH blktests] common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev
@ 2017-11-27 21:49 Jon Derrick
2017-11-28 0:24 ` Omar Sandoval
0 siblings, 1 reply; 2+ messages in thread
From: Jon Derrick @ 2017-11-27 21:49 UTC (permalink / raw)
To: linux-block; +Cc: Jens Axboe, Omar Sandoval, Jon Derrick
At least one driver (VMD) uses 32-bit pci domains, but is effectively
limited to 5-digit domains. Allow tests to access devices with 4-5 digit
domains.
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
---
common/rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/rc b/common/rc
index 6b29c2b..09ce4ef 100644
--- a/common/rc
+++ b/common/rc
@@ -138,7 +138,7 @@ _test_dev_is_pci() {
_get_pci_dev_from_blkdev() {
readlink -f "$TEST_DEV_SYSFS/device" | \
- grep -Eo '[0-9a-f]{4}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]' | \
+ grep -Eo '[0-9a-f]{4,5}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]' | \
tail -1
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH blktests] common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev
2017-11-27 21:49 [PATCH blktests] common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev Jon Derrick
@ 2017-11-28 0:24 ` Omar Sandoval
0 siblings, 0 replies; 2+ messages in thread
From: Omar Sandoval @ 2017-11-28 0:24 UTC (permalink / raw)
To: Jon Derrick; +Cc: linux-block, Jens Axboe
On Mon, Nov 27, 2017 at 02:49:05PM -0700, Jon Derrick wrote:
> At least one driver (VMD) uses 32-bit pci domains, but is effectively
> limited to 5-digit domains. Allow tests to access devices with 4-5 digit
> domains.
>
> Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Thanks, Jon, applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-28 0:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27 21:49 [PATCH blktests] common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev Jon Derrick
2017-11-28 0:24 ` Omar Sandoval
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox