Re: Supported iwn device is not configured on ARM64

2024-01-18 Thread Mike Larkin
On Mon, Jan 15, 2024 at 08:58:52AM +0100, Mizsei Zoltán wrote:
> Thanks, that did the trick, see new dmesg below. Would it possible to enable 
> iwn* in the upstream sources?
>

Added to arm64 GENERIC/GENERIC.MP

-ml

> Best Regards,
> --Zoltan
>
> linkstar$ uname -a
> OpenBSD linkstar.extrowerk.com 7.4 GENERIC.MP#1 arm64
> linkstar$ dmesg
> OpenBSD 7.4 (GENERIC.MP) #1: Mon Jan 15 04:02:12 CET 2024
> szil...@linkstar.extrowerk.com:/sys/arch/arm64/compile/GENERIC.MP
> real mem  = 3959590912 (3776MB)
> avail mem = 3759493120 (3585MB)
> random: good seed from bootblocks
> mainbus0 at root: HINLINK OPC-H68K Board
> psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
> efi0 at mainbus0: UEFI 2.7
> efi0: EDK2 rev 0x1
> smbios0 at efi0: SMBIOS 3.3.0
> smbios0: vendor EDK2 version "miq" date 12/16/2023
> smbios0: Firefly Firefly ROC-RK3568-PC
> cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
> cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu0: 512KB 64b/line 16-way L2 cache
> cpu0: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
> cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu1: 512KB 64b/line 16-way L2 cache
> cpu1: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
> cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu2: 512KB 64b/line 16-way L2 cache
> cpu2: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
> cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu3: 512KB 64b/line 16-way L2 cache
> cpu3: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> scmi0 at mainbus0: SCMI 2.0
> apm0 at mainbus0
> agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
> "interrupt-controller"
> syscon0 at mainbus0: "syscon"
> rkiovd0 at syscon0
> syscon1 at mainbus0: "syscon"
> syscon2 at mainbus0: "syscon"
> syscon3 at mainbus0: "syscon"
> syscon4 at mainbus0: "syscon"
> syscon5 at mainbus0: "syscon"
> syscon6 at mainbus0: "syscon"
> rkclock0 at mainbus0: PMUCRU
> rkclock1 at mainbus0: CRU
> syscon7 at mainbus0: "power-management"
> "power-controller" at syscon7 not configured
> syscon8 at mainbus0: "qos"
> syscon9 at mainbus0: "qos"
> syscon10 at mainbus0: "qos"
> syscon11 at mainbus0: "qos"
> syscon12 at mainbus0: "qos"
> syscon13 at mainbus0: "qos"
> syscon14 at mainbus0: "qos"
> syscon15 at mainbus0: "qos"
> syscon16 at mainbus0: "qos"
> syscon17 at mainbus0: "qos"
> syscon18 at mainbus0: "qos"
> syscon19 at mainbus0: "qos"
> syscon20 at mainbus0: "qos"
> syscon21 at mainbus0: "qos"
> syscon22 at mainbus0: "qos"
> syscon23 at mainbus0: "qos"
> syscon24 at mainbus0: "qos"
> syscon25 at mainbus0: "qos"
> syscon26 at mainbus0: "qos"
> syscon27 at mainbus0: "qos"
> syscon28 at mainbus0: "qos"
> syscon29 at mainbus0: "qos"
> syscon30 at mainbus0: "qos"
> syscon31 at mainbus0: "qos"
> rkcomphy0 at mainbus0
> rkcomphy1 at mainbus0
> rkusbphy0 at mainbus0: phy 0
> rkusbphy1 at mainbus0: phy 1
> rkpinctrl0 at mainbus0: "pinctrl"
> rkgpio0 at rkpinctrl0
> rkgpio1 at rkpinctrl0
> rkgpio2 at rkpinctrl0
> rkgpio3 at rkpinctrl0
> rkgpio4 at rkpinctrl0
> syscon32 at mainbus0: "syscon"
> syscon33 at mainbus0: "qos"
> syscon34 at mainbus0: "qos"
> syscon35 at mainbus0: "qos"
> syscon36 at mainbus0: "syscon"
> rkpciephy0 at mainbus0
> rkcomphy2 at mainbus0
> "fit-images" at mainbus0 not configured
> "opp-table-0" at mainbus0 not configured
> "display-subsystem" at mainbus0 not configured
> "firmware" at mainbus0 not configured
> "opp-table-1" at mainbus0 not configured
> simpleaudio0 at mainbus0
> "pmu" at mainbus0 not configured
> agtimer0 at mainbus0: 24000 kHz
> "xin24m" at mainbus0 not configured
> "xin32k" at mainbus0 not configured
> "sram" at mainbus0 not configured
> xhci0 at mainbus0, xHCI 1.10
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 
> 3.00/1.00 addr 1
> ehci0 at mainbus0
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 
> 2.00/1.00 addr 1
> ohci0 at mainbus0: version 1.0
> ehci1 at mainbus0
> usb2 at ehci1: USB revision 2.0
> uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev 
> 2.00/1.00 addr 1
> ohci1 at mainbus0: version 1.0
> rkiic0 at mainbus0
> iic0 at rkiic0
> fanpwr0 at iic0 addr 0x1c: TCS4525, 1.15 VDC
> rkpmic0 at iic0 addr 0x20: RK809
> rkpwm0 at mainbus0rkclock_get_frequency(rkclock0, 13)
> : no clock
> "gpu" at mainbus0 not configured
> "video-codec" at mainbus0 not configured
> "iommu" at mainbus0 not configured
> "rga" at mainbus0 not configured
> "video-codec" at mainbus0 not configured
> "iommu" at mainbus0 not 

