]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nouveau/tegra: fetch gpu_speedo_id
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 1 Jun 2016 08:39:15 +0000 (17:39 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:53:25 +0000 (11:53 +1000)
The GPU speedo ID is required to select the right clk/volt parameters on
GM20B.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/tegra.h
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c

index b5370cb56e3c2c4fbb539ffd9f0156c569af38c1..e5c9b6268dcca59efdaab12e5922b3a5e0ac2b2b 100644 (file)
@@ -28,6 +28,7 @@ struct nvkm_device_tegra {
        } iommu;
 
        int gpu_speedo;
+       int gpu_speedo_id;
 };
 
 struct nvkm_device_tegra_func {
index 8edc0a583ae2a51d621dad00c7995be946c85893..9b638bd905ffa471e7cb0cfb04bf0d3274c211ce 100644 (file)
@@ -311,6 +311,7 @@ nvkm_device_tegra_new(const struct nvkm_device_tegra_func *func,
                goto remove;
 
        tdev->gpu_speedo = tegra_sku_info.gpu_speedo_value;
+       tdev->gpu_speedo_id = tegra_sku_info.gpu_speedo_id;
        ret = nvkm_device_ctor(&nvkm_device_tegra_func, NULL, &pdev->dev,
                               NVKM_DEVICE_TEGRA, pdev->id, NULL,
                               cfg, dbg, detect, mmio, subdev_mask,