Bring in FreeBSD sesutil fixes
In system from ticket #66540 it stopped all fans. On my test system it causes SCSI command timeout and panic. I guess it may try to modify bits of wrong device, not disk slot, but something else, like fan or enclosure controller. May be off-by-one code error.
#4 Updated by Ryan Moeller almost 3 years ago
- Severity changed from New to Medium
I have attempted this command on another test system (fn03) and experienced unusual behavior there as well. The command took a minute or two to complete, so in addition to logging CDB printfs, I also captured
procstat -kk for sesutil a few times while it was running. This should give me an indication of places to focus my attention on.
#5 Updated by Ryan Moeller almost 3 years ago
Reverting this change resolves the buggy behavior, so I think there needs to be some additional check involved before trying to
do_led() on an object. In the SES spec I see that the bits being twiddled do not control LEDs for all element types. Device element, device slot, array device slot are the types these bits should apply to. It looks like `sesutil fault all off` would end up telling the power supply control element to request the power supply be shut off. There are a lot of other element types where the IDENT bit is in a different position.
I will look into how to better filter the elements to avoid twiddling the wrong bits.
#7 Updated by Ryan Moeller almost 3 years ago
- Status changed from In Progress to Ready for Testing
- Target version changed from Backlog to 11.2-U3
- Needs Merging changed from Yes to No