]> 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)
commit1206574bde8cec51709f7503b35171222f51b6fd
tree1101b7496cb69e3fccafd03497c25a994a9ea5ff
parent0c578cb0cceb6f32831e52c237847b1284a3c31a
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