drm: sgdma: remove unused nouveau_sgdma_be::dev

nouveau_sgdma_be::dev is only set once during init and never used
anywhere, so remove it.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drm: fix missing return statement in nouveau_ttm_tt_unpopulate

nouveau_ttm_tt_unpopulate() is supposed to return right after calling
ttm_dma_unpopulate() in the case of a coherent buffer. The return
statement was omitted, leading to the pages being unmapped twice. Fix
this.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
[DEBUG] Add channel dumping functions for NVEA
doc
graph/nvc0: add support for netlist firmwares

NVIDIA is releasing some GPU firmwares for the Tegra SoCs under
linux-firmware. The release format is a single file (called a netlist)
containing all the firmwares relevant to a GPU, which must thus be
extracted. This patch adds support for parsing the netlist and loading
the firmwares for the NVC0 family of GPUs, falling back to the previous
firmware lookup method is no netlist was already loaded.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
platform: support for netlist firmwares

Netlists released by NVIDIA are made of a single file containing
firmwares that can potentially be used across different engines. It
therefore makes most sense to load a netlist once before engines are
probed and have them duplicate their firmwares so the netlist can
be freed at the end of probe.

This patch implements this mechanism and adds the lookup data for GK20A.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
perfmon: give option for idle counter of PWR

This patch enables the user to choose the busy or idle cycle
to monitor by the idle counter .

Signed-off-by: Vince Hsu <vinceh@nvidia.com>
perfmon: add support for GK20A

Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Create user-space mappable BOs as uncached

This only affects platforms with non-coherent memory, e.g. ARM.
platform: iommu support
[HACK] fence: allocate fences in TT

Temporary workaround as RAM allocations are going away.
[HACK] display: allocate dumb buffers in TT

Temporary workaround as we are getting rid of VRAM allocations for
GK20A.
instmem: add GK20A instmem
fb/ramgk20a: make GK20A RAM dummy

GK20A has no VRAM of its own. Turn its RAM device into a dummy one to
just allow things to hold together.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
HACK: bit 34
ttm: use custom dma_address pointer