On 4/28/16 2:30 PM, Mark Kettenis wrote:
So here are just the bits that add DMA support.  Since Theo likes this
so much, I'd like to move forward with this.

ok?

Hi Mark,
This diff seems to break things on my Lenovo Ideapad 100s. The 100s has an internal eMMC and a microSD card slot. As far as I can tell, reading from a microSD card breaks both eMMC and microSD.

Reading from the eMMC, twice for good measure:
# dd if=/dev/rsd0c of=/dev/null bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.191 secs (5486853 bytes/sec)
# dd if=/dev/rsd0c of=/dev/null bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.190 secs (5506851 bytes/sec)

Reading from the microSD:
# dd if=/dev/rsd1c of=/dev/null bs=1M count=1
dd: /dev/rsd1c: Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 3.019 secs (0 bytes/sec)

Reading from the eMMC again:
# dd if=/dev/rsd0c of=/dev/null bs=1M count=1
dd: /dev/rsd0c: Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 0.004 secs (0 bytes/sec)

At this point the system is unusable, and there's nothing else interesting in dmesg.

I'm not sure how to troubleshoot this, but the dmesg after the commands above and an attempted shutdown is below. I'm running the 4/28 snapshot and applied the diff to kernel source synced a few hours ago. Let me know what else I can provide.

Thanks,
John

