gpu: nvgpu: init: skip failing probe if therm DT entry is absent

For dGPU with PCIE interface do not have a thermal alert pin.
Only platforms where dGPU is used with SXM interface have the
thermal alert pin.
This change makes sure that if nvgpu-therm-gpio DT entry is
is missing we don't fail probe but continue with GPU
initialization without enabling thermal alert feature.

Bug 200542024

Change-Id: Iaf3aec9b66695a45daf86ecfdeec398b66f96bfd
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2173495
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Preetham Chandru R
2019-08-12 12:33:43 +05:30
committed by mobile promotions
parent 69837a8956
commit 7963a40661

View File

@@ -441,11 +441,15 @@ int gk20a_pm_finalize_poweron(struct device *dev)
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_DGPU_THERMAL_ALERT) &&
nvgpu_platform_is_silicon(g)) {
err = nvgpu_request_therm_irq(l);
if (err) {
if (err && (err != -ENOENT)) {
nvgpu_err(g, "thermal interrupt request failed %d",
err);
goto done;
}
if (err == -ENOENT) {
nvgpu_info(g, "nvgpu-therm-gpio DT entry is missing. "
"Thermal Alert feature will not be enabled");
}
}
err = nvgpu_finalize_poweron(g);