Thanks, Aaron, for your review.
But when I looked at the tech@ mailing listing description, I thought it would 
be better to continue here.

    I installed it on a USB disk, then I sent a compiled kernel here with the 
option SDMMC_DEBUG parameter.

I've attached dmesg, pcidump outputs and /var/db/acpi via this e-mail.
Maybe it can be a starting point for a developer who wants to look.
Thank you for reading.
________________________________
From: Aaron Mason <simplersolut...@gmail.com>
Sent: Sunday, June 11, 2023 14:45
To: Valdrin MUJA <valdrin_m...@outlook.com>
Cc: MISC@openbsd.org <MISC@openbsd.org>
Subject: Re: About Intel C3000 eMMC

On Sun, Jun 11, 2023 at 9:33 PM Aaron Mason <simplersolut...@gmail.com> wrote:
> Looks like it's picking it up, but can't enable it - from the attached dmesg:
>
> sdhc0 at pci0 dev 28 function 0 "Intel C3000 eMMC" rev 0x11: apic 2 int 16
> sdhc0: SDHC 3.0, 200 MHz base clock
> sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
> [REDACTED]
> sdmmc0: can't enable card
>
> Maybe getting some debugging from that driver will help a dev - I
> don't know the option off hand but I'll have a look unless someone
> more knowledgeable can point you in the right direction.
>
> --
> Aaron Mason - Programmer, open source addict
> I've taken my software vows - for beta or for worse

Ok so the option is SDMMC_DEBUG - if you're able, try rebuilding the
kernel but add this line to the config file:

option SDMMC_DEBUG

Send the output to tech@ rather than here - someone there can have a
look and see where it's tripping up.

--
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse

Attachment: acpi.tar.gz
Description: acpi.tar.gz

