Re: [PATCH v3 10/18] powerpc/vas, nx-842: Define and use chip_to_vas_id()

2017-11-22 Thread Michael Ellerman
Josh Boyer writes: > On Tue, Nov 7, 2017 at 9:23 PM, Sukadev Bhattiprolu > wrote: ... >> diff --git a/arch/powerpc/platforms/powernv/vas.c >> b/arch/powerpc/platforms/powernv/vas.c >> index abb7090..cd9a733 100644 >> --- a/arch/powerpc/platforms/powernv/vas.c >> +++ b/arch/powerpc/platforms/pow

Re: [PATCH v3 10/18] powerpc/vas, nx-842: Define and use chip_to_vas_id()

2017-11-20 Thread Josh Boyer
On Tue, Nov 7, 2017 at 9:23 PM, Sukadev Bhattiprolu wrote: > Define a helper, chip_to_vas_id() to map a given chip id to corresponding > vas id. > > Normally, callers of vas_rx_win_open() and vas_tx_win_open() want the VAS > window to be on the same chip where the calling thread is executing. Thes

[PATCH v3 10/18] powerpc/vas, nx-842: Define and use chip_to_vas_id()

2017-11-07 Thread Sukadev Bhattiprolu
Define a helper, chip_to_vas_id() to map a given chip id to corresponding vas id. Normally, callers of vas_rx_win_open() and vas_tx_win_open() want the VAS window to be on the same chip where the calling thread is executing. These callers can pass in -1 for the VAS id. This interface will be usef