Modify

Opened 10 years ago

Closed 10 years ago

#1865 closed defect (fixed)

PCI over VLYNQ assings wrong IRQs

Reported by: rootkit85@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version:
Keywords: Cc:

Description

PCI over VLYNQ assigns IRQ 0 to any attached device:

vlynq-pci: attaching device TI ACX111 at vlynq0
registering PCI controller with io_map_base unset
acx: compiled to use 32bit I/O access. I/O timing issues might occur, such as non-working firmware upload. Report them
running on a little-endian CPU
PCI module v0.4.9 initialized, waiting for cards to probe...
PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
acx: found ACX111-based wireless network card at 0000:00:00.0, irq:0, phymem1:0x4000000, phymem2:0x4022000, mem1:0xa4000000, mem1_size:8192, mem2:0xa4022000, mem2_size:131072
initial debug setting is 0x000A
acx: can't use IRQ 0
pci_set_power_state(): 0000:00:00.0: state=3, current state=5
acx_pci: probe of 0000:00:00.0 failed with error -5

this is the tiacx softmac driver, but other drivers that works with 2.6.19 doesn't works more on 2.6.21

Attachments (1)

vlynq-pci-fixed.dmesg (1.7 KB) - added by Wodin 10 years ago.
dmesg with patch applied

Download all attachments as: .zip

Change History (14)

comment:1 Changed 10 years ago by rootkit85@…

i get this warning:

registering PCI controller with io_map_base unset

i added the following code:

vlynq_controller.io_map_base = mips_io_port_base;

and the warning disappeared, but still doesn't works

comment:2 follow-up: Changed 10 years ago by nabcore

I'm seeing this issue on r7624

comment:3 in reply to: ↑ 2 Changed 10 years ago by anonymous

Replying to nabcore:

I'm seeing this issue on r7624

r7314 (last 2.6.19.2 revision) works after doing s#asm/gpio.h#gpio.h# in a couple of places to get it to compile.

comment:4 Changed 10 years ago by rootkit85@…

get it compile?
sure it compiles, just assigns IRQ 0 to all devices

comment:5 Changed 10 years ago by nabcore

Anyone tried the patch recommended here?

http://forum.openwrt.org/viewtopic.php?pid=50915#p50915

comment:6 Changed 10 years ago by Wodin

comment:7 Changed 10 years ago by Wodin

This is with the patch:

root@OpenWrt:~# dmesg | grep -E 'Linux|vlynq|acx'
Linux version 2.6.21.5 (michael@marmite) (gcc version 4.1.2) #5 Thu Jun 21 12:50:12 SAST 2007
vlynq0: regs 0x08611800, irq 29, mem 0x04000000
vlynq1: regs 0x08611c00, irq 33, mem 0x0c000000
vlynq0: linked
vlynq-pci: attaching device TI ACX111 at vlynq0
acx: this driver is still EXPERIMENTAL
acx: reading README file and/or Craig's HOWTO is recommended, visit http://acx100.sf.net in case of further questions/discussion
acx: compiled to use 32bit I/O access. I/O timing issues might occur, such as non-working firmware upload. Report them
acx: running on a little-endian CPU
acx: PCI module v0.3.36 initialized, waiting for cards to probe...
acx: found ACX111-based wireless network card at 0000:00:00.0, irq:80, phymem1:0x4000000, phymem2:0x4022000, mem1:0xa4000000, mem1_size:8192, mem2:0xa4022000, mem2_size:131072
vlynq0: Read of unknown register 0x38 (size 4)
acx: need to load firmware for acx111 chipset with radio ID 16, please provide via firmware hotplug:
acx: either one file only (<c>ombined firmware image file, radio-specific) or two files (radio-less base image file *plus* separate <r>adio-specific extension file)
requesting firmware image 'tiacx111c16'
acx_write_fw (main/combined): 0
acx_validate_fw (main/combined): 0
acx: === chipset TNETW1130, radio type 0x16 (Radia), form factor 0x01 ((mini-)PCI / CardBus), EEPROM version 0x05: uploaded firmware 'Rev 1.2.1.34' ===
creating /proc entry driver/acx_wlan0
creating /proc entry driver/acx_wlan0_diag
creating /proc entry driver/acx_wlan0_eeprom
creating /proc entry driver/acx_wlan0_phy
acx v0.3.36: net device wlan0, driver compiled against wireless extensions 22 and Linux 2.6.21.5

