提交 3a405258 编写于 作者: M Martin Peres 提交者: Ben Skeggs

drm/nouveau/therm/nv84+: do not expose non-calibrated internal temp sensor

Signed-off-by: NMartin Peres <martin.peres@free.fr>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 c5b4865e
......@@ -33,7 +33,12 @@ struct nv84_therm_priv {
int
nv84_temp_get(struct nouveau_therm *therm)
{
return nv_rd32(therm, 0x20400);
struct nouveau_fuse *fuse = nouveau_fuse(therm);
if (nv_ro32(fuse, 0x1a8) == 1)
return nv_rd32(therm, 0x20400);
else
return -ENODEV;
}
void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册