Re: [PATCH 3/4] x86, pci: Add interface to force mmconfig
From: Andi Kleen
Date: Tue Mar 14 2017 - 11:43:24 EST
> And the way how this function is used is a horrible hack. It's called from
> a random driver at some random point in time.
>
> The proper solution is to identify the bus at the point where the bus is
> discovered and switch it to mmconfig if possible.
But how would you know that it is safe?
AFAIK the only one who knows "this is an internal SOC device" is the driver.
Or are you saying it should be enabled unconditionally for everything?
Or define some quirk table just for this purpose?
-Andi