Changed 10 years ago by Wodin

dmesg with patch applied

comment:8 Changed 10 years ago by nabcore

I can also confirm with r7624 that this works:

...
acx: this driver is still EXPERIMENTAL
acx: reading README file and/or Craig's HOWTO is recommended, visit http://acx100.sf.net in case of further questions/discussion
acx: compiled to use 32bit I/O access. I/O timing issues might occur, such as non-working firmware upload. Report them
acx: running on a little-endian CPU
acx: PCI module v0.3.36 initialized, waiting for cards to probe...
PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:00.0 to 64
acx: found ACX111-based wireless network card at 0000:00:00.0, irq:80, phymem1:0x4000000, phymem2:0x4022000, mem1:0xa4000000, mem1_size:8192, mem2:0xa4022000, mem2_size:131072
initial debug setting is 0x000A
using IRQ 80
vlynq0: Read of unknown register 0x38 (size 4)
acx: need to load firmware for acx111 chipset with radio ID 16, please provide via firmware hotplug:
acx: either one file only (<c>ombined firmware image file, radio-specific) or two files (radio-less base image file *plus* separate <r>adio-specific extension file)
requesting firmware image 'tiacx111c16'
acx_write_fw (main/combined): 0
acx_validate_fw (main/combined): 0
initializing max packet templates
dump queue head (from card):
len: 24
tx_memory_block_address: 19060
rx_memory_block_address: 13560
tx1_queue address: 12A94
rx1_queue address: 12754
NVS_vendor_offs:01CD probe_delay:200 eof_memory:1114112
CCAModes:04 Diversity:01 ShortPreOpt:01 PBCC:01 ChanAgil:00 PHY:05 Temp:01
AntennaID:00 Len:02 Data:01 02
PowerLevelID:01 Len:02 Data:001E 000A
DataRatesID:02 Len:05 Data:02 04 11 22 44
DomainID:03 Len:06 Data:10 20 30 31 32 40
ProductID:04 Len:09 Data:TI ACX100
ManufacturerID:05 Len:07 Data:TI Test
get_mask 0x00004182, set_mask 0x00000000
don't know how to get sensitivity for radio type 0x16
got sensitivity value 0
got antenna value 0x4A
got regulatory domain 0x10
get_mask 0x00000000, set_mask 0x00000000 - after update
new ratevector: 82 84 0B 0C 12 16 18 24 2C 30 48 60 6C
setting RXconfig to 2010:0FDD
acx: === chipset TNETW1130, radio type 0x16 (Radia), form factor 0x01 ((mini-)PCI / CardBus), EEPROM version 0x05: uploaded firmware 'Rev 1.2.1.34' ===
creating /proc entry driver/acx_wlan0
creating /proc entry driver/acx_wlan0_diag
creating /proc entry driver/acx_wlan0_eeprom
creating /proc entry driver/acx_wlan0_phy
acx v0.3.36: net device wlan0, driver compiled against wireless extensions 22 and Linux 2.6.21.5

comment:9 Changed 10 years ago by rootkit85@…

wroks for me also

comment:10 Changed 10 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [7689], thanks all for tracking down and testing !

comment:11 Changed 10 years ago by nabcore

  • Resolution fixed deleted
  • Status changed from closed to reopened

Hi, I don't this this issue is fixed. I'm seeing the same issues as rootkit and cyberstorm at http://forum.openwrt.org/viewtopic.php?id=11077

I'm sorry if this is a poor description, but it seems like the wireless card can never have traffic send to it or from it.

I was wondering, if the change made in this patch to the case statement in vlynq_config_read() may be need to be mirrored in vlynq_config_write() in vlynq-pci.c with respect to the handling of a case PCI_INTERRUPT_PIN ?

comment:12 Changed 10 years ago by nabcore

This seems to be fixed with r8770

comment:13 Changed 10 years ago by ejka

  • Resolution set to fixed
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.