lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1417495835-5556-3-git-send-email-vinceh@nvidia.com>
Date:	Tue, 2 Dec 2014 12:50:34 +0800
From:	Vince Hsu <vinceh@...dia.com>
To:	<swarren@...dotorg.org>, <thierry.reding@...il.com>,
	<gnurou@...il.com>, <pdeschrijver@...dia.com>,
	<bskeggs@...hat.com>, <martin.peres@...e.fr>,
	<seven@...rod-online.com>, <tbergstrom@...dia.com>
CC:	<nouveau@...ts.freedesktop.org>, <linux-tegra@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, Vince Hsu <vinceh@...dia.com>
Subject: [PATCH nouveau 3/4] platform: add GPU speedo information to nouveau platform

For GK20A we need the GPU speedo value to calculate voltage levels.

Signed-off-by: Vince Hsu <vinceh@...dia.com>
---
 drm/nouveau_platform.c | 2 ++
 drm/nouveau_platform.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/drm/nouveau_platform.c b/drm/nouveau_platform.c
index 9945c2ec2ca3..8871a21ad8fc 100644
--- a/drm/nouveau_platform.c
+++ b/drm/nouveau_platform.c
@@ -28,6 +28,7 @@
 #include <linux/of_device.h>
 #include <linux/reset.h>
 #include <linux/regulator/consumer.h>
+#include <soc/tegra/fuse.h>
 #include <soc/tegra/pmc.h>
 
 #include "nouveau_drm.h"
@@ -179,6 +180,7 @@ static int nouveau_platform_probe(struct platform_device *pdev)
 	}
 
 	device->gpu = gpu;
+	device->gpu_speedo = tegra_sku_info.gpu_speedo_value;
 
 	err = drm_dev_register(drm, 0);
 	if (err < 0)
diff --git a/drm/nouveau_platform.h b/drm/nouveau_platform.h
index 7fe17d1df931..9753a2ea342a 100644
--- a/drm/nouveau_platform.h
+++ b/drm/nouveau_platform.h
@@ -43,6 +43,8 @@ struct nouveau_platform_device {
 	struct nouveau_device device;
 
 	struct nouveau_platform_gpu *gpu;
+
+	int gpu_speedo;
 };
 
 #define nv_device_to_platform(d)                                               \
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