[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: PCI bus detaching when driver crashing?
From: Datasmurf via freebsd-hackers <freebsd-hackers () freebsd ! org>
Date: 2017-08-09 17:18:29
Message-ID: 20170809191829.4c541da5313af503ef3f470f () mail ! ru
[Download RAW message or body]
On Thu, 3 Aug 2017 22:17:17 -0400
Farhan Khan <khanzf@gmail.com> wrote:
> 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
I have/had seen similar errors with my Hardware. T61 with Pro/Wireless
4965AGN and the if_iwn driver. I get Firmware error and then from time
to time the pci bus gets detached as well. But i did not think of it as
a Problem of the driver or code but of my faulty old Hardware.
I have to reboot to get it working.
Sorry at the moment i have no log about it. Uptime is 2 days since
upgrading to 11.1 Release.
>
> 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
>
404
> 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
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to
> "freebsd-hackers-unsubscribe@freebsd.org"
Greetings Daniel
--
#irc - real netizens last resort
_______________________________________________
freebsd-hackers@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic