On 20/09/16(Tue) 13:36, Yannick Gravel wrote:
> >Synopsis:     SierraWireless MC7455 umsm support w/ patch
> >Category:     system
> >Environment:
>      System      : OpenBSD 6.0
>      Details     : OpenBSD 6.0-current (GENERIC.MP) #1: Tue Sep 13 11:15:25 
> EDT 2016
>                    yg@buildhost:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>      Architecture: OpenBSD.amd64
>      Machine     : amd64
> >Description:
>      SierraWireless MC7455 LTE modem is not supported by umsm(4).
> >How-To-Repeat:
>      Install the MC7455 LTE modem and try ppp or cu against it.
> 
> >Fix:
> Patch prepared agains an OpenBSD 6.0 current as of 2016-08-16.
> Only USB devices IDs needed to be added.

Committed, thanks.  

> 
> The third serial port (/dev/cuaU2) answered to AT commands and worked for ppp 
> connection.
> 
> This mPCIe card has USB 2.0 and USB 3.0 but on my RCC-DFF 2220 the USB 3.0 
> pins on the card conflicted with PCIe pins ont the board. Pins 23 to 33 were 
> taped out on the card to make this work.
> See https://forum.sierrawireless.com/viewtopic.php?f=117&t=9636
> 
> Patch:
> 
> Index: umsm.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/umsm.c,v
> retrieving revision 1.106
> diff -u -p -r1.106 umsm.c
> --- umsm.c      1 Jun 2016 13:20:01 -0000       1.106
> +++ umsm.c      21 Aug 2016 16:19:55 -0000
> @@ -250,6 +250,7 @@ static const struct umsm_type umsm_devs[
>         {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8355}, 0},
>         {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AIRCARD_340U}, 0},
>         {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AIRCARD_770S}, 0},
> +       {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC7455}, 0},
> 
>         {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMASS }, DEV_UMASS3},
>         {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMASS_2 }, DEV_UMASS3},
> Index: usbdevs
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> retrieving revision 1.666
> diff -u -p -r1.666 usbdevs
> --- usbdevs     1 Jun 2016 09:48:20 -0000       1.666
> +++ usbdevs     21 Aug 2016 16:19:56 -0000
> @@ -3839,6 +3839,7 @@ product SIERRA USB305             0x68a3  USB305
>  product SIERRA MC8355          0x9013  MC8355
>  product SIERRA AIRCARD_340U    0x9051  Aircard 340U
>  product SIERRA AIRCARD_770S    0x9053  Aircard 770S
> +product SIERRA MC7455          0x9071  MC7455
> 
>  /* Sigmatel products */
>  product SIGMATEL IRDA          0x4200  IrDA
> 
> dmesg:
> OpenBSD 6.0-current (GENERIC.MP) #1: Tue Sep 13 11:15:25 EDT 2016
>     yg@buildhost:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2126372864 (2027MB)
> avail mem = 2057510912 (1962MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7fbf0420 (7 entries)
> bios0: vendor coreboot version "ADI_DFF2-01.00.00.08-nodebug" date 01/22/2016
> bios0: ADI Engineering DFFv2
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S4 S5
> acpi0: tables DSDT FACP SPCR HPET APIC MCFG SSDT
> acpi0: wakeup devices EHC1(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Atom(TM) CPU C2338 @ 1.74GHz, 1166.88 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
> cpu0: 1MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 83MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Atom(TM) CPU C2338 @ 1.74GHz, 1166.66 MHz
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
> cpu1: 1MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpiprt0 at acpi0: bus 1 (RP01)
> acpiprt1 at acpi0: bus 2 (RP02)
> acpiprt2 at acpi0: bus 3 (RP03)
> acpiprt3 at acpi0: bus 4 (RP04)
> acpiprt4 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0: C1(@1 halt!), PSS
> acpicpu1 at acpi0: C1(@1 halt!), PSS
> cpu0: Enhanced SpeedStep 1166 MHz: speeds: 2100, 1800, 1600, 1400 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x1f0f rev 0x02
> ppb0 at pci0 dev 1 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 2 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 3 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 4 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
> pci4 at ppb3 bus 4
> pchb1 at pci0 dev 14 function 0 "Intel Atom C2000 RAS" rev 0x02
> "Intel Atom C2000 RCEC" rev 0x02 at pci0 dev 15 function 0 not configured
> "Intel Atom C2000 SMBus" rev 0x02 at pci0 dev 19 function 0 not configured
> em0 at pci0 dev 20 function 0 "Intel I354 SGMII" rev 0x03: msi, address 
> 00:08:a2:ca:fe:07
> em1 at pci0 dev 20 function 1 "Intel I354 SGMII" rev 0x03: msi, address 
> 00:08:a2:ca:fe:08
> em2 at pci0 dev 20 function 2 "Intel I354 SGMII" rev 0x03: msi
> em2: Hardware Initialization Failed
> em2: Unable to initialize the hardware
> em3 at pci0 dev 20 function 3 "Intel I354 SGMII" rev 0x03: msi
> em3: Hardware Initialization Failed
> em3: Unable to initialize the hardware
> ehci0 at pci0 dev 22 function 0 "Intel Atom C2000 USB" rev 0x02: apic 2 int 22
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ahci0 at pci0 dev 23 function 0 "Intel Atom C2000 AHCI" rev 0x02: msi, AHCI 
> 1.3
> ahci0: port 0: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, G2242, O052> SCSI3 0/direct fixed 
> naa.0000000000000000
> sd0: 57241MB, 512 bytes/sector, 117231408 sectors, thin
> ahci1 at pci0 dev 24 function 0 "Intel Atom C2000 AHCI" rev 0x02: msi, AHCI 
> 1.3
> scsibus2 at ahci1: 32 targets
> pcib0 at pci0 dev 31 function 0 "Intel Atom C2000 PCU" rev 0x02
> ichiic0 at pci0 dev 31 function 3 "Intel Atom C2000 PCU SMBus" rev 0x02: apic 
> 2 int 22
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-12800
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> com1: console
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> uhub1 at uhub0 port 1 "Intel product 0x07db" rev 2.00/0.02 addr 2
> umsm0 at uhub1 port 2 configuration 1 interface 0 "Sierra Wireless, 
> Incorporated Sierra Wireless MC7455 Qualcomm\M-. Snapdragon? X7 LTE-A" rev 
> 2.10/0.06 addr 3
> ucom0 at umsm0
> umsm1 at uhub1 port 2 configuration 1 interface 2 "Sierra Wireless, 
> Incorporated Sierra Wireless MC7455 Qualcomm\M-. Snapdragon? X7 LTE-A" rev 
> 2.10/0.06 addr 3
> ucom1 at umsm1
> umsm2 at uhub1 port 2 configuration 1 interface 3 "Sierra Wireless, 
> Incorporated Sierra Wireless MC7455 Qualcomm\M-. Snapdragon? X7 LTE-A" rev 
> 2.10/0.06 addr 3
> ucom2 at umsm2
> umsm3 at uhub1 port 2 configuration 1 interface 8 "Sierra Wireless, 
> Incorporated Sierra Wireless MC7455 Qualcomm\M-. Snapdragon? X7 LTE-A" rev 
> 2.10/0.06 addr 3
> ucom3 at umsm3
> umsm4 at uhub1 port 2 configuration 1 interface 10 "Sierra Wireless, 
> Incorporated Sierra Wireless MC7455 Qualcomm\M-. Snapdragon? X7 LTE-A" rev 
> 2.10/0.06 addr 3
> ucom4 at umsm4
> umass0 at uhub1 port 3 configuration 1 interface 0 "Generic Ultra Fast Media" 
> rev 2.00/1.98 addr 4
> umass0: using SCSI over Bulk-Only
> scsibus3 at umass0: 2 targets, initiator 0
> sd1 at scsibus3 targ 1 lun 0: <Generic, Ultra HS-COMBO, 1.98> SCSI0 0/direct 
> removable serial.00000000000000000000
> sd1: 3648MB, 512 bytes/sector, 7471104 sectors
> vscsi0 at root
> scsibus4 at vscsi0: 256 targets
> softraid0 at root
> scsibus5 at softraid0: 256 targets
> root on sd0a (4538bbb8a753b479.a) swap on sd0b dump on sd0b
> 
> usbdevs:  
> Controller /dev/usb0:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
> Intel(0x8086), rev 1.00
>  port 1 addr 2: high speed, self powered, config 1, product 0x07db(0x07db), 
> Intel(0x8087), rev 0.02
>   port 1 powered
>   port 2 addr 3: high speed, power 500 mA, config 1, Sierra Wireless MC7455 
> Qualcomm Snapdragon X7 LTE-A(0x9071), Sierra Wireless, Incorporated(0x1199), 
> rev 0.06, iSerialNumber LQ00000000000000
>   port 3 addr 4: high speed, power 96 mA, config 1, Ultra Fast Media(0x2240), 
> Generic(0x0424), rev 1.98, iSerialNumber 000000000000
>   port 4 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
>  port 5 powered
>  port 6 powered
>  port 7 powered
>  port 8 powered
> 

Reply via email to