mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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:
committed by
mobile promotions
parent
69837a8956
commit
7963a40661
@@ -441,11 +441,15 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
|||||||
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_DGPU_THERMAL_ALERT) &&
|
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_DGPU_THERMAL_ALERT) &&
|
||||||
nvgpu_platform_is_silicon(g)) {
|
nvgpu_platform_is_silicon(g)) {
|
||||||
err = nvgpu_request_therm_irq(l);
|
err = nvgpu_request_therm_irq(l);
|
||||||
if (err) {
|
if (err && (err != -ENOENT)) {
|
||||||
nvgpu_err(g, "thermal interrupt request failed %d",
|
nvgpu_err(g, "thermal interrupt request failed %d",
|
||||||
err);
|
err);
|
||||||
goto done;
|
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);
|
err = nvgpu_finalize_poweron(g);
|
||||||
|
|||||||
Reference in New Issue
Block a user