Quoting Michael Buesch <[EMAIL PROTECTED]>: > > drivers/ssb/driver_mips/mips.c includes asm/time.h, which is missing on > > x86_64. It also refers to struct ssb_serial_ports, which is not defined > > anywhere. > > Yeah, CONFIG_SSB_MIPS should depend on the MIPS CPU. > Which kconfig option do you suggest to make a "depend" on?
I try not to add artificial restrictions. The driver should depend on the components providing the necessary API. It's better to allow compiling the driver for as many configurations as possible, so that it could be compile tested after massive updates. It would also be useful for checking the code with tools like sparse. It's not hard to come up with more portable alternatives to asm/time.h. > > drivers/ssb/driver_pci/pcicore.c refers to SSB_PCICORE_SBTOPCI1_CFG1 > > that is not defined anywhere in the kernel. > > Yeah, could be a typo. I'll have a look at it. I only found it because the driver didn't depend on MIPS. See what I mean? This only manifests if CONFIG_SSB_PCICORE_HOSTMODE is defined, and it is only selected by CONFIG_SSB_DRIVER_MIPS. > Hm, not sure why this oopses. It works on PPC (can transmit data and so on). My PPC machine is a venerable Blue&White G3, so it won't take PCIe. > You can disable that. I think that should probably depend > on CONFIG_SSB_DRIVER_MIPS. I'll take a look. OK, disabled. > Does it work with linville's tree (in DMA mode)? Yes, it does. I couldn't connect to the AP, but it's a different story. I may be doing things wrong. At least I can scan and I see the APs around. I'm using an AP with 128-bit WEP. Setting the key and the ESSID is not sufficient to associate. I tried wpa_supplicant, but it won't associate either. The kernel messages and the wpa_supplicant output are attached. I could not compile wpa_supplicant with MLME (too much code to fix), but I don't think it should be required. I tried the current version from your branch without SMP, but it still crashes in dma_alloc_coherent (also attached). -- Regards, Pavel Roskin
wpa_supplicant.output
Description: Binary data
ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:0c:00.0 to 64 ssb: Core 0 found: cc 0800, rev 11, vendor 4243 ssb: Core 1 found: cc 0812, rev 0A, vendor 4243 ssb: Core 2 found: cc 0817, rev 03, vendor 4243 ssb: Core 3 found: cc 0820, rev 01, vendor 4243 bcm43xx_d80211: Broadcom 4311 WLAN found ssb: Switching to core 3 ssb: Switching to core 1 bcm43xx_d80211: PHY connected bcm43xx_d80211: Detected PHY: Version: 4, Type 2, Revision 8 bcm43xx_d80211: Detected Radio: ID: 2205017f (Manuf: 17f Ver: 2050 Rev: 2) bcm43xx_d80211: Radio turned off bcm43xx_d80211: Radio turned off wmaster0: Selected rate control algorithm 'simple' bcm43xx_d80211: Virtual interface added (type: 0x00000002, ID: 8, MAC: 00:19:7d:21:7b:50) ssb: Switching to core 0 ssb: Switching to core 1 bcm43xx_d80211: PHY connected bcm43xx_d80211: firmware revision 15F, patchlevel 7E, date 2006-07-29 05:54:02 ssb: Switching to core 0 ssb: Switching to core 1 bcm43xx_d80211: Radio turned on ssb: Switching to core 0 ssb: Switching to core 1 bcm43xx_d80211: Chip initialized bcm43xx_d80211: 32-bit DMA initialized bcm43xx_d80211: Selected 802.11 core (phytype 2) wmaster0: Does not support passive scan, disabled bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: starting scan wlan0: scan completed bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: Initial auth_alg=0 wlan0: authenticate with AP 00:0f:66:2f:ef:59 wlan0: authenticate with AP 00:0f:66:2f:ef:59 wlan0: authenticate with AP 00:0f:66:2f:ef:59 wlan0: authentication with AP 00:0f:66:2f:ef:59 timed out bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: starting scan wlan0: scan completed bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: starting scan warning: many lost ticks. Your time source seems to be instable or some driver is hogging interupts rip _spin_unlock_irqrestore+0xb/0xd Falling back to HPET wlan0: scan completed bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: starting scan wlan0: scan completed bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: starting scan wlan0: scan completed bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff wlan0: starting scan wlan0: scan completed bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Using hardware based encryption for keyidx: 0, mac: ff:ff:ff:ff:ff:ff bcm43xx_d80211: Radio turned off ssb: Switching to core 0 bcm43xx_d80211: DMA-32 0x0200 (RX) max used slots: 1/64 ssb: Switching to core 1 bcm43xx_d80211: DMA-32 0x02A0 (TX) max used slots: 0/128 bcm43xx_d80211: DMA-32 0x0280 (TX) max used slots: 0/128 bcm43xx_d80211: DMA-32 0x0260 (TX) max used slots: 0/128 bcm43xx_d80211: DMA-32 0x0240 (TX) max used slots: 0/128 bcm43xx_d80211: DMA-32 0x0220 (TX) max used slots: 2/128 bcm43xx_d80211: DMA-32 0x0200 (TX) max used slots: 0/128 bcm43xx_d80211: Virtual interface removed (type: 0x00000002, ID: 8, MAC: 00:19:7d:21:7b:50)
bcm43xx_d80211-oops-dma-nosmp
Description: Binary data