Re: Supported iwn device is not configured on ARM64

2024-01-16 Thread Stefan Sperling
On Tue, Jan 16, 2024 at 02:38:58PM +0800, Kevin Lo wrote:
> The below diff fixes clang warning about possible unaligned access.
> With that fixed, iwm(4) works as expected on my Rock 3A.
> 
> iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless-AC 9260" rev 0x29, 
> msix
> iwm0: hw rev 0x320, fw ver 46.ff18e32a.0, address fc:77:74:xx:xx:xx

Thank you! ok stsp@

> Index: sys/dev/pci/if_iwmreg.h
> ===
> RCS file: /cvs/src/sys/dev/pci/if_iwmreg.h,v
> retrieving revision 1.68
> diff -u -p -u -p -r1.68 if_iwmreg.h
> --- sys/dev/pci/if_iwmreg.h   19 Mar 2022 10:26:52 -  1.68
> +++ sys/dev/pci/if_iwmreg.h   16 Jan 2024 06:06:00 -
> @@ -3361,7 +3361,7 @@ struct iwm_rx_mpdu_desc_v1 {
>   uint32_t phy_data0;
>   uint32_t phy_data1;
>   };
> - };
> + } __packed;
>  } __packed;
>  
>  #define IWM_RX_REORDER_DATA_INVALID_BAID 0x7f
> 



Re: Supported iwn device is not configured on ARM64

2024-01-15 Thread Kevin Lo
On Mon, Jan 15, 2024 at 11:10:17AM +0100, Mark Kettenis wrote:
> 
> > Date: Mon, 15 Jan 2024 00:17:53 -0800
> > From: Mike Larkin 
> > 
> > On Mon, Jan 15, 2024 at 08:58:52AM +0100, Mizsei Zolt?n wrote:
> > > Thanks, that did the trick, see new dmesg below. Would it possible to 
> > > enable iwn* in the upstream sources?
> > >
> > > Best Regards,
> > > --Zoltan
> > >
> > 
> > I think that should be doable. Mark, Patrick, any objections (and if no, do 
> > we
> > want iwm in there too?)
> 
> If we add iwn(4), we probably should add iwm(4) too.
> 
> I think I had some worries that these Intel wireless cards were
> somehow closely tied to Intel chipsets and therefore adding them made
> only sense for amd64.  But iwx(4) works and if iwn(4) works, I think
> we cane safely assume that iwm(4) should work as well.
> 
> So no objection from me.

iwm(4) failed to build:

In file included from /usr/src/sys/dev/pci/if_iwm.c:167:
/usr/src/sys/dev/pci/if_iwmreg.h:3358:2: error: field  within 'struct 
iwm_rx_mpdu_desc_v1' is less aligned than 'union 
iwm_rx_mpdu_desc_v1::(anonymous at /usr/src/sys/dev/pci/if_iwmreg.h:3358:2)' 
and is usually due to 'struct iwm_rx_mpdu_desc_v1' being packed, which can lead 
to unaligned accesses [-Werror,-Wunaligned-access]
union {
^
1 error generated.
*** Error 1 in /usr/src/sys/arch/arm64/compile/GENERIC.MP (Makefile:1562 
'if_iwm.o')

The below diff fixes clang warning about possible unaligned access.
With that fixed, iwm(4) works as expected on my Rock 3A.

iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless-AC 9260" rev 0x29, msix
iwm0: hw rev 0x320, fw ver 46.ff18e32a.0, address fc:77:74:xx:xx:xx

Index: sys/dev/pci/if_iwmreg.h
===
RCS file: /cvs/src/sys/dev/pci/if_iwmreg.h,v
retrieving revision 1.68
diff -u -p -u -p -r1.68 if_iwmreg.h
--- sys/dev/pci/if_iwmreg.h 19 Mar 2022 10:26:52 -  1.68
+++ sys/dev/pci/if_iwmreg.h 16 Jan 2024 06:06:00 -
@@ -3361,7 +3361,7 @@ struct iwm_rx_mpdu_desc_v1 {
uint32_t phy_data0;
uint32_t phy_data1;
};
-   };
+   } __packed;
 } __packed;
 
 #define IWM_RX_REORDER_DATA_INVALID_BAID   0x7f



Re: Supported iwn device is not configured on ARM64

2024-01-15 Thread Mark Kettenis
> Date: Mon, 15 Jan 2024 00:17:53 -0800
> From: Mike Larkin 
> 
> On Mon, Jan 15, 2024 at 08:58:52AM +0100, Mizsei Zoltán wrote:
> > Thanks, that did the trick, see new dmesg below. Would it possible to 
> > enable iwn* in the upstream sources?
> >
> > Best Regards,
> > --Zoltan
> >
> 
> I think that should be doable. Mark, Patrick, any objections (and if no, do we
> want iwm in there too?)

If we add iwn(4), we probably should add iwm(4) too.

I think I had some worries that these Intel wireless cards were
somehow closely tied to Intel chipsets and therefore adding them made
only sense for amd64.  But iwx(4) works and if iwn(4) works, I think
we cane safely assume that iwm(4) should work as well.

So no objection from me.

