]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/pm: add concept of sources
authorSamuel Pitoiset <samuel.pitoisetœgmail.com>
Sun, 7 Jun 2015 20:40:22 +0000 (22:40 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:39:59 +0000 (12:39 +1000)
commit6220601f0e587c227d1ef1f01664e372268abfe8
tree8ca3d53e9cee415b21738248d2ad379d4e43e2ac
parent93d7874563c1f89d44427535324d9e364a365648
drm/nouveau/pm: add concept of sources

A source (or multiplexer) is a tuple addr+mask+shift which allows to
control a block of signals. The maximum number of sources that a signal
can define is arbitrary limited to 8 and this should be large enough.
This patch allows to define multi-level of sources for a signal.

Each different sources are stored to a global list and will be exposed
to the userspace through the nvif interface in order to avoid conflicts.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/engine/pm.h
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h