[Skiboot] [PATCH skiboot v3] npu2: Add XTS_BDF_MAP wildcard refcount
aik at ozlabs.ru
Wed Feb 13 17:11:53 AEDT 2019
On 05/12/2018 03:17, Reza Arbab wrote:
> On Tue, Dec 04, 2018 at 03:41:55PM +1100, Alexey Kardashevskiy wrote:
>> Currently PID wildcard is programmed into the NPU once and never cleared
>> up. This works for the bare metal as MSR does not change while the host
>> OS is running.
>> However with the device virtualization, we need to keep track of wildcard
>> entries use and clear them up before switching a GPU from a host to
>> a guest or vice versa.
>> This adds refcount to a NPU2, one counter per wildcard entry. The index
>> is a short lparid (4 bits long) which is allocated in opal_npu_map_lpar()
>> and should be smaller than NPU2_XTS_BDF_MAP_SIZE (defined as 16).
> Acked-by: Reza Arbab <arbab at linux.ibm.com>
Stewart, Alistair, ping, anyone? https://patchwork.ozlabs.org/patch/1007446/
More information about the Skiboot