[PATCH] eal: allow both allow and block options coexistence
Thomas Monjalon
thomas at monjalon.net
Fri Jul 7 09:12:52 CEST 2023
07/07/2023 07:07, Marvin Liu:
> Currently, all buses use the same eal allow and block options. Need to
> allow both allow and block options for different buses to coexist.
> It wouldn't be a problem for pci bus if both allow and block options
> were present. When the first option occurs, the scan mode for pci bus is
> set.
>
> For example:
> --allow 0000:05:00.0 --block wq0.0
> only pci device 0000:05:00.0 will be scanned
> all devices except wq0.0 on dsa bus will be scanned
> --allow 0000:05:00.0 --block 0000:05:00.1
> block option will be ignored
> --block 0000:05:00.1 --allow 0000:05:00.0
> allow option will be ignored
It is wrong to ignore a user parameter silently.
Also, it would be clearer to use the new devargs syntax
with bus=pci,addr=0000:05:00.0
More information about the dev
mailing list