staging/rdma/hfi1: Disable thermal polling before sensor initialization
Subsystems (2)
PATCH 1/1 staging/rdma/hfi1: Disable thermal polling before sensor initialization
From: jareer.h.abdel-qader <[email protected]>
During driver load the thermal sensor needs to be reset prior to initialization of the sensor. This prevents a possible sensor lock up which can cause the wrong temperature value to be reported. This fix leads to remove disabling thermal polling from reset_asic_csrs() function.
Reviewed by: Dennis Dalessandro <[email protected]> Reviewed by: Easwar Hariharan <[email protected]>
--- drivers/staging/rdma/hfi1/chip.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rdma/hfi1/chip.c +4 -2
@@ -9455,7 +9455,7 @@ static void reset_asic_csrs(struct hfi1_devdata *dd)/* We might want to retain this state across FLR if we ever use it */ write_csr (dd,ASIC_CFG_DRV_STR ,0 ); -write_csr (dd,ASIC_CFG_THERM_POLL_EN ,0 ); +/* ASIC_CFG_THERM_POLL_EN leave alone */ /* ASIC_STS_THERM read-only */ /* ASIC_CFG_RESET leave alone */
@@ -10803,7 +10803,9 @@ static int thermal_init(struct hfi1_devdata *dd)acquire_hw_mutex (dd);dd_dev_info (dd,"Initializing thermal sensor\n" ); - +/* Disable polling of thermal readings */ +write_csr (dd,ASIC_CFG_THERM_POLL_EN ,0x0 ); +msleep (100 );/* Thermal Sensor Initialization */ /* Step 1: Reset the Thermal SBus Receiver */ ret = sbus_request_slow(dd, SBUS_THERMAL, 0x0,
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1446698657-26743-1-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Quoted 1 line · On Wed, Nov 04, 2015 at 11:44:17PM -0500…
From: jareer.h.abdel-qader <[email protected]>
This should be "Jareer Abdel-Qader <[email protected]>".
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
This should be "Jareer Abdel-Qader <[email protected]>".
ok. Will fix in V2.
Thanks,
Jubin John
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html