edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 38 forks source link

Current master doesn't boot? #37

Closed alext-mkrs closed 5 years ago

alext-mkrs commented 6 years ago

@htot, let me check something with you - looks like current master built from scratch (no saved state whatsoever, manually removed all the dirs) doesn't boot for me. The kernel boots up until the below and then just stalls, then in a short while the board gets reset by the watchdog timer, and the process repeats endlessly.

Have you seen anything like that? Could you please try building the image from scratch and checking if it boots for you?

<...>
[    2.216898] usb usb2: Manufacturer: Linux 4.16.0-edison-no-acpi-standard xhci-hcd
[    2.224414] usb usb2: SerialNumber: xhci-hcd.2.auto
[    2.230064] hub 2-0:1.0: USB hub found
[    2.233897] hub 2-0:1.0: 1 port detected
[    2.238788] usbcore: registered new interface driver usblp
[    2.244474] usbcore: registered new interface driver usb-storage
[    2.250681] usbcore: registered new interface driver pl2303
[    2.256361] usbserial: USB Serial support registered for pl2303
Full log inside

``` U-Boot 2018.05 (Jun 17 2018 - 12:44:14 +0000) CPU: x86_64, vendor Intel, device 406a8h DRAM: 980.6 MiB MMC: mmc@ff3fc000: 0, mmc@ff3fa000: 1 Loading Environment from MMC... OK In: serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0 => => run edsboot 10749632 bytes read in 473 ms (21.7 MiB/s) Valid Boot Flag Setup Size = 0x00003e00 Magic signature found Using boot protocol version 2.0d Linux kernel version 4.16.0-edison-no-acpi-standard (oe-user@oe-host) #1 SMP Sat Jul 21 19:26:21 UTC 2018 Building boot_params at 0x00090000 Loading bzImage at address 100000 (10733760 bytes) Magic signature found Kernel command line: "tty1 console=ttyS2,115200n8 root=/dev/mmcblk1 rootfstype=ext4 systemd.unit=multi-user.target hardware_id=00" Magic signature found Starting kernel ... [ 0.000000] Linux version 4.16.0-edison-no-acpi-standard (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Sat Jul 21 19:26:21 UTC 2018 [ 0.000000] x86/fpu: x87 FPU will use FXSAVE [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000097fff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000003ffffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000004000000-0x0000000005ffffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000006000000-0x000000003f4fffff] usable [ 0.000000] BIOS-e820: [mem 0x000000003f500000-0x000000003fffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fec04000-0x00000000fec07fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel! [ 0.000000] random: fast init done [ 0.000000] SMBIOS 2.6 present. [ 0.000000] DMI: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48 [ 0.000000] e820: last_pfn = 0x3f500 max_arch_pfn = 0x100000 [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] ACPI: Early table checksum verification disabled [ 0.000000] ACPI BIOS Error (bug): A valid RSDP was not found (20180105/tbxfroot-244) [ 0.000000] 129MB HIGHMEM available. [ 0.000000] 883MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 373fe000 [ 0.000000] low ram: 0 - 373fe000 [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.000000] Normal [mem 0x0000000001000000-0x00000000373fdfff] [ 0.000000] HighMem [mem 0x00000000373fe000-0x000000003f4fffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000001000-0x0000000000097fff] [ 0.000000] node 0: [mem 0x0000000000100000-0x0000000003ffffff] [ 0.000000] node 0: [mem 0x0000000006000000-0x000000003f4fffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003f4fffff] [ 0.000000] Reserved but unavailable: 1 pages [ 0.000000] Using APIC driver default [ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org [ 0.000000] SFI: SYST E31F0, 0060 (v1 INTEL INTELFDK) [ 0.000000] SFI: CPUS E3296, 0020 (v1 INTEL INTELFDK) [ 0.000000] SFI: FREQ E32C2, 0030 (v1 INTEL INTELFDK) [ 0.000000] SFI: MMAP E32FE, 01A4 (v1 INTEL INTELFDK) [ 0.000000] SFI: XSDT E34B0, 002C (v1 INTEL INTELFDK) [ 0.000000] SFI: APIC E353E, 0020 (v1 INTEL INTELFDK) [ 0.000000] SFI: WAKE E356A, 0020 (v2 INTEL INTELFDK) [ 0.000000] SFI: DEVS E359E, 047D (v1 INTEL INTELFDK) [ 0.000000] SFI: GPIO E3A27, 0964 (v1 INTEL INTELFDK) [ 0.000000] SFI: OEMB E4397, 0060 (v5 UMGFDK CFGINFO!) [ 0.000000] SFI: registering lapic[0] [ 0.000000] SFI: registering lapic[2] [ 0.000000] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-54 [ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.000000] PM: Registered nosave memory: [mem 0x00098000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0x04000000-0x05ffffff] [ 0.000000] e820: [mem 0x40000000-0xfebfffff] available for PCI devices [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1 [ 0.000000] percpu: Embedded 29 pages/cpu @(ptrval) s87756 r0 d31028 u118784 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 249263 [ 0.000000] Kernel command line: tty1 console=ttyS2,115200n8 root=/dev/mmcblk1 rootfstype=ext4 systemd.unit=multi-user.target hardware_id=00 [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] Initializing HighMem for node 0 (000373fe:0003f500) [ 0.000000] Initializing Movable for node 0 (00000000:00000000) [ 0.000000] Memory: 972060K/1004124K available (9562K kernel code, 987K rwdata, 2764K rodata, 8484K init, 620K bss, 32064K reserved, 0K cma-reserved, 132104K highmem) [ 0.000000] virtual kernel memory layout: [ 0.000000] fixmap : 0xfff16000 - 0xfffff000 ( 932 kB) [ 0.000000] cpu_entry : 0xff800000 - 0xff939000 (1252 kB) [ 0.000000] pkmap : 0xff400000 - 0xff800000 (4096 kB) [ 0.000000] vmalloc : 0xf7bfe000 - 0xff3fe000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf73fe000 ( 883 MB) [ 0.000000] .init : 0xcef1d000 - 0xcf766000 (8484 kB) [ 0.000000] .data : 0xceb56930 - 0xcef07f40 (3781 kB) [ 0.000000] .text : 0xce200000 - 0xceb56930 (9562 kB) [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU event tracing is enabled. [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 2304, nr_irqs: 512, preallocated irqs: 0 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [ttyS2] enabled [ 0.000000] APIC: Switch to symmetric I/O mode setup [ 0.000000] Enabling APIC mode: Flat. Using 1 I/O APICs [ 0.000000] tsc: Detected 500.000 MHz processor [ 0.000046] tsc: Detected 499.200 MHz TSC [ 0.000048] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0xe642f98297, max_idle_ns: 881590439301 ns [ 0.000410] Calibrating delay loop (skipped), value calculated using timer frequency.. 998.40 BogoMIPS (lpj=499200) [ 0.000676] pid_max: default: 32768 minimum: 301 [ 0.000910] Security Framework initialized [ 0.001000] SELinux: Initializing. [ 0.001000] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001000] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001000] CPU: Physical Processor ID: 0 [ 0.001000] CPU: Processor Core ID: 0 [ 0.001000] ENERGY_PERF_BIAS: Set to 'normal', was 'performance' [ 0.001000] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8) [ 0.001000] mce: CPU supports 6 MCE banks [ 0.001000] CPU0: Thermal monitoring enabled (TM1) [ 0.001000] process: using mwait in idle threads [ 0.001000] Last level iTLB entries: 4KB 48, 2MB 0, 4MB 0 [ 0.001000] Last level dTLB entries: 4KB 128, 2MB 16, 4MB 16, 1GB 0 [ 0.001000] Spectre V2 : Mitigation: Full generic retpoline [ 0.001000] Freeing SMP alternatives memory: 40K [ 0.001000] SFI: MCFG E34F6, 003C (v1 INTEL INTELFDK) [ 0.001000] smpboot: CPU0: Genuine Intel(R) CPU 4000 @ 500MHz (family: 0x6, model: 0x4a, stepping: 0x8) [ 0.001000] Performance Events: PEBS fmt2+, generic architected perfmon, full-width counters, Intel PMU driver. [ 0.001035] ... version: 3 [ 0.001150] ... bit width: 40 [ 0.001264] ... generic registers: 2 [ 0.001376] ... value mask: 000000ffffffffff [ 0.001519] ... max period: 0000007fffffffff [ 0.001662] ... fixed-purpose events: 3 [ 0.001773] ... event mask: 0000000700000003 [ 0.002164] Hierarchical SRCU implementation. [ 0.008695] smp: Bringing up secondary CPUs ... [ 0.009550] x86: Booting SMP configuration: [ 0.009671] .... node #0, CPUs: #1 [ 0.001000] Initializing CPU#1 [ 0.010213] smp: Brought up 1 node, 2 CPUs [ 0.010213] smpboot: Max logical packages: 1 [ 0.010262] smpboot: Total of 2 processors activated (1996.80 BogoMIPS) [ 0.011456] devtmpfs: initialized [ 0.014290] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.014454] kworker/u4:0 (20) used greatest stack depth: 7084 bytes left [ 0.014560] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.015085] pinctrl core: initialized pinctrl subsystem [ 0.015522] SFI: SFI sysfs interfaces init success [ 0.016245] RTC time: 8:37:37, date: 07/22/18 [ 0.016872] NET: Registered protocol family 16 [ 0.017677] audit: initializing netlink subsys (disabled) [ 0.018145] audit: type=2000 audit(1532248657.018:1): state=initialized audit_enabled=0 res=1 [ 0.019550] cpuidle: using governor menu [ 0.021055] Using generic wifi platform data [ 0.021898] PCI: MMCONFIG for domain 0000 [bus 00-00] at [mem 0x3f500000-0x3f5fffff] (base 0x3f500000) [ 0.022030] PCI: MMCONFIG at [mem 0x3f500000-0x3f5fffff] reserved in E820 [ 0.022211] PCI: Using MMCONFIG for extended config space [ 0.022356] Intel MID platform detected, using MID PCI ops [ 0.022505] PCI: Using configuration type 1 for base access [ 0.029676] kworker/u4:1 (68) used greatest stack depth: 6828 bytes left [ 0.063381] HugeTLB registered 4.00 MiB page size, pre-allocated 0 pages [ 0.065515] ACPI: Interpreter disabled. [ 0.065760] bcm43xx-vmmc-regulator: Failed to request enable GPIO96: -517 [ 0.065956] reg-fixed-voltage reg-fixed-voltage.0.auto: Failed to register regulator: -517 [ 0.066364] vgaarb: loaded [ 0.067105] SCSI subsystem initialized [ 0.067881] usbcore: registered new interface driver usbfs [ 0.068210] usbcore: registered new interface driver hub [ 0.068500] usbcore: registered new device driver usb [ 0.068931] pps_core: LinuxPPS API ver. 1 registered [ 0.069048] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.069340] PTP clock support registered [ 0.070233] EDAC MC: Ver: 3.0.0 [ 0.070992] Advanced Linux Sound Architecture Driver Initialized. [ 0.071112] PCI: Probing PCI hardware [ 0.071391] PCI host bridge to bus 0000:00 [ 0.071526] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.071700] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff] [ 0.071888] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.088621] Bluetooth: Core ver 2.22 [ 0.088799] NET: Registered protocol family 31 [ 0.088928] Bluetooth: HCI device and connection manager initialized [ 0.089036] Bluetooth: HCI socket layer initialized [ 0.089178] Bluetooth: L2CAP socket layer initialized [ 0.089376] Bluetooth: SCO socket layer initialized [ 0.089542] NetLabel: Initializing [ 0.089642] NetLabel: domain hash size = 128 [ 0.089761] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.090053] NetLabel: unlabeled traffic allowed by default [ 0.091548] clocksource: Switched to clocksource tsc-early [ 0.166406] VFS: Disk quotas dquot_6.6.0 [ 0.166625] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.167178] pnp: PnP ACPI: disabled [ 0.182698] NET: Registered protocol family 2 [ 0.183774] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.184006] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.184346] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.184671] TCP: Hash tables configured (established 8192 bind 8192) [ 0.184966] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.185224] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.185632] NET: Registered protocol family 1 [ 0.186459] RPC: Registered named UNIX socket transport module. [ 0.186625] RPC: Registered udp transport module. [ 0.186755] RPC: Registered tcp transport module. [ 0.186884] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.634512] DMA-API: preallocated 65536 debug entries [ 0.634661] DMA-API: debugging enabled by kernel config [ 0.635481] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0xe642f98297, max_idle_ns: 881590439301 ns [ 0.635796] clocksource: Switched to clocksource tsc [ 0.636223] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.638402] Scanning for low memory corruption every 60 seconds [ 0.640171] pci 0000:00:04.1: Registered Bluetooth device: hci_bcm [ 0.643195] Initialise system trusted keyrings [ 0.643857] workingset: timestamp_bits=30 max_order=18 bucket_order=0 [ 0.660208] NFS: Registering the id_resolver key type [ 0.660379] Key type id_resolver registered [ 0.660499] Key type id_legacy registered [ 0.669266] Key type asymmetric registered [ 0.669393] Asymmetric key parser 'x509' registered [ 0.669600] bounce: pool size: 64 pages [ 0.669809] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 0.670047] io scheduler noop registered [ 0.670162] io scheduler deadline registered [ 0.670642] io scheduler cfq registered (default) [ 0.670778] io scheduler mq-deadline registered [ 0.670906] io scheduler kyber registered [ 0.682296] dw_dmac_pci 0000:00:15.0: DesignWare DMA Controller, 8 channels [ 0.684366] hsu_dma_pci 0000:00:05.0: Found HSU DMA, 12 channels [ 0.685147] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.689055] 8250_mid: probe of 0000:00:04.0 failed with error -16 [ 0.689886] 0000:00:04.1: ttyS0 at MMIO 0xff010080 (irq = 28, base_baud = 1843200) is a TI16750 [ 0.691575] 0000:00:04.2: ttyS1 at MMIO 0xff010100 (irq = 29, base_baud = 1843200) is a TI16750 [ 0.692954] console [ttyS2] disabled [ 0.693158] 0000:00:04.3: ttyS2 at MMIO 0xff010180 (irq = 54, base_baud = 1843200) is a TI16750 [ 1.931247] console [ttyS2] enabled [ 1.935683] Non-volatile memory driver v1.3 [ 1.940487] Linux agpgart interface v0.103 [ 1.955127] loop: module loaded [ 1.960427] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI [ 1.966588] e100: Copyright(c) 1999-2006 Intel Corporation [ 1.972246] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 1.979334] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 1.985241] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [ 1.991112] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 1.997216] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k [ 2.004216] igb: Copyright (c) 2007-2014 Intel Corporation. [ 2.009941] sky2: driver version 1.30 [ 2.014404] usbcore: registered new interface driver r8152 [ 2.020049] usbcore: registered new interface driver asix [ 2.025556] usbcore: registered new interface driver ax88179_178a [ 2.031755] usbcore: registered new interface driver cdc_ether [ 2.037696] usbcore: registered new interface driver net1080 [ 2.043462] usbcore: registered new interface driver cdc_subset [ 2.049490] usbcore: registered new interface driver zaurus [ 2.055173] usbcore: registered new interface driver MOSCHIP usb-ethernet driver [ 2.062716] usbcore: registered new interface driver cdc_ncm [ 2.069260] dwc3 dwc3.1.auto: Configuration mismatch. dr_mode forced to host [ 2.077667] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.084256] ehci-pci: EHCI PCI platform driver [ 2.088843] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.095078] ohci-pci: OHCI PCI platform driver [ 2.099652] uhci_hcd: USB Universal Host Controller Interface driver [ 2.106421] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller [ 2.112273] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1 [ 2.120190] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f06c hci version 0x100 quirks 0x02010010 [ 2.129000] xhci-hcd xhci-hcd.2.auto: irq 34, io mem 0xf9100000 [ 2.135382] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 2.142234] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.149501] usb usb1: Product: xHCI Host Controller [ 2.154417] usb usb1: Manufacturer: Linux 4.16.0-edison-no-acpi-standard xhci-hcd [ 2.161932] usb usb1: SerialNumber: xhci-hcd.2.auto [ 2.167571] hub 1-0:1.0: USB hub found [ 2.171430] hub 1-0:1.0: 1 port detected [ 2.175937] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller [ 2.181729] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2 [ 2.189547] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 2.197888] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003 [ 2.204728] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.211985] usb usb2: Product: xHCI Host Controller [ 2.216898] usb usb2: Manufacturer: Linux 4.16.0-edison-no-acpi-standard xhci-hcd [ 2.224414] usb usb2: SerialNumber: xhci-hcd.2.auto [ 2.230064] hub 2-0:1.0: USB hub found [ 2.233897] hub 2-0:1.0: 1 port detected [ 2.238788] usbcore: registered new interface driver usblp [ 2.244474] usbcore: registered new interface driver usb-storage [ 2.250681] usbcore: registered new interface driver pl2303 [ 2.256361] usbserial: USB Serial support registered for pl2303 ```

