Page MenuHomeFreeBSD

Make isp(4) suggest loading ispfw(4) when it fails to attach.
ClosedPublic

Authored by trasz on Feb 26 2019, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 10:11 AM
Unknown Object (File)
Mon, Nov 18, 7:17 AM
Unknown Object (File)
Tue, Nov 12, 10:49 AM
Unknown Object (File)
Fri, Oct 25, 10:35 PM
Unknown Object (File)
Sep 27 2024, 12:47 PM
Unknown Object (File)
Sep 23 2024, 6:14 PM
Unknown Object (File)
Sep 16 2024, 9:32 PM
Unknown Object (File)
Sep 4 2024, 1:58 PM
Subscribers

Details

Summary

Make isp(4) suggest loading ispfw(4) when it fails to attach.
It cannot load it automatically at boot, because the root filesystem
is not there yet. An alternative would be adding ispfw(4) to GENERIC,
but it's an additional 1MB.

Diff Detail

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

Event Timeline

I think generally it may be not a bad idea, but I'd prefer less exact message, like "Consider loading ispfw kernel module for known good firmware".

Also you could add check for card generation, since there is no public firmware images for 16Gbps cards and above, so the message would not have sense.

Don't print stuff for 16Gb HBAs.

Thanks. Does it look ok now?

Regarding the message - why? I quite like the current one, because it tells you exactly what you need to do, instead of having to figure it out.

Regarding the message - why? I quite like the current one, because it tells you exactly what you need to do, instead of having to figure it out.

Because it tells you what to do (may happen to be incorrect for somebody), not explaining why.

I think it would actually be better to add the suggestion to put in ispfw_load whenever the user isn't on a 16Gb board and hasn't loaded firmware.

In most cases, we'll probably have the newest firmware in the kernel. And certainly the firmware that has been tested with the driver.

I believe we might be close to automatically loading those by loader(8) itself. And that would make this advice redundant soon.

This revision is now accepted and ready to land.Apr 25 2019, 8:17 PM
This revision was automatically updated to reflect the committed changes.