On 3/13/2018 4:46 PM, Logan Gunthorpe wrote:
> On 13/03/18 01:53 PM, Sinan Kaya wrote:
>> I agree disabling globally would be bad. Somebody can always say I have
>> ten switches on my system. I want to do peer-to-peer on one switch only. Now,
>> this change weakened security for the other switches that I had no intention
>> with doing P2P.
>> Isn't this a problem?
> Well, if it's a problem for someone they'll have to solve it. We're
> targeting JBOFs that have no use for ACS / IOMMU groups at all.
>> Can we specify the BDF of the downstream device we want P2P with during boot
>> kernel command line?
> That's a painful configuration burden. And then things might stop
> working if you change your topology at all and now have to change boot
It sounds like you have very tight hardware expectations for this to work
at this moment. You also don't want to generalize this code for others and
address the shortcomings.
To get you going, you should limit this change to the switch products that you
validated via white-listing PCI vendor/device ids. Please do not enable this
for all other PCI devices or by default.
I think your code qualifies as a virus until this issue is resolved (so NAK).
Another option is for your CONFIG to depend on BROKEN/EXPERT.
You are delivering a general purpose P2P code with a lot of holes in it and
expecting people to jump through it.
Turning security off by default is also not acceptable. Linux requires ACS
even though you don't care about it for your particular application.
I'd hate ACS to be broken due to some operating system enabling your CONFIG
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux
Foundation Collaborative Project.