geerlingguy / raspberry-pi-pcie-devices

Raspberry Pi PCI Express device compatibility database
http://pipci.jeffgeerling.com
GNU General Public License v3.0
1.6k stars 144 forks source link

Add StarTech Dual Serial Card #290

Open wbreiler opened 3 years ago

wbreiler commented 3 years ago

Amazon link

Product Image:

Dmesg:

[    0.000000] Linux version 5.15.0-rc6-v8+ (root@f066bcfcfc28) (aarch64-linux-gnu-gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1 SMP PREEMPT Tue Oct 26 03:44:27 UTC 2021
[    0.000000] random: fast init done
[    0.000000] Machine model: Raspberry Pi Compute Module 4 Rev 1.0
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] percpu: Embedded 28 pages/cpu s77080 r8192 d29416 u114688
[    0.000000] pcpu-alloc: s77080 r8192 d29416 u114688 alloc=28*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2028848
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1600x900M@60 smsc95xx.macaddr=E4:5F:01:62:37:23 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=88973f0f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] Kernel parameter elevator= does not have any effect anymore.
               Please use sysfs to set IO scheduler for individual devices.
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 7668648K/8245248K available (11392K kernel code, 1962K rwdata, 4128K rodata, 3776K init, 963K bss, 248920K reserved, 327680K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 37811 entries in 148 pages
[    0.000000] ftrace: allocated 148 pages with 3 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 10)
[    0.000000] random: get_random_bytes called from start_kernel+0x510/0x6f8 with crng_init=1
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000249] Console: colour dummy device 80x25
[    0.000823] printk: console [tty1] enabled
[    0.000905] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000946] pid_max: default: 32768 minimum: 301
[    0.001101] LSM: Security Framework initializing
[    0.001351] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001482] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.002785] cgroup: Disabling memory control group subsystem
[    0.005344] rcu: Hierarchical SRCU implementation.
[    0.006497] EFI services will not be available.
[    0.007067] smp: Bringing up secondary CPUs ...
[    0.008222] Detected PIPT I-cache on CPU1
[    0.008307] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.009457] Detected PIPT I-cache on CPU2
[    0.009508] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.010654] Detected PIPT I-cache on CPU3
[    0.010705] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.010862] smp: Brought up 1 node, 4 CPUs
[    0.010952] SMP: Total of 4 processors activated.
[    0.010973] CPU features: detected: 32-bit EL0 Support
[    0.010992] CPU features: detected: 32-bit EL1 Support
[    0.011014] CPU features: detected: CRC32 instructions
[    0.042586] CPU: All CPU(s) started at EL2
[    0.042686] alternatives: patching kernel code
[    0.044904] devtmpfs: initialized
[    0.056643] Enabled cp15_barrier support
[    0.056716] Enabled setend support
[    0.056921] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.056972] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.068894] pinctrl core: initialized pinctrl subsystem
[    0.069819] DMI not present or invalid.
[    0.070338] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.074101] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.074422] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.075346] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.075466] audit: initializing netlink subsys (disabled)
[    0.075772] audit: type=2000 audit(0.072:1): state=initialized audit_enabled=0 res=1
[    0.076353] thermal_sys: Registered thermal governor 'step_wise'
[    0.076575] cpuidle: using governor menu
[    0.076914] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.077113] ASID allocator initialised with 65536 entries
[    0.077297] Serial: AMBA PL011 UART driver
[    0.091228] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.116419] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-09-30T19:21:03, variant start
[    0.120438] raspberrypi-firmware soc:firmware: Firmware hash is 51215b4f6e3966401ecd99652a35cf1c25069113
[    0.170704] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.174656] vgaarb: loaded
[    0.175120] SCSI subsystem initialized
[    0.175343] usbcore: registered new interface driver usbfs
[    0.175412] usbcore: registered new interface driver hub
[    0.175492] usbcore: registered new device driver usb
[    0.175873] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.176355] pps_core: LinuxPPS API ver. 1 registered
[    0.176380] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.176418] PTP clock support registered
[    0.178147] clocksource: Switched to clocksource arch_sys_counter
[    0.270717] VFS: Disk quotas dquot_6.6.0
[    0.270863] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.271067] FS-Cache: Loaded
[    0.271344] CacheFiles: Loaded
[    0.272589] simple-framebuffer 3e636000.framebuffer: framebuffer at 0x3e636000, 0x591000 bytes
[    0.272626] simple-framebuffer 3e636000.framebuffer: format=a8r8g8b8, mode=1600x900x32, linelength=6400
[    0.281065] Console: switching to colour frame buffer device 200x56
[    0.288535] simple-framebuffer 3e636000.framebuffer: fb0: simplefb registered!
[    0.299123] NET: Registered PF_INET protocol family
[    0.300161] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.306309] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.306528] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.307121] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.308223] TCP: Hash tables configured (established 65536 bind 65536)
[    0.308635] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.308887] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.309443] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.310679] RPC: Registered named UNIX socket transport module.
[    0.310772] RPC: Registered udp transport module.
[    0.310833] RPC: Registered tcp transport module.
[    0.310893] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.310977] PCI: CLS 0 bytes, default 64
[    0.313766] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.314277] kvm [1]: IPA Size Limit: 44 bits
[    0.315533] kvm [1]: vgic interrupt IRQ9
[    0.315856] kvm [1]: Hyp mode initialized successfully
[    1.206275] Initialise system trusted keyrings
[    1.206715] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    1.213809] zbud: loaded
[    1.215754] FS-Cache: Netfs 'nfs' registered for caching
[    1.216534] NFS: Registering the id_resolver key type
[    1.216631] Key type id_resolver registered
[    1.216688] Key type id_legacy registered
[    1.219187] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.221576] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.225225] Key type asymmetric registered
[    1.227618] Asymmetric key parser 'x509' registered
[    1.230027] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.232677] io scheduler mq-deadline registered
[    1.235028] io scheduler kyber registered
[    1.245803] gpio-507 (ant1): hogged as output/high
[    1.249670] gpio-511 (ant2): hogged as output/low
[    1.253564] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.256030] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.258531] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.261012] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000
[    1.296240] brcm-pcie fd500000.pcie: link up, 2.5 GT/s PCIe x1 (SSC)
[    1.299000] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.301292] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.303658] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.306141] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.308771] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.314982] pci 0000:00:00.0: bridge configuration invalid ([bus ff-ff]), reconfiguring
[    1.317625] pci 0000:01:00.0: [1b21:1080] type 01 class 0x060400
[    1.320351] pci 0000:01:00.0: supports D1 D2
[    1.322705] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.337528] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.340054] pci_bus 0000:02: extended config space not accessible
[    1.342563] pci 0000:02:00.0: [14a1:4d02] type 00 class 0x070002
[    1.344921] pci 0000:02:00.0: reg 0x10: [io  0xfffffff0-0xffffffff]
[    1.347257] pci 0000:02:00.0: reg 0x14: [io  0xffffffc0-0xffffffff]
[    1.349676] pci 0000:02:00.0: PME# supported from D3hot D3cold
[    1.355470] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.357690] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 02
[    1.359886] pci 0000:01:00.0: BAR 7: no space for [io  size 0x1000]
[    1.362035] pci 0000:01:00.0: BAR 7: failed to assign [io  size 0x1000]
[    1.364186] pci 0000:02:00.0: BAR 1: no space for [io  size 0x0040]
[    1.366307] pci 0000:02:00.0: BAR 1: failed to assign [io  size 0x0040]
[    1.368378] pci 0000:02:00.0: BAR 0: no space for [io  size 0x0010]
[    1.370494] pci 0000:02:00.0: BAR 0: failed to assign [io  size 0x0010]
[    1.372635] pci 0000:01:00.0: PCI bridge to [bus 02]
[    1.374822] pci 0000:00:00.0: PCI bridge to [bus 01-02]
[    1.376987] pci 0000:01:00.0: Disabling ASPM L0s/L1
[    1.388832] iproc-rng200 fe104000.rng: hwrng registered
[    1.391542] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.395191] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.397742] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.411383] brd: module loaded
[    1.423619] loop: module loaded
[    1.426628] Loading iSCSI transport class v2.0-870.
[    1.432213] libphy: Fixed MDIO Bus: probed
[    1.436086] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.450190] libphy: bcmgenet MII bus: probed
[    1.498292] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.501525] usbcore: registered new interface driver r8152
[    1.503769] usbcore: registered new interface driver lan78xx
[    1.505922] usbcore: registered new interface driver smsc95xx
[    1.508622] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.511003] dwc_otg: FIQ enabled
[    1.511014] dwc_otg: NAK holdoff enabled
[    1.511024] dwc_otg: FIQ split-transaction FSM enabled
[    1.511037] Module dwc_common_port init
[    1.511605] usbcore: registered new interface driver uas
[    1.513690] usbcore: registered new interface driver usb-storage
[    1.515985] mousedev: PS/2 mouse device common for all mice
[    1.523309] sdhci: Secure Digital Host Controller Interface driver
[    1.525403] sdhci: Copyright(c) Pierre Ossman
[    1.528125] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.533454] ledtrig-cpu: registered to indicate activity on CPUs
[    1.536106] hid: raw HID events driver (C) Jiri Kosina
[    1.538336] usbcore: registered new interface driver usbhid
[    1.540378] usbhid: USB HID core driver
[    1.542771] ashmem: initialized
[    1.553506] Initializing XFRM netlink socket
[    1.555672] NET: Registered PF_PACKET protocol family
[    1.557803] Key type dns_resolver registered
[    1.561150] registered taskstats version 1
[    1.563188] Loading compiled-in X.509 certificates
[    1.565792] Key type ._fscrypt registered
[    1.567714] Key type .fscrypt registered
[    1.569638] Key type fscrypt-provisioning registered
[    1.583506] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.585762] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.587900] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 23, base_baud = 0) is a PL011 rev2
[    1.597066] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.599615] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.602815] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.604848] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.638882] of_cfs_init
[    1.641074] of_cfs_init: OK
[    1.671173] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.673933] Waiting for root device PARTUUID=88973f0f-02...
[    1.785280] mmc0: new ultra high speed DDR50 SDHC card at address 59b4
[    1.788584] mmcblk0: mmc0:59b4 00000 14.9 GiB
[    1.794717]  mmcblk0: p1 p2
[    1.797404] mmcblk0: mmc0:59b4 00000 14.9 GiB
[    1.825754] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.830090] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    2.174703] EXT4-fs (mmcblk0p2): recovery complete
[    2.186170] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    2.188422] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.197749] devtmpfs: mounted
[    2.207978] Freeing unused kernel memory: 3776K
[    2.210389] Run /sbin/init as init process
[    2.212504]   with arguments:
[    2.212514]     /sbin/init
[    2.212523]   with environment:
[    2.212532]     HOME=/
[    2.212541]     TERM=linux
[    2.656695] systemd[1]: System time before build time, advancing clock.
[    2.781800] NET: Registered PF_INET6 protocol family
[    2.785895] Segment Routing with IPv6
[    2.788115] In-situ OAM (IOAM) with IPv6
[    2.848570] systemd[1]: systemd 241 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)
[    2.853944] systemd[1]: Detected architecture arm64.
[    2.904642] systemd[1]: Set hostname to <cm4>.
[    3.544585] random: systemd: uninitialized urandom read (16 bytes read)
[    3.553151] random: systemd: uninitialized urandom read (16 bytes read)
[    3.556129] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.561862] random: systemd: uninitialized urandom read (16 bytes read)
[    3.565107] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.570924] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    3.579674] systemd[1]: Created slice system-getty.slice.
[    3.585980] systemd[1]: Listening on udev Control Socket.
[    3.592854] systemd[1]: Created slice User and Session Slice.
[    3.599666] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.729133] cryptd: max_cpu_qlen set to 1000
[    4.230838] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none.
[    4.342873] systemd-journald[127]: Received request to flush runtime journal from PID 1
[    4.802796] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.803520] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.804442] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.839929] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    5.061671] mc: Linux media interface: v0.10
[    5.085303] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    5.099824] videodev: Linux video capture interface: v2.00
[    5.102719] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    5.114952] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    5.114998] [vc_sm_connected_init]: start
[    5.126269] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    5.135751] [vc_sm_connected_init]: installed successfully
[    5.222822] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.246694] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    5.281912] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    5.285577] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.287972] bcm2835_audio bcm2835_audio: there is not valid maps for state default
[    5.314462] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    5.335404] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.335477] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.384007] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.384078] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.407674] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.407740] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    5.445771] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    5.445874] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    5.507223] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    5.510620] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    5.512902] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    5.517349] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    5.517399] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.517424] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.517443] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.517461] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.538101] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    5.676196] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    5.940455] checking generic (3e636000 591000) vs hw (0 ffffffffffffffff)
[    5.940492] fb0: switching to vc4 from simple
[    5.941078] Console: switching to colour dummy device 80x25
[    5.991180] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    5.993264] Registered IR keymap rc-cec
[    5.993471] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    5.993695] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input0
[    6.041457] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.044541] Registered IR keymap rc-cec
[    6.044751] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.044967] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input1
[    6.054422] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    6.056478] Registered IR keymap rc-cec
[    6.056690] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    6.056908] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input2
[    6.063066] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    6.063499] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    6.063807] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.064107] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.064382] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.064592] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.064877] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    6.084588] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    6.179567] Console: switching to colour frame buffer device 200x56
[    6.203458] vc4-drm gpu: [drm] fb0: vc4 frame buffer device
[    7.496931] random: crng init done
[    7.496957] random: 7 urandom warning(s) missed due to ratelimiting
[    7.548526] uart-pl011 fe201000.serial: no DMA platform data
[    7.565412] 8021q: 802.1Q VLAN Support v1.8
[    7.691357] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.712469] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.718189] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.792321] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    7.792797] bcmgenet fd580000.ethernet eth0: Link is Down
[   11.870310] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   11.870353] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

