1. 24 Mar, 2022 10 commits
    • Raptor Engineering Development Team's avatar
      ovpxa24xx: Work around defective OpenVox PCIe hardware / firmware design · 8fa12149
      Raptor Engineering Development Team authored
      The OpenVox A1610P/A1610E/A2410P/A2410E series cards all appear to share
      a design flaw, where wild DMA reads are occassionally emitted from the card.
      We suspect this design flaw is related to setup timing for the address bus
      inside the FPGA PCI controller not being met, as it seems temperature dependent
      and is largely, if not completely, eliminated by ensuring the upper 14 address
      bits of the PCI bus are never set and forcing the link speed to 2.5GT/s.
      As all wild DMA, even wild DMA read, is caught by the advanced PCIe controllers
      on high availability platforms (mostly OpenPOWER, such as Talos II / Blackbird),
      these cards will regularly drop offline due to the PCIe interface freezing and
      invoking the EEH handler.  Since recovery from this state without a full reload
      of Asterisk and DAHDI, along with the driver module, is not guaranteed, the wild
      DMA presents a significant problem for high availability analog PBX servers.
      For now, work around the broken hardware by setting a DMA mask of 14 bits.
      Should OpenVox fix the problem in future hardware / firmware revisions,
      the DMA mask can be reset to the standard 32 bits for this type of PCI device.
    • Raptor Engineering Development Team's avatar
    • Raptor Engineering Development Team's avatar
      opvxa24xx: Lock the voice card IRQ to CPU0 · 69f30967
      Raptor Engineering Development Team authored
      The voice card generates an interrupt every 1ms, effectively operating
      in real time.  Since migrating the IRQ between CPUs can, in some cases,
      cause the card to lose sync due to the added delay from migration,
      lock the interrupt to CPU0 for now.
    • Raptor Engineering Development Team's avatar
    • Raptor Engineering Development Team's avatar
      Migrate to DMA coherent functions · c244830a
      Raptor Engineering Development Team authored
      Add initial EEH fast recovery support
    • Raptor Engineering Development Team's avatar
    • Raptor Engineering Development Team's avatar
      Add initial direct EEH handling to opvxa24xx driver · 259cd07b
      Raptor Engineering Development Team authored
      This is required to work around presumably bad card-side firmware
      randomly (hours/days/weeks) performing bad DMA writes to the host (!)
      Example PHB fence event:
      [53811.103878] EEH: Recovering PHB#1-PE#fc
      [53811.103904] EEH: PE location: UOPWR.D100022-Node0-SLOT1 PCIE 4.0 X16, PHB location: N/A
      [53811.103917] EEH: Frozen PHB#1-PE#fc detected
      [53811.103942] EEH: Call Trace:
      [53811.103968] EEH: [000000009c27f02d] __eeh_send_failure_event+0x78/0x150
      [53811.103997] EEH: [000000009006781a] eeh_dev_check_failure+0x380/0x670
      [53811.104030] EEH: [00000000ebe9b5df] __opvx_a24xx_getcreg+0x7c/0xb0 [opvxa24xx]
      [53811.104073] EEH: [000000005a792683] interrupt_onecard_handler+0x80/0xdc0 [opvxa24xx]
      [53811.104115] EEH: [00000000903815aa] a24xx_interrupt+0xe8/0x120 [opvxa24xx]
      [53811.104159] EEH: [0000000061324081] __handle_irq_event_percpu+0x11c/0x4b0
      [53811.104203] EEH: [000000008d7d81ec] handle_irq_event_percpu+0x38/0x90
      [53811.104244] EEH: [0000000078120288] handle_irq_event+0x60/0xa0
      [53811.104286] EEH: [000000008b3623f1] handle_fasteoi_irq+0xd4/0x270
      [53811.104318] EEH: [0000000042e6cb54] generic_handle_irq+0x54/0x80
      [53811.104366] EEH: [0000000071e8585e] __do_irq+0xa0/0x380
      [53811.104399] EEH: [00000000b76ddee5] __do_IRQ+0x9c/0x130
      [53811.104440] EEH: [00000000aa5e1b3f] 0xc000000004373b10
      [53811.104474] EEH: [000000006d701fc8] do_IRQ+0xfc/0x1d0
      [53811.104524] EEH: [0000000070ff629f] replay_soft_interrupts+0x1c4/0x320
      [53811.104555] EEH: [0000000095e31904] arch_local_irq_restore+0x1e4/0x250
      [53811.104597] EEH: [0000000047c9e272] cpuidle_enter_state+0x158/0x720
      [53811.104639] EEH: [00000000904e539f] cpuidle_enter+0x50/0x70
      [53811.104680] EEH: [00000000b5de9adb] call_cpuidle+0x4c/0x90
      [53811.104721] EEH: [000000008d8e2164] do_idle+0x320/0x3a0
      [53811.104761] EEH: [00000000d680deba] cpu_startup_entry+0x3c/0x50
      [53811.104784] EEH: [000000006146f980] start_secondary+0x27c/0x2d0
      [53811.104820] EEH: [00000000cb4eb9c4] start_secondary_prolog+0x10/0x14
      [53811.104849] EEH: This PCI device has failed 2 times in the last hour and will be permanently disabled after 5 failures.
      [53811.104902] EEH: Notify device drivers to shutdown
      [53811.104918] EEH: Beginning: 'error_detected(IO frozen)'
      [53811.104931] PCI 0001:02:00.0#00fc: EEH: driver not EEH aware
      [53811.104935] EEH: Finished:'error_detected(IO frozen)' with aggregate recovery state:'none'
      [53811.104958] EEH: Collect temporary log
      [53811.104988] EEH: of node=0001:02:00.0
      [53811.104999] EEH: PCI device/vendor: 16101b74
      [53811.105011] EEH: PCI cmd/status register: 04080146
      [53811.105020] PHB4 PHB#1 Diag-data (Version: 1)
      [53811.105030] brdgCtl:    00000002
      [53811.105038] RootSts:    00060000 00402000 20110008 00100107 00000800
      [53811.105049] PhbSts:     0000001c00000000 0000001c00000000
      [53811.105059] Lem:        0000000100000080 0000000000000000 0000000000000080
      [53811.105070] PhbErr:     0000028000000000 0000020000000000 2148000098000240 a008400000000000
      [53811.105082] RxeTceErr:  6000000000000000 2000000000000000 c0000000000000fc 0000000000000000
      [53811.105095] PblErr:     0000000000020000 0000000000020000 0000000000000000 0000000000000000
      [53811.105107] RegbErr:    0000004000000000 0000004000000000 8800003c00000000 0000000000000000
      [53811.105120] PE[0fc] A/B: 8300b03800000000 8000000000000000
      [53811.105130] EEH: Reset with hotplug activity
      Decoded PEST A/B:
      Transaction type: DMA Read Response
      Invalid MMIO Address
      TCE Page Fault
      TCE Access Fault
      LEM Bit Number 56
      Requestor 00:0.0
      MSI Data 0x0000
      Fault Address = 0x0000000000000000
    • Raptor Engineering Development Team's avatar
    • Raptor Engineering Development Team's avatar
    • Raptor Engineering Development Team's avatar
  2. 12 Mar, 2022 1 commit
  3. 22 Feb, 2022 1 commit
  4. 21 Feb, 2022 2 commits
  5. 08 Feb, 2022 2 commits
  6. 07 Feb, 2022 1 commit
    • Oliver Smith's avatar
      contrib/jenkins.sh: new file · e2590c0d
      Oliver Smith authored
      Build the kernel module against a given linux tree. This script will be
      used in CI at jenkins.osmocom.org.
      Related: OS#5407
      Depends: docker-playground Id72d19ad08681cd7cb3194de2226292f19e96df5
      Change-Id: I904ab66a1ecd72492642ac2cc4cb102c7283c590
  7. 23 Jan, 2022 1 commit
  8. 22 Jan, 2022 1 commit
  9. 20 Jan, 2022 1 commit
  10. 13 Jan, 2022 2 commits
    • Harald Welte's avatar
      icE1usb: Don't silently ignore startup errors on re-configuration · 57f30f9c
      Harald Welte authored
      If an already-active line gets reconfigured, we implement this by
      a shutdown followed by a startup.  However, the startup could fail,
      which should make the spanconfig return the error code.
    • Harald Welte's avatar
      icE1usb: raise NOTOPEN alarm if 'startup' fails · e72a1850
      Harald Welte authored
      This is what happens if there is insufficient isochronous USB bandwidth
      to open a port: The STARTUP ioctl fails.  However, as the prior
      SPANCONFIG ioctl succeeds, the line apears up with no alarms.
      So let's set the NOTOPEN alarm whenever there are errors in STARTUP,
      to give a clear indication to the user the port could not be opened.
  11. 12 Jan, 2022 1 commit
  12. 10 Jan, 2022 1 commit
    • Harald Welte's avatar
      wcte11xp: Fix BLUE (AIS) alarm detection · 0adbb40d
      Harald Welte authored
      The XAIS bit to check in the FRS0 register is at 0x40, and not 0x4.
      If only the original authors had the wisdom to use #defines for those
      bits, and re-used those bits across the drivers (wct4xxp, wcte43x
      and wcte13xp get this right!).
  13. 02 Jan, 2022 1 commit
  14. 01 Jan, 2022 3 commits
  15. 31 Dec, 2021 2 commits
  16. 29 Nov, 2021 10 commits