Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-24 Thread Aleksander Morgado
Hey On Mon, May 24, 2021 at 7:21 PM Oskar Stenman wrote: > > Replying to myself here again.. > > Not sure what's going on but noticed laptop running hot and I see > ModemManager + mbim-proxy running at 100% cpu. > Strace of mbim-proxy only spams infinite lines like: > write(7, > "\3\0\0\\0

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-24 Thread Oskar Stenman
Replying to myself here again.. Not sure what's going on but noticed laptop running hot and I see ModemManager + mbim-proxy running at 100% cpu. Strace of mbim-proxy only spams infinite lines like: write(7, "\3\0\0\\0\0\0\237\3\0\0\1\0\0\0\0\0\0\0\242\211\3143\274\273\213O\266\260\23>\302\252

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-22 Thread Aleksander Morgado
Hey! On Sat, May 22, 2021 at 3:10 PM Oskar Stenman wrote: > > I can confirm this works. > Thanks for checking! I have also been able to validate this in the X1 Carbon; I also had to enable intel VT-D in the bios BTW. -- Aleksander https://aleksander.es _

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-22 Thread Oskar Stenman
I can confirm this works. After installing this it seems to be connect to internet before i even get desktop up from cold-start. First log in journalctl after boot: 10:23:29, Modemmanager reports connected 13 seconds later: May 22 10:23:42 oskar-ThinkPad-X1-Nano-Gen-1 ModemManager[1370]: [modem0]

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-21 Thread Aleksander Morgado
Hey Oskar, > I've tested it. ModemManager doesn't automatically activate it, Ok, please retry with the latest https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/534 It works for me on the laptop I received yesterday ;) $ uname -a Linux hestia 5.13.0-rc2-2-mainline #1

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-19 Thread Aleksander Morgado
Hey Oskar On Wed, May 12, 2021 at 9:38 AM Aleksander Morgado wrote: > > > > After that i could run: > > > $ sudo qmicli -p -d /dev/wwan0p2MBIM --device-open-mbim > > > --dms-dell-cuskit-unlock=00 > > > [11 maj 2021, 23:42:36] -Warning ** [/dev/wwan0p2MBIM] couldn't detect > > > transport type of

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-19 Thread Loic Poulain
On Tue, 18 May 2021 at 13:21, Oskar Stenman wrote: > > Hi! > > I couldn't figure out what to log in mhi_init_irq_setup but i put a logline > on in mhi_init_dev_ctxt: > oskar@oskar-ThinkPad-X1-Nano-Gen-1:~/src/linux-kernel/linux-upstream-5.12.0+/drivers/bus/mhi$ > git diff . > diff --git a/driver

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-18 Thread Oskar Stenman
Hi! I couldn't figure out what to log in mhi_init_irq_setup but i put a logline on in mhi_init_dev_ctxt: oskar@oskar-ThinkPad-X1-Nano-Gen-1:~/src/linux-kernel/linux-upstream-5.12.0+/drivers/bus/mhi$ git diff . diff --git a/drivers/bus/mhi/core/init.c b/drivers/bus/mhi/core/init.c index c81b377fca8

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-18 Thread Loic Poulain
Hi Oskar, On Tue, 18 May 2021 at 11:33, Oskar Stenman wrote: > > Hi! > > I'm way out in the deep end of the pool here poking at things i shouldn't to see what happens and if i can learn something, or find a bit more info where things go wrong.. So I patched drivers/bus/mhi/pci_generic.c to give s

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-18 Thread Oskar Stenman
Hi! I'm way out in the deep end of the pool here poking at things i shouldn't to see what happens and if i can learn something, or find a bit more info where things go wrong.. So I patched drivers/bus/mhi/pci_generic.c to give some more debug info: oskar@oskar-ThinkPad-X1-Nano-Gen-1:~/src/linux-k

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-17 Thread Oskar Stenman
Hi! CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 143: 0 0 0 0 0 6 0192 PCI-MSI 4194304-edge bhi, mhi, mhi, mhi, mhi Attaching files with full /proc/interrupts and made a small

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-17 Thread Loic Poulain
Hi Oskar, On Wed, 12 May 2021 at 11:10, Oskar Stenman wrote: > > On Wed, 12 May 2021 at 09:35, Aleksander Morgado > wrote: >> >> Or even easier; just completely skip the name of the port and create a >> generic "gsm" connection setting not bound to any specific device. >> >> $ nmcli conn add ty

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-12 Thread Aleksander Morgado
> > After that i could run: > > $ sudo qmicli -p -d /dev/wwan0p2MBIM --device-open-mbim > > --dms-dell-cuskit-unlock=00 > > [11 maj 2021, 23:42:36] -Warning ** [/dev/wwan0p2MBIM] couldn't detect > > transport type of port: couldn't detect device driver > > [11 maj 2021, 23:42:36] -Warning ** [/dev/

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-12 Thread Aleksander Morgado
> > I tried compiling that cuskit patch, but my laptop crashed and no matter > > what i did i ended up with segfaults. Apparently i've been hit by a > > kernel-bug which sidetracked me about 10 hours: > > https://lkml.org/lkml/2021/5/9/67 > > No wonder the produced binaries were throwing segfault

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-12 Thread Bjørn Mork
Oskar Stenman writes: > After that i could run: > $ sudo qmicli -p -d /dev/wwan0p2MBIM --device-open-mbim > --dms-dell-cuskit-unlock=00 > [11 maj 2021, 23:42:36] -Warning ** [/dev/wwan0p2MBIM] couldn't detect > transport type of port: couldn't detect device driver > [11 maj 2021, 23:42:36] -Warni

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-12 Thread Loic Poulain
Hi Oskar, On Wed, 12 May 2021 at 00:06, Oskar Stenman wrote: > > Thanks for the feedback! > > I tried compiling that cuskit patch, but my laptop crashed and no matter what > i did i ended up with segfaults. Apparently i've been hit by a kernel-bug > which sidetracked me about 10 hours: > https:

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Oskar Stenman
Thanks for the feedback! I tried compiling that cuskit patch, but my laptop crashed and no matter what i did i ended up with segfaults. Apparently i've been hit by a kernel-bug which sidetracked me about 10 hours: https://lkml.org/lkml/2021/5/9/67 No wonder the produced binaries were throwing segf

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Bjørn Mork
Aleksander Morgado writes: > Hey, > >> >> The problem we have now is that we no longer have a simple solution to snoop >> the trafic from windows. It was simple with USB but I have no idea how to do >> that with PCIe. I've never worked with PCI-drivers. >> - > > There has to

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Aleksander Morgado
Hey, > > The problem we have now is that we no longer have a simple solution to snoop > the trafic from windows. It was simple with USB but I have no idea how to do > that with PCIe. I've never worked with PCI-drivers. > - There has to be a way to capture the PCI traffic in

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Aleksander Morgado
Hey > > Speaking as someone who ordered (on Sunday) a X1 > > Carbon Gen9 with the SDX55 module and *without* Windows > > preinstalled... :) > > Cool! Is it the same module as in this thread? Definitely interested > in knowing your results. > Delivery in "at least" 6 weeks, so hopefully we'll alre

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Loic Poulain
On Tue, 11 May 2021 at 10:19, Aleksander Morgado wrote: > > Hey, > > > I'm not really familiar with this, but some vendors also implement a > > specific vendor one-shot AT command for unlocking the modem, not sure > > this is the case though. > > As in here for the Fibocom LG850 in Lenovo laptops:

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Aleksander Morgado
Hey, > > I have a draft setup to test the commands provided in the custkit > > tool, but never made it work I'm afraid: > > https://gitlab.freedesktop.org/aleksm/libqmi/-/tree/aleksander/dell-cuskit > > > > That branch introduces a new qmicli --dms-dell-cuskit-unlock=[XX] > > command, where XX is

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Aleksander Morgado
Hey, > I'm not really familiar with this, but some vendors also implement a > specific vendor one-shot AT command for unlocking the modem, not sure > this is the case though. As in here for the Fibocom LG850 in Lenovo laptops: https://github.com/xmm7360/xmm7360-usb-modeswitch But those commands

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Bjørn Mork
Aleksander Morgado writes: > I have a draft setup to test the commands provided in the custkit > tool, but never made it work I'm afraid: > https://gitlab.freedesktop.org/aleksm/libqmi/-/tree/aleksander/dell-cuskit > > That branch introduces a new qmicli --dms-dell-cuskit-unlock=[XX] > command, w

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Loic Poulain
Hi Oskar, Aleksander, +Jarvis On Tue, 11 May 2021 at 09:35, Aleksander Morgado wrote: > > Hey, > > Comments inline below. > > > > > I'm trying to get the modem running on my Thinkpad X1 Nano which i ordered > > with the Snapdragon X55 / 5G Modem. > > > > I contacted Bjørn Mork who seems to be t

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Aleksander Morgado
Hey, Comments inline below. > > I'm trying to get the modem running on my Thinkpad X1 Nano which i ordered > with the Snapdragon X55 / 5G Modem. > > I contacted Bjørn Mork who seems to be the author for some other kernel > modules for usb-devices and we've been digging a bit. He informed me tha