> > linkstar$ uname -a
> > OpenBSD linkstar.extrowerk.com 7.4 GENERIC.MP#1 arm64
> > linkstar$ dmesg
> > OpenBSD 7.4 (GENERIC.MP) #1: Mon Jan 15 04:02:12 CET 2024
> > szil...@linkstar.extrowerk.com:/sys/arch/arm64/compile/GENERIC.MP
> > real mem  = 3959590912 (3776MB)
> > avail mem = 3759493120 (3585MB)
> > random: good seed from bootblocks
> > mainbus0 at root: HINLINK OPC-H68K Board
> > psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
> > efi0 at mainbus0: UEFI 2.7
> > efi0: EDK2 rev 0x1
> > smbios0 at efi0: SMBIOS 3.3.0
> > smbios0: vendor EDK2 version "miq" date 12/16/2023
> > smbios0: Firefly Firefly ROC-RK3568-PC
> > cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
> > cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu0: 512KB 64b/line 16-way L2 cache
> > cpu0: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
> > cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu1: 512KB 64b/line 16-way L2 cache
> > cpu1: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
> > cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu2: 512KB 64b/line 16-way L2 cache
> > cpu2: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
> > cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu3: 512KB 64b/line 16-way L2 cache
> > cpu3: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > scmi0 at mainbus0: SCMI 2.0
> > apm0 at mainbus0
> > agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
> > "interrupt-controller"
> > syscon0 at mainbus0: "syscon"
> > rkiovd0 at syscon0
> > syscon1 at mainbus0: "syscon"
> > syscon2 at mainbus0: "syscon"
> > syscon3 at mainbus0: "syscon"
> > syscon4 at mainbus0: "syscon"
> > syscon5 at mainbus0: "syscon"
> > syscon6 at mainbus0: "syscon"
> > rkclock0 at mainbus0: PMUCRU
> > rkclock1 at mainbus0: CRU
> > syscon7 at mainbus0: "power-management"
> > "power-controller" at syscon7 not configured
> > syscon8 at mainbus0: "qos"
> > syscon9 at mainbus0: "qos"
> > syscon10 at mainbus0: "qos"
> > syscon11 at mainbus0: "qos"
> > syscon12 at mainbus0: "qos"
> > syscon13 at mainbus0: "qos"
> > syscon14 at mainbus0: "qos"
> > syscon15 at mainbus0: "qos"
> > syscon16 at mainbus0: "qos"
> > syscon17 at mainbus0: "qos"
> > syscon18 at mainbus0: "qos"
> > syscon19 at mainbus0: "qos"
> > syscon20 at mainbus0: "qos"
> > syscon21 at mainbus0: "qos"
> > syscon22 at mainbus0: "qos"
> > syscon23 at mainbus0: "qos"
> > syscon24 at mainbus0: "qos"
> > syscon25 at mainbus0: "qos"
> > syscon26 at mainbus0: "qos"
> > syscon27 at mainbus0: "qos"
> > syscon28 at mainbus0: "qos"
> > syscon29 at mainbus0: "qos"
> > syscon30 at mainbus0: "qos"
> > syscon31 at mainbus0: "qos"
> > rkcomphy0 at mainbus0
> > rkcomphy1 at mainbus0
> > rkusbphy0 at mainbus0: phy 0
> > rkusbphy1 at mainbus0: phy 1
> > rkpinctrl0 at mainbus0: "pinctrl"
> > rkgpio0 at rkpinctrl0
> > rkgpio1 at rkpinctrl0
> > rkgpio2 at rkpinctrl0
> > rkgpio3 at rkpinctrl0
> > rkgpio4 at rkpinctrl0
> > syscon32 at mainbus0: "syscon"
> > syscon33 at mainbus0: "qos"
> > syscon34 at mainbus0: "qos"
> > syscon35 at mainbus0: "qos"
> > syscon36 at mainbus0: "syscon"
> > rkpciephy0 at mainbus0
> > rkcomphy2 at mainbus0
> > "fit-images" at mainbus0 not configured
> > "opp-table-0" at mainbus0 not configured
> > "display-subsystem" at mainbus0 not configured
> > "firmware" at mainbus0 not configured
> > "opp-table-1" at mainbus0 not configured
> > simpleaudio0 at mainbus0
> > "pmu" at mainbus0 not configured
> > agtimer0 at mainbus0: 24000 kHz
> > "xin24m" at mainbus0 not configured
> > "xin32k" at mainbus0 not configured
> > "sram" at mainbus0 not configured
> > xhci0 at mainbus0, xHCI 1.10
> > usb0 at xhci0: USB revision 3.0
> > uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 
> > 3.00/1.00 addr 1
> > ehci0 at mainbus0
> > usb1 at ehci0: USB revision 2.0
> > 

Re: Supported iwn device is not configured on ARM64

2024-01-15 Thread Mizsei Zoltán
This is strange, i made absolutely no change, but OBSD now recognizes the WLAN 
card as 6235 (this should be the correct):

