On Fri, Jul 23, 2021 at 04:36:57PM -0400, Ashton Fagg wrote:
> The following diffs adds iwm(4) to the riscv64 kernel config.
> 
> I tested this with the following device:
> 
> iwm0 at pci5 dev 0 function 0 "Intel Dual Band Wireless-AC 9260" rev 0x29, 
> intx
> 
> icarus$ ifconfig iwm0
> iwm0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
>         lladdr bc:54:2f:cb:3b:21
>         index 2 priority 4 llprio 3
>         groups: wlan egress
>         media: IEEE802.11 autoselect (HT-MCS0 mode 11n)
>         status: active
>         ieee80211: nwid <My-SSID> chan 36 bssid 18:4b:0d:17:c0:ac 100% wpakey 
> wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
>         inet 192.168.1.76 netmask 0xffffff00 broadcast 192.168.1.255
> 
> Patch and dmesg to follow. fw_update went fine and after enabling
> debugging on the driver it doesn't seem to be throwing firmware errors
> or anything like that. This is my only iwm(4) compatible device
> unfortunately so I can't test with any others. This seems to be happily
> passing packets.

thanks, committed with the same change in RAMDISK

> 
> 
> Index: sys/arch/riscv64/conf/GENERIC
> ===================================================================
> RCS file: /cvs/src/sys/arch/riscv64/conf/GENERIC,v
> retrieving revision 1.26
> diff -u -p -u -p -r1.26 GENERIC
> --- sys/arch/riscv64/conf/GENERIC     12 Jul 2021 19:11:42 -0000      1.26
> +++ sys/arch/riscv64/conf/GENERIC     23 Jul 2021 20:26:25 -0000
> @@ -95,6 +95,9 @@ em*         at pci?         # Intel Pro/1000 Ethernet
>  bge*         at pci?         # Broadcom BCM57xx (aka Tigon3)
>  oce*         at pci?         # Emulex OneConnect 10Gb ethernet
>  
> +# Wireless network cards
> +iwm*         at pci?         # Intel WiFi Link 7xxx
> +
>  nvme*                at pci?         # NVMe controllers
>  ahci*                at pci?         # AHCI SATA controllers
> 
> dmesg:
> 
> OpenBSD 6.9-current (GENERIC) #6: Fri Jul 23 16:16:13 EDT 2021
>     [email protected]:/usr/src/sys/arch/riscv64/compile/GENERIC
> real mem  = 17179869184 (16384MB)
> avail mem = 16416555008 (15656MB)
> random: good seed from bootblocks
> mainbus0 at root: SiFive HiFive Unmatched A00
> cpu0 at mainbus0: SiFive U7 imp 20181004 rv64imafdc
> intc0 at cpu0
> cpu0: 32KB 64b/line 128-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
> cpu0: 2048KB 64b/line 2048-way L2 cache
> "fit-images" at mainbus0 not configured
> simplebus0 at mainbus0: "soc"
> plic0 at simplebus0
> sfclock0 at simplebus0
> sfuart0 at simplebus0: console
> sfuart1 at simplebus0
> ociic0 at simplebus0
> iic0 at ociic0
> titmp0 at iic0 addr 0x4c
> dapmic0 at iic0 addr 0x58
> "spi" at simplebus0 not configured
> "spi" at simplebus0 not configured
> cad0 at simplebus0: rev 0x10070109, address 70:b3:d5:92:f9:7b
> ukphy0 at cad0 phy 0: Generic IEEE 802.3u media interface, rev. 2: OUI 
> 0x0001c1, model 0x0037
> "pwm" at simplebus0 not configured
> "pwm" at simplebus0 not configured
> "cache-controller" at simplebus0 not configured
> "gpio" at simplebus0 not configured
> dwpcie0 at simplebus0
> "clint" at simplebus0 not configured
> "dmc" at simplebus0 not configured
> pci0 at dwpcie0
> ppb0 at pci0 dev 0 function 0 "SiFive PCIe" rev 0x00
> pci1 at ppb0 bus 1
> ppb1 at pci1 dev 0 function 0 "ASMedia ASM2824" rev 0x01
> pci2 at ppb1 bus 2
> ppb2 at pci2 dev 0 function 0 "ASMedia ASM2824" rev 0x01: intx
> pci3 at ppb2 bus 3
> ppb3 at pci2 dev 2 function 0 "ASMedia ASM2824" rev 0x01: intx
> pci4 at ppb3 bus 4
> xhci0 at pci4 dev 0 function 0 "ASMedia ASM1042A xHCI" rev 0x00: intx, xHCI 
> 1.0
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "ASMedia xHCI root hub" rev 
> 3.00/1.00 addr 1
> ppb4 at pci2 dev 3 function 0 "ASMedia ASM2824" rev 0x01: intx
> pci5 at ppb4 bus 5
> iwm0 at pci5 dev 0 function 0 "Intel Dual Band Wireless-AC 9260" rev 0x29, 
> intx
> ppb5 at pci2 dev 4 function 0 "ASMedia ASM2824" rev 0x01: intx
> pci6 at ppb5 bus 6
> nvme0 at pci6 dev 0 function 0 vendor "Silicon Motion", unknown product 
> 0x2263 rev 0x03: intx, NVMe 1.3
> nvme0: Inland NVMe SSD 256GB, firmware T0918A0L, serial IBSCMC210625600201
> scsibus0 at nvme0: 2 targets, initiator 0
> sd0 at scsibus0 targ 1 lun 0: <NVMe, Inland NVMe SSD, T091>
> sd0: 244198MB, 512 bytes/sector, 500118192 sectors
> ppb6 at pci2 dev 8 function 0 "ASMedia ASM2824" rev 0x01: intx
> pci7 at ppb6 bus 7
> "hfclk" at mainbus0 not configured
> "rtcclk" at mainbus0 not configured
> "gpio-poweroff" at mainbus0 not configured
> uhub1 at uhub0 port 2 configuration 1 interface 0 "ASMedia AS2107" rev 
> 3.00/0.01 addr 2
> uhub2 at uhub0 port 4 configuration 1 interface 0 "ASMedia AS2107" rev 
> 2.10/0.01 addr 3
> "vendor 0x8087 product 0x0025" rev 2.00/0.02 addr 4 at uhub2 port 4 not 
> configured
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> root on sd0a (298fb3493efcd19a.a) swap on sd0b dump on sd0b
> iwm0: hw rev 0x320, fw ver 46.6b541b68.0, address bc:54:2f:cb:3b:21
> 
> 

Reply via email to