Page MenuHomeFreeBSD

add a sysctl to the AHCI driver to allow disabling the PHY
ClosedPublic

Authored by chs on Jun 27 2018, 9:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 30 2024, 12:09 PM
Unknown Object (File)
Sep 28 2024, 6:44 PM
Unknown Object (File)
Sep 27 2024, 6:38 AM
Unknown Object (File)
Sep 23 2024, 9:15 AM
Unknown Object (File)
Sep 23 2024, 3:00 AM
Unknown Object (File)
Sep 21 2024, 12:53 PM
Unknown Object (File)
Sep 15 2024, 8:30 PM
Unknown Object (File)
Sep 15 2024, 8:30 PM
Subscribers
None

Details

Summary

As part of my work on fixing kernel crashes caused by disk I/O errors, it is useful to be able to trigger various kinds of errors. This patch allows causing an AHCI-attached disk to disappear, by having the driver keep the PHY disabled when the driver would otherwise enable the PHY. It also allows making the disk reappear by having the driver go back to setting the PHY enable/disable state as it normal would and simulating the hardware event that causes a bus rescan.

Test Plan

I've verified that toggling this new sysctl makes the corresponding disk disappear or reappear, and that CAM reacts to these events as expected.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks good to my eye. I'll rebase and commit after a quick test unless I hear otherwise....

This revision was not accepted when it landed; it landed in state Needs Review.Nov 3 2018, 12:38 AM
This revision was automatically updated to reflect the committed changes.