alext-mkrs commented 5 years ago

Got it for IRQs. Interesting page for 32 vs 64 bit. BTW while Edison's version of it was never advertised as 64bit (don't know why), the core/SoC used there was also used in Merrifield phone platform - and there it was officially 64bit from the very beginning (https://ark.intel.com/products/codename/41559/Merrifield?q=merrifield).

Ok, I've found it. Your note about the reset (even though I tested it today to no avail) got me thinking further and I've actually just fallen prey of my specific workflow I used. In short - everything works ok, it's just that reset (cold vs. warm) that makes all the difference. I used the following flow:

  1. Boot into official image
  2. Mount the ex-"update" partition, copy the kernel from my build host, reboot
  3. Boot into U-Boot, start DFU mode (run do_force_flash_os), flash the U-Boot via dfu-util
  4. Run reset from U-Boot, after it resets run edsboot to try to boot into the new kernel. It would hang on that RTC driver

And now if I do a poweroff instead of reset in U-Boot, it would boot normally. The reason is apparently that booting into 3.10-based official image takes up something that isn't cleaned up by a simple warm reset. That's why it didn't come up in my testing earlier today - because I was only getting to the new kernel and U-Boot, never "old kernel->new kernel" - and did come up last week (because I was following the full flow described above).

Okay, mistery solved and luckily nothing to be done here, just remember to do cold resets all the time :)

Now back to 32 vs 64 and non-ACPI vs ACPI. I've noticed on your "ACPI or non-ACPI" page that

Work on providing non-acpi U-Boot patches will end with the release of U-Boot v2018.09