linkstar$ dmesg
OpenBSD 7.4 (GENERIC.MP) #1: Mon Jan 15 04:02:12 CET 2024
szil...@linkstar.extrowerk.com:/sys/arch/arm64/compile/GENERIC.MP
real mem  = 3959590912 (3776MB)
avail mem = 3759493120 (3585MB)
random: good seed from bootblocks
mainbus0 at root: HINLINK OPC-H68K Board
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
efi0 at mainbus0: UEFI 2.7
efi0: EDK2 rev 0x1
smbios0 at efi0: SMBIOS 3.3.0
smbios0: vendor EDK2 version "miq" date 12/16/2023
smbios0: Firefly Firefly ROC-RK3568-PC
cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu1: 512KB 64b/line 16-way L2 cache
cpu1: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu2: 512KB 64b/line 16-way L2 cache
cpu2: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu3: 512KB 64b/line 16-way L2 cache
cpu3: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
scmi0 at mainbus0: SCMI 2.0
apm0 at mainbus0
agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
"interrupt-controller"
syscon0 at mainbus0: "syscon"
rkiovd0 at syscon0
syscon1 at mainbus0: "syscon"
syscon2 at mainbus0: "syscon"
syscon3 at mainbus0: "syscon"
syscon4 at mainbus0: "syscon"
syscon5 at mainbus0: "syscon"
syscon6 at mainbus0: "syscon"
rkclock0 at mainbus0: PMUCRU
rkclock1 at mainbus0: CRU
syscon7 at mainbus0: "power-management"
"power-controller" at syscon7 not configured
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "qos"
syscon26 at mainbus0: "qos"
syscon27 at mainbus0: "qos"
syscon28 at mainbus0: "qos"
syscon29 at mainbus0: "qos"
syscon30 at mainbus0: "qos"
syscon31 at mainbus0: "qos"
rkcomphy0 at mainbus0
rkcomphy1 at mainbus0
rkusbphy0 at mainbus0: phy 0
rkusbphy1 at mainbus0: phy 1
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
syscon32 at mainbus0: "syscon"
syscon33 at mainbus0: "qos"
syscon34 at mainbus0: "qos"
syscon35 at mainbus0: "qos"
syscon36 at mainbus0: "syscon"
rkpciephy0 at mainbus0
rkcomphy2 at mainbus0
"fit-images" at mainbus0 not configured
"opp-table-0" at mainbus0 not configured
"display-subsystem" at mainbus0 not configured
"firmware" at mainbus0 not configured
"opp-table-1" at mainbus0 not configured
simpleaudio0 at mainbus0
"pmu" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"xin24m" at mainbus0 not configured
"xin32k" at mainbus0 not configured
"sram" at mainbus0 not configured
xhci0 at mainbus0, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
ehci0 at mainbus0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci0 at mainbus0: version 1.0
ehci1 at mainbus0
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at mainbus0: version 1.0
rkiic0 at mainbus0
iic0 at rkiic0
fanpwr0 at iic0 addr 0x1c: TCS4525, 1.15 VDC
rkpmic0 at iic0 addr 0x20: RK809
rkpwm0 at mainbus0rkclock_get_frequency(rkclock0, 13)
: no clock
"gpu" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
"rga" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
dwqe0 at mainbus0 gmac 1: rev 0x00, address 3e:68:a7:8e:7e:25
rgephy0 at dwqe0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi" at mainbus0 not configured
dwpcie0 at mainbus0
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, dma
dwmshc0 at mainbus0
dwmshc0: SDHC 4.20, 200 MHz base clock
sdmmc1 at dwmshc0: 8-bit, sd high-speed, mmc high-speed, dma

Re: Supported iwn device is not configured on ARM64

2024-01-15 Thread Mike Larkin
On Mon, Jan 15, 2024 at 08:58:52AM +0100, Mizsei Zoltán wrote:
> Thanks, that did the trick, see new dmesg below. Would it possible to enable 
> iwn* in the upstream sources?
>
> Best Regards,
> --Zoltan
>

I think that should be doable. Mark, Patrick, any objections (and if no, do we
want iwm in there too?)

-ml