lspci:

    Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0
    Interrupt: pin A routed to IRQ 0
    Bus: primary=00, secondary=01, subordinate=02, sec-latency=0
    I/O behind bridge: 00000000-00000fff
    Memory behind bridge: fff00000-000fffff
    Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
    Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
    BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
        PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
    Capabilities: [48] Power Management version 3
        Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
        Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
    Capabilities: [ac] Express (v2) Root Port (Slot-), MSI 00
        DevCap: MaxPayload 512 bytes, PhantFunc 0
            ExtTag- RBE+
        DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
            RlxdOrd+ ExtTag- PhantFunc- AuxPwr+ NoSnoop+
            MaxPayload 128 bytes, MaxReadReq 512 bytes
        DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
        LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <4us
            ClockPM+ Surprise- LLActRep- BwNot+ ASPMOptComp+
        LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
        LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt+ ABWMgmt-
        RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible+
        RootCap: CRSVisible+
        RootSta: PME ReqID 0000, PMEStatus- PMEPending-
        DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR+, OBFF Via WAKE# ARIFwd-
        DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR+, OBFF Disabled ARIFwd-
        LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
             Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
             Compliance De-emphasis: -6dB
        LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
             EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
    Capabilities: [100 v1] Advanced Error Reporting
        UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
        CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
        CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
        AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-
    Capabilities: [180 v1] Vendor Specific Information: ID=0000 Rev=0 Len=028 <?>
    Capabilities: [240 v1] L1 PM Substates
        L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
              PortCommonModeRestoreTime=8us PortTPowerOnTime=10us
        L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
               T_CommonMode=1us LTR1.2_Threshold=0ns
        L1SubCtl2: T_PwrOn=10us

01:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 04) (prog-if 00 [Normal decode])
    Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0
    Interrupt: pin A routed to IRQ 0
    Bus: primary=01, secondary=02, subordinate=02, sec-latency=0
    I/O behind bridge: 0000f000-00000fff
    Memory behind bridge: fff00000-000fffff
    Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
    Secondary status: 66MHz+ FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
    BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
        PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Address: 0000000000000000  Data: 0000
    Capabilities: [78] Power Management version 3
        Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
        Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [80] Express (v1) PCI-Express to PCI/PCI-X Bridge, MSI 00
        DevCap: MaxPayload 128 bytes, PhantFunc 0
            ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ SlotPowerLimit 0.000W
        DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
            RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ BrConfRtry-
            MaxPayload 128 bytes, MaxReadReq 512 bytes
        DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq- AuxPwr- TransPend-
        LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <2us
            ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
        LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
        LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
    Capabilities: [c0] Subsystem: Device 0000:0000
    Capabilities: [100 v1] Virtual Channel
        Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
        Arb:    Fixed- WRR32- WRR64- WRR128-
        Ctrl:   ArbSelect=Fixed
        Status: InProgress-
        VC0:    Caps:   PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
            Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
            Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
            Status: NegoPending- InProgress-

02:00.0 Serial controller: Systembase Co Ltd Device 4d02 (rev b0) (prog-if 02 [16550])
    Subsystem: Systembase Co Ltd Device 4d02
    Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 65
    Region 0: I/O ports at <ignored> [disabled]
    Region 1: I/O ports at <ignored> [disabled]
    Capabilities: [40] Power Management version 3
        Flags: PMEClk+ DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
        Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-

