Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-24 Thread Henning Brauer
* Christopher Zimmermann [2009-10-24 14:57]: > Yes, I read something about "mbuf cluster" is the comments. As I > understand the manpages this means the mbufs are chained together using > the m_hdr.mh_next pointer !? But as far as I understand the code in > sis_newbuf() it uses the MH_dat.m_ext. I

Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-24 Thread Christopher Zimmermann
thanks for the fast replies. I believe you helped me very much to look in the right direction. On Sat, 24 Oct 2009 14:19:58 +0200 Claudio Jeker wrote: > On Sat, Oct 24, 2009 at 01:56:51PM +0200, Christopher Zimmermann wrote: > > panic: pool_do_get(mbpl: free list modified > > Free list modified me

Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-24 Thread Claudio Jeker
On Sat, Oct 24, 2009 at 01:56:51PM +0200, Christopher Zimmermann wrote: > Hello again! > > In porting this SIS191 driver from freeBSD I'm stuck trying to fix a > kernel panic in pool_do_get: > > panic: pool_do_get(mbpl: free list modified > Free list modified means that you hit a use after free

Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-24 Thread Henning Brauer
* Christopher Zimmermann [2009-10-24 14:04]: > In porting this SIS191 driver from freeBSD I'm stuck trying to fix a > kernel panic in pool_do_get: > > panic: pool_do_get(mbpl: free list modified > > trace: > panic() > pool_do_get() > pool_get() > m_gethdr() > > What I don't understand is in my

Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-24 Thread Christopher Zimmermann
Hello again! In porting this SIS191 driver from freeBSD I'm stuck trying to fix a kernel panic in pool_do_get: panic: pool_do_get(mbpl: free list modified trace: panic() pool_do_get() pool_get() m_gethdr() What I don't understand is in my driver m_gethdr(M_DONTWAIT, M_DATA) is called. Therefore

Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-05 Thread Owain Ainsworth
On Mon, Oct 05, 2009 at 10:26:32AM +0200, Mark Kettenis wrote: > > Date: Mon, 5 Oct 2009 09:51:39 +0200 > > From: Christopher Zimmermann > > > > rc = sis190_get_mac_addr_from_eeprom(pdev, dev); /* This seems to fail */ > > if (rc < 0) { > > u8 reg; > > > > pci_read_config_byte(pdev, 0x73

Re: SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-05 Thread Mark Kettenis
> Date: Mon, 5 Oct 2009 09:51:39 +0200 > From: Christopher Zimmermann > > rc = sis190_get_mac_addr_from_eeprom(pdev, dev); /* This seems to fail */ > if (rc < 0) { > u8 reg; > > pci_read_config_byte(pdev, 0x73, ®); /* How to do this in openBSD */ You can't really do byte-access on PCI c

SiS190 driver: How to do pci_get_device and pci_read_config_byte

2009-10-05 Thread Christopher Zimmermann
Hello, I'm trying to port the SiS190 driver from freeBSD. So far I've been quite successful. It compiles without warnings and finds the the MAC and in my case the Realtek PHY. Sadly I only have one PC with one NIC so I can do no real testing. My dsl modem with PPPoE does not yet work. Still I