]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nvc0/bar: support chips without BAR3
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 2 May 2014 09:32:35 +0000 (18:32 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 10 Jun 2014 06:05:49 +0000 (16:05 +1000)
commita98a6ba0f1829db248cf3addee825b855c0f2fc1
tree1101b7496cb69e3fccafd03497c25a994a9ea5ff
parent4765dd257e93ca043c11d518220b8f36c5943d56
drm/nvc0/bar: support chips without BAR3

Adapt the NVC0 BAR driver to make it able to support chips that do not
expose a BAR3. When this happens, BAR1 is then used for USERD mapping
and the BAR alloc() functions is disabled, making GPU objects unable
to rely on BAR for data access and falling back to PRAMIN.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bar/nvc0.c