Card works as expected with no hiccups or issues, no kernel recompile needed

6by9 commented 3 years ago

Card works as expected with no hiccups or issues, no kernel recompile needed

Huh?! I wasn't expecting that seeing as the serial controller only lists 2 I/O regions that are both disabled, and this is going via a PCIe to PCI bridge. I've failed to get any PCI devices working via a bridge as they almost all use the (unsupported on ARM) I/O BAR. I don't quite see how the above dump tallies with the card having any resources to actually be accessed.

Could you provide the output from lspci -k please?

geerlingguy commented 3 years ago

I've added this board to the site; it's currently listed as 'Maybe' working—but I would also like to know if you're able to actually get data to flow through the card.

In terms of:

Card works as expected with no hiccups or issues, no kernel recompile needed

Does that mean you were able to communicate with another device via one of the serial ports? Or just that the card appears when you list it out?

wbreiler commented 3 years ago

Could you provide the output from lspci -k please?

00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 20)
01:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 04)
02:00.0 Serial controller: Systembase Co Ltd Device 4d02 (rev b0)
Subsystem: Systembase Co Ltd Device 4d02

Does that mean you were able to communicate with another device via one of the serial ports? Or just that the card appears when you list it out?

Right now, just that the card appears when I list it out. I have a couple serial devices coming in on Monday morning that I will test with.