OpenBSD 7.3-stable (sdmmcDebug) #0: Sun Jun 11 12:42:36 UTC 2023
root@73.openbsd.local:/usr/src/sys/arch/amd64/compile/sdmmcDebug
real mem = 8508928000 (8114MB)
avail mem = 8231632896 (7850MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7c582000 (35 entries)
bios0: vendor INSYDE Corp. version "CORDOBA-02.02.00.00-SLt" date 2021-10-31
bios0: Silicom 80500-0214-G03-SL00A
efi0 at bios0: UEFI 2.5
efi0: Insyde Jul 27 2021 16:55:45 rev 0x0
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP UEFI UEFI BDAT BOOT HPET APIC MCFG SSDT DMAR DBG2
acpi0: wakeup devices VRP2(S4) PXSX(S4) PEX0(S4) PXSX(S4) PEX1(S4) PXSX(S4) 
PEX2(S4) PXSX(S4) PEX3(S4) PXSX(S4) PEX4(S4) PXSX(S4) PEX5(S4) PXSX(S4) 
PEX6(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 4 (boot processor)
cpu0: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.01 MHz, 06-5f-01
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,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 2MB 64b/line 
16-way L2 cache
cpu0: smt 0, core 2, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 25MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.2, IBE
cpu1 at mainbus0: apid 12 (application processor)
cpu1: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.00 MHz, 06-5f-01
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,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 2MB 64b/line 
16-way L2 cache
cpu1: smt 0, core 6, package 0
cpu2 at mainbus0: apid 16 (application processor)
cpu2: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.00 MHz, 06-5f-01
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,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu2: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 2MB 64b/line 
16-way L2 cache
cpu2: smt 0, core 8, package 0
cpu3 at mainbus0: apid 24 (application processor)
cpu3: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.00 MHz, 06-5f-01
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,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu3: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 2MB 64b/line 
16-way L2 cache
cpu3: smt 0, core 12, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (VRP2)
acpiprt2 at acpi0: bus -1 (PEX0)
acpiprt3 at acpi0: bus 17 (PEX1)
acpiprt4 at acpi0: bus 8 (PEX2)
acpiprt5 at acpi0: bus 4 (PEX3)
acpiprt6 at acpi0: bus 5 (PEX4)
acpiprt7 at acpi0: bus 6 (PEX5)
acpiprt8 at acpi0: bus 7 (PEX6)
acpiprt9 at acpi0: bus 9 (PEX7)
acpiprt10 at acpi0: bus 3 (VRP0)
acpiprt11 at acpi0: bus 2 (VRP1)
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
"PNP0003" at acpi0 not configured
acpicmos0 at acpi0
com0 at acpi0 IUR3 addr 0x3f8/0x8 irq 16: ns16550a, 16 byte fifo
com0: console
com1 at acpi0 IUR4 addr 0x2f8/0x8 irq 17: ns16550a, 16 byte fifo
"PNP0C33" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured
tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed40000/0x5000, device 0x001b15d1 rev 0x16
"INTC3000" at acpi0 not configured
acpicpu0 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS
acpicpu1 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS
acpicpu2 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS
acpicpu3 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 100 degC
cpu0: Enhanced SpeedStep 2200 MHz: speeds: 2200, 2100, 2000, 1900, 1800, 1700, 
1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz
pci0 at mainbus0 bus 0
0:31:5: mem address conflict 0xfe010000/0x1000
0:31:7: mem address conflict 0xfb000000/0x800000
pchb0 at pci0 dev 0 function 0 "Intel C3000 Host" rev 0x11
pchb1 at pci0 dev 4 function 0 "Intel C3000 GLREG" rev 0x11
"Intel C3000 RCEC" rev 0x11 at pci0 dev 5 function 0 not configured
ppb0 at pci0 dev 6 function 0 "Intel C3000 PCIE" rev 0x11
pci1 at ppb0 bus 1
"Intel C3000 QAT" rev 0x11 at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 10 function 0 "Intel C3000 PCIE" rev 0x11
pci2 at ppb1 bus 17
ppb2 at pci0 dev 11 function 0 "Intel C3000 PCIE" rev 0x11
pci3 at ppb2 bus 8
ppb3 at pci0 dev 12 function 0 "Intel C3000 PCIE" rev 0x11
pci4 at ppb3 bus 4
igc0 at pci4 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 
90:ec:77:23:6f:e9
ppb4 at pci0 dev 14 function 0 "Intel C3000 PCIE" rev 0x11
pci5 at ppb4 bus 5
igc1 at pci5 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 
90:ec:77:23:6f:ea
ppb5 at pci0 dev 15 function 0 "Intel C3000 PCIE" rev 0x11
pci6 at ppb5 bus 6
igc2 at pci6 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 
90:ec:77:23:6f:eb
ppb6 at pci0 dev 16 function 0 "Intel C3000 PCIE" rev 0x11
pci7 at ppb6 bus 7
igc3 at pci7 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 
90:ec:77:23:6f:ec
ppb7 at pci0 dev 17 function 0 "Intel C3000 PCIE" rev 0x11
pci8 at ppb7 bus 9
"Intel C3000 SMBus" rev 0x11 at pci0 dev 18 function 0 not configured
xhci0 at pci0 dev 21 function 0 "Intel C3000 xHCI" rev 0x11: 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
ppb8 at pci0 dev 22 function 0 "Intel C3000 PCIE" rev 0x11
pci9 at ppb8 bus 3
3:0:0: rom address conflict 0xfff80000/0x80000
3:0:1: rom address conflict 0xfff80000/0x80000
ix0 at pci9 dev 0 function 0 "Intel X553 SFP+" rev 0x11, msix, 4 queues, 
address 90:ec:77:23:6f:e7
ix1 at pci9 dev 0 function 1 "Intel X553 SFP+" rev 0x11, msix, 4 queues, 
address 90:ec:77:23:6f:e8
ppb9 at pci0 dev 23 function 0 "Intel C3000 PCIE" rev 0x11
pci10 at ppb9 bus 2
2:0:0: rom address conflict 0xfff80000/0x80000
2:0:1: rom address conflict 0xfff80000/0x80000
ix2 at pci10 dev 0 function 0 "Intel X553 SGMII" rev 0x11, msix, 4 queues, 
address 90:ec:77:23:6f:e6
ix3 at pci10 dev 0 function 1 "Intel X553 SGMII" rev 0x11, msix, 4 queues, 
address 90:ec:77:23:6f:e5
"Intel C3000 ME HECI" rev 0x11 at pci0 dev 24 function 0 not configured
sdhc0 at pci0 dev 28 function 0 "Intel C3000 eMMC" rev 0x11: apic 2 int 16
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
pcib0 at pci0 dev 31 function 0 "Intel C3000 LPC" rev 0x11
"Intel C3000 PMC" rev 0x11 at pci0 dev 31 function 2 not configured
"Intel C3000 SMBus" rev 0x11 at pci0 dev 31 function 4 not configured
"Intel C3000 SPI" rev 0x11 at pci0 dev 31 function 5 not configured
vendor "Intel", unknown product 0x19e1 (class instrumentation unknown subclass 
0x00, rev 0x11) at pci0 dev 31 function 7 not configured
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
umass0 at uhub0 port 2 configuration 1 interface 0 "SanDisk Cruzer Blade" rev 
2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SanDisk, Cruzer Blade, 1.00> removable 
serial.07815567151122111464
sd0: 15264MB, 512 bytes/sector, 31260672 sectors
umass1 at uhub0 port 7 configuration 1 interface 0 "USB SanDisk 3.2Gen1" rev 
3.20/1.00 addr 3
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <USB, SanDisk 3.2Gen1, 1.00> removable 
serial.078155838107acaada29
sd1: 58680MB, 512 bytes/sector, 120176640 sectors
sdmmc0: can't send memory OCR
sdmmc0: can't enable card
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd1a (10c55ec9a4a5d614.a) swap on sd1b dump on sd1b
sdmmc# pcidump
Domain /dev/pci0:
 0:0:0: Intel C3000 Host
 0:4:0: Intel C3000 GLREG
 0:5:0: Intel C3000 RCEC
 0:6:0: Intel C3000 PCIE
 0:10:0: Intel C3000 PCIE
 0:11:0: Intel C3000 PCIE
 0:12:0: Intel C3000 PCIE
 0:14:0: Intel C3000 PCIE
 0:15:0: Intel C3000 PCIE
 0:16:0: Intel C3000 PCIE
 0:17:0: Intel C3000 PCIE
 0:18:0: Intel C3000 SMBus
 0:21:0: Intel C3000 xHCI
 0:22:0: Intel C3000 PCIE
 0:23:0: Intel C3000 PCIE
 0:24:0: Intel C3000 ME HECI
 0:28:0: Intel C3000 eMMC
 0:31:0: Intel C3000 LPC
 0:31:2: Intel C3000 PMC
 0:31:4: Intel C3000 SMBus
 0:31:5: Intel C3000 SPI
 0:31:7: Intel unknown
 1:0:0: Intel C3000 QAT
 2:0:0: Intel X553 SGMII
 2:0:1: Intel X553 SGMII
 3:0:0: Intel X553 SFP+
 3:0:1: Intel X553 SFP+
 4:0:0: Intel I225-V
 5:0:0: Intel I225-V
 6:0:0: Intel I225-V
 7:0:0: Intel I225-V
sdmmc# pcidump -v -d /dev/pci 0:28:0
 0:28:0: Intel C3000 eMMC
        0x0000: Vendor ID: 8086, Product ID: 19db
        0x0004: Command: 0006, Status: 0010
        0x0008: Class: 08 System, Subclass: 05 SDHC,
                Interface: 01, Revision: 11
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 10
        0x0010: BAR mem 64bit addr: 0x00000000815f6000/0x00001000
        0x0018: BAR mem 64bit addr: 0x00000000815f7000/0x00001000
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 8086 Product ID: 7270
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
        0x0080: Capability 0x01: Power Management
                State: D0
        0x0090: Capability 0x09: Vendor Specific

Reply via email to