> linkstar$ uname -a
> OpenBSD linkstar.extrowerk.com 7.4 GENERIC.MP#1 arm64
> linkstar$ dmesg
> OpenBSD 7.4 (GENERIC.MP) #1: Mon Jan 15 04:02:12 CET 2024
> szil...@linkstar.extrowerk.com:/sys/arch/arm64/compile/GENERIC.MP
> real mem  = 3959590912 (3776MB)
> avail mem = 3759493120 (3585MB)
> random: good seed from bootblocks
> mainbus0 at root: HINLINK OPC-H68K Board
> psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
> efi0 at mainbus0: UEFI 2.7
> efi0: EDK2 rev 0x1
> smbios0 at efi0: SMBIOS 3.3.0
> smbios0: vendor EDK2 version "miq" date 12/16/2023
> smbios0: Firefly Firefly ROC-RK3568-PC
> cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
> cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu0: 512KB 64b/line 16-way L2 cache
> cpu0: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
> cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu1: 512KB 64b/line 16-way L2 cache
> cpu1: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
> cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu2: 512KB 64b/line 16-way L2 cache
> cpu2: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
> cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu3: 512KB 64b/line 16-way L2 cache
> cpu3: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> scmi0 at mainbus0: SCMI 2.0
> apm0 at mainbus0
> agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
> "interrupt-controller"
> syscon0 at mainbus0: "syscon"
> rkiovd0 at syscon0
> syscon1 at mainbus0: "syscon"
> syscon2 at mainbus0: "syscon"
> syscon3 at mainbus0: "syscon"
> syscon4 at mainbus0: "syscon"
> syscon5 at mainbus0: "syscon"
> syscon6 at mainbus0: "syscon"
> rkclock0 at mainbus0: PMUCRU
> rkclock1 at mainbus0: CRU
> syscon7 at mainbus0: "power-management"
> "power-controller" at syscon7 not configured
> syscon8 at mainbus0: "qos"
> syscon9 at mainbus0: "qos"
> syscon10 at mainbus0: "qos"
> syscon11 at mainbus0: "qos"
> syscon12 at mainbus0: "qos"
> syscon13 at mainbus0: "qos"
> syscon14 at mainbus0: "qos"
> syscon15 at mainbus0: "qos"
> syscon16 at mainbus0: "qos"
> syscon17 at mainbus0: "qos"
> syscon18 at mainbus0: "qos"
> syscon19 at mainbus0: "qos"
> syscon20 at mainbus0: "qos"
> syscon21 at mainbus0: "qos"
> syscon22 at mainbus0: "qos"
> syscon23 at mainbus0: "qos"
> syscon24 at mainbus0: "qos"
> syscon25 at mainbus0: "qos"
> syscon26 at mainbus0: "qos"
> syscon27 at mainbus0: "qos"
> syscon28 at mainbus0: "qos"
> syscon29 at mainbus0: "qos"
> syscon30 at mainbus0: "qos"
> syscon31 at mainbus0: "qos"
> rkcomphy0 at mainbus0
> rkcomphy1 at mainbus0
> rkusbphy0 at mainbus0: phy 0
> rkusbphy1 at mainbus0: phy 1
> rkpinctrl0 at mainbus0: "pinctrl"
> rkgpio0 at rkpinctrl0
> rkgpio1 at rkpinctrl0
> rkgpio2 at rkpinctrl0
> rkgpio3 at rkpinctrl0
> rkgpio4 at rkpinctrl0
> syscon32 at mainbus0: "syscon"
> syscon33 at mainbus0: "qos"
> syscon34 at mainbus0: "qos"
> syscon35 at mainbus0: "qos"
> syscon36 at mainbus0: "syscon"
> rkpciephy0 at mainbus0
> rkcomphy2 at mainbus0
> "fit-images" at mainbus0 not configured
> "opp-table-0" at mainbus0 not configured
> "display-subsystem" at mainbus0 not configured
> "firmware" at mainbus0 not configured
> "opp-table-1" at mainbus0 not configured
> simpleaudio0 at mainbus0
> "pmu" at mainbus0 not configured
> agtimer0 at mainbus0: 24000 kHz
> "xin24m" at mainbus0 not configured
> "xin32k" at mainbus0 not configured
> "sram" at mainbus0 not configured
> xhci0 at mainbus0, xHCI 1.10
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 
> 3.00/1.00 addr 1
> ehci0 at mainbus0
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 
> 2.00/1.00 addr 1
> ohci0 at mainbus0: version 1.0
> ehci1 at mainbus0
> usb2 at ehci1: USB revision 2.0
> uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev 
> 2.00/1.00 addr 1
> ohci1 at mainbus0: version 1.0
> rkiic0 at mainbus0
> iic0 at rkiic0
> fanpwr0 at iic0 addr 0x1c: TCS4525, 1.15 VDC
> rkpmic0 at iic0 addr 0x20: RK809
> rkpwm0 at mainbus0rkclock_get_frequency(rkclock0, 13)
> : no clock
> "gpu" at mainbus0 not configured
> "video-codec" at mainbus0 not configured
> "iommu" at mainbus0 not configured
> "rga" at mainbus0 not configured

Re: Supported iwn device is not configured on ARM64

2024-01-15 Thread Mizsei Zoltán
Thanks, that did the trick, see new dmesg below. Would it possible to enable 
iwn* in the upstream sources?

Best Regards,
--Zoltan

linkstar$ uname -a
OpenBSD linkstar.extrowerk.com 7.4 GENERIC.MP#1 arm64
linkstar$ dmesg
OpenBSD 7.4 (GENERIC.MP) #1: Mon Jan 15 04:02:12 CET 2024
szil...@linkstar.extrowerk.com:/sys/arch/arm64/compile/GENERIC.MP
real mem  = 3959590912 (3776MB)
avail mem = 3759493120 (3585MB)
random: good seed from bootblocks
mainbus0 at root: HINLINK OPC-H68K Board
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
efi0 at mainbus0: UEFI 2.7
efi0: EDK2 rev 0x1
smbios0 at efi0: SMBIOS 3.3.0
smbios0: vendor EDK2 version "miq" date 12/16/2023
smbios0: Firefly Firefly ROC-RK3568-PC
cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu1: 512KB 64b/line 16-way L2 cache
cpu1: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu2: 512KB 64b/line 16-way L2 cache
cpu2: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu3: 512KB 64b/line 16-way L2 cache
cpu3: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
scmi0 at mainbus0: SCMI 2.0
apm0 at mainbus0
agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
"interrupt-controller"
syscon0 at mainbus0: "syscon"
rkiovd0 at syscon0
syscon1 at mainbus0: "syscon"
syscon2 at mainbus0: "syscon"
syscon3 at mainbus0: "syscon"
syscon4 at mainbus0: "syscon"
syscon5 at mainbus0: "syscon"
syscon6 at mainbus0: "syscon"
rkclock0 at mainbus0: PMUCRU
rkclock1 at mainbus0: CRU
syscon7 at mainbus0: "power-management"
"power-controller" at syscon7 not configured
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "qos"
syscon26 at mainbus0: "qos"
syscon27 at mainbus0: "qos"
syscon28 at mainbus0: "qos"
syscon29 at mainbus0: "qos"
syscon30 at mainbus0: "qos"
syscon31 at mainbus0: "qos"
rkcomphy0 at mainbus0
rkcomphy1 at mainbus0
rkusbphy0 at mainbus0: phy 0
rkusbphy1 at mainbus0: phy 1
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
syscon32 at mainbus0: "syscon"
syscon33 at mainbus0: "qos"
syscon34 at mainbus0: "qos"
syscon35 at mainbus0: "qos"
syscon36 at mainbus0: "syscon"
rkpciephy0 at mainbus0
rkcomphy2 at mainbus0
"fit-images" at mainbus0 not configured
"opp-table-0" at mainbus0 not configured
"display-subsystem" at mainbus0 not configured
"firmware" at mainbus0 not configured
"opp-table-1" at mainbus0 not configured
simpleaudio0 at mainbus0
"pmu" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"xin24m" at mainbus0 not configured
"xin32k" at mainbus0 not configured
"sram" at mainbus0 not configured
xhci0 at mainbus0, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
ehci0 at mainbus0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci0 at mainbus0: version 1.0
ehci1 at mainbus0
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at mainbus0: version 1.0
rkiic0 at mainbus0
iic0 at rkiic0
fanpwr0 at iic0 addr 0x1c: TCS4525, 1.15 VDC
rkpmic0 at iic0 addr 0x20: RK809
rkpwm0 at mainbus0rkclock_get_frequency(rkclock0, 13)
: no clock
"gpu" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
"rga" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
dwqe0 at mainbus0 gmac 1: rev 0x00, address 3e:68:a7:8e:7e:25
rgephy0 at dwqe0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi" at mainbus0 not configured
dwpcie0 at mainbus0
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, dma
dwmshc0 at mainbus0
dwmshc0: SDHC 4.20, 

