]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/powernv: Add asynchronous token management for powernv
authorJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 1 Mar 2019 02:49:47 +0000 (02:49 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 1 Mar 2019 02:49:47 +0000 (02:49 +0000)
commitdac618a648d4041e2843df01311a01256ff636d5
tree42dec55205a9b2b29dd409cd919ea277c4e6fe8f
parent41dda0d9eb53bb357b012e7ebad33e7af7990ad2
powerpc/powernv: Add asynchronous token management for powernv

The OPAL firmware only supports a finite number of in-flight asynchronous
operations.  Rather than have each subsystem try to manage its own, use a
central management service to hand out tokens.

More work can be done to improve asynchronous behavior, such as funneling
things through a future OPAL heartbeat handler, but capabilities will be
added as needed.

Augment the existing consumers (i2c and sensors) to use this new API.

MFC after: 4 weeks
sys/conf/files.powerpc
sys/powerpc/powernv/opal.h
sys/powerpc/powernv/opal_async.c [new file with mode: 0644]
sys/powerpc/powernv/opal_dev.c
sys/powerpc/powernv/opal_i2c.c
sys/powerpc/powernv/opal_sensor.c