]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/vas, nx-842: Define and use chip_to_vas_id()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 8 Nov 2017 02:23:50 +0000 (18:23 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 11 Nov 2017 22:03:08 +0000 (09:03 +1100)
commitd4ef61b5e8955fb913e2e1a6c1533414859a839d
treecb59a3afc81535a1f7c255f986fc02a72d1d753c
parentca03258b6b338b392c778bed9c7dd56e6a513012
powerpc/vas, nx-842: Define and use chip_to_vas_id()

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 useful if a thread running on one chip wants to open
a window on another chip (like the NX-842 driver does during start up).

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/powernv/vas.c
drivers/crypto/nx/nx-842-powernv.c