Date: Thu, 3 Aug 2017 21:52:54 -0400 From: Farhan Khan <khanzf@gmail.com> To: freebsd-drivers@freebsd.org Subject: Driver crash detaches entire PCI bus? Message-ID: <CAFd4kYCNBpBDRZwcERfWA7qB30Jg3VAEUsKD5sU71HQyNjOLrQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I am trying to write the Realtek 8188e (pci) driver for FreeBSD. I am making slow incremental progress, and having the driver safely exit out (as opposed to a segfault). I noticed that when the device detaches, due to an error in the driver, the entire pci bus will also detach! For example, here is my kernel output: rtwn0: rtwn_load_firmware: failed to upload firmware rtwn-rtl8188eefw (error 60) rtwn0: detached pci2: detached The first line is where the code crashes: sys/dev/rtwn/if_rtwn_fw.c line 129 https://github.com/khanzf/freebsd/blob/103c05369b1ced770a2cadc9468e0134c8d9421b/sys/dev/rtwn/if_rtwn_fw.c#L129 Why would this result in the entire pci2 bus detatching? Strangely enough, I did not have this problem a few months ago, then it suddenly began. This is significantly slowing down my workflow, and would be nice to have it resolved. Otherwise, I have to reboot to bring pci2 back up. Any insight? Thanks! Farhan Khan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJZg9G5AAoJEP+hyuFlNlHKvsYP/2fKeR2LSei6VpT744zF0YdX Ykbzc8fXD2q7KMsyqgwEnE4+z8eCWqRKUtSCC8JuVSv8HdOyzytZHY74S0faHrgl /yJr5gfjB1btLk81qtz6aP00Ze51svqBif4qpU3el8k/L8qvXaHfj6Y76jALVede yQ0Vyl3CQUwpvnWm6FaON4ocuukxxm6l9YFHcSceEHcUWEA1I+SAoxhR5GLiVMvP Qf0W1P16L2S6t2bxf6sYY3DbMKXeJxs2foli0fmoqtOhjUk73MwsLo+3qXb3fp+Z s6HfxDsRbb0nyqVZGREtcArTSvdkopx87wBG42HMGMCdGFbM3nn66R42JyF4etI/ rlV8y2kV90VZ4S7Oh4Sqzs9fexwx9HXso7yLfEepQxQbA8a4Q0cVl/jG6CAUR0vN ELn7lYHVEcR99sfwuMkk1RuPPub3Rvmn124mZjQ0cKU0wE7ftlzZ169nvCRm/TZ/ UEFFdiTNrhqPu8wfeEBzHfM7ZJpH8Gz1LRYX9r9ZjW50rZ1j8NH5+dJsaZmacyj0 4fxzkyfXUeVa+MwBdckjDiPvsFK1y9l+7/NfAKDMxhZr3NkgPmLyXR9hf7gE3h39 MsGG0Z7K5fdTFtoQlF5yqYe6mT1Wd1QErE4OS7iRbvVRLChD9ol1vWScwwQFaGj0 C4cA165raXdlGdRr6WjO =7DVs -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFd4kYCNBpBDRZwcERfWA7qB30Jg3VAEUsKD5sU71HQyNjOLrQ>