[PATCH v4 00/15] staging: mt7621-pci: avoid custom pci config read and writes

Sergio Paracuellos sergio.paracuellos at gmail.com
Wed Jul 25 07:47:56 UTC 2018


On Wed, Jul 25, 2018 at 08:21:35AM +1000, NeilBrown wrote:
> On Mon, Jul 16 2018, Sergio Paracuellos wrote:
> 
> > This patch series include an attempt to avoid the use of custom
> > read and writes in driver code and use PCI subsystem common ones.
> >
> > In order to do this 'map_bus' callback is implemented and also
> > data structures for driver are included. The regs base address
> > is being readed from device tree and the driver gets clean a lot
> > of code.
> >
> > Changes in v4:
> >     - Rebased onto staging-next.
> >
> > Changes in v3:
> >     - Include new patches to delete all RALINK_BASE definition
> >       dependant code and be able to avoid use of pci_legacy code.
> >     - use devm_of_pci_get_host_bridge_resources,
> >       devm_request_pci_bus_resources and pci_scan_root_bus_bridge
> >       and pci_bus_add_devices
> >
> > Changes in v2:
> >     - squash PATCH 1 and PATCH 2 of previous series in only PATCH 1
> >     - Change name for host structure.
> >     - Create a new port structure (platform has 3 pcie controllers)
> >     - Replace the use of pci_generic_config_[read|write]32 in favour
> >       of pci_generic_config_[read|write] and change map_bus implemen-
> >       tation for hopefully the right one.
> >
> > Best regards,
> 
> Thanks for these.
> I added
> diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig
> index 1f9cb0e3c79a..50779b3379db 100644
> --- a/arch/mips/ralink/Kconfig
> +++ b/arch/mips/ralink/Kconfig
> @@ -51,6 +51,7 @@ choice
>                 select COMMON_CLK
>                 select CLKSRC_MIPS_GIC
>                 select HW_HAS_PCI
> +               select PCI_DRIVERS_GENERIC
>  endchoice
>  
>  choice
> 
> so that I could build and test it - maybe there is somewhere else that
> "select" can go while this is still in staging..
> 
> The system boots and can see the three pcie-attached SATA controllers:
> 
> # lspci
> 00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
> 00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
> 00:02.0 PCI bridge: Device 0e8d:0801 (rev 01)
> 01:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
> 02:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
> 03:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
> 
> but it cannot see the drive that is plugged into one of these.
> Below is the first 10 seconds of dmesg.
> I suspect the relevant bit is
> 
> [    8.680000] ahci: probe of 0000:01:00.0 failed with error -22
> [    8.700000] ahci: probe of 0000:02:00.0 failed with error -22
> [    8.710000] ahci: probe of 0000:03:00.0 failed with error -22
> 
> I haven't dug deeper yet.

Hi Neil,

Can you please make a test for me? Can you comment lines about pinctrl in the pcie 
node of the device tree? I am not sure we have to use the reset pin there but just
use the reset_control in a proper way. These two:

pinctrl-names = "default";
pinctrl-0 = <&pcie_pins>;

Does this change make the plugged drives to work?

Thanks in advance,

Best regards,
    Sergio Paracuellos

