On Tue, Aug 08, 2023 at 09:49:05AM +0100, Zé Loff wrote: > On Tue, Aug 08, 2023 at 04:25:31PM +0800, Yue Wu wrote: > > Hi list, > > > > I have a mainboard which has 12 SATA ports, but only 8 ports could > > be recognized by openbsd, other 4 ports can't, dmesg has messages > > something like this: > > > > ahci2.1: port is unplugged > > ahci2.1: unable to probe PMP port; portreset failed > > ahci2.3: port is unplugged > > ahci2.3: unable to probe PMP port; portreset failed > > > > What should I do? > > You should send a full dmesg. There is a lot of crucial information > missing, here, not least about the ahci controller. > > > btw, debian and FreeBSD work well, all disks could be recognized.
Here it is: ```txt OpenBSD 7.3 (GENERIC.MP) #1125: Sat Mar 25 10:36:29 MDT 2023 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4147118080 (3955MB) avail mem = 4002033664 (3816MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xebea0 (49 entries) bios0: vendor American Megatrends Inc. version "5.6.5" date 06/08/2018 bios0: AMI Corporation Aptio CRB acpi0 at bios0: ACPI 5.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT FIDT MCFG LPIT HPET SSDT SSDT SSDT UEFI acpi0: wakeup devices XHC1(S4) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) PWRB(S0) BRCM(S0) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.36 MHz, 06-37-08 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 16-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 83MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.51 MHz, 06-37-08 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu1: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 16-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2000.82 MHz, 06-37-08 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu2: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 16-way L2 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz, 2001.13 MHz, 06-37-08 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN cpu3: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 16-way L2 cache cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 87 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (RP01) acpiprt2 at acpi0: bus 2 (RP02) acpiprt3 at acpi0: bus 3 (RP03) acpiprt4 at acpi0: bus 4 (RP04) acpiec0 at acpi0: not present acpicmos0 at acpi0 acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo "DMA0F28" at acpi0 not configured acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: SLPB "BCM2E1A" at acpi0 not configured "BCM4752" at acpi0 not configured "INTCF0B" at acpi0 not configured "INTCF1A" at acpi0 not configured "INTCF1C" at acpi0 not configured "SMO91D0" at acpi0 not configured "ATML1000" at acpi0 not configured "INT33BD" at acpi0 not configured acpicpu0 at acpi0: C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS acpicpu2 at acpi0: C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS acpicpu3 at acpi0: C3(10@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: PLPE acpipwrres1 at acpi0: PLPE acpipwrres2 at acpi0: USBC, resource for EHC1, OTG1 acpipwrres3 at acpi0: CLK0, resource for CAM1 acpipwrres4 at acpi0: CLK1, resource for CAM0, CAM2 acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD1F cpu0: using VERW MDS workaround cpu0: Enhanced SpeedStep 2000 MHz: speeds: 1993, 1992, 1909, 1826, 1743, 1660, 1577, 1494, 1411, 1328 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Bay Trail Host" rev 0x0e inteldrm0 at pci0 dev 2 function 0 "Intel Bay Trail Video" rev 0x0e drm0 at inteldrm0 inteldrm0: msi, VALLEYVIEW, gen 7 ahci0 at pci0 dev 19 function 0 "Intel Bay Trail AHCI" rev 0x0e: msi, AHCI 1.3 ahci0: port 0: 3.0Gb/s ahci0: port 1: 3.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: <ATA, ST3000VN007-2E41, SC60> naa.5000c500b17f01ab sd0: 2861588MB, 512 bytes/sector, 5860533168 sectors sd1 at scsibus1 targ 1 lun 0: <ATA, BORY M500 16G, 2017> t10.ATA_BORY_M500_16G_AA000000000000000320 sd1: 15104MB, 512 bytes/sector, 30932992 sectors, thin xhci0 at pci0 dev 20 function 0 "Intel Bay Trail xHCI" rev 0x0e: msi, xHCI 1.0 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 "Intel Bay Trail TXE" rev 0x0e at pci0 dev 26 function 0 not configured azalia0 at pci0 dev 27 function 0 "Intel Bay Trail HD Audio" rev 0x0e: msi azalia0: codecs: Realtek ALC662, Intel/0x2882, using Realtek ALC662 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel Bay Trail PCIE" rev 0x0e: msi pci1 at ppb0 bus 1 ahci1 at pci1 dev 0 function 0 "Marvell 88SE9215 AHCI" rev 0x11: msi, AHCI 1.0 ahci1: port busy after first PMP probe FIS ahci1: port busy after first PMP probe FIS ahci1: port 0: 6.0Gb/s ahci1: port busy after first PMP probe FIS ahci1: port busy after first PMP probe FIS ahci1: port 2: 6.0Gb/s ahci1: port busy after first PMP probe FIS ahci1: port busy after first PMP probe FIS ahci1: port 3: 6.0Gb/s scsibus2 at ahci1: 32 targets sd2 at scsibus2 targ 0 lun 0: <ATA, ST6000VN0041-2EL, SC61> naa.5000c500af9ea721 sd2: 5723166MB, 512 bytes/sector, 11721045168 sectors sd3 at scsibus2 targ 2 lun 0: <ATA, WDC WD40EFRX-68W, 80.0> naa.50014ee20a3b4bbf sd3: 3815447MB, 512 bytes/sector, 7814037168 sectors sd4 at scsibus2 targ 3 lun 0: <ATA, WDC WD40EFRX-68W, 80.0> naa.50014ee260f1deb8 sd4: 3815447MB, 512 bytes/sector, 7814037168 sectors ppb1 at pci0 dev 28 function 1 "Intel Bay Trail PCIE" rev 0x0e: msi pci2 at ppb1 bus 2 ahci2 at pci2 dev 0 function 0 "Marvell 88SE9215 AHCI" rev 0x11: msi, AHCI 1.0 ahci2: port busy after first PMP probe FIS ahci2: port busy after first PMP probe FIS ahci2: port 1: 3.0Gb/s ahci2: port busy after first PMP probe FIS ahci2: port busy after first PMP probe FIS ahci2: port 2: 6.0Gb/s ahci2: port busy after first PMP probe FIS ahci2: port busy after first PMP probe FIS ahci2: port multiplier found: chip=97051b4b rev=0xa00e<PM1.1,PM1.0> nports=5, features: 0x1f<AsyncNotify,DynamicSSC,PMREQ,BIST>, enabled: 0x1<BIST> ahci2: port 3: 6.0Gb/s scsibus3 at ahci2: 32 targets sd5 at scsibus3 targ 1 lun 0: <ATA, WDC WD30EFRX-68E, 01.0> naa.50014ee25f646f43 sd5: 2861588MB, 512 bytes/sector, 5860533168 sectors sd6 at scsibus3 targ 2 lun 0: <ATA, ST3000VN007-2E41, SC60> naa.5000c500b0931ee6 sd6: 2861588MB, 512 bytes/sector, 5860533168 sectors uk0 at scsibus3 targ 3 lun 0: <ATA, Port Multiplier, > sd7 at scsibus3 targ 3 lun 1: <ATA, ST4000VX007-2DT1, CV11> naa.5000c500b13cb3ea sd7: 3815447MB, 512 bytes/sector, 7814037168 sectors ahci2.1: port is unplugged ahci2.1: unable to probe PMP port; portreset failed ahci2.3: port is unplugged ahci2.3: unable to probe PMP port; portreset failed ppb2 at pci0 dev 28 function 2 "Intel Bay Trail PCIE" rev 0x0e: msi pci3 at ppb2 bus 3 em0 at pci3 dev 0 function 0 "Intel I211" rev 0x03: msi, address 00:e0:b4:1b:ae:96 ppb3 at pci0 dev 28 function 3 "Intel Bay Trail PCIE" rev 0x0e: msi pci4 at ppb3 bus 4 em1 at pci4 dev 0 function 0 "Intel I211" rev 0x03: msi, address 00:e0:b4:1b:ae:97 pcib0 at pci0 dev 31 function 0 "Intel Bay Trail LPC" rev 0x0e ichiic0 at pci0 dev 31 function 3 "Intel Bay Trail SMBus" rev 0x0e: apic 1 int 18 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 it0 at isa0 port 0x2e/2: IT8772F rev 1, EC port 0xa30 vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation) uhidev0 at uhub0 port 1 configuration 1 interface 0 "PIXART USB OPTICAL MOUSE" rev 1.10/1.00 addr 2 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse0 at ums0 mux 0 uhub1 at uhub0 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/85.37 addr 3 uhidev1 at uhub1 port 3 configuration 1 interface 0 "LIZHI Flash IC USB Keyboard" rev 1.10/1.05 addr 4 uhidev1: iclass 3/1 ukbd0 at uhidev1: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 uhidev2 at uhub1 port 3 configuration 1 interface 1 "LIZHI Flash IC USB Keyboard" rev 1.10/1.05 addr 4 uhidev2: iclass 3/1, 5 report ids ucc0 at uhidev2 reportid 1: 573 usages, 20 keys, array wskbd2 at ucc0 mux 1 uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0 ukbd1 at uhidev2 reportid 3: 48 variable keys, 0 key codes wskbd3 at ukbd1 mux 1 ukbd2 at uhidev2 reportid 4: 56 variable keys, 0 key codes wskbd4 at ukbd2 mux 1 ukbd3 at uhidev2 reportid 5: 56 variable keys, 0 key codes wskbd5 at ukbd3 mux 1 umass0 at uhub0 port 4 configuration 1 interface 0 "Generic Flash Disk" rev 2.00/1.00 addr 5 umass0: using SCSI over Bulk-Only scsibus4 at umass0: 2 targets, initiator 0 sd8 at scsibus4 targ 1 lun 0: <Generic, Flash Disk, 5.00> removable serial.1e3d2096240121792112 sd8: 3841MB, 512 bytes/sector, 7866368 sectors vscsi0 at root scsibus5 at vscsi0: 256 targets softraid0 at root scsibus6 at softraid0: 256 targets root on sd1a (aa77fde55061763b.a) swap on sd1b dump on sd1b drm:pid0:intel_dp_aux_wait_done *ERROR* [drm] *ERROR* AUX C/DP C: did not complete or timeout within 10ms (status 0xa1430064) inteldrm0: 1366x768, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wskbd2: connecting to wsdisplay0 wskbd3: connecting to wsdisplay0 wskbd4: connecting to wsdisplay0 wskbd5: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation) wsmouse0 detached ums0 detached uhidev0 detached uhidev0 at uhub0 port 1 configuration 1 interface 0 "PIXART USB OPTICAL MOUSE" rev 1.10/1.00 addr 2 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse0 at ums0 mux 0 wsmouse0 detached ums0 detached uhidev0 detached uhidev0 at uhub0 port 1 configuration 1 interface 0 "PIXART USB OPTICAL MOUSE" rev 1.10/1.00 addr 2 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse0 at ums0 mux 0 ``` -- 吴悦 Yue Wu