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)
commit88ff3f5f63370a8ff5b0e34bdb58144bf1c2fa9b
tree1101b7496cb69e3fccafd03497c25a994a9ea5ff
parent53d206bb4aadba255d20b70893ed5ba1d89f41e1
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