Re: Supported iwn device is not configured on ARM64

2024-01-14 Thread Mike Larkin
On Sun, Jan 14, 2024 at 12:28:17PM -0800, Mike Larkin wrote:
> On Sun, Jan 14, 2024 at 09:13:54PM +0100, Mizsei Zoltán wrote:
> > Hi,
> >
> > I have messing with OpenBSD current on my LinkStar H68K ARM box, based on 
> > the Rockchip RK3568 SOC. Originally it had an unsupported Mediatek wlan 
> > card, which i have replaced it with an intel one i had lying around.
> > While OBSD recognizes the installed card, it categorically states it is 
> > not-configured, while it supposed to be supported by the iwn driver.
> >
> > Sadly i did not made any photo about the card i have installed, and the 
> > device is tricky to disassemble, but AFAIR the installed card is 0x8086, 
> > 0x088f, "Intel Centrino Advanced-N 6235. What could cause a device 
> > mis-recognition?
> >
> > Any idea what's going on here?
> >
> > Best Regards,
> > --Zoltan
> >
>
> iwn* at pci? is not in arm64 GENERIC.
>
> You might try adding that line to /sys/arch/arm64/conf/GENERIC (look for iwx
> just toss it after that). It might work.
>
> -ml

also in case it wasn't obvious, you need to reconfigure the kernel and rebuild
after doing that.

>
> > OpenBSD 7.4-current (GENERIC.MP) #40: Wed Jan 10 02:01:40 MST 2024
> > dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
> > real mem  = 3959590912 (3776MB)
> > avail mem = 3755196416 (3581MB)
> > random: good seed from bootblocks
> > mainbus0 at root: HINLINK OPC-H68K Board
> > psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
> > efi0 at mainbus0: UEFI 2.7
> > efi0: EDK2 rev 0x1
> > smbios0 at efi0: SMBIOS 3.3.0
> > smbios0: vendor EDK2 version "miq" date 12/16/2023
> > smbios0: Firefly Firefly ROC-RK3568-PC
> > cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
> > cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu0: 512KB 64b/line 16-way L2 cache
> > cpu0: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
> > cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu1: 512KB 64b/line 16-way L2 cache
> > cpu1: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
> > cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu2: 512KB 64b/line 16-way L2 cache
> > cpu2: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
> > cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> > cpu3: 512KB 64b/line 16-way L2 cache
> > cpu3: 
> > DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> > scmi0 at mainbus0: SCMI 2.0
> > apm0 at mainbus0
> > agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
> > "interrupt-controller"
> > syscon0 at mainbus0: "syscon"
> > rkiovd0 at syscon0
> > syscon1 at mainbus0: "syscon"
> > syscon2 at mainbus0: "syscon"
> > syscon3 at mainbus0: "syscon"
> > syscon4 at mainbus0: "syscon"
> > syscon5 at mainbus0: "syscon"
> > syscon6 at mainbus0: "syscon"
> > rkclock0 at mainbus0: PMUCRU
> > rkclock1 at mainbus0: CRU
> > syscon7 at mainbus0: "power-management"
> > "power-controller" at syscon7 not configured
> > syscon8 at mainbus0: "qos"
> > syscon9 at mainbus0: "qos"
> > syscon10 at mainbus0: "qos"
> > syscon11 at mainbus0: "qos"
> > syscon12 at mainbus0: "qos"
> > syscon13 at mainbus0: "qos"
> > syscon14 at mainbus0: "qos"
> > syscon15 at mainbus0: "qos"
> > syscon16 at mainbus0: "qos"
> > syscon17 at mainbus0: "qos"
> > syscon18 at mainbus0: "qos"
> > syscon19 at mainbus0: "qos"
> > syscon20 at mainbus0: "qos"
> > syscon21 at mainbus0: "qos"
> > syscon22 at mainbus0: "qos"
> > syscon23 at mainbus0: "qos"
> > syscon24 at mainbus0: "qos"
> > syscon25 at mainbus0: "qos"
> > syscon26 at mainbus0: "qos"
> > syscon27 at mainbus0: "qos"
> > syscon28 at mainbus0: "qos"
> > syscon29 at mainbus0: "qos"
> > syscon30 at mainbus0: "qos"
> > syscon31 at mainbus0: "qos"
> > rkcomphy0 at mainbus0
> > rkcomphy1 at mainbus0
> > rkusbphy0 at mainbus0: phy 0
> > rkusbphy1 at mainbus0: phy 1
> > rkpinctrl0 at mainbus0: "pinctrl"
> > rkgpio0 at rkpinctrl0
> > rkgpio1 at rkpinctrl0
> > rkgpio2 at rkpinctrl0
> > rkgpio3 at rkpinctrl0
> > rkgpio4 at rkpinctrl0
> > syscon32 at mainbus0: "syscon"
> > syscon33 at mainbus0: "qos"
> > syscon34 at mainbus0: "qos"
> > syscon35 at mainbus0: "qos"
> > syscon36 at mainbus0: "syscon"
> > rkpciephy0 at mainbus0
> > rkcomphy2 at mainbus0
> > "fit-images" at mainbus0 not configured
> > "opp-table-0" at mainbus0 not configured
> > "display-subsystem" at mainbus0 not configured
> > "firmware" at mainbus0 not configured
> > "opp-table-1" at mainbus0 not configured
> > simpleaudio0 at mainbus0
> > "pmu" at mainbus0 not configured
> > agtimer0 at mainbus0: 24000 kHz
> > "xin24m" at mainbus0 not configured
> > 