wbreiler commented 3 years ago

Googled a bit, and found this and currently following along. Will update with changes

6by9 commented 3 years ago

That lspci output doesn't appear to be with the -k flag as it isn't listing a kernel driver for any of the devices. eg on my Pi4 I get

pi@raspberrypi:~ $ lspci -k
00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 10)
    Kernel driver in use: pcieport
01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
    Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller
    Kernel driver in use: xhci_hcd
wbreiler commented 3 years ago
root@cm4:~# lspci -k
00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 20)
01:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 04)
02:00.0 Serial controller: Systembase Co Ltd Device 4d02 (rev b0)
    Subsystem: Systembase Co Ltd Device 4d02
wbreiler commented 3 years ago

Googled a bit, and found this and currently following along. Will update with changes

Update: The driver requires a kernel header that does not exist for ARM64 (asm/segment.h). Will see Monday if card will work without a driver... Fingers crossed!

6by9 commented 3 years ago

OK thanks for confirming on the lspci output. I'm surprised that it's not listing pcieport for the base PCI bridge, and memory says that the ASM1083/1085 driver is standard too. That does sort of confirm that the serial controller isn't actually configured and doing anything.

Can you point me at this driver you're trying to compile? It doesn't appear that that file exists at all for ARM

$ find -name segment.h
./arch/sh/include/asm/segment.h
./arch/m68k/include/asm/segment.h
./arch/x86/um/asm/segment.h
./arch/x86/include/asm/segment.h
./arch/arc/include/asm/segment.h
./arch/h8300/include/asm/segment.h
./arch/csky/include/asm/segment.h
./fs/nilfs2/segment.h
./fs/f2fs/segment.h

Looking at the x86 version, it is giving me flashbacks to writing x86 assembler and having to worry about the hideous addressing mode you find there with CS (code segment) and DS (data segment) pointers. Drivers shouldn't normally be needing to worry about that level of architecture specific adaptation.

Sorry to say, but I still don't have much hope that this card will work from what I've seen so far.

wbreiler commented 3 years ago

Can you point me at this driver you're trying to compile? It doesn't appear that that file exists at all for ARM

https://www.sysbas.com/en/downloads/pcie-serial-card-series/