google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
424 stars 125 forks source link

Can't compile driver on my DEBIAN Linux - System .... #639

Open ZXRobotum opened 2 years ago

ZXRobotum commented 2 years ago

Hello all,

I have installed DEBIAN "bookworm" in the latest version: 5.18.0-3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.14-1 (2022-07-23) x86_64 GNU/Linux on my computer.

Until recently I was able to use the M2.Coral card, but now (after kernel update) the system can no longer find this card and I can no longer activate it.

What can I do or is there already a remedy for this? Best regards Z. Matthias

toxicantidote commented 1 year ago

I am also having this issue with my mini PCI-E Coral. The device is listed as "Global Unichip Corp. Coral Edge TPU" as expected, however /dev/apex_0 does not exist. Platform is a HP DL360p server.

Kernel 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64

lspci -vvv (snipped for Coral):

04:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU (prog-if ff) Subsystem: Global Unichip Corp. Coral Edge TPU Physical Slot: 1 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 5 NUMA node: 0 IOMMU group: 32 Region 0: Memory at f6bf0000 (64-bit, prefetchable) [size=16K] Region 2: Memory at f6a00000 (64-bit, prefetchable) [size=1M] Capabilities: [80] Express (v2) Endpoint, MSI 00 DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0.000W DevCtl: CorrErr- NonFatalErr+ FatalErr+ UnsupReq- RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+ MaxPayload 256 bytes, MaxReadReq 4096 bytes DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend- LnkCap: Port #1, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+ LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk- ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 5GT/s (ok), Width x1 (ok) TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt- DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+ 10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix- EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit- FRS- TPHComp- ExtTPHComp- AtomicOpsCap: 32bit- 64bit- 128bitCAS- DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled, AtomicOpsCtl: ReqEn- LnkCap2: Supported Link Speeds: 2.5-5GT/s, Crosslink- Retimer- 2Retimers- DRS- LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis- Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS- Compliance De-emphasis: -6dB LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1- EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest- Retimer- 2Retimers- CrosslinkRes: unsupported Capabilities: [d0] MSI-X: Enable- Count=128 Masked- Vector table: BAR=2 offset=00046800 PBA: BAR=2 offset=00046068 Capabilities: [e0] MSI: Enable- Count=1/32 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 Capabilities: [f8] 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: [100 v1] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?> Capabilities: [108 v1] Latency Tolerance Reporting Max snoop latency: 0ns Max no snoop latency: 0ns Capabilities: [110 v1] L1 PM Substates L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+ PortCommonModeRestoreTime=10us PortTPowerOnTime=10us L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1- T_CommonMode=0us LTR1.2_Threshold=0ns L1SubCtl2: T_PwrOn=10us Capabilities: [200 v2] 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- AdvNonFatalErr+ CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn- MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap- HeaderLog: 00000000 00000000 00000000 00000000

lsmod:

Module Size Used by xt_nat 16384 7 xt_tcpudp 20480 0 veth 36864 0 xt_conntrack 16384 1 nft_chain_nat 16384 3 xt_MASQUERADE 20480 8 nf_nat 57344 3 xt_nat,nft_chain_nat,xt_MASQUERADE nf_conntrack_netlink 57344 0 nf_conntrack 176128 5 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE nf_defrag_ipv6 24576 1 nf_conntrack nf_defrag_ipv4 16384 1 nf_conntrack xfrm_user 49152 1 xfrm_algo 16384 1 xfrm_user xt_addrtype 16384 2 nft_compat 20480 18 nf_tables 278528 253 nft_compat,nft_chain_nat libcrc32c 16384 3 nf_conntrack,nf_nat,nf_tables nfnetlink 20480 4 nft_compat,nf_conntrack_netlink,nf_tables br_netfilter 32768 0 bridge 307200 1 br_netfilter stp 16384 1 bridge llc 16384 2 bridge,stp overlay 151552 2 cpuid 16384 0 intel_rapl_msr 20480 0 evdev 28672 1 intel_rapl_common 28672 1 intel_rapl_msr sb_edac 24576 0 x86_pkg_temp_thermal 20480 0 intel_powerclamp 20480 0 coretemp 20480 0 kvm_intel 368640 0 kvm 1060864 1 kvm_intel irqbypass 16384 1 kvm ghash_clmulni_intel 16384 0 binfmt_misc 24576 1 aesni_intel 380928 0 crypto_simd 16384 1 aesni_intel cryptd 24576 2 crypto_simd,ghash_clmulni_intel rapl 20480 0 intel_cstate 20480 0 intel_uncore 208896 0 iTCO_wdt 16384 0 ipmi_ssif 40960 0 pcspkr 16384 0 intel_pmc_bxt 16384 1 iTCO_wdt serio_raw 20480 0 mgag200 40960 0 iTCO_vendor_support 16384 1 iTCO_wdt acpi_ipmi 20480 0 drm_shmem_helper 20480 1 mgag200 hpilo 24576 4 ipmi_si 73728 1 hpwdt 20480 0 drm_kms_helper 192512 3 mgag200 ipmi_devintf 20480 0 i2c_algo_bit 16384 1 mgag200 cdc_acm 40960 0 watchdog 32768 2 iTCO_wdt,hpwdt ipmi_msghandler 118784 4 ipmi_devintf,ipmi_si,acpi_ipmi,ipmi_ssif acpi_power_meter 20480 0 button 24576 0 ioatdma 61440 0 sg 40960 0 dca 16384 1 ioatdma bonding 217088 0 tls 118784 1 bonding fuse 172032 1 drm 614400 4 drm_kms_helper,drm_shmem_helper,mgag200 configfs 57344 1 ip_tables 32768 0 x_tables 53248 7 xt_conntrack,nft_compat,xt_tcpudp,xt_addrtype,xt_nat,ip_tables,xt_MASQUERADE autofs4 53248 2 ext4 946176 3 crc16 16384 1 ext4 mbcache 16384 1 ext4 jbd2 163840 1 ext4 crc32c_generic 16384 0 usbhid 65536 0 hid 151552 1 usbhid sr_mod 28672 0 cdrom 73728 1 sr_mod sd_mod 61440 5 t10_pi 16384 1 sd_mod crc64_rocksoft 20480 1 t10_pi crc64 20480 1 crc64_rocksoft crc_t10dif 20480 1 t10_pi mptsas 53248 0 ahci 49152 0 crct10dif_generic 16384 0 mptscsih 32768 1 mptsas libahci 49152 1 ahci tg3 188416 0 hpsa 110592 4 mptbase 77824 2 mptsas,mptscsih uhci_hcd 53248 0 ehci_pci 20480 0 libata 385024 2 libahci,ahci scsi_transport_sas 49152 2 mptsas,hpsa ehci_hcd 98304 1 ehci_pci crct10dif_pclmul 16384 1 crct10dif_common 16384 3 crct10dif_generic,crc_t10dif,crct10dif_pclmul libphy 159744 1 tg3 crc32_pclmul 16384 0 scsi_mod 266240 8 mptsas,scsi_transport_sas,sd_mod,hpsa,mptscsih,libata,sg,sr_mod psmouse 184320 0 crc32c_intel 24576 6 usbcore 327680 5 ehci_pci,usbhid,cdc_acm,ehci_hcd,uhci_hcd ptp 32768 1 tg3 lpc_ich 28672 0 usb_common 16384 3 usbcore,ehci_hcd,uhci_hcd scsi_common 16384 7 mptsas,scsi_mod,hpsa,mptscsih,libata,sg,sr_mod pps_core 24576 1 ptp

lscpu:

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 24 On-line CPU(s) list: 0-23 Vendor ID: GenuineIntel BIOS Vendor ID: Intel Model name: Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz BIOS Model name: Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz CPU @ 2.6GHz BIOS CPU family: 179 CPU family: 6 Model: 62 Thread(s) per core: 2 Core(s) per socket: 6 Socket(s): 2 Stepping: 4 CPU(s) scaling MHz: 83% CPU max MHz: 3100.0000 CPU min MHz: 1200.0000 BogoMIPS: 5187.30 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 sss e3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts flush_l1d Virtualization features: Virtualization: VT-x Caches (sum of all): L1d: 384 KiB (12 instances) L1i: 384 KiB (12 instances) L2: 3 MiB (12 instances) L3: 30 MiB (2 instances) NUMA: NUMA node(s): 2 NUMA node0 CPU(s): 0-5,12-17 NUMA node1 CPU(s): 6-11,18-23 Vulnerabilities: Itlb multihit: KVM: Mitigation: VMX disabled L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable Mds: Vulnerable: Clear CPU buffers attempted, no microcode; SMT vulnerable Meltdown: Mitigation; PTI Mmio stale data: Not affected Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling Srbds: Not affected Tsx async abort: Not affected

toxicantidote commented 1 year ago

Upgrading to kernel 6.0.0-4 (Debian 6.0.8-1 2022-11-11) resolved this issue for me.