Re: Supported iwn device is not configured on ARM64

2024-01-14 Thread Mike Larkin
On Sun, Jan 14, 2024 at 09:13:54PM +0100, Mizsei Zoltán wrote:
> Hi,
>
> I have messing with OpenBSD current on my LinkStar H68K ARM box, based on the 
> Rockchip RK3568 SOC. Originally it had an unsupported Mediatek wlan card, 
> which i have replaced it with an intel one i had lying around.
> While OBSD recognizes the installed card, it categorically states it is 
> not-configured, while it supposed to be supported by the iwn driver.
>
> Sadly i did not made any photo about the card i have installed, and the 
> device is tricky to disassemble, but AFAIR the installed card is 0x8086, 
> 0x088f, "Intel Centrino Advanced-N 6235. What could cause a device 
> mis-recognition?
>
> Any idea what's going on here?
>
> Best Regards,
> --Zoltan
>

iwn* at pci? is not in arm64 GENERIC.

You might try adding that line to /sys/arch/arm64/conf/GENERIC (look for iwx
just toss it after that). It might work.

-ml

> OpenBSD 7.4-current (GENERIC.MP) #40: Wed Jan 10 02:01:40 MST 2024
> dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
> real mem  = 3959590912 (3776MB)
> avail mem = 3755196416 (3581MB)
> random: good seed from bootblocks
> mainbus0 at root: HINLINK OPC-H68K Board
> psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
> efi0 at mainbus0: UEFI 2.7
> efi0: EDK2 rev 0x1
> smbios0 at efi0: SMBIOS 3.3.0
> smbios0: vendor EDK2 version "miq" date 12/16/2023
> smbios0: Firefly Firefly ROC-RK3568-PC
> cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
> cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu0: 512KB 64b/line 16-way L2 cache
> cpu0: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
> cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu1: 512KB 64b/line 16-way L2 cache
> cpu1: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
> cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu2: 512KB 64b/line 16-way L2 cache
> cpu2: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
> cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
> cpu3: 512KB 64b/line 16-way L2 cache
> cpu3: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
> scmi0 at mainbus0: SCMI 2.0
> apm0 at mainbus0
> agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
> "interrupt-controller"
> syscon0 at mainbus0: "syscon"
> rkiovd0 at syscon0
> syscon1 at mainbus0: "syscon"
> syscon2 at mainbus0: "syscon"
> syscon3 at mainbus0: "syscon"
> syscon4 at mainbus0: "syscon"
> syscon5 at mainbus0: "syscon"
> syscon6 at mainbus0: "syscon"
> rkclock0 at mainbus0: PMUCRU
> rkclock1 at mainbus0: CRU
> syscon7 at mainbus0: "power-management"
> "power-controller" at syscon7 not configured
> syscon8 at mainbus0: "qos"
> syscon9 at mainbus0: "qos"
> syscon10 at mainbus0: "qos"
> syscon11 at mainbus0: "qos"
> syscon12 at mainbus0: "qos"
> syscon13 at mainbus0: "qos"
> syscon14 at mainbus0: "qos"
> syscon15 at mainbus0: "qos"
> syscon16 at mainbus0: "qos"
> syscon17 at mainbus0: "qos"
> syscon18 at mainbus0: "qos"
> syscon19 at mainbus0: "qos"
> syscon20 at mainbus0: "qos"
> syscon21 at mainbus0: "qos"
> syscon22 at mainbus0: "qos"
> syscon23 at mainbus0: "qos"
> syscon24 at mainbus0: "qos"
> syscon25 at mainbus0: "qos"
> syscon26 at mainbus0: "qos"
> syscon27 at mainbus0: "qos"
> syscon28 at mainbus0: "qos"
> syscon29 at mainbus0: "qos"
> syscon30 at mainbus0: "qos"
> syscon31 at mainbus0: "qos"
> rkcomphy0 at mainbus0
> rkcomphy1 at mainbus0
> rkusbphy0 at mainbus0: phy 0
> rkusbphy1 at mainbus0: phy 1
> rkpinctrl0 at mainbus0: "pinctrl"
> rkgpio0 at rkpinctrl0
> rkgpio1 at rkpinctrl0
> rkgpio2 at rkpinctrl0
> rkgpio3 at rkpinctrl0
> rkgpio4 at rkpinctrl0
> syscon32 at mainbus0: "syscon"
> syscon33 at mainbus0: "qos"
> syscon34 at mainbus0: "qos"
> syscon35 at mainbus0: "qos"
> syscon36 at mainbus0: "syscon"
> rkpciephy0 at mainbus0
> rkcomphy2 at mainbus0
> "fit-images" at mainbus0 not configured
> "opp-table-0" at mainbus0 not configured
> "display-subsystem" at mainbus0 not configured
> "firmware" at mainbus0 not configured
> "opp-table-1" at mainbus0 not configured
> simpleaudio0 at mainbus0
> "pmu" at mainbus0 not configured
> agtimer0 at mainbus0: 24000 kHz
> "xin24m" at mainbus0 not configured
> "xin32k" at mainbus0 not configured
> "sram" at mainbus0 not configured
> xhci0 at mainbus0, xHCI 1.10
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 
> 3.00/1.00 addr 1
> ehci0 at mainbus0
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 
> 2.00/1.00 addr 1
> ohci0 at mainbus0: version 1.0
> 