> 
> Thanks,
> NeilBrown
> 
> 
> [    0.000000] Linux version 4.18.0-rc5+ (neilb at noble) (gcc version 7.2.0 (GCC)) #205 SMP Wed Jul 25 08:12:13 AEST 2018
> [    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
> [    0.000000] bootconsole [early0] enabled
> [    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
> [    0.000000] MIPS: machine is GB-PC1
> [    0.000000] Determined physical RAM map:
> [    0.000000]  memory: 1c000000 @ 00000000 (usable)
> [    0.000000]  memory: 04000000 @ 20000000 (usable)
> [    0.000000] Initrd not found or empty - disabling initrd
> [    0.000000] VPE topology {2,2} total 4
> [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [    0.000000] Zone ranges:
> [    0.000000]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
> [    0.000000]   HighMem  [mem 0x0000000020000000-0x0000000023ffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
> [    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
> [    0.000000] On node 0 totalpages: 131072
> [    0.000000]   Normal zone: 1024 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 114688 pages, LIFO batch:31
> [    0.000000]   HighMem zone: 16384 pages, LIFO batch:3
> [    0.000000] random: get_random_bytes called from start_kernel+0xb4/0x4ec with crng_init=0
> [    0.000000] percpu: Embedded 15 pages/cpu @(ptrval) s30480 r8192 d22768 u61440
> [    0.000000] pcpu-alloc: s30480 r8192 d22768 u61440 alloc=15*4096
> [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
> [    0.000000] Kernel command line: console=ttyS0,57600
> [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> [    0.000000] Writing ErrCtl register=000108a2
> [    0.000000] Readback ErrCtl register=000108a2
> [    0.000000] Memory: 504788K/524288K available (6131K kernel code, 232K rwdata, 1052K rodata, 6524K init, 241K bss, 19500K reserved, 0K cma-reserved, 65536K highmem)
> [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000] NR_IRQS: 256
> [    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcf914c9718, max_idle_ns: 440795231327 ns
> [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
> [    0.010000] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
> [    0.070000] pid_max: default: 32768 minimum: 301
> [    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.100000] Hierarchical SRCU implementation.
> [    0.110000] smp: Bringing up secondary CPUs ...
> [    0.120000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [    0.120000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [    0.120000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [    0.120000] CPU1 revision is: 0001992f (MIPS 1004Kc)
> [    0.180000] Synchronize counters for CPU 1: done.
> [    0.220000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [    0.220000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [    0.220000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [    0.220000] CPU2 revision is: 0001992f (MIPS 1004Kc)
> [    0.280000] Synchronize counters for CPU 2: done.
> [    0.320000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [    0.320000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [    0.320000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [    0.320000] CPU3 revision is: 0001992f (MIPS 1004Kc)
> [    0.380000] Synchronize counters for CPU 3: done.
> [    0.420000] smp: Brought up 1 node, 4 CPUs
> [    0.430000] devtmpfs: initialized
> [    0.480000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [    0.490000] futex hash table entries: 1024 (order: 3, 32768 bytes)
> [    0.500000] pinctrl core: initialized pinctrl subsystem
> [    0.510000] NET: Registered protocol family 16
> [    0.560000] FPU Affinity set after 12000 emulations
> [    0.570000] mt7621-pci 1e140000.pcie: host bridge /pcie at 1e140000 ranges:
> [    0.580000] mt7621-pci 1e140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x00000000
> [    0.600000] mt7621-pci 1e140000.pcie:    IO 0x1e160000..0x1e16ffff -> 0x00000000
> [    0.910000] ***** Xtal 40MHz *****
> [    0.920000] Port 0 N_FTS = 1b102800
> [    0.930000] Port 1 N_FTS = 1b102800
> [    0.930000] Port 2 N_FTS = 1b102800
> [    1.990000] PCIE0 enabled
> [    2.000000] PCIE1 enabled
> [    2.000000] PCIE2 enabled
> [    2.010000] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
> [    2.020000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
> [    2.030000] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
> [    2.040000] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
> [    2.040000] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
> [    2.040000] pci 0000:00:00.0: supports D1
> [    2.040000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
> [    2.040000] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
> [    2.040000] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
> [    2.040000] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
> [    2.040000] pci 0000:00:01.0: supports D1
> [    2.040000] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
> [    2.040000] pci 0000:00:02.0: [0e8d:0801] type 01 class 0x060400
> [    2.040000] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x7fffffff]
> [    2.040000] pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x0000ffff]
> [    2.040000] pci 0000:00:02.0: supports D1
> [    2.040000] pci 0000:00:02.0: PME# supported from D0 D1 D3hot
> [    2.040000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [    2.060000] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [    2.070000] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [    2.090000] pci 0000:01:00.0: [1b21:0611] type 00 class 0x010185
> [    2.090000] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x0007]
> [    2.090000] pci 0000:01:00.0: reg 0x14: [io  0x0000-0x0003]
> [    2.090000] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x0007]
> [    2.090000] pci 0000:01:00.0: reg 0x1c: [io  0x0000-0x0003]
> [    2.090000] pci 0000:01:00.0: reg 0x20: [io  0x0000-0x000f]
> [    2.090000] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
> [    2.090000] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
> [    2.100000] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
> [    2.100000] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
> [    2.100000] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff pref]
> [    2.100000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
> [    2.100000] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
> [    2.100000] pci 0000:02:00.0: reg 0x10: [io  0x0000-0x0007]
> [    2.100000] pci 0000:02:00.0: reg 0x14: [io  0x0000-0x0003]
> [    2.100000] pci 0000:02:00.0: reg 0x18: [io  0x0000-0x0007]
> [    2.100000] pci 0000:02:00.0: reg 0x1c: [io  0x0000-0x0003]
> [    2.100000] pci 0000:02:00.0: reg 0x20: [io  0x0000-0x000f]
> [    2.100000] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
> [    2.100000] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
> [    2.110000] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
> [    2.110000] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
> [    2.110000] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff pref]
> [    2.110000] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
> [    2.110000] pci 0000:03:00.0: [1b21:0611] type 00 class 0x010185
> [    2.110000] pci 0000:03:00.0: reg 0x10: [io  0x0000-0x0007]
> [    2.110000] pci 0000:03:00.0: reg 0x14: [io  0x0000-0x0003]
> [    2.110000] pci 0000:03:00.0: reg 0x18: [io  0x0000-0x0007]
> [    2.110000] pci 0000:03:00.0: reg 0x1c: [io  0x0000-0x0003]
> [    2.110000] pci 0000:03:00.0: reg 0x20: [io  0x0000-0x000f]
> [    2.110000] pci 0000:03:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
> [    2.120000] pci 0000:00:02.0: PCI bridge to [bus 03-ff]
> [    2.130000] pci 0000:00:02.0:   bridge window [io  0x0000-0x0fff]
> [    2.130000] pci 0000:00:02.0:   bridge window [mem 0x00000000-0x000fffff]
> [    2.130000] pci 0000:00:02.0:   bridge window [mem 0x00000000-0x000fffff pref]
> [    2.130000] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
> [    2.130000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 03
> [    2.130000] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
> [    2.140000] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
> [    2.150000] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
> [    2.170000] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
> [    2.180000] pci 0000:00:02.0: BAR 0: no space for [mem size 0x80000000]
> [    2.190000] pci 0000:00:02.0: BAR 0: failed to assign [mem size 0x80000000]
> [    2.210000] pci 0000:00:00.0: BAR 8: no space for [mem size 0x00100000]
> [    2.220000] pci 0000:00:00.0: BAR 8: failed to assign [mem size 0x00100000]
> [    2.230000] pci 0000:00:00.0: BAR 9: no space for [mem size 0x00100000 pref]
> [    2.250000] pci 0000:00:00.0: BAR 9: failed to assign [mem size 0x00100000 pref]
> [    2.260000] pci 0000:00:01.0: BAR 8: no space for [mem size 0x00100000]
> [    2.270000] pci 0000:00:01.0: BAR 8: failed to assign [mem size 0x00100000]
> [    2.290000] pci 0000:00:01.0: BAR 9: no space for [mem size 0x00100000 pref]
> [    2.300000] pci 0000:00:01.0: BAR 9: failed to assign [mem size 0x00100000 pref]
> [    2.320000] pci 0000:00:02.0: BAR 8: no space for [mem size 0x00100000]
> [    2.330000] pci 0000:00:02.0: BAR 8: failed to assign [mem size 0x00100000]
> [    2.340000] pci 0000:00:02.0: BAR 9: no space for [mem size 0x00100000 pref]
> [    2.360000] pci 0000:00:02.0: BAR 9: failed to assign [mem size 0x00100000 pref]
> [    2.370000] pci 0000:00:00.0: BAR 1: no space for [mem size 0x00010000]
> [    2.380000] pci 0000:00:00.0: BAR 1: failed to assign [mem size 0x00010000]
> [    2.400000] pci 0000:00:01.0: BAR 1: no space for [mem size 0x00010000]
> [    2.410000] pci 0000:00:01.0: BAR 1: failed to assign [mem size 0x00010000]
> [    2.420000] pci 0000:00:02.0: BAR 1: no space for [mem size 0x00010000]
> [    2.440000] pci 0000:00:02.0: BAR 1: failed to assign [mem size 0x00010000]
> [    2.450000] pci 0000:00:00.0: BAR 7: no space for [io  size 0x1000]
> [    2.460000] pci 0000:00:00.0: BAR 7: failed to assign [io  size 0x1000]
> [    2.480000] pci 0000:00:01.0: BAR 7: no space for [io  size 0x1000]
> [    2.490000] pci 0000:00:01.0: BAR 7: failed to assign [io  size 0x1000]
> [    2.500000] pci 0000:00:02.0: BAR 7: no space for [io  size 0x1000]
> [    2.510000] pci 0000:00:02.0: BAR 7: failed to assign [io  size 0x1000]
> [    2.530000] pci 0000:01:00.0: BAR 5: no space for [mem size 0x00000200]
> [    2.540000] pci 0000:01:00.0: BAR 5: failed to assign [mem size 0x00000200]
> [    2.550000] pci 0000:01:00.0: BAR 4: no space for [io  size 0x0010]
> [    2.570000] pci 0000:01:00.0: BAR 4: failed to assign [io  size 0x0010]
> [    2.580000] pci 0000:01:00.0: BAR 0: no space for [io  size 0x0008]
> [    2.590000] pci 0000:01:00.0: BAR 0: failed to assign [io  size 0x0008]
> [    2.600000] pci 0000:01:00.0: BAR 2: no space for [io  size 0x0008]
> [    2.620000] pci 0000:01:00.0: BAR 2: failed to assign [io  size 0x0008]
> [    2.630000] pci 0000:01:00.0: BAR 1: no space for [io  size 0x0004]
> [    2.640000] pci 0000:01:00.0: BAR 1: failed to assign [io  size 0x0004]
> [    2.650000] pci 0000:01:00.0: BAR 3: no space for [io  size 0x0004]
> [    2.670000] pci 0000:01:00.0: BAR 3: failed to assign [io  size 0x0004]
> [    2.680000] pci 0000:00:00.0: PCI bridge to [bus 01]
> [    2.690000] pci 0000:02:00.0: BAR 5: no space for [mem size 0x00000200]
> [    2.700000] pci 0000:02:00.0: BAR 5: failed to assign [mem size 0x00000200]
> [    2.720000] pci 0000:02:00.0: BAR 4: no space for [io  size 0x0010]
> [    2.730000] pci 0000:02:00.0: BAR 4: failed to assign [io  size 0x0010]
> [    2.740000] pci 0000:02:00.0: BAR 0: no space for [io  size 0x0008]
> [    2.750000] pci 0000:02:00.0: BAR 0: failed to assign [io  size 0x0008]
> [    2.770000] pci 0000:02:00.0: BAR 2: no space for [io  size 0x0008]
> [    2.780000] pci 0000:02:00.0: BAR 2: failed to assign [io  size 0x0008]
> [    2.790000] pci 0000:02:00.0: BAR 1: no space for [io  size 0x0004]
> [    2.800000] pci 0000:02:00.0: BAR 1: failed to assign [io  size 0x0004]
> [    2.820000] pci 0000:02:00.0: BAR 3: no space for [io  size 0x0004]
> [    2.830000] pci 0000:02:00.0: BAR 3: failed to assign [io  size 0x0004]
> [    2.840000] pci 0000:00:01.0: PCI bridge to [bus 02]
> [    2.850000] pci 0000:03:00.0: BAR 5: no space for [mem size 0x00000200]
> [    2.860000] pci 0000:03:00.0: BAR 5: failed to assign [mem size 0x00000200]
> [    2.880000] pci 0000:03:00.0: BAR 4: no space for [io  size 0x0010]
> [    2.890000] pci 0000:03:00.0: BAR 4: failed to assign [io  size 0x0010]
> [    2.900000] pci 0000:03:00.0: BAR 0: no space for [io  size 0x0008]
> [    2.910000] pci 0000:03:00.0: BAR 0: failed to assign [io  size 0x0008]
> [    2.930000] pci 0000:03:00.0: BAR 2: no space for [io  size 0x0008]
> [    2.940000] pci 0000:03:00.0: BAR 2: failed to assign [io  size 0x0008]
> [    2.950000] pci 0000:03:00.0: BAR 1: no space for [io  size 0x0004]
> [    2.970000] pci 0000:03:00.0: BAR 1: failed to assign [io  size 0x0004]
> [    2.980000] pci 0000:03:00.0: BAR 3: no space for [io  size 0x0004]
> [    2.990000] pci 0000:03:00.0: BAR 3: failed to assign [io  size 0x0004]
> [    3.000000] pci 0000:00:02.0: PCI bridge to [bus 03]
> [    3.080000] SCSI subsystem initialized
> [    3.090000] libata version 3.00 loaded.
> [    3.100000] random: fast init done
> [    3.100000] clocksource: Switched to clocksource GIC
> [    3.130000] NET: Registered protocol family 2
> [    3.140000] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
> [    3.150000] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
> [    3.170000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
> [    3.180000] TCP: Hash tables configured (established 4096 bind 4096)
> [    3.190000] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    3.200000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    3.220000] NET: Registered protocol family 1
> [    3.230000] PCI: CLS 0 bytes, default 32
> [    8.200000] Initialise system trusted keyrings
> [    8.210000] workingset: timestamp_bits=30 max_order=17 bucket_order=0
> [    8.340000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    8.350000] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
> [    8.380000] SGI XFS with security attributes, no debug enabled
> [    8.430000] Key type asymmetric registered
> [    8.440000] Asymmetric key parser 'x509' registered
> [    8.450000] bounce: pool size: 64 pages
> [    8.450000] io scheduler noop registered
> [    8.460000] io scheduler deadline registered (default)
> [    8.470000] io scheduler mq-deadline registered (default)
> [    8.480000] io scheduler kyber registered
> [    8.500000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
> [    8.520000] console [ttyS0] disabled
> [    8.530000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
> [    8.550000] console [ttyS0] enabled
> [    8.560000] bootconsole [early0] disabled
> [    8.580000] cacheinfo: Failed to find cpu0 device node
> [    8.590000] cacheinfo: Unable to detect cache hierarchy for CPU 0
> [    8.670000] loop: module loaded
> [    8.680000] ahci 0000:01:00.0: version 3.0
> [    8.680000] ahci: probe of 0000:01:00.0 failed with error -22
> [    8.700000] ahci: probe of 0000:02:00.0 failed with error -22
> [    8.710000] ahci: probe of 0000:03:00.0 failed with error -22
> [    8.720000] libphy: Fixed MDIO Bus: probed
> [    8.730000] tun: Universal TUN/TAP device driver, 1.6
> [    8.750000] sdhci: Secure Digital Host Controller Interface driver
> [    8.760000] sdhci: Copyright(c) Pierre Ossman
> [    8.770000] spi-mt7621 1e000b00.spi: sys_freq: 225000000
> [    8.780000] m25p80 spi0.0: w25q256 (32768 Kbytes)
> [    8.790000] 4 fixed-partitions partitions found on MTD device spi0.0
> [    8.810000] Creating 4 MTD partitions on "spi0.0":
> [    8.820000] 0x000000000000-0x000000030000 : "u-boot"
> [    8.830000] 0x000000030000-0x000000040000 : "u-boot-env"
> [    8.850000] 0x000000040000-0x000000050000 : "factory"
> [    8.870000] 0x000000050000-0x000002000000 : "firmware"
> [    8.940000] libphy: mdio: probed
> [    8.970000] mtk_soc_eth 1e100000.ethernet: generated random MAC address 6e:14:15:9c:55:5b
> [    8.990000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
> [    9.020000] NET: Registered protocol family 10
> [    9.040000] Segment Routing with IPv6
> [    9.050000] NET: Registered protocol family 17
> [    9.060000] 8021q: 802.1Q VLAN Support v1.8
> [    9.070000] Loading compiled-in X.509 certificates
> [    9.090000] hctosys: unable to open rtc device (rtc0)
> [    9.120000] Freeing unused kernel memory: 6524K
> [    9.130000] This architecture does not have kernel memory protection.
> [    9.170000] mmc0: new high speed SD card at address 0002
> [    9.190000] mmcblk0: mmc0:0002 00000 1.88 GiB 
> [    9.380000] usbcore: registered new interface driver usbfs
> [    9.400000] usbcore: registered new interface driver hub
> [    9.420000] usbcore: registered new device driver usb
> [    9.530000] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
> [    9.540000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
> [    9.570000] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
> [    9.590000] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
> [    9.630000] hub 1-0:1.0: USB hub found
> [    9.630000] hub 1-0:1.0: 2 ports detected
> [    9.660000] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
> [    9.670000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
> [    9.680000] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
> [    9.700000] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
> [    9.740000] hub 2-0:1.0: USB hub found
> [    9.740000] hub 2-0:1.0: 1 port detected
> [    9.810000] usbcore: registered new interface driver usb-storage




More information about the devel mailing list