OpenBSD 5.9-current (GENERIC.MP) #2: Fri Apr 29 10:55:36 EDT 2016
[email protected]:/home/john/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error ff<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>
real mem = 2056638464 (1961MB)
avail mem = 1990131712 (1897MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x7b2ae000 (38 entries)
bios0: vendor LENOVO version "E2CN13WW" date 12/22/2015
bios0: LENOVO 80R2
acpi0 at bios0: rev 2
acpi0: sleep states S5
acpi0: tables DSDT FACP UEFI TCPA MSDM UEFI OEM0 DBG2 HPET LPIT APIC MCFG SLIC SSDT SSDT SSDT SSDT SSDT TPM2 SSDT SSDT SSDT FPDT WDAT CSRT BGRT
acpi0: wakeup devices WLAN(S0) RTLW(S0)
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz, 1333.58 MHz
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,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 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) Atom(TM) CPU Z3735F @ 1.33GHz, 1333.34 MHz
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,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz, 1333.34 MHz
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,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu2: 1MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz, 1333.34 MHz
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,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu3: 1MB 64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 87 pins
ioapic0: misconfigured as apic 1, remapped to apid 2
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
C3: state 7: substate 4 >= num 3: C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0
C3: state 7: substate 4 >= num 3: C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0
C3: state 7: substate 4 >= num 3: C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0
C3: state 7: substate 4 >= num 3: C2(10@500 mwait.1@0x51), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: WWPR, resource for HS03, MODM
acpipwrres1 at acpi0: PLPE
acpipwrres2 at acpi0: USBC, resource for XHC1, OTG1, EHC1
acpipwrres3 at acpi0: CLK0
acpipwrres4 at acpi0: CLK1
acpipwrres5 at acpi0: P28X
acpipwrres6 at acpi0: P18X
acpipwrres7 at acpi0: P28P
acpipwrres8 at acpi0: P18P
acpipwrres9 at acpi0: P28T
acpipwrres10 at acpi0: P18T
acpipwrres11 at acpi0: P1XT
acpitz0 at acpi0: no critical temperature defined
"80860F28" at acpi0 not configured
"INT0002" at acpi0 not configured
bytgpio0 at acpi0: GPO0 uid 1 addr 0xfed0c000/0x1000 irq 49, 102 pins
bytgpio1 at acpi0: GPO1 uid 2 addr 0xfed0d000/0x1000 irq 48, 28 pins
bytgpio2 at acpi0: GPO2 uid 3 addr 0xfed0e000/0x1000 irq 50, 44 pins
"INT3396" at acpi0 not configured
sdhc0 at acpi0: SDHA addr 0x9091d000/0x1000 irq 44
sdmmc0 at sdhc0
sdhc1 at acpi0: SDHB addr 0x90901000/0x1000 irq 46
sdmmc1 at sdhc1
sdhc2 at acpi0: SDHD addr 0x90903000/0x1000 irq 47, gpio
sdmmc2 at sdhc2
"INTL9C60" at acpi0 not configured
"INTL9C60" at acpi0 not configured
"80860F0A" at acpi0 not configured
"OBDA8723" at acpi0 not configured
"80860F0A" at acpi0 not configured
dwiic0 at acpi0: I2C1 addr 0x90906000/0x1000 irq 32
iic0 at dwiic0
dwiic1 at acpi0: I2C2 addr 0x9090c000/0x1000 irq 33
iic1 at dwiic1
"10EC5640" at acpi0 not configured
dwiic2 at acpi0: I2C3 addr 0x9090e000/0x1000 irq 34
iic2 at dwiic2
ihidev0 at iic2 addr 0x5 gpio 22, vendor 0x6243 product 0x1, ENEE3730
ihidev0: 6 report ids
ikbd0 at ihidev0 reportid 1: 8 variable keys, 6 key codes
wskbd0 at ikbd0 mux 1
hid at ihidev0 reportid 2 not configured
hid at ihidev0 reportid 3 not configured
ims0 at ihidev0 reportid 4: 3 buttons, Z dir
wsmouse0 at ims0 mux 0
hid at ihidev0 reportid 5 not configured
hid at ihidev0 reportid 6 not configured
"ENEE3730" at acpi0 not configured
dwiic3 at acpi0: I2C4 addr 0x90910000/0x1000 irq 35
iic3 at dwiic3
dwiic4 at acpi0: I2C5 addr 0x90912000/0x1000 irq 36
iic4 at dwiic4
"INT33F4" at acpi0 not configured
"INT33FE" at acpi0 not configured
acpibat0 at acpi0: BMBT
acpibtn0 at acpi0: LID0
"INTCFD9" at acpi0 not configured
"INT33BD" at acpi0 not configured
"ACPI000C" at acpi0 not configured
acpiac0 at acpi0### AML PARSE ERROR (0xd883): Undefined name: ^^GPO2.USID
error evaluating: \\_SB_.ADP1._PSR
: AC unit offline
"INT3401" at acpi0 not configured
"INT3400" at acpi0 not configured
"INT3407" at acpi0 not configured
"INT3407" at acpi0 not configured
"INT3407" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3409" at acpi0 not configured
"INT3406" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"MSFT0101" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 1333 MHz: speeds: 1329, 1328, 1245, 1162, 1079, 996, 913, 830, 581, 498 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Bay Trail Host" rev 0x0f
inteldrm0 at pci0 dev 2 function 0 "Intel Bay Trail Video" rev 0x0f
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wskbd0: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel Bay Trail xHCI" rev 0x0f: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel Bay Trail TXE" rev 0x0f at pci0 dev 26 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel Bay Trail LPC" rev 0x0f
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
efifb at mainbus0 not configured
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 29820MB, 512 bytes/sector, 61071360 sectors
scsibus2 at sdmmc2: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd1: 60906MB, 512 bytes/sector, 124735488 sectors
uhub1 at uhub0 port 1 "Terminus Technology USB 2.0 Hub" rev 2.00/1.11 addr 2
urtwn0 at uhub1 port 2 configuration 1 interface 0 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 3
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address 74:da:38:70:0a:97
uvideo0 at uhub1 port 3 configuration 1 interface 0 "Bison Corp. Lenovo EasyCamera" rev 2.00/42.59 addr 4
video0 at uvideo0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (61bc01729c360a88.a) swap on sd0b dump on sd0b
shutdown(19710): syscall 33 "rpath"

Reply via email to