sensors command requires manual loading of 'ibmpowernv' module
Bug #1452473 reported by
bugproxy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Triaged
|
Medium
|
Canonical Kernel Team |
Bug Description
== Comment: #0 - Shilpasri G. Bhat <email address hidden> - 2015-05-06 12:55:40 ==
"ibmpowernv" module is not auto loaded. This leads to failure of 'sensors' command.
Either have 'CONFIG_
---uname output---
3.19.0-15-generic
---Steps to Reproduce---
#sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
Contact Information = Shilpasri G Bhat / <email address hidden>
tags: | added: architecture-ppc64le bugnameltc-124702 severity-medium targetmilestone-inin1510 |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
assignee: | nobody → Chris J Arges (arges) |
Changed in linux (Ubuntu): | |
assignee: | Chris J Arges (arges) → nobody |
Changed in linux (Ubuntu): | |
assignee: | nobody → Chris J Arges (arges) |
Changed in linux (Ubuntu): | |
importance: | High → Low |
no longer affects: | linux (Ubuntu Vivid) |
Changed in linux (Ubuntu): | |
assignee: | Chris J Arges (arges) → nobody |
status: | Triaged → Confirmed |
Changed in linux (Ubuntu): | |
importance: | Low → Medium |
Changed in linux (Ubuntu): | |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
status: | Confirmed → Triaged |
To post a comment you must log in.
This also exists upstream.
Looks like the modalias that gets generated is: opal-sensor ibmpowernv
$ cat /lib/modules/`uname -r`/modules.alias | grep ibmpowernv
alias platform:
Where OF creates this for the device: platform/ opal-sensor/ modalias
$ cat /sys/devices/
of:NsensorsT<NULL>
If I make the module use the OF string it still doesn't seem to work. Patch below:
diff --git a/drivers/ hwmon/ibmpowern v.c b/drivers/ hwmon/ibmpowern v.c hwmon/ibmpowern v.c hwmon/ibmpowern v.c probe(struct platform_device *pdev) OR_ZERO( hwmon_dev) ;
index 4255514..c872818 100644
--- a/drivers/
+++ b/drivers/
@@ -466,19 +466,17 @@ static int ibmpowernv_
return PTR_ERR_
}
-static const struct platform_device_id opal_sensor_ driver_ ids[] = { DEVICE_ TABLE(platform, opal_sensor_ driver_ ids); DEVICE_ TABLE(of, opal_sensor_match);
- {
- .name = "opal-sensor",
- },
- { }
+static const struct of_device_id opal_sensor_match[] = {
+ { .compatible = "sensors",},
+ {},
};
-MODULE_
+MODULE_
static struct platform_driver ibmpowernv_driver = { driver_ ids,
.name = DRVNAME,
.probe = ibmpowernv_probe,
- .id_table = opal_sensor_
.driver = {
+ .of_match_table = opal_sensor_match,
},
};
Any suggestions?