is this still the plan (@andy-shev - probably that's a question to you)? If so I think non-ACPI just makes no sense, I'd rather then join (for real this time) the enablement activity for ACPI, to avoid spending my [rather limited, alas] time for non-ACPI version. There are I guess anyway not that many "production" users of our image right now and it would be more beneficial to get ACPI enabled sooner than drag the non-ACPI around in "somewhat working"/"it boots so probably works" state.

And one more note about 32 vs 64 bits - those instruction-related drawbacks look significant enough, however I wonder if we can actually help it by using a different - targeted at Silvermont, unlike the current one - Yocto compiler optimizations. We currently use core2-*, while according to the file comments, the one for Silvermont would be corei7-* (link). Actually that was exactly the thing I was trying to test when I got into this boot stall problem. Let me proceed with this task then - if you have any specific benchmarks you want me to try, let me know.

All in all, I'm now strongly inclined to ditch 32bit-non-ACPI and focus on fully enabling and stabilizing 64bit-ACPI, unless there's any showstopper there (interrupt delay might be one, but I hope this is just something that needs more detailed investigation/fix).

htot commented 5 years ago

With your reset problems you may have actually found a new issue. I believe (but can not prove) the one I had was related to i2c messages being interrupted mid message and the i2c muxes only get reset on cold reset. My suspicion was linux does not properly perform the sw reset sequence on power up.

Actually I had corei7- in the past. It didn't seem to bring any advantages. And when I found the hsu issues thought it was related, changed to core2, didn't see any change and just left it.

Thing is 32b non-acpi is working quite well, mraa works, blink-led, hsu, and I believe but did not test, i2c-6. Only thing is, the pin muxes are fixed. Would be a waste to ditch.

Maybe 64b will never work well, and then we should create 32b acpi branch. But acpi is where we should put our efforts.

The stuff in there that works now, is working well enough. There is just some things missing, like acpi code that tell the SCU to change the mode of i2c-6 pins. And stuff that Andy works on (pmic acpi). For me, I really would need to have Andy tell me how to do that, step-by-step. And I believe he got the USB gadget stuff working, but haven't tried all that yet.

alext-mkrs commented 5 years ago

Okay, makes sense. Let's then leave the master as-is for now and focus on ACPI.

Now, @andy-shev - do you use 32 or 64 bit for developing that (AFAIU - 64, but let me confirm)? And the next question would be - which part of what @htot described above (or described on those Edison-wiki pages) I can help you to test? I figure I'd start with just helping out with testing while I'm getting up to speed with ACPI in kernel in general (and Edison in particular).

andy-shev commented 5 years ago

So, to the discontinuation:

andy-shev commented 5 years ago

Now about WIP, kernel:

U-Boot:

So, please, focus on these items for now (one guy talked to me privately that he is interested to bring up I2C №6 solution to U-Boot, so, it's not listed above b/c of this).

P.S. Of course it doesn't cancel the necessity of testing all stuff separately and together.

alext-mkrs commented 5 years ago

Thanks Andy. Let me dig into this and see where I can help.

staroselskii commented 5 years ago

Hello, guys!

I'm the guy Andy told you about. Here's the PR with I2C#6 support. It's not ready yet but it's already working. You're welcome to take a look and comment/test it out.

andy-shev commented 5 years ago

@htot It would be nice if you can test it after I merge the mentioned PR. I'm expecting @staroselskii will address my comments today and tonight we will have this in my edison-acpi branch of U-Boot.

htot commented 5 years ago

I've have been following your discussion closely :-) Do we need patches to the kernel as well or is this independent?

staroselskii commented 5 years ago

@htot

It doesn't need any kernel patches. I have tested it like this:

modprobe i2c-dev && i2cdetect -r -y 6

I also had a device connected to this bus that worked correctly.

htot commented 5 years ago

With no device connected i2cdetect -r -y 6 prints very slowly, same as before (-r -y 1 prints fast). It that normal? Will try to connect a device tomorrow.

staroselskii commented 5 years ago

@htot

No, it's not normal. On my setups the former prints fast as well. I tested it on two boards. One of them had an external sensor connected and the other did not. Both gave good results.

Want to know what's wrong before sending upstream. Didn't expect it not to work.

Could you please share a log from U-Boot booting? I'd be very much interested if you could add "#define DEBUG" on the top of pinmux.c. It would give me more context. I've been mostly using only two Edisons for the tests. There's a slight possibility something would be working differently on others due to some different settings pins are configured in the firmware. But I seriously doubt it.

Where are you testing? I've been using rocko64-acpi as a base with kernel checked out at eds-4.16-unified. Built for 64-bit. I boot off an eMMC (i.e. I don't use run edsboot but rather use ACPI for default boot as well).

You can also try the latest Andy's branch with some of the newer commits I made with DTS configuration. It shouldn't really have a difference but why not try.

htot commented 5 years ago

I am using ~ the same, rocko64-acpi, but with eds-4.18-unified (from my repo) booting off USB. I'll try making a log.

staroselskii commented 5 years ago

@htot

If you have the time to test, I'd really appreciate that.

Here's what my U-Boot prints out (with DEBUG in pinmux.c)

U-Boot 2018.09-rc2 (Sep 02 2018 - 14:53:01 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
scu: v: 0x203511 p: 0xff0c1d28 bits: 1, mask: 7 bufcfg: 0xff0c1d28
scu: v: 0x203591 p: 0xff0c1d2c bits: 1, mask: 7 bufcfg: 0xff0c1d2c
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.

UPD:

I also just rechecked this with and w/o i2c6_scl, i2c6_sda in DTS. It did make a difference. The former yielded a good result whereas the latter reacted with timeouts. I hope I didnt make a change that was working only on my Edisons that happen to give some bufcfg I know how to cope with.

htot commented 5 years ago

I wanted to check these things today but I have a fever and feel sick as a dog.

I remember in the first line (2018.09-rc2...) I have the SHA of the top commit and followed by 'dirty'.

staroselskii commented 5 years ago

Sorry to hear that. Get well! This thing waits for sure. I'll try to reproduce these on other Edisons. I might have a couple more available for testing.

staroselskii commented 5 years ago

I tested this patch series with 5 more Edisons and 2 different boards connected to them. All tests actually gave me what I wanted.

staroselskii commented 5 years ago

I contacted Andy on the issue and said that he got some timeouts but it was better than before.

I just tested it on Intel Breakout board for Edison and it just works as well.

Andy also recommended to share these:

You can find them all here

BTW: REACH is mostly a copy of Arduino.asl. I have also added an AML for a driver I used for testing (sc16is7xx). It works also.

htot commented 5 years ago

Feeling better today. Today I hope to rebuild U-Boot without the 'dirty' and with the DEBUG flag. If that doesn't help it may be caused by the 4.18 and I'll collect debug info. And push my feature branch of meta-intel-edison that builds that.

andy-shev commented 5 years ago

@staroselskii Thanks for sharing. Now I got that you never tried on Edison/Arduino despite presence of SSDT for it. I think the issue I'm experiencing might be related to wrong external pin control configuration. That ASL code needs to be revisited.

staroselskii commented 5 years ago

@htot Awesome. Thanks!

@andy-shev

I tested the whole thing on three different boards: Intel Breakout board and two of our own Reach and ReachRS. Unfortunately, I don't have an Edison/Arduino board.

htot commented 5 years ago

Ok, I rebuilt, the 'dirty' is gone, but no change.

This is with 08110c94 from https://github.com/htot/linux/commits/eds-4.18.0-unified (that is eds-4.18.0-no-acpi + Andy's acpi patches):

# uname -a
Linux edison 4.18.0-edison-acpi-standard #1 SMP Thu Aug 30 21:01:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
dmesg, with ignore_loglevel ``` [ 0.000000] Linux version 4.18.0-edison-acpi-standard (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Thu Aug 30 21:01:23 UTC 2018 [ 0.000000] Command line: quiet ignore_loglevel debugshell=10 tty1 console=ttyS2,115200n8 root=/dev/sda rootfstype=ext4 systemd.unit=multi-user.target hardware_id=00 [ 0.000000] x86/fpu: x87 FPU will use FXSAVE [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000097fff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000003ffffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000004000000-0x0000000005ffffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000006000000-0x000000003f4fffff] usable [ 0.000000] BIOS-e820: [mem 0x000000003f500000-0x000000003fffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fec04000-0x00000000fec07fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.6 present. [ 0.000000] DMI: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48 [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] last_pfn = 0x3f500 max_arch_pfn = 0x400000000 [ 0.000000] MTRR default type: uncachable [ 0.000000] MTRR fixed ranges enabled: [ 0.000000] 00000-9FFFF write-back [ 0.000000] A0000-BFFFF uncachable [ 0.000000] C0000-FFFFF write-back [ 0.000000] MTRR variable ranges enabled: [ 0.000000] 0 base 000000000 mask FC0000000 write-back [ 0.000000] 1 base 03F600000 mask FFFE00000 uncachable [ 0.000000] 2 base 03F800000 mask FFF800000 uncachable [ 0.000000] 3 base 004000000 mask FFE000000 uncachable [ 0.000000] 4 disabled [ 0.000000] 5 disabled [ 0.000000] 6 disabled [ 0.000000] 7 disabled [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.000000] e820: update [mem 0x04000000-0x05ffffff] usable ==> reserved [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] Base memory trampoline at [(____ptrval____)] 92000 size 24576 [ 0.000000] BRK [0x370af000, 0x370affff] PGTABLE [ 0.000000] BRK [0x370b0000, 0x370b0fff] PGTABLE [ 0.000000] BRK [0x370b1000, 0x370b1fff] PGTABLE [ 0.000000] BRK [0x370b2000, 0x370b2fff] PGTABLE [ 0.000000] BRK [0x370b3000, 0x370b3fff] PGTABLE [ 0.000000] ACPI: Early table checksum verification disabled [ 0.000000] ACPI: RSDP 0x00000000000E4500 000024 (v02 U-BOOT) [ 0.000000] ACPI: XSDT 0x00000000000E45E0 000044 (v01 U-BOOT U-BOOTBL 20180903 INTL 00000000) [ 0.000000] ACPI: FACP 0x00000000000E5170 0000F4 (v06 U-BOOT U-BOOTBL 20180903 INTL 00000000) [ 0.000000] ACPI: DSDT 0x00000000000E4780 0008E1 (v02 U-BOOT U-BOOTBL 00010000 INTL 20180810) [ 0.000000] ACPI: APIC 0x00000000000E5270 000048 (v04 U-BOOT U-BOOTBL 20180903 INTL 00000000) [ 0.000000] ACPI: MCFG 0x00000000000E52C0 00003C (v01 U-BOOT U-BOOTBL 20180903 INTL 00000000) [ 0.000000] ACPI: SPCR 0x00000000000E5300 000050 (v02 U-BOOT U-BOOTBL 20180903 INTL 00000000) [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000003f4fffff] [ 0.000000] NODE_DATA(0) allocated [mem 0x3f4fc000-0x3f4fffff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003f4fffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000001000-0x0000000000097fff] [ 0.000000] node 0: [mem 0x0000000000100000-0x0000000003ffffff] [ 0.000000] node 0: [mem 0x0000000006000000-0x000000003f4fffff] [ 0.000000] Reserved but unavailable: 11113 pages [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003f4fffff] [ 0.000000] On node 0 totalpages: 251031 [ 0.000000] DMA zone: 64 pages used for memmap [ 0.000000] DMA zone: 21 pages reserved [ 0.000000] DMA zone: 3991 pages, LIFO batch:0 [ 0.000000] DMA32 zone: 3988 pages used for memmap [ 0.000000] DMA32 zone: 247040 pages, LIFO batch:31 [ 0.000000] ACPI: no legacy devices present [ 0.000000] ACPI: probing for VGA not safe [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) [ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-54 [ 0.000000] Bus #0 is ISA (nIRQs: 0) [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.000000] PM: Registered nosave memory: [mem 0x00098000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0x04000000-0x05ffffff] [ 0.000000] [mem 0x40000000-0xfebfffff] available for PCI devices [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns [ 0.000000] random: get_random_bytes called from start_kernel+0x8b/0x4a4 with crng_init=0 [ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:2 nr_node_ids:1 [ 0.000000] percpu: Embedded 43 pages/cpu @(____ptrval____) s137688 r8192 d30248 u1048576 [ 0.000000] pcpu-alloc: s137688 r8192 d30248 u1048576 alloc=1*2097152 [ 0.000000] pcpu-alloc: [0] 0 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 246958 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: quiet ignore_loglevel debugshell=10 tty1 console=ttyS2,115200n8 root=/dev/sda rootfstype=ext4 systemd.unit=multi-user.target hardware_id=00 [ 0.000000] Calgary: detecting Calgary via BIOS EBDA area [ 0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing! [ 0.000000] Memory: 949628K/1004124K available (14348K kernel code, 1681K rwdata, 3500K rodata, 10464K init, 680K bss, 54496K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Kernel/User page tables isolation: enabled [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU event tracing is enabled. [ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 4352, nr_irqs: 512, preallocated irqs: 0 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [ttyS2] enabled [ 0.000000] ACPI: Core revision 20180531 [ 0.000000] APIC: Switch to symmetric I/O mode setup [ 0.000000] tsc: Detected 500.000 MHz processor [ 0.000048] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns [ 0.000305] Calibrating delay loop (skipped), value calculated using timer frequency.. 1000.00 BogoMIPS (lpj=500000) [ 0.000567] pid_max: default: 32768 minimum: 301 [ 0.000819] Security Framework initialized [ 0.000932] SELinux: Initializing. [ 0.001000] SELinux: Starting in permissive mode [ 0.001000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.001000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.001000] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.001000] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.001000] CPU: Physical Processor ID: 0 [ 0.001000] CPU: Processor Core ID: 0 [ 0.001000] ENERGY_PERF_BIAS: Set to 'normal', was 'performance' [ 0.001000] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8) [ 0.001000] mce: CPU supports 6 MCE banks [ 0.001000] CPU0: Thermal monitoring enabled (TM1) [ 0.001000] process: using mwait in idle threads [ 0.001000] Last level iTLB entries: 4KB 48, 2MB 0, 4MB 0 [ 0.001000] Last level dTLB entries: 4KB 128, 2MB 16, 4MB 16, 1GB 0 [ 0.001000] Spectre V2 : Mitigation: Full generic retpoline [ 0.001000] Freeing SMP alternatives memory: 40K [ 0.001000] TSC deadline timer enabled [ 0.001000] smpboot: CPU0: Genuine Intel(R) CPU 4000 @ 500MHz (family: 0x6, model: 0x4a, stepping: 0x8) [ 0.001000] Performance Events: PEBS fmt2+, generic architected perfmon, full-width counters, Intel PMU driver. [ 0.001304] ... version: 3 [ 0.001414] ... bit width: 40 [ 0.001525] ... generic registers: 2 [ 0.001634] ... value mask: 000000ffffffffff [ 0.001774] ... max period: 0000007fffffffff [ 0.001914] ... fixed-purpose events: 3 [ 0.002018] ... event mask: 0000000700000003 [ 0.002430] Hierarchical SRCU implementation. [ 0.008370] smp: Bringing up secondary CPUs ... [ 0.009239] x86: Booting SMP configuration: [ 0.009361] .... node #0, CPUs: #1 [ 0.009729] smp: Brought up 1 node, 2 CPUs [ 0.010147] smpboot: Max logical packages: 1 [ 0.010267] smpboot: Total of 2 processors activated (2000.00 BogoMIPS) [ 0.011589] devtmpfs: initialized [ 0.015187] kworker/u4:0 (22) used greatest stack depth: 14624 bytes left [ 0.045889] DMA-API: preallocated 65536 debug entries [ 0.046018] DMA-API: debugging enabled by kernel config [ 0.046169] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.046454] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.047030] pinctrl core: initialized pinctrl subsystem [ 0.048287] regulator-dummy: no parameters [ 0.048836] RTC time: 20:16:19, date: 09/03/18 [ 0.049424] NET: Registered protocol family 16 [ 0.049578] audit: initializing netlink subsys (disabled) [ 0.050072] audit: type=2000 audit(1536005779.050:1): state=initialized audit_enabled=0 res=1 [ 0.053572] cpuidle: using governor menu [ 0.054571] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it [ 0.054773] ACPI: bus type PCI registered [ 0.055395] PCI: MMCONFIG for domain 0000 [bus 00-00] at [mem 0x3f500000-0x3f5fffff] (base 0x3f500000) [ 0.055647] PCI: MMCONFIG at [mem 0x3f500000-0x3f5fffff] reserved in E820 [ 0.055852] Intel MID platform detected, using MID PCI ops [ 0.056000] PCI: Using configuration type 1 for base access [ 0.067168] kworker/u4:1 (76) used greatest stack depth: 14144 bytes left [ 0.105398] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.106824] ACPI: Added _OSI(Module Device) [ 0.106949] ACPI: Added _OSI(Processor Device) [ 0.107082] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.107214] ACPI: Added _OSI(Processor Aggregator Device) [ 0.107362] ACPI: Added _OSI(Linux-Dell-Video) [ 0.112000] ACPI: 1 ACPI AML tables successfully acquired and loaded [ 0.114506] ACPI: Interpreter enabled [ 0.114669] ACPI: (supports S0) [ 0.114763] ACPI: Using IOAPIC for interrupt routing [ 0.115000] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.125354] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.125556] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI] [ 0.126391] acpi PNP0A08:00: _OSC: OS now controls [PME AER PCIeCapability LTR] [ 0.126590] acpi PNP0A08:00: FADT indicates ASPM is unsupported, using BIOS configuration [ 0.126884] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-00] only partially covers this bridge [ 0.127420] PCI host bridge to bus 0000:00 [ 0.127549] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] [ 0.127733] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.127915] pci_bus 0000:00: root bus resource [mem 0x000ddcc0-0x000ddccf window] [ 0.128026] pci_bus 0000:00: root bus resource [mem 0x04819000-0x04898fff window] [ 0.128227] pci_bus 0000:00: root bus resource [mem 0x04919000-0x04920fff window] [ 0.128426] pci_bus 0000:00: root bus resource [mem 0x05e00000-0x05ffffff window] [ 0.128625] pci_bus 0000:00: root bus resource [mem 0x80000000-0xffffffff window] [ 0.128825] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.129000] pci 0000:00:00.0: [8086:1170] type 00 class 0x060000 [ 0.129694] pci 0000:00:01.0: [8086:1190] type 00 class 0x080501 [ 0.129892] pci 0000:00:01.0: reg 0x10: [mem 0xff3fc000-0xff3fc0ff] [ 0.130118] pci 0000:00:01.0: PME# supported from D0 D3hot [ 0.130682] pci 0000:00:01.2: [8086:1190] type 00 class 0x080501 [ 0.130876] pci 0000:00:01.2: reg 0x10: [mem 0xff3fa000-0xff3fa0ff] [ 0.131116] pci 0000:00:01.2: PME# supported from D0 D3hot [ 0.131668] pci 0000:00:01.3: [8086:1190] type 00 class 0x080501 [ 0.131862] pci 0000:00:01.3: reg 0x10: [mem 0xff3fb000-0xff3fb0ff] [ 0.132115] pci 0000:00:01.3: PME# supported from D0 D3hot [ 0.132733] pci 0000:00:02.0: [8086:1182] type 00 class 0x038000 [ 0.132938] pci 0000:00:02.0: reg 0x10: [mem 0xc0000000-0xc1ffffff] [ 0.133051] pci 0000:00:02.0: reg 0x18: [mem 0x80000000-0x8fffffff] [ 0.133246] pci 0000:00:02.0: reg 0x20: [io 0x7ff8-0x7fff] [ 0.133890] pci 0000:00:04.0: [8086:1191] type 00 class 0x070002 [ 0.134050] pci 0000:00:04.0: reg 0x10: [mem 0xff010000-0xff01007f] [ 0.134315] pci 0000:00:04.0: PME# supported from D0 D3hot [ 0.134869] pci 0000:00:04.1: [8086:1191] type 00 class 0x070002 [ 0.135050] pci 0000:00:04.1: reg 0x10: [mem 0xff010080-0xff0100ff] [ 0.135315] pci 0000:00:04.1: PME# supported from D0 D3hot [ 0.135915] pci 0000:00:04.2: [8086:1191] type 00 class 0x070002 [ 0.136049] pci 0000:00:04.2: reg 0x10: [mem 0xff010100-0xff01017f] [ 0.136313] pci 0000:00:04.2: PME# supported from D0 D3hot [ 0.136866] pci 0000:00:04.3: [8086:1191] type 00 class 0x070002 [ 0.137051] pci 0000:00:04.3: reg 0x10: [mem 0xff010180-0xff0101ff] [ 0.137316] pci 0000:00:04.3: PME# supported from D0 D3hot [ 0.137875] pci 0000:00:05.0: [8086:1192] type 00 class 0x070002 [ 0.138050] pci 0000:00:05.0: reg 0x10: [mem 0xff010400-0xff0107ff] [ 0.138315] pci 0000:00:05.0: PME# supported from D0 D3hot [ 0.138876] pci 0000:00:06.0: [8086:1193] type 00 class 0x088000 [ 0.139050] pci 0000:00:06.0: reg 0x10: [mem 0xff2a0000-0xff2a0fff] [ 0.139313] pci 0000:00:06.0: PME# supported from D0 D3hot [ 0.139863] pci 0000:00:06.1: [8086:1193] type 00 class 0x088000 [ 0.140050] pci 0000:00:06.1: reg 0x10: [mem 0xff2a1000-0xff2a1fff] [ 0.140316] pci 0000:00:06.1: PME# supported from D0 D3hot [ 0.140877] pci 0000:00:07.0: [8086:1194] type 00 class 0x088000 [ 0.141050] pci 0000:00:07.0: reg 0x10: [mem 0xff188000-0xff188fff] [ 0.141313] pci 0000:00:07.0: PME# supported from D0 D3hot [ 0.141897] pci 0000:00:07.1: [8086:1194] type 00 class 0x088000 [ 0.142050] pci 0000:00:07.1: reg 0x10: [mem 0xff189000-0xff189fff] [ 0.142314] pci 0000:00:07.1: PME# supported from D0 D3hot [ 0.142917] pci 0000:00:07.2: [8086:1194] type 00 class 0x088000 [ 0.143049] pci 0000:00:07.2: reg 0x10: [mem 0xff18a000-0xff18afff] [ 0.143313] pci 0000:00:07.2: PME# supported from D0 D3hot [ 0.143889] pci 0000:00:08.0: [8086:1195] type 00 class 0x078000 [ 0.144051] pci 0000:00:08.0: reg 0x10: [mem 0xff18b000-0xff18bfff] [ 0.144315] pci 0000:00:08.0: PME# supported from D0 D3hot [ 0.144914] pci 0000:00:08.1: [8086:1195] type 00 class 0x078000 [ 0.145050] pci 0000:00:08.1: reg 0x10: [mem 0xff18c000-0xff18cfff] [ 0.145314] pci 0000:00:08.1: PME# supported from D0 D3hot [ 0.145873] pci 0000:00:08.2: [8086:1195] type 00 class 0x078000 [ 0.146050] pci 0000:00:08.2: reg 0x10: [mem 0xff18d000-0xff18dfff] [ 0.146315] pci 0000:00:08.2: PME# supported from D0 D3hot [ 0.146869] pci 0000:00:08.3: [8086:1195] type 00 class 0x078000 [ 0.147049] pci 0000:00:08.3: reg 0x10: [mem 0xff18e000-0xff18efff] [ 0.147312] pci 0000:00:08.3: PME# supported from D0 D3hot [ 0.147875] pci 0000:00:09.0: [8086:1196] type 00 class 0x078000 [ 0.148050] pci 0000:00:09.0: reg 0x10: [mem 0xff18f000-0xff18ffff] [ 0.148315] pci 0000:00:09.0: PME# supported from D0 D3hot [ 0.148873] pci 0000:00:09.1: [8086:1196] type 00 class 0x078000 [ 0.149050] pci 0000:00:09.1: reg 0x10: [mem 0xff190000-0xff190fff] [ 0.149314] pci 0000:00:09.1: PME# supported from D0 D3hot [ 0.149921] pci 0000:00:09.2: [8086:1196] type 00 class 0x078000 [ 0.150050] pci 0000:00:09.2: reg 0x10: [mem 0xff191000-0xff191fff] [ 0.150315] pci 0000:00:09.2: PME# supported from D0 D3hot [ 0.150883] pci 0000:00:0a.0: [8086:1197] type 00 class 0x078000 [ 0.151050] pci 0000:00:0a.0: reg 0x10: [mem 0xff3f8000-0xff3f8fff] [ 0.151315] pci 0000:00:0a.0: PME# supported from D0 D3hot [ 0.151868] pci 0000:00:0b.0: [8086:1198] type 00 class 0x108000 [ 0.152049] pci 0000:00:0b.0: reg 0x10: [mem 0xf9038000-0xf903ffff] [ 0.152313] pci 0000:00:0b.0: PME# supported from D0 D3hot [ 0.152871] pci 0000:00:0c.0: [8086:1199] type 00 class 0x088000 [ 0.153050] pci 0000:00:0c.0: reg 0x10: [mem 0xff008000-0xff008fff] [ 0.153231] pci 0000:00:0c.0: reg 0x14: [mem 0x000ddcc0-0x000ddccf] [ 0.153487] pci 0000:00:0c.0: PME# supported from D0 D3hot [ 0.154102] pci 0000:00:0d.0: [8086:119a] type 00 class 0x040100 [ 0.154295] pci 0000:00:0d.0: reg 0x10: [mem 0x05e00000-0x05ffffff] [ 0.154474] pci 0000:00:0d.0: reg 0x14: [mem 0xff340000-0xff343fff] [ 0.154650] pci 0000:00:0d.0: reg 0x18: [mem 0xff344000-0xff344fff] [ 0.154826] pci 0000:00:0d.0: reg 0x1c: [mem 0xff2c0000-0xff2dffff] [ 0.155000] pci 0000:00:0d.0: reg 0x20: [mem 0xff300000-0xff33ffff] [ 0.155095] pci 0000:00:0d.0: PME# supported from D0 D3hot [ 0.155651] pci 0000:00:0e.0: [8086:119b] type 00 class 0x088000 [ 0.155845] pci 0000:00:0e.0: reg 0x10: [mem 0xff298000-0xff29bfff] [ 0.156032] pci 0000:00:0e.0: reg 0x14: [mem 0xff2a2000-0xff2a2fff] [ 0.156292] pci 0000:00:0e.0: PME# supported from D0 D3hot [ 0.156862] pci 0000:00:11.0: [8086:119e] type 00 class 0x0c0320 [ 0.157050] pci 0000:00:11.0: reg 0x10: [mem 0xf9100000-0xf911ffff] [ 0.157314] pci 0000:00:11.0: PME# supported from D0 D3hot [ 0.157871] pci 0000:00:12.0: [8086:119f] type 00 class 0x118000 [ 0.158050] pci 0000:00:12.0: reg 0x10: [mem 0xf9009000-0xf9009fff] [ 0.158230] pci 0000:00:12.0: reg 0x14: [mem 0xf90a0000-0xf90affff] [ 0.158406] pci 0000:00:12.0: reg 0x18: [mem 0xfa000000-0xfaffffff] [ 0.158657] pci 0000:00:12.0: PME# supported from D0 D3hot [ 0.159233] pci 0000:00:13.0: [8086:11a0] type 00 class 0x0b4000 [ 0.159427] pci 0000:00:13.0: reg 0x10: [mem 0xff009000-0xff009fff] [ 0.159689] pci 0000:00:13.0: PME# supported from D0 D3hot [ 0.160318] pci 0000:00:14.0: [8086:11a1] type 00 class 0x0b4000 [ 0.160512] pci 0000:00:14.0: reg 0x10: [mem 0xff00b000-0xff00bfff] [ 0.160773] pci 0000:00:14.0: PME# supported from D0 D3hot [ 0.161343] pci 0000:00:15.0: [8086:11a2] type 00 class 0x088000 [ 0.161537] pci 0000:00:15.0: reg 0x10: [mem 0xff192000-0xff192fff] [ 0.161798] pci 0000:00:15.0: PME# supported from D0 D3hot [ 0.162378] pci 0000:00:16.0: [8086:11a3] type 00 class 0x0b4000 [ 0.162571] pci 0000:00:16.0: reg 0x10: [mem 0xff0d9000-0xff0d90ff] [ 0.162833] pci 0000:00:16.0: PME# supported from D0 D3hot [ 0.163393] pci 0000:00:16.1: [8086:11a4] type 00 class 0x0b4000 [ 0.163586] pci 0000:00:16.1: reg 0x10: [mem 0x04819000-0x04898fff] [ 0.163764] pci 0000:00:16.1: reg 0x14: [mem 0x04919000-0x04920fff] [ 0.164025] pci 0000:00:16.1: PME# supported from D0 D3hot [ 0.164600] pci 0000:00:17.0: [8086:11a5] type 00 class 0x088000 [ 0.164792] pci 0000:00:17.0: reg 0x10: [mem 0xff013000-0xff013fff] [ 0.165060] pci 0000:00:17.0: PME# supported from D0 D3hot [ 0.165665] pci 0000:00:18.0: [8086:11a6] type 00 class 0x038000 [ 0.165945] pci 0000:00:18.0: PME# supported from D0 D3hot [ 0.170581] vgaarb: loaded [ 0.171173] SCSI subsystem initialized [ 0.171800] libata version 3.00 loaded. [ 0.172222] ACPI: bus type USB registered [ 0.172509] usbcore: registered new interface driver usbfs [ 0.172745] usbcore: registered new interface driver hub [ 0.173048] usbcore: registered new device driver usb [ 0.173473] pps_core: LinuxPPS API ver. 1 registered [ 0.173613] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.173889] PTP clock support registered [ 0.175519] EDAC MC: Ver: 3.0.0 [ 0.176470] Advanced Linux Sound Architecture Driver Initialized. [ 0.176705] PCI: Probing PCI hardware [ 0.176813] PCI: root bus 00: using default resources [ 0.176950] PCI: Probing PCI hardware (bus 00) [ 0.177133] PCI: pci_cache_line_size set to 64 bytes [ 0.177413] e820: reserve RAM buffer [mem 0x00098000-0x0009ffff] [ 0.177575] e820: reserve RAM buffer [mem 0x3f500000-0x3fffffff] [ 0.178432] Bluetooth: Core ver 2.22 [ 0.178601] NET: Registered protocol family 31 [ 0.178726] Bluetooth: HCI device and connection manager initialized [ 0.178900] Bluetooth: HCI socket layer initialized [ 0.179026] Bluetooth: L2CAP socket layer initialized [ 0.179201] Bluetooth: SCO socket layer initialized [ 0.179363] NetLabel: Initializing [ 0.179460] NetLabel: domain hash size = 128 [ 0.179577] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.179820] NetLabel: unlabeled traffic allowed by default [ 0.181097] clocksource: Switched to clocksource tsc-early [ 0.261296] VFS: Disk quotas dquot_6.6.0 [ 0.261509] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.262084] pnp: PnP ACPI init [ 0.263522] pnp: PnP ACPI: found 0 devices [ 0.278085] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window] [ 0.278265] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window] [ 0.278435] pci_bus 0000:00: resource 6 [mem 0x000ddcc0-0x000ddccf window] [ 0.278620] pci_bus 0000:00: resource 7 [mem 0x04819000-0x04898fff window] [ 0.278804] pci_bus 0000:00: resource 8 [mem 0x04919000-0x04920fff window] [ 0.278988] pci_bus 0000:00: resource 9 [mem 0x05e00000-0x05ffffff window] [ 0.279205] pci_bus 0000:00: resource 10 [mem 0x80000000-0xffffffff window] [ 0.279658] NET: Registered protocol family 2 [ 0.280598] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes) [ 0.280867] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [ 0.281225] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 0.281552] TCP: Hash tables configured (established 8192 bind 8192) [ 0.281892] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.282141] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.282539] NET: Registered protocol family 1 [ 0.283371] RPC: Registered named UNIX socket transport module. [ 0.283534] RPC: Registered udp transport module. [ 0.283662] RPC: Registered tcp transport module. [ 0.283788] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.296060] pci 0000:00:01.0: mid_power_off_devices+0x0/0x80 took 11105 usecs [ 0.308050] pci 0000:00:01.2: mid_power_off_devices+0x0/0x80 took 11494 usecs [ 0.320048] pci 0000:00:01.3: mid_power_off_devices+0x0/0x80 took 11506 usecs [ 0.332049] pci 0000:00:04.1: mid_power_off_devices+0x0/0x80 took 11478 usecs [ 0.344049] pci 0000:00:04.2: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.356047] pci 0000:00:04.3: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.368048] pci 0000:00:06.0: mid_power_off_devices+0x0/0x80 took 11496 usecs [ 0.380047] pci 0000:00:06.1: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.392048] pci 0000:00:07.0: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.404047] pci 0000:00:07.1: mid_power_off_devices+0x0/0x80 took 11506 usecs [ 0.416048] pci 0000:00:07.2: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.428048] pci 0000:00:08.0: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.440048] pci 0000:00:08.1: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.452048] pci 0000:00:08.2: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.464048] pci 0000:00:08.3: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.476048] pci 0000:00:09.0: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.488048] pci 0000:00:09.1: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.500048] pci 0000:00:09.2: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.512049] pci 0000:00:0a.0: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.524048] pci 0000:00:0b.0: mid_power_off_devices+0x0/0x80 took 11507 usecs [ 0.536048] pci 0000:00:0d.0: mid_power_off_devices+0x0/0x80 took 11496 usecs [ 0.548048] pci 0000:00:0e.0: mid_power_off_devices+0x0/0x80 took 11508 usecs [ 0.548357] pci 0000:00:11.0: Mapped GSI34 to IRQ8 [ 0.562050] pci 0000:00:11.0: mid_power_off_devices+0x0/0x80 took 11171 usecs [ 0.575057] pci 0000:00:15.0: mid_power_off_devices+0x0/0x80 took 12454 usecs [ 0.587055] pci 0000:00:16.0: mid_power_off_devices+0x0/0x80 took 11506 usecs [ 0.599054] pci 0000:00:16.1: mid_power_off_devices+0x0/0x80 took 11506 usecs [ 0.611055] pci 0000:00:17.0: mid_power_off_devices+0x0/0x80 took 11509 usecs [ 0.611261] PCI: CLS 0 bytes, default 64 [ 0.703422] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns [ 0.703731] clocksource: Switched to clocksource tsc [ 0.704107] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.706289] Scanning for low memory corruption every 60 seconds [ 0.707114] intel_mid_pwr 0000:00:14.0: Mapped GSI6 to IRQ8 [ 0.710181] Initialise system trusted keyrings [ 0.712395] workingset: timestamp_bits=56 max_order=18 bucket_order=0 [ 0.731725] NFS: Registering the id_resolver key type [ 0.731905] Key type id_resolver registered [ 0.732073] Key type id_legacy registered [ 0.732776] SELinux: Registering netfilter hooks [ 0.739818] Key type asymmetric registered [ 0.739943] Asymmetric key parser 'x509' registered [ 0.740499] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 0.740698] io scheduler noop registered [ 0.740807] io scheduler deadline registered [ 0.741306] io scheduler cfq registered (default) [ 0.741440] io scheduler mq-deadline registered [ 0.741564] io scheduler kyber registered [ 0.742452] gpio-merrifield 0000:00:0c.0: Mapped GSI5 to IRQ9 [ 0.751154] intel_idle: MWAIT substates: 0x33000020 [ 0.751297] intel_idle: v0.4.1 model 0x4A [ 0.751899] intel_idle: lapic_timer_reliable_states 0xffffffff [ 0.753265] dw_dmac_pci 0000:00:15.0: Mapped GSI32 to IRQ10 [ 0.754499] dw_dmac_pci 0000:00:15.0: DesignWare DMA Controller, 8 channels [ 0.754959] hsu_dma_pci 0000:00:05.0: Mapped GSI31 to IRQ11 [ 0.756622] hsu_dma_pci 0000:00:05.0: Found HSU DMA, 12 channels [ 0.757623] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.761741] 8250_mid: probe of 0000:00:04.0 failed with error -16 [ 0.762103] 8250_mid 0000:00:04.1: Mapped GSI28 to IRQ12 [ 0.762703] 0000:00:04.1: ttyS0 at MMIO 0xff010080 (irq = 12, base_baud = 1843200) is a TI16750 [ 0.763378] serial serial0: tty port ttyS0 registered [ 0.763737] 8250_mid 0000:00:04.2: Mapped GSI29 to IRQ13 [ 0.764280] 0000:00:04.2: ttyS1 at MMIO 0xff010100 (irq = 13, base_baud = 1843200) is a TI16750 [ 0.765287] 8250_mid 0000:00:04.3: Mapped GSI54 to IRQ14 [ 0.765749] console [ttyS2] disabled [ 0.765888] 0000:00:04.3: ttyS2 at MMIO 0xff010180 (irq = 14, base_baud = 1843200) is a TI16750 [ 3.260482] console [ttyS2] enabled [ 3.264974] Non-volatile memory driver v1.3 [ 3.269909] Linux agpgart interface v0.103 [ 3.285335] loop: module loaded [ 3.290150] libphy: Fixed MDIO Bus: probed [ 3.294522] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI [ 3.300641] e100: Copyright(c) 1999-2006 Intel Corporation [ 3.306259] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 3.313325] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 3.319211] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [ 3.325061] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 3.331149] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k [ 3.338126] igb: Copyright (c) 2007-2014 Intel Corporation. [ 3.343831] sky2: driver version 1.30 [ 3.348242] usbcore: registered new interface driver r8152 [ 3.353842] usbcore: registered new interface driver asix [ 3.359327] usbcore: registered new interface driver ax88179_178a [ 3.365508] usbcore: registered new interface driver cdc_ether [ 3.371418] usbcore: registered new interface driver net1080 [ 3.377160] usbcore: registered new interface driver cdc_subset [ 3.383158] usbcore: registered new interface driver zaurus [ 3.388809] usbcore: registered new interface driver MOSCHIP usb-ethernet driver [ 3.396326] usbcore: registered new interface driver cdc_ncm [ 3.402615] dwc3-pci 0000:00:11.0: Mapped GSI34 to IRQ15 [ 3.408291] dwc3 dwc3.0.auto: Configuration mismatch. dr_mode forced to host [ 3.423815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.430604] ehci-pci: EHCI PCI platform driver [ 3.435207] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 3.441428] ohci-pci: OHCI PCI platform driver [ 3.445980] uhci_hcd: USB Universal Host Controller Interface driver [ 3.452754] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 3.458630] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1 [ 3.466590] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f06c hci version 0x100 quirks 0x0000000002010010 [ 3.476096] xhci-hcd xhci-hcd.1.auto: irq 15, io mem 0xf9100000 [ 3.482478] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 3.490784] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.498045] usb usb1: Product: xHCI Host Controller [ 3.502946] usb usb1: Manufacturer: Linux 4.18.0-edison-acpi-standard xhci-hcd [ 3.510184] usb usb1: SerialNumber: xhci-hcd.1.auto [ 3.515882] hub 1-0:1.0: USB hub found [ 3.519715] hub 1-0:1.0: 1 port detected [ 3.524194] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 3.530107] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2 [ 3.537810] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 3.544545] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 3.552830] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.18 [ 3.561118] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.568356] usb usb2: Product: xHCI Host Controller [ 3.573252] usb usb2: Manufacturer: Linux 4.18.0-edison-acpi-standard xhci-hcd [ 3.580487] usb usb2: SerialNumber: xhci-hcd.1.auto [ 3.586397] hub 2-0:1.0: USB hub found [ 3.590226] hub 2-0:1.0: 1 port detected [ 3.594870] usbcore: registered new interface driver usblp [ 3.600497] usbcore: registered new interface driver usb-storage [ 3.606683] usbcore: registered new interface driver pl2303 [ 3.612327] usbserial: USB Serial support registered for pl2303 [ 3.619285] genirq: Flags mismatch irq 8. 00000080 (rtc0) vs. 00004000 (0000:00:14.0) [ 3.621034] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.18.0-edison-acpi-standard #1 [ 3.621034] Hardware name: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48 [ 3.621034] Call Trace: [ 3.621034] dump_stack+0x46/0x5b [ 3.621034] __setup_irq+0x6b9/0x700 [ 3.621034] request_threaded_irq+0xf0/0x160 [ 3.621034] cmos_do_probe+0x221/0x500 [ 3.621034] ? rtc_wake_on+0x20/0x20 [ 3.621034] ? mc146818_set_time+0x230/0x230 [ 3.621034] platform_drv_probe+0x4c/0xa0 [ 3.621034] ? driver_sysfs_add+0x70/0xd0 [ 3.621034] driver_probe_device+0x2f5/0x470 [ 3.621034] ? set_debug_rodata+0xc/0xc [ 3.621034] __driver_attach+0xd7/0x100 [ 3.621034] ? driver_probe_device+0x470/0x470 [ 3.621034] bus_for_each_dev+0x71/0xb0 [ 3.621034] bus_add_driver+0x15c/0x250 [ 3.621034] ? rtc_dev_init+0x2b/0x2b [ 3.621034] driver_register+0x56/0xe0 [ 3.621034] ? rtc_dev_init+0x2b/0x2b [ 3.621034] __platform_driver_probe+0x58/0xf0 [ 3.621034] ? rtc_dev_init+0x2b/0x2b [ 3.621034] cmos_init+0x37/0x67 [ 3.621034] do_one_initcall+0x41/0x1b8 [ 3.621034] kernel_init_freeable+0x168/0x1f9 [ 3.621034] ? rest_init+0xb0/0xb0 [ 3.621034] kernel_init+0x5/0x100 [ 3.621034] ret_from_fork+0x35/0x40 [ 3.742423] rtc_cmos: probe of rtc_cmos failed with error -16 [ 3.748832] i2c-designware-pci 0000:00:08.0: Mapped GSI7 to IRQ16 [ 3.757135] i2c-designware-pci 0000:00:08.1: Mapped GSI10 to IRQ17 [ 3.763929] i2c-designware-pci 0000:00:08.2: Mapped GSI12 to IRQ18 [ 3.770695] i2c-designware-pci 0000:00:08.3: Mapped GSI13 to IRQ19 [ 3.777481] i2c-designware-pci 0000:00:09.0: Mapped GSI14 to IRQ20 [ 3.784276] i2c-designware-pci 0000:00:09.1: Mapped GSI15 to IRQ21 [ 3.792477] i2c-designware-pci 0000:00:09.2: Mapped GSI16 to IRQ22 [ 3.800268] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com [ 3.808937] hidraw: raw HID events driver (C) Jiri Kosina [ 3.815563] usbcore: registered new interface driver usbhid [ 3.821176] usbhid: USB HID core driver [ 3.825232] intel_scu_ipc 0000:00:13.0: Mapped GSI48 to IRQ23 [ 3.831985] intel_mid_wdt intel_mid_wdt: Intel MID watchdog device probed [ 3.839934] input: msic_power_btn as /devices/platform/msic_power_btn/input/input0 [ 3.850839] Initializing XFRM netlink socket [ 3.856215] NET: Registered protocol family 10 [ 3.861967] Segment Routing with IPv6 [ 3.866180] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 3.872927] NET: Registered protocol family 17 [ 3.877486] Key type dns_resolver registered [ 3.883214] microcode: sig=0x406a8, pf=0x1, revision=0x81f [ 3.889082] microcode: Microcode Update Driver: v2.2. [ 3.889151] sched_clock: Marking stable (3889011670, 0)->(3901435650, -12423980) [ 3.903100] registered taskstats version 1 [ 3.907225] Loading compiled-in X.509 certificates [ 3.912124] Unable to create integrity sysfs dir: -19 [ 3.919064] Magic number: 2:86:295 [ 3.922774] tty tty28: hash matches [ 3.926402] console [netcon0] enabled [ 3.930090] netconsole: network logging started [ 3.935408] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 3.957171] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 3.963856] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 3.967232] ALSA device list: [ 3.972506] cfg80211: failed to load regulatory.db [ 3.975488] No soundcards found. [ 3.980306] usb 1-1: new high-speed USB device number 2 using xhci-hcd [ 4.008089] Freeing unused kernel memory: 10464K [ 4.016613] Write protecting the kernel read-only data: 20480k [ 4.025890] Freeing unused kernel memory: 2004K [ 4.041399] Freeing unused kernel memory: 596K [ 4.116447] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00 [ 4.124684] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.183982] hub 1-1:1.0: USB hub found [ 4.190064] hub 1-1:1.0: 5 ports detected [ 4.476258] sdhci: Secure Digital Host Controller Interface driver [ 4.482528] sdhci: Copyright(c) Pierre Ossman [ 4.504473] sdhci-pci 0000:00:01.0: SDHCI controller found [8086:1190] (rev 1) [ 4.517279] sdhci-pci 0000:00:01.0: Mapped GSI0 to IRQ24 [ 4.526521] mmc0: SDHCI controller on PCI [0000:00:01.0] using ADMA [ 4.533513] sdhci-pci 0000:00:01.2: SDHCI controller found [8086:1190] (rev 1) [ 4.541147] usb 1-1.1: new high-speed USB device number 3 using xhci-hcd [ 4.548213] sdhci-pci 0000:00:01.2: Mapped GSI37 to IRQ25 [ 4.557885] mmc1: SDHCI controller on PCI [0000:00:01.2] using ADMA [ 4.568573] sdhci-pci 0000:00:01.3: SDHCI controller found [8086:1190] (rev 1) [ 4.579288] ACPI: Host-directed Dynamic ACPI Table Load: [ 4.584751] ACPI: SSDT 0xFFFF9FBCFB602000 001694 (v05 ARDUINO 00000001 INTL 20180810) [ 4.593896] sdhci-pci 0000:00:01.3: Mapped GSI38 to IRQ26 [ 4.626974] mmc2: SDHCI controller on PCI [0000:00:01.3] using ADMA [ 4.633900] pca953x i2c-INT3491:00: i2c-INT3491:00 supply vcc not found, using dummy regulator [ 4.654793] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00 [ 4.660274] ACPI: Host-directed Dynamic ACPI Table Load: [ 4.663229] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.668696] ACPI: [ 4.675976] usb 1-1.1: Product: LAN9514 [ 4.675985] usb 1-1.1: Manufacturer: SMSC [ 4.675994] usb 1-1.1: SerialNumber: 00951d0d [ 4.690315] SSDT 0xFFFF9FBCF68C2A80 0000A6 (v05 SPIDEV 00000001 INTL 20180810) [ 4.701991] GPIO line 500 (i2c6-sda-mux) hogged as output/low [ 4.708350] GPIO line 501 (i2c6-scl-mux) hogged as output/low [ 4.717930] GPIO line 508 (i2c6-sda-pu) hogged as input [ 4.725222] mmc0: new DDR MMC card at address 0001 [ 4.731502] mmc1: new high speed SD card at address e624 [ 4.740219] GPIO line 509 (i2c6-scl-pu) hogged as input [ 4.762323] pca953x i2c-INT3491:01: i2c-INT3491:01 supply vcc not found, using dummy regulator [ 4.776558] gpioset (1445) used greatest stack depth: 13688 bytes left [ 4.788273] GPIO line 480 (uart1-rx-pu) hogged as input [ 4.795762] mmc2: queuing unknown CIS tuple 0x80 (7 bytes) [ 4.814117] mmc2: queuing unknown CIS tuple 0x80 (6 bytes) [ 4.841109] GPIO line 481 (uart1-tx-pu) hogged as input [ 4.851108] mmc2: queuing unknown CIS tuple 0x80 (2 bytes) [ 4.877756] GPIO line 490 (ssp5-fs1-pu) hogged as input [ 4.890132] mmc2: queuing unknown CIS tuple 0x80 (4 bytes) [ 4.907105] GPIO line 491 (ssp5-txd-pu) hogged as input [ 4.924740] random: fast init done [ 4.933967] GPIO line 492 (ssp5-rxd-pu) hogged as input [ 4.976144] GPIO line 493 (ssp5-clk-pu) hogged as input [ 4.998901] pca953x i2c-INT3491:02: i2c-INT3491:02 supply vcc not found, using dummy regulator [ 5.028839] GPIO line 468 (i2c6-sda-mux) hogged as output/high [ 5.048582] mmc2: new ultra high speed DDR50 SDIO card at address 0001 [ 5.060627] GPIO line 469 (i2c6-scl-mux) hogged as output/high [ 5.085130] GPIO line 472 (ssp5-fs1-mux) hogged as output/high [ 5.096307] GPIO line 473 (ssp5-txd-mux) hogged as output/high [ 5.113126] GPIO line 474 (ssp5-rxd-mux) hogged as output/high [ 5.127434] GPIO line 475 (ssp5-clk-mux) hogged as output/high [ 5.139923] pca953x i2c-INT3491:03: i2c-INT3491:03 supply vcc not found, using dummy regulator [ 5.156650] GPIO line 448 (uart1-rx-oe) hogged as output/low [ 5.177523] GPIO line 449 (uart1-tx-oe) hogged as output/high [ 5.186879] GPIO line 458 (ssp5-fs1-oe) hogged as output/high [ 5.206812] GPIO line 459 (ssp5-txd-oe) hogged as output/high [ 5.217243] GPIO line 460 (ssp5-rxd-oe) hogged as output/low [ 5.223443] GPIO line 461 (ssp5-clk-oe) hogged as output/high [ 5.237370] mmcblk0: mmc0:0001 H4G1d 3.64 GiB [ 5.247744] GPIO line 462 (ssp5-txd-mux) hogged as output/high [ 5.257098] mmcblk0boot0: mmc0:0001 H4G1d partition 1 4.00 MiB [ 5.265672] GPIO line 463 (ssp5-fs1-mux) hogged as output/high [ 5.273811] mmcblk0boot1: mmc0:0001 H4G1d partition 2 4.00 MiB [ 5.287394] mmcblk0rpmb: mmc0:0001 H4G1d partition 3 4.00 MiB, chardev (244:0) [ 5.301699] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 [ 5.314963] mmcblk1: mmc1:e624 SU02G 1.84 GiB [ 5.907402] EXT4-fs (mmcblk1): mounted filesystem with ordered data mode. Opts: (null) [ 5.919998] EXT4-fs (mmcblk0p5): warning: mounting unchecked fs, running e2fsck is recommended [ 5.936336] EXT4-fs (mmcblk0p5): mounted filesystem without journal. Opts: (null) [ 5.949316] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null) [ 5.974598] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: (null) [ 5.981609] FAT-fs (mmcblk0p7): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 6.015545] udevd (1204) used greatest stack depth: 13104 bytes left [ 9.352419] usb 1-1.2: new high-speed USB device number 4 using xhci-hcd [ 9.448558] usb 1-1.2: New USB device found, idVendor=125f, idProduct=312b, bcdDevice=10.75 [ 9.456949] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.464276] usb 1-1.2: Product: ADATA USB Flash Drive [ 9.469351] usb 1-1.2: Manufacturer: ADATA [ 9.473473] usb 1-1.2: SerialNumber: 23A1608450430012 [ 9.479995] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 9.487685] scsi host0: usb-storage 1-1.2:1.0 [ 10.529684] scsi 0:0:0:0: Direct-Access ADATA USB Flash Drive 1.00 PQ: 0 ANSI: 6 [ 10.539331] sd 0:0:0:0: [sda] 30869504 512-byte logical blocks: (15.8 GB/14.7 GiB) [ 10.547980] sd 0:0:0:0: [sda] Write Protect is off [ 10.552830] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 10.558624] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 10.568112] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA [ 10.588122] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 10.766385] EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: (null) [ 13.031468] systemd[1]: systemd 237 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid) [ 13.065812] systemd[1]: Detected architecture x86-64. [ 13.075709] systemd[1]: Set hostname to . [ 13.221236] random: crng init done [ 13.229596] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 13.246687] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ 13.543457] systemd[1]: Reached target Remote File Systems. [ 13.549557] systemd[1]: Reached target Host and Network Name Lookups. [ 13.558061] systemd[1]: Set up automount factory.automount. [ 13.564844] systemd[1]: Created slice System Slice. [ 13.570379] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 13.740363] EXT4-fs (sda): re-mounted. Opts: discard,barrier=1,data=ordered,noauto_da_alloc [ 14.692366] systemd-journald[1845]: Received request to flush runtime journal from PID 1 [ 15.111146] Bluetooth: HCI UART driver ver 2.3 [ 15.115659] Bluetooth: HCI UART protocol H4 registered [ 15.132060] Bluetooth: HCI UART protocol Broadcom registered [ 15.141786] pxa2xx_spi_pci 0000:00:07.0: Mapped GSI20 to IRQ27 [ 15.155602] pxa2xx_spi_pci 0000:00:07.1: Mapped GSI22 to IRQ28 [ 15.165230] pxa2xx_spi_pci 0000:00:07.2: Mapped GSI23 to IRQ2 [ 15.313335] Bluetooth: hci0: BCM: chip id 82 [ 15.321052] Bluetooth: hci0: BCM: features 0x2f [ 15.327161] Bluetooth: hci0: BCM43341B0 [ 15.331087] Bluetooth: hci0: BCM43341B0 (002.001.014) build 0000 [ 15.468570] mmc2: queuing unknown CIS tuple 0x80 (7 bytes) [ 15.496960] mmc2: queuing unknown CIS tuple 0x80 (6 bytes) [ 15.557047] mmc2: queuing unknown CIS tuple 0x80 (2 bytes) [ 15.603552] mmc2: queuing unknown CIS tuple 0x80 (4 bytes) [ 15.640787] smsc95xx v1.0.6 [ 15.694996] brcmfmac: F1 signature read @0x18000000=0x1602a94c [ 15.736446] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-xhci-hcd.1.auto-1.1, smsc95xx USB 2.0 Ethernet, 00:80:0f:95:1d:4d [ 15.775738] usbcore: registered new interface driver smsc95xx [ 15.782653] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43340-sdio for chip BCM43340/2 [ 16.130870] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43340-sdio for chip BCM43340/2 [ 16.154409] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43340-sdio.clm_blob failed with error -2 [ 16.164662] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available [ 16.224759] Bluetooth: hci0: BCM43341B0 (002.001.014) build 0176 [ 16.272147] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43340/2 wl0: Feb 20 2015 12:54:17 version 6.10.190.55 (r536162) FWID 01-6cb01dcc [ 16.560227] ads7950 spi-PRP0001:00: spi-PRP0001:00 supply vref not found, using dummy regulator [ 16.570464] spidev spi-SPT0001:00: do not use this driver in production systems! [ 16.646837] smsc95xx 1-1.1:1.0 enp0s17u1u1: renamed from eth0 [ 16.723859] systemd-udevd (2532) used greatest stack depth: 13000 bytes left [ 19.102560] audit: type=1325 audit(1536005798.101:2): table=filter family=2 entries=4 [ 19.117923] audit: type=1300 audit(1536005798.101:2): arch=c000003e syscall=54 success=yes exit=0 a0=9 a1=0 a2=40 a3=1e377e0 items=0 ppid=1 pid=2657 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="connmand" exe="/usr/sbin/connmand" subj=kernel key=(null) [ 19.219211] audit: type=1327 audit(1536005798.101:2): proctitle=2F7573722F7362696E2F636F6E6E6D616E64002D6E [ 19.258192] audit: type=1325 audit(1536005798.155:3): table=mangle family=2 entries=6 [ 19.280134] audit: type=1300 audit(1536005798.155:3): arch=c000003e syscall=54 success=yes exit=0 a0=9 a1=0 a2=40 a3=1e38410 items=0 ppid=1 pid=2657 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="connmand" exe="/usr/sbin/connmand" subj=kernel key=(null) [ 19.338496] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: discard,barrier=1,data=ordered,noauto_da_alloc [ 19.376114] audit: type=1327 audit(1536005798.155:3): proctitle=2F7573722F7362696E2F636F6E6E6D616E64002D6E [ 19.412340] audit: type=1325 audit(1536005798.375:4): table=nat family=2 entries=0 [ 19.427084] audit: type=1300 audit(1536005798.375:4): arch=c000003e syscall=313 success=yes exit=0 a0=6 a1=41988e a2=0 a3=6 items=0 ppid=2657 pid=2675 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="modprobe" exe="/bin/kmod" subj=kernel key=(null) [ 19.463127] audit: type=1327 audit(1536005798.375:4): proctitle=2F7362696E2F6D6F6470726F62650069707461626C655F6E6174002D71 [ 19.474623] audit: type=1325 audit(1536005798.394:5): table=nat family=2 entries=5 [ 19.695545] smsc95xx 1-1.1:1.0 enp0s17u1u1: hardware isn't capable of remote wakeup [ 19.704003] IPv6: ADDRCONF(NETDEV_UP): enp0s17u1u1: link is not ready [ 20.126421] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 20.292054] export_store: invalid GPIO 214 [ 20.299065] export_store: invalid GPIO 243 [ 20.303661] export_store: invalid GPIO 261 [ 21.367692] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s17u1u1: link becomes ready [ 21.376101] smsc95xx 1-1.1:1.0 enp0s17u1u1: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 21.395173] smsc95xx 1-1.1:1.0 enp0s17u1u1: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 24.243907] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 32.245441] kauditd_printk_skb: 2 callbacks suppressed [ 32.245448] audit: type=1006 audit(1536005812.172:6): pid=2715 uid=0 subj=kernel old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1 ```
grep -H 15 /sys/bus/acpi/devices/*/status ``` /sys/bus/acpi/devices/BCM2E95:00/status:15 /sys/bus/acpi/devices/INT3491:00/status:15 /sys/bus/acpi/devices/INT3491:01/status:15 /sys/bus/acpi/devices/INT3491:02/status:15 /sys/bus/acpi/devices/INT3491:03/status:15 /sys/bus/acpi/devices/INTC1002:00/status:15 /sys/bus/acpi/devices/INTC9999:00/status:15 /sys/bus/acpi/devices/device:00/status:15 /sys/bus/acpi/devices/device:01/status:15 /sys/bus/acpi/devices/device:02/status:15 /sys/bus/acpi/devices/device:03/status:15 /sys/bus/acpi/devices/device:04/status:15 /sys/bus/acpi/devices/device:05/status:15 /sys/bus/acpi/devices/device:06/status:15 /sys/bus/acpi/devices/device:07/status:15 /sys/bus/acpi/devices/device:08/status:15 /sys/bus/acpi/devices/device:09/status:15 /sys/bus/acpi/devices/device:0a/status:15 ```
/sys/kernel/debug/gpio ``` gpiochip0: GPIOs 0-191, parent: pci/0000:00:0c.0, 0000:00:0c.0: gpio-40 ( |sysfs ) out lo gpio-71 ( |shutdown ) out hi gpio-77 ( |sd_cd ) in lo IRQ gpio-96 ( |ACPI:OpRegion ) out hi gpio-110 ( |cs ) out hi gpio-111 ( |cs ) out hi gpio-112 ( |cs ) out lo gpio-113 ( |cs ) out lo gpio-184 ( |device-wakeup ) out lo gpio-185 ( |host-wakeup ) in lo IRQ gpiochip4: GPIOs 448-463, parent: i2c/i2c-INT3491:03, INT3491:03, can sleep: gpio-448 (MUX33_DIR |uart1-rx-oe ) out lo gpio-449 (MUX31_DIR |uart1-tx-oe ) out hi gpio-450 (MUX29_DIR ) gpio-451 (MUX27_DIR ) gpio-452 (MUX24_DIR ) gpio-453 (MUX21_DIR ) gpio-454 (MUX19_DIR ) gpio-455 (MUX32_DIR ) gpio-456 (MUX30_DIR ) gpio-457 (MUX28_DIR ) gpio-458 (MUX26_DIR |ssp5-fs1-oe ) out hi gpio-459 (MUX23_DIR |ssp5-txd-oe ) out hi gpio-460 (MUX20_DIR |ssp5-rxd-oe ) out lo gpio-461 (MUX18_DIR |ssp5-clk-oe ) out hi gpio-462 (MUX22_SEL |ssp5-txd-mux ) out hi gpio-463 (MUX25_SEL |ssp5-fs1-mux ) out hi gpiochip3: GPIOs 464-479, parent: i2c/i2c-INT3491:02, INT3491:02, can sleep: gpio-464 (MUX14_DIR ) gpio-465 (MUX12_DIR ) gpio-466 (MUX10_DIR ) gpio-467 (MUX8_DIR ) gpio-468 (MUX6_DIR |i2c6-sda-mux ) out hi gpio-469 (MUX4_DIR |i2c6-scl-mux ) out hi gpio-470 (U16_IO0.6 ) gpio-471 (U16_IO0.7 ) gpio-472 (SPI_FS_SEL |ssp5-fs1-mux ) out hi gpio-473 (SPI_TXD_SEL |ssp5-txd-mux ) out hi gpio-474 (SPI_RXD_SEL |ssp5-rxd-mux ) out hi gpio-475 (SPI_CLK_SEL |ssp5-clk-mux ) out hi gpio-476 (U16_IO1.4 ) gpio-477 (U16_IO1.5 ) gpio-478 (U16_IO1.6 ) gpio-479 (U16_IO1.7 ) gpiochip2: GPIOs 480-495, parent: i2c/i2c-INT3491:01, INT3491:01, can sleep: gpio-480 (DIG0_PU_PD |uart1-rx-pu ) in hi gpio-481 (DIG1_PU_PD |uart1-tx-pu ) in hi gpio-482 (DIG2_PU_PD ) gpio-483 (DIG3_PU_PD ) gpio-484 (DIG4_PU_PD ) gpio-485 (DIG5_PU_PD ) gpio-486 (DIG6_PU_PD ) gpio-487 (DIG7_PU_PD ) gpio-488 (DIG8_PU_PD ) gpio-489 (DIG9_PU_PD ) gpio-490 (DIG10_PU_PD |ssp5-fs1-pu ) in hi gpio-491 (DIG11_PU_PD |ssp5-txd-pu ) in lo gpio-492 (DIG12_PU_PD |ssp5-rxd-pu ) in lo gpio-493 (DIG13_PU_PD |ssp5-clk-pu ) in lo gpio-494 (U39_IO1.6 ) gpio-495 (U39_IO1.7 ) gpiochip1: GPIOs 496-511, parent: i2c/i2c-INT3491:00, INT3491:00, can sleep: gpio-496 (MUX15_SEL ) gpio-497 (MUX13_SEL ) gpio-498 (MUX11_SEL ) gpio-499 (MUX9_SEL ) gpio-500 (MUX7_SEL |i2c6-sda-mux ) out lo gpio-501 (MUX5_SEL |i2c6-scl-mux ) out lo gpio-502 (U17_IO0.6 ) gpio-503 (SHLD_RESET0 ) gpio-504 (A0_PU_PD ) gpio-505 (A1_PU_PD ) gpio-506 (A2_PU_PD ) gpio-507 (A3_PU_PD ) gpio-508 (A4_PU_PD |i2c6-sda-pu ) in lo gpio-509 (A5_PU_PD |i2c6-scl-pu ) in lo gpio-510 (TRI_STATE_ALL ) gpio-511 (SHLD_RESET1 ) ```
/sys/kernel/debug/pinctrl/INTC1002:00/pins ``` registered pins: 233 pin 0 (ULPI_CLK) GPIO 0x00003000 pin 1 (ULPI_D0) GPIO 0x00003000 pin 2 (ULPI_D1) GPIO 0x00003000 pin 3 (ULPI_D2) GPIO 0x00003000 pin 4 (ULPI_D3) GPIO 0x00003000 pin 5 (ULPI_D4) GPIO 0x00003000 pin 6 (ULPI_D5) GPIO 0x00003000 pin 7 (ULPI_D6) GPIO 0x00003000 pin 8 (ULPI_D7) GPIO 0x00003000 pin 9 (ULPI_DIR) GPIO 0x00003000 pin 10 (ULPI_NXT) GPIO 0x00003000 pin 11 (ULPI_REFCLK) GPIO 0x00003000 pin 12 (ULPI_STP) GPIO 0x00003000 pin 13 (EMMC_CLK) GPIO 0x10003420 pin 14 (EMMC_CMD) GPIO 0x00003510 pin 15 (EMMC_D0) GPIO 0x00003520 pin 16 (EMMC_D1) GPIO 0x00003520 pin 17 (EMMC_D2) GPIO 0x00003520 pin 18 (EMMC_D3) GPIO 0x00003520 pin 19 (EMMC_D4) GPIO 0x00003520 pin 20 (EMMC_D5) GPIO 0x00003520 pin 21 (EMMC_D6) GPIO 0x00003520 pin 22 (EMMC_D7) GPIO 0x00003520 pin 23 (EMMC_RST_N) GPIO 0x00003520 pin 24 (GP154) GPIO 0x00003220 pin 25 (GP155) GPIO 0x0000a220 pin 26 (GP156) GPIO 0x0000a220 pin 27 (GP157) GPIO 0x0000a220 pin 28 (GP158) GPIO 0x0000a220 pin 29 (GP159) GPIO 0x0000a220 pin 30 (GP160) GPIO 0x0000a220 pin 31 (GP161) GPIO 0x0000a220 pin 32 (GP162) GPIO 0x0000a220 pin 33 (GP163) GPIO 0x0000a220 pin 34 (GP97) GPIO 0x0000a220 pin 35 (GP14) GPIO 0x00003220 pin 36 (GP15) GPIO 0x00003220 pin 37 (GP77_SD_CD) GPIO 0x00003120 pin 38 (GP78_SD_CLK) mode 1 0x00003221 pin 39 (GP79_SD_CMD) mode 1 0x00003111 pin 40 (GP80_SD_D0) mode 1 0x00003121 pin 41 (GP81_SD_D1) mode 1 0x00003121 pin 42 (GP82_SD_D2) mode 1 0x00003121 pin 43 (GP83_SD_D3) mode 1 0x00003121 pin 44 (GP84_SD_LS_CLK_FB) mode 1 0x00003221 pin 45 (GP85_SD_LS_CMD_DIR) mode 1 0x00003221 pin 46 (GP86_SD_LVL_D_DIR) mode 1 0x00003221 pin 47 (GP88_SD_LS_SEL) mode 1 0x00003221 pin 48 (GP87_SD_PD) mode 1 0x00003221 pin 49 (GP89_SD_WP) mode 1 0x00003221 pin 50 (GP90_SDIO_CLK) mode 1 0x00003001 pin 51 (GP91_SDIO_CMD) mode 1 0x00003111 pin 52 (GP92_SDIO_D0) mode 1 0x00003121 pin 53 (GP93_SDIO_D1) mode 1 0x00003121 pin 54 (GP94_SDIO_D2) mode 1 0x00003121 pin 55 (GP95_SDIO_D3) mode 1 0x00003121 pin 56 (GP96_SDIO_PD) GPIO 0x00003000 pin 57 (HSI_ACDATA) GPIO 0x00003220 pin 58 (HSI_ACFLAG) GPIO 0x00003220 pin 59 (HSI_ACREADY) GPIO 0x00003620 pin 60 (HSI_ACWAKE) GPIO 0x00003620 pin 61 (HSI_CADATA) GPIO 0x00003000 pin 62 (HSI_CAFLAG) GPIO 0x00003000 pin 63 (HSI_CAREADY) GPIO 0x00003400 pin 64 (HSI_CAWAKE) GPIO 0x00003400 pin 65 (GP70) GPIO 0x00003220 pin 66 (GP71) GPIO 0x00003000 pin 67 (GP32_I2S_0_CLK) mode 1 0x00003221 pin 68 (GP33_I2S_0_FS) mode 1 0x00003221 pin 69 (GP34_I2S_0_RXD) mode 1 0x00003221 pin 70 (GP35_I2S_0_TXD) mode 1 0x00003221 pin 71 (GP36_I2S_1_CLK) mode 1 0x00003221 pin 72 (GP37_I2S_1_FS) mode 1 0x00003221 pin 73 (GP38_I2S_1_RXD) mode 1 0x00003221 pin 74 (GP39_I2S_1_TXD) mode 1 0x00003221 pin 75 (GP40_I2S_2_CLK) GPIO 0x00003220 pin 76 (GP41_I2S_2_FS) mode 1 0x00003221 pin 77 (GP42_I2S_2_RXD) mode 1 0x00003221 pin 78 (GP43_I2S_2_TXD) mode 1 0x00003221 pin 79 (GP120_SPI_3_CLK) GPIO 0x0000a220 pin 80 (GP121_SPI_3_SS) GPIO 0x0000a220 pin 81 (GP122_SPI_3_RXD) GPIO 0x0000a220 pin 82 (GP123_SPI_3_TXD) GPIO 0x0000a220 pin 83 (GP102_SPI_4_CLK) mode 1 0x00003221 pin 84 (GP103_SPI_4_SS_0) mode 1 0x00003121 pin 85 (GP104_SPI_4_SS_1) mode 1 0x00003121 pin 86 (GP105_SPI_4_SS_2) mode 1 0x00003121 pin 87 (GP106_SPI_4_SS_3) GPIO 0x0000a120 pin 88 (GP107_SPI_4_RXD) mode 1 0x00003221 pin 89 (GP108_SPI_4_TXD) mode 1 0x00003221 pin 90 (GP109_SPI_5_CLK) mode 1 0x00003221 pin 91 (GP110_SPI_5_SS_0) GPIO 0x00003120 pin 92 (GP111_SPI_5_SS_1) GPIO 0x00003120 pin 93 (GP112_SPI_5_SS_2) GPIO 0x0000a120 pin 94 (GP113_SPI_5_SS_3) GPIO 0x0000a120 pin 95 (GP114_SPI_5_RXD) mode 1 0x00003221 pin 96 (GP115_SPI_5_TXD) mode 1 0x00003221 pin 97 (GP116_SPI_6_CLK) mode 1 0x0000a221 pin 98 (GP117_SPI_6_SS) mode 1 0x0000a221 pin 99 (GP118_SPI_6_RXD) mode 1 0x0000a221 pin 100 (GP119_SPI_6_TXD) mode 1 0x0000a221 pin 101 (GP19_I2C_1_SCL) mode 1 0x00203511 pin 102 (GP20_I2C_1_SDA) mode 1 0x00203511 pin 103 (GP21_I2C_2_SCL) mode 1 0x00203501 pin 104 (GP22_I2C_2_SDA) mode 1 0x00203581 pin 105 (GP17_I2C_3_SCL_HDMI) mode 1 0x20203421 pin 106 (GP18_I2C_3_SDA_HDMI) mode 1 0x202034a1 pin 107 (GP23_I2C_4_SCL) mode 1 0x00203501 pin 108 (GP24_I2C_4_SDA) mode 1 0x00203581 pin 109 (GP25_I2C_5_SCL) mode 1 0x00203101 pin 110 (GP26_I2C_5_SDA) mode 1 0x00203181 pin 111 (GP27_I2C_6_SCL) mode 1 0x00000511 pin 112 (GP28_I2C_6_SDA) mode 1 0x00000591 pin 113 (GP29_I2C_7_SCL) mode 1 0x00203501 pin 114 (GP30_I2C_7_SDA) mode 1 0x00203581 pin 115 (GP124_UART_0_CTS) mode 1 0x00003001 pin 116 (GP125_UART_0_RTS) mode 1 0x00003001 pin 117 (GP126_UART_0_RX) mode 1 0x00003001 pin 118 (GP127_UART_0_TX) mode 1 0x00003001 pin 119 (GP128_UART_1_CTS) mode 1 0x00003001 pin 120 (GP129_UART_1_RTS) mode 1 0x00003001 pin 121 (GP130_UART_1_RX) mode 1 0x00003001 pin 122 (GP131_UART_1_TX) mode 1 0x00003001 pin 123 (GP132_UART_2_CTS) mode 1 0x0000a221 pin 124 (GP133_UART_2_RTS) mode 1 0x0000a221 pin 125 (GP134_UART_2_RX) mode 1 0x00003121 pin 126 (GP135_UART_2_TX) mode 1 0x00003121 pin 127 (GP177) GPIO 0x00003000 pin 128 (GP178) GPIO 0x0000a220 pin 129 (GP179) GPIO 0x0000a220 pin 130 (GP180) GPIO 0x00003220 pin 131 (GP181) GPIO 0x00003000 pin 132 (GP182_PWM2) GPIO 0x00003000 pin 133 (GP183_PWM3) GPIO 0x00003120 pin 134 (GP184) GPIO 0x00003000 pin 135 (GP185) GPIO 0x00003220 pin 136 (GP186) mode 5 0x00003005 pin 137 (GP187) mode 5 0x00003005 pin 138 (GP188) GPIO 0x0000a220 pin 139 (GP189) GPIO 0x00003000 pin 140 (GP64_FAST_INT0) GPIO 0x00003220 pin 141 (GP65_FAST_INT1) mode 1 0x00003121 pin 142 (GP66_FAST_INT2) GPIO 0x0000a220 pin 143 (GP67_FAST_INT3) GPIO 0x00003120 pin 144 (GP12_PWM0) GPIO 0x00003000 pin 145 (GP13_PWM1) GPIO 0x00003000 pin 146 (GP0) GPIO 0x00003120 pin 147 (GP1) GPIO 0x00003120 pin 148 (GP2) GPIO 0x00003000 pin 149 (GP3) GPIO 0x0000a220 pin 150 (GP4) GPIO 0x00003000 pin 151 (GP5) GPIO 0x00003000 pin 152 (GP6) GPIO 0x00003000 pin 153 (GP7) GPIO 0x0000a220 pin 154 (GP8) GPIO 0x0000a220 pin 155 (GP9) GPIO 0x00003000 pin 156 (GP10) GPIO 0x00003000 pin 157 (GP11) GPIO 0x00003000 pin 158 (GP137) GPIO 0x00003220 pin 159 (GP138) GPIO 0x00003220 pin 160 (GP139) GPIO 0x00003220 pin 161 (GP140) GPIO 0x00003220 pin 162 (GP141) GPIO 0x00003220 pin 163 (GP142) GPIO 0x00003220 pin 164 (GP16_HDMI_HPD) GPIO 0x00003220 pin 165 (GP68_DSI_A_TE) GPIO 0x00003220 pin 166 (GP69_DSI_C_TE) GPIO 0x00003220 pin 167 (OSC_CLK_CTRL0) GPIO 0x0000a220 pin 168 (OSC_CLK_CTRL1) GPIO 0x0000a220 pin 169 (OSC_CLK0) GPIO 0x00003220 pin 170 (OSC_CLK1) GPIO 0x00003220 pin 171 (OSC_CLK2) GPIO 0x00003220 pin 172 (OSC_CLK3) GPIO 0x0000a220 pin 173 (OSC_CLK4) GPIO 0x0000a220 pin 174 (RESETOUT) GPIO 0x00203000 pin 175 (PMODE) GPIO 0x00003400 pin 176 (PRDY) GPIO 0x00203500 pin 177 (PREQ) GPIO 0x00203500 pin 178 (GP190) GPIO 0x00003000 pin 179 (GP191) GPIO 0x0000a220 pin 180 (I2C_0_SCL) not available pin 181 (I2C_0_SDA) not available pin 182 (IERR) not available pin 183 (JTAG_TCK) not available pin 184 (JTAG_TDI) not available pin 185 (JTAG_TDO) not available pin 186 (JTAG_TMS) not available pin 187 (JTAG_TRST) not available pin 188 (PROCHOT) not available pin 189 (RTC_CLK) not available pin 190 (SVID_ALERT) not available pin 191 (SVID_CLK) not available pin 192 (SVID_D) not available pin 193 (THERMTRIP) not available pin 194 (STANDBY) not available pin 195 (GP44) GPIO 0x00003120 pin 196 (GP45) GPIO 0x00003220 pin 197 (GP46) GPIO 0x00003220 pin 198 (GP47) GPIO 0x00003220 pin 199 (GP48) GPIO 0x00003220 pin 200 (GP49) GPIO 0x00003220 pin 201 (GP50) GPIO 0x00203110 pin 202 (GP51) GPIO 0x00003120 pin 203 (GP52) GPIO 0x00003120 pin 204 (GP53) GPIO 0x00003120 pin 205 (GP54) GPIO 0x0000a220 pin 206 (GP55) GPIO 0x00003120 pin 207 (GP56) GPIO 0x00003120 pin 208 (GP57) GPIO 0x00003120 pin 209 (GP58) GPIO 0x00003120 pin 210 (GP59) GPIO 0x00003120 pin 211 (GP60) GPIO 0x00003220 pin 212 (GP61) GPIO 0x00003120 pin 213 (GP62) GPIO 0x00003120 pin 214 (GP63) GPIO 0x00003120 pin 215 (GP164) GPIO 0x0000a220 pin 216 (GP165) GPIO 0x00003000 pin 217 (GP166) GPIO 0x0000a220 pin 218 (GP167) GPIO 0x00003120 pin 219 (GP168_MJTAG_TCK) mode 1 0x00003201 pin 220 (GP169_MJTAG_TDI) mode 1 0x00003221 pin 221 (GP170_MJTAG_TDO) mode 1 0x00003221 pin 222 (GP171_MJTAG_TMS) mode 1 0x00003221 pin 223 (GP172_MJTAG_TRST) mode 1 0x00003201 pin 224 (GP173) GPIO 0x00003220 pin 225 (GP174) GPIO 0x00003220 pin 226 (GP175) GPIO 0x00003000 pin 227 (GP176) GPIO 0x00003000 pin 228 (GP72_PTI_CLK) mode 2 0x00003222 pin 229 (GP73_PTI_D0) mode 2 0x00003222 pin 230 (GP74_PTI_D1) mode 2 0x00003222 pin 231 (GP75_PTI_D2) mode 2 0x00003222 pin 232 (GP76_PTI_D3) mode 2 0x00003222 ```
i2cdetect -y -r 6 ``` root@edison:~# modprobe -i i2c-dev [ 916.093471] i2c /dev entries driver root@edison:~# i2cdetect -r -y 6 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: [ 927.070523] i2c-designware-pci 0000:00:09.1: controller timed out -- [ 928.093596] i2c-designware-pci 0000:00:09.1: controller timed out -- [ 929.116680] i2c-designware-pci 0000:00:09.1: controller timed out -- [ 930.139723] i2c-designware-pci 0000:00:09.1: controller timed out -- [ 931.162955] i2c-designware-pci 0000:00:09.1: controller timed out -- [ 932.186030] i2c-designware-pci 0000:00:09.1: controller timed out -- [ 933.209196] i2c-designware-pci 0000:00:09.1: controller timed out -- ^C[ 934.232365] i2c-designware-pci 0000:00:09.1: controller timed out ```

I don't have acpidump on the Edison, but I can copy/decompile the table you need of course, let me know which one.

Now I will turn on the DEBUG in pinmux.c and add here later.

staroselskii commented 5 years ago

@htot Thanks for your work! From what I can see in /sys/kernel/debug/pinctrl/*/pins I2C#6 pins are actually getting configured as we intended them:

pin 111 (GP27_I2C_6_SCL) mode 1 0x00000511
pin 112 (GP28_I2C_6_SDA) mode 1 0x00000591

What board are you testing on? If you have by any chance any other board (not Arduini/Edison) to test it with, I'd be very eager to know how that works out for you.

The patchset's goal was to set these two pins in mode 1 rather than mode 2 as they had been before.

UPD:

I have taken a closer look at your logs and spotted these:

 gpio-468 (MUX6_DIR            |i2c6-sda-mux        ) out hi    
 gpio-469 (MUX4_DIR            |i2c6-scl-mux        ) out hi    

...
 gpio-500 (MUX7_SEL            |i2c6-sda-mux        ) out lo    
 gpio-501 (MUX5_SEL            |i2c6-scl-mux        ) out lo    
...
 gpio-508 (A4_PU_PD            |i2c6-sda-pu         ) in  lo    
 gpio-509 (A5_PU_PD            |i2c6-scl-pu         ) in  lo   

Could it be relevant? I'm not sure where exactly these come from. But I guess these are actually the pca95xx expanders I always see the mistakes in my logs from. I saw something in meta-acpi that makes use of libgpiod to set up some pins.

Can they somehow intervene? They have something about i2c6. So I guess this should be it. I'll take a closer look at the code that deals with this tomorrow. Nevertheless, this is actually the place I'd be looking into. This does look suspicious (from my perspective of course). Unforunately, I couldn't understand what do I need and what do I not need in arduino.asl because of MUX_I2C and MUX_SPI defines. I guess they mux something through some transistors soldered out on the board itself?

htot commented 5 years ago

Here is the U-Boot print out (with DEBUG in pinmux.c):

U-Boot 2018.09-rc2 (Sep 03 2018 - 21:07:30 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
scu: v: 0x203511 p: 0xff0c1d28 bits: 1, mask: 7 bufcfg: 0xff0c1d28
scu: v: 0x203591 p: 0xff0c1d2c bits: 1, mask: 7 bufcfg: 0xff0c1d2c
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
ACPI: Writing ACPI tables at e4500
ACPI:    * FACS
ACPI:    * DSDT
Fix up global NVS in DSDT to 0x000e5070
ACPI:    * FADT
ACPI:    * MADT
ACPI:    * MCFG
ACPI:    * SPCR
current = e5350
ACPI: done

I am testing on the Edison-Arduino.

Is there anything else I need to do? Pins needs to be configured as in/out? I am now checking the Edison-Arduino hardware guide section 11.6. It looks like I need to set a whole bunch. I will look into that more tomorrow.

staroselskii commented 5 years ago

Thanks!

Is there anything else I need to do? Pins needs to be configured as in/out?

We need to figure out what interferes with I2C#6 on Edison-Arduino. Because from what I can see from the pinctrl log and from the U-Boot logs, we have exactly the same pin cofiguration on I2C#6 pins. With only one problem: it works only on my machine :)

htot commented 5 years ago

As I understand your hw is different, so it might well be level translators and stuff on the arduino board that need to be set to the right direction. And looking from the hw guide, this is very likely the case.

htot commented 5 years ago

@staroselskii I just found your edits above:

gpio-468 (MUX6_DIR |i2c6-sda-mux ) out hi
gpio-469 (MUX4_DIR |i2c6-scl-mux ) out hi
gpio-500 (MUX7_SEL |i2c6-sda-mux ) out lo
gpio-501 (MUX5_SEL |i2c6-scl-mux ) out lo

I was looking at exact the same thing. Acc. to the Edison-Arduino hardware guide dir should be out/low and mux sel should be out/high. So either I have it mixed up in the asl, or I am mixing up the pin function names. It's hard :-)

alext-mkrs commented 5 years ago

Let me just drop in here to tell you guys to keep it up :) I unfortunately am in the middle of time-sucking stuff, but I'm following you closely. Just as you discovered, the Arduino board has additional expanders in there, so yes, they must be configured as well. I have both Arduino and breakout boards and should be able to test (if that's still needed by then), but no sooner than the upcoming weekend, alas.

staroselskii commented 5 years ago

@htot Can you try setting these pin using sysfs while in Linux and see if my patch works for you? We can make ASL do the right thing after that.

@alext-mkrs I'd be very glad if anyone could test it out on a breakout board. There's no rush. I hope that the patches will have landed in upstream by the weekend.

htot commented 5 years ago

Yes, that's it. Fixed my asl in https://github.com/htot/meta-acpi/commits/eds. Will send PR after I get a I2C device to respond :-)

htot commented 5 years ago

@alext-mkrs the asli is already setting the external muxes/directions/pullups, there was just a mixup. Now fixed.

staroselskii commented 5 years ago

@htot

Awesome! Good job!

Could you please tell me if i2cdetect hangs or not?

htot commented 5 years ago

i2cdetect does not hang or have time outs. But I am not detecting any device yet. When I connect TSL2561 SCL and SDA are pulled high (with nothing connected both are low). But connecting a oscilloscope to SCL doesn't show any clock from the edison-arduino.

At least now I have:

cat /sys/kernel/debug/gpio | grep -i i2c6 
 gpio-468 (MUX6_DIR            |i2c6-sda-mux        ) out lo    
 gpio-469 (MUX4_DIR            |i2c6-scl-mux        ) out lo    
 gpio-500 (MUX7_SEL            |i2c6-sda-mux        ) out hi    
 gpio-501 (MUX5_SEL            |i2c6-scl-mux        ) out hi    
 gpio-508 (A4_PU_PD            |i2c6-sda-pu         ) in  lo    
 gpio-509 (A5_PU_PD            |i2c6-scl-pu         ) in  lo    
staroselskii commented 5 years ago

@htot

i2cdetect does not hang or have time outs.

This is a step forward!

When I connect TSL2561 SCL and SDA are pulled high (with nothing connected both are low).

Seems like an Arduino/Edison board doesn't have pull-ups whereas your TSL2561 does. So this sounds reasonable.

But connecting a oscilloscope to SCL doesn't show any clock from the edison-arduino.

Okay. This is something we need to crack. Let's try to actually see something. Could you please tell how can I quickly understand a mapping between our pin numbers and legacy ones?

htot commented 5 years ago

@staroselskii When I connect my scope to GP27 is see the I2C clock (1.8V level), also for Q3.3 (3.3V level). But A5 and SCL are low and even seem to be high-Z. It looks like U5 is disabled. But I can verify that U5.B1 (INH) is switched L by TRI_STATE_ALL (when I do gpioset `gpiofind TRI_STATE_ALL`=1).

AFAIKT the problem is not in your U-Boot patch.



I see the problem. In the Edison HW guide there is an error. According to Table 4 GPIO 204/205 (corresponding to MUX7_SEL/MUX5_SEL with ACPI) must be L to select I2C, but according to Section 11.6 they must be H (which is wrong, acc. to the schematics).

To be continued...
alext-mkrs commented 5 years ago

Gentlemen, just as a side note - this was for my kernel boot problems, so you may want to create a new one for I2C enabling :) Though it's probably a bit too late anyway, as it's a good deal underway and GH doesn't have any easy way to move messages between issues.

htot commented 5 years ago

Yes, that was the problem. Now tested with TSL2561 device attached and address 0x39 detected. I fixed meta-acpi to reflect that and will update asl on the wiki as @andy-shev asked me. If more needs to be discussed on this we should create a new issue for it.

@alext-mkrs Would you like to close this issue?

staroselskii commented 5 years ago

@htot

I'm glad you got it working. This is such a bummer that the docs have these inconsistencies.

alext-mkrs commented 5 years ago

Yeah, let's close this one. And looks like we are done with the second discussion anyway :)