Supported iwn device is not configured on ARM64

2024-01-14 Thread Mizsei Zoltán
Hi,

I have messing with OpenBSD current on my LinkStar H68K ARM box, based on the 
Rockchip RK3568 SOC. Originally it had an unsupported Mediatek wlan card, which 
i have replaced it with an intel one i had lying around.
While OBSD recognizes the installed card, it categorically states it is 
not-configured, while it supposed to be supported by the iwn driver.

Sadly i did not made any photo about the card i have installed, and the device 
is tricky to disassemble, but AFAIR the installed card is 0x8086, 0x088f, 
"Intel Centrino Advanced-N 6235. What could cause a device mis-recognition?

Any idea what's going on here?

Best Regards,
--Zoltan

OpenBSD 7.4-current (GENERIC.MP) #40: Wed Jan 10 02:01:40 MST 2024
dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 3959590912 (3776MB)
avail mem = 3755196416 (3581MB)
random: good seed from bootblocks
mainbus0 at root: HINLINK OPC-H68K Board
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
efi0 at mainbus0: UEFI 2.7
efi0: EDK2 rev 0x1
smbios0 at efi0: SMBIOS 3.3.0
smbios0: vendor EDK2 version "miq" date 12/16/2023
smbios0: Firefly Firefly ROC-RK3568-PC
cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0
cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu1: 512KB 64b/line 16-way L2 cache
cpu1: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0
cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu2: 512KB 64b/line 16-way L2 cache
cpu2: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0
cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu3: 512KB 64b/line 16-way L2 cache
cpu3: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
scmi0 at mainbus0: SCMI 2.0
apm0 at mainbus0
agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: 
"interrupt-controller"
syscon0 at mainbus0: "syscon"
rkiovd0 at syscon0
syscon1 at mainbus0: "syscon"
syscon2 at mainbus0: "syscon"
syscon3 at mainbus0: "syscon"
syscon4 at mainbus0: "syscon"
syscon5 at mainbus0: "syscon"
syscon6 at mainbus0: "syscon"
rkclock0 at mainbus0: PMUCRU
rkclock1 at mainbus0: CRU
syscon7 at mainbus0: "power-management"
"power-controller" at syscon7 not configured
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "qos"
syscon26 at mainbus0: "qos"
syscon27 at mainbus0: "qos"
syscon28 at mainbus0: "qos"
syscon29 at mainbus0: "qos"
syscon30 at mainbus0: "qos"
syscon31 at mainbus0: "qos"
rkcomphy0 at mainbus0
rkcomphy1 at mainbus0
rkusbphy0 at mainbus0: phy 0
rkusbphy1 at mainbus0: phy 1
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
syscon32 at mainbus0: "syscon"
syscon33 at mainbus0: "qos"
syscon34 at mainbus0: "qos"
syscon35 at mainbus0: "qos"
syscon36 at mainbus0: "syscon"
rkpciephy0 at mainbus0
rkcomphy2 at mainbus0
"fit-images" at mainbus0 not configured
"opp-table-0" at mainbus0 not configured
"display-subsystem" at mainbus0 not configured
"firmware" at mainbus0 not configured
"opp-table-1" at mainbus0 not configured
simpleaudio0 at mainbus0
"pmu" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"xin24m" at mainbus0 not configured
"xin32k" at mainbus0 not configured
"sram" at mainbus0 not configured
xhci0 at mainbus0, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
ehci0 at mainbus0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci0 at mainbus0: version 1.0
ehci1 at mainbus0
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at mainbus0: version 1.0
rkiic0 at mainbus0
iic0 at rkiic0
fanpwr0 at iic0 addr 0x1c: TCS4525, 1.15 VDC
rkpmic0 at iic0 addr 0x20: RK809
rkpwm0 at mainbus0rkclock_get_frequency(rkclock0, 13)
: no clock
"gpu" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
"rga" at mainbus0 not