akossh has quit [Quit: Leaving.]
Anasko has quit [Remote host closed the connection]
Anasko has joined #maemo-leste
xmn has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]
xmn has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]
norayr has joined #maemo-leste
xmn has joined #maemo-leste
Anasko has quit [Remote host closed the connection]
Anasko has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]
Anasko has quit [Ping timeout: 244 seconds]
xmn has joined #maemo-leste
pabs3 has quit [Ping timeout: 264 seconds]
pabs3 has joined #maemo-leste
joerg has quit [Ping timeout: 252 seconds]
joerg has joined #maemo-leste
Anasko has joined #maemo-leste
pabs3 has quit [Ping timeout: 248 seconds]
pabs3 has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]
xmn has joined #maemo-leste
fab_ has joined #maemo-leste
xmn has quit [Ping timeout: 260 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #maemo-leste
Twig has joined #maemo-leste
Livio has joined #maemo-leste
Livio has quit [Client Quit]
norayr has quit [Ping timeout: 244 seconds]
akossh has joined #maemo-leste
<Wizzup> freemangordon: sry for not responding wrt ofono, looks like youre on it
<freemangordon> yes, I just sent a patch
<freemangordon> you are in CC
<freemangordon> I think that's the correct way of fixing it, but please have a look if you have some time
mp107 has quit [Quit: The Lounge - https://thelounge.chat]
narodnik has quit [Quit: WeeChat 4.4.3]
Guest9030 has joined #maemo-leste
<freemangordon> with this outgoing calls work, incoming not (as expected)
<freemangordon> have to check if we can get wake-ups via AT interface
<Wizzup> and checking some of the usb ifaces for any data whatsoever doesn't work as wake up?
<freemangordon> checking, like polling?
<Wizzup> select?
<freemangordon> ofono already does that
<freemangordon> but usb itself does not wake-up
<freemangordon> hmm, unfortunately snd_soc is also using n_gsm
DFP has joined #maemo-leste
<freemangordon> otherwise we can use modem wake-up gpio
Livio has joined #maemo-leste
* dsc_ strangles QHeaderView
Guest9030 has left #maemo-leste [#maemo-leste]
Livio has quit [Ping timeout: 264 seconds]
<sicelo> freemangordon: yay, about to build, thanks
<sicelo> what parent was this? i was working off leste/maemo/chimaera-devel, and have no plugins/droid* file. there is plugins/motmdm.c
<freemangordon> no
<freemangordon> check the branch
<sicelo> ah, i see now
<sicelo> i never realized that there was already something of D4 in upstream ofono
<freemangordon> there is
<freemangordon> never tried it though
<freemangordon> hmm I wonder if we can simply export wake-up gpio to userspace and call it a day
<sicelo> (btw, ofono dropped support for mbpi a couple of versions back, so we may want to drop it from list of deps)
<freemangordon> wip branch has no packaging at all
<freemangordon> I want to fix wake-up issue first
<freemangordon> tmlind: even (outgoing) voice calls seem to work, however, as expected, incoming calls, sms, etc do not work
<tmlind> freemangordon: that's cool, so only the wakeup is missing? :)
<sicelo> what is the wakeup issue btw? apologies i've never really followed the quirks of droid 4 modem
<freemangordon> tmlind: what about exporting wake-up gpio?
<freemangordon> and teaching ofono driver on it
<tmlind> hmm yeah interesting idea
<freemangordon> isimmodem already deals with gpios, so support seems to be there already
<tmlind> all it needs is a wake up to kick the usb modem..
<freemangordon> mhm
<tmlind> yup worth a try for sure
<freemangordon> will do
<freemangordon> just wanted to hear from you
<tmlind> the missing 1 bit of data
<freemangordon> :)
<tmlind> so which gpio though? the rx line on uart1?
<freemangordon> no, phy wake-up
<freemangordon> 611 or something
<tmlind> usb phy wake? oh sure if that generates anything
<tmlind> sicelo: the issue is that usb modem never sees any events as they are only routed to the uart
<freemangordon> at least count in /proc/interrupts increases for mdm6600-wake when I send sms
<tmlind> oh that's great
<tmlind> might as well use the padconf interrupt unless the interrupt is in the first gpio bank
<freemangordon> tmlind: BTW, do you know, can we use USB4 to control modem volume etc?
<freemangordon> ttyUSB4 that is
<tmlind> no idea, but let's hope so
<freemangordon> AT interfcae
<freemangordon> hmm
<tmlind> the usb qmi gps interface used to work years ago, then it at some point stopped working
<freemangordon> any idea how to try it?
<freemangordon> as now I have LocationReporting with qmimodem driver
<freemangordon> actually...
<freemangordon> hmm, starting maep does not create any event in ofono
<freemangordon> what interface do we use?
<tmlind> some qmicli command used to work for gps data
<freemangordon> Wizzup: any idea how do we use gps on d4? through ofono?
<sicelo> no, gpsd
<freemangordon> and how does it communicate with the modem?
<tmlind> probably over n_gsm
<tmlind> freemangordon: qmicli --loc-start followed by qmicli --loc-follow-nmea or some similar command used to eventually produce gps info
<freemangordon> no
<freemangordon> this modem does not export LOC service
<freemangordon> but PDS
<freemangordon> "Position Determination Service"
<tmlind> ah ok yeah anyways some commands listed in the qmicli man page
<freemangordon> and qmicli does not seem to support it
<freemangordon> tried already, they fail
<tmlind> hmm it used to long time ago
<freemangordon> maybe they used PDS back then
<tmlind> can't find my old test scripts though
pabs3 has quit [Remote host closed the connection]
<tmlind> heh found something, it's using mmcli though
<tmlind> has these lines:
<tmlind> sudo mmcli -m ${modem} --enable
<tmlind> sudo mmcli -m ${modem} --location-enable-gps-raw
<tmlind> sudo chmod a+r /dev/cdc-wdm0
<tmlind> echo "Now configure and start gpsd to read /dev/cdc-wdm0"
<freemangordon> hmm, weird
<freemangordon> trying to enable loc here using qmicli results in 'invalid service'
<freemangordon> but with ofono I get "disabled'
<tmlind> yeah it might be some long term regression
<tmlind> but mmcli is for modemmanager, no?
<freemangordon> yes
<freemangordon> but afaik it ises libqmi too
<freemangordon> *uses
<tmlind> yeah
<freemangordon> lemme check if I can make it work with ofono
<tmlind> anyways, that used to work, but would take quite a while to produce data
<tmlind> probably some way to inject the a-gps data over qmi too..
<freemangordon> what concerns me more is wake-up
<tmlind> yeah
<freemangordon> so, I admit I lack the knowledge, but which device should wake-up? musb?
pabs3 has joined #maemo-leste
<tmlind> good find if you see some phy interrupts, maybe try with the gpio phy interrupt first, then let's figure out the related padconf interrupt to use for wake-up from any state
narodnik has joined #maemo-leste
<freemangordon> sorry, not sure I understand - I see "3090 4805b000.gpio 21 Edge mdm6600-wake"
<tmlind> hmm yeah.. something should wake up and do a qmi query, so maybe the qmi device on the ohci bus?
<freemangordon> yeah, that's my question: which device shall we wake-up
<tmlind> only the first gpio bank can wake up the soc from idle state, others need to use the related padconf interrupt
<tmlind> isn't there some qmi network device?
<freemangordon> I don;t think soc is idle
<freemangordon> or at least - it is not soc being idle that stops the data flow
<freemangordon> IIUC
<tmlind> yeah the soc could idle between the usb events but probably does not right now..
<freemangordon> we have /dev/cdc-wdmN
<freemangordon> 1..4
<freemangordon> ofono uses cdc-wdm0
<freemangordon> lemme check where it lives
<tmlind> yeah so maybe that device.. unless the phy driver can kick something with no understanding of the qmi
<freemangordon> cdc-wdm0 is on "Bus 002 Device 002: ID 22b8:2a70 Motorola PCS Flash MZ600"
<freemangordon> so it is on the phy, no?
<freemangordon> hmm, how wake-up yourself?
<freemangordon> like, it already calls pm_runtime_get_sync() on wake-up irq?
<tmlind> yeah but nothing kicks the usb modem, not sure what is needed for that
<freemangordon> pulse on AP gpio?
<freemangordon> ok, wait, lemme see if I get that right
<freemangordon> modem triggers wake-up but expect 'we' to wake it up as well?
<tmlind> maybe..
<freemangordon> ugh
<freemangordon> lemme check
<freemangordon> that shall be easy
<tmlind> worth a try
<freemangordon> mhm
<freemangordon> lemme first see if I can get gps working though ofono
<freemangordon> and then will try
<freemangordon> will let you know
<tmlind> the mdm6600 usb phy is physically on the mdm6600 afaik
<freemangordon> ah
<tmlind> sounds like the usb host needs to scan something over the usb based on the wake-up gpio event
<tmlind> usually usb gadgets signal the wake-up with the data lines pulled into some position
<freemangordon> yeah, it seems to be part of the specs
<freemangordon> but, if mdm6600 phy is suspended, it will not do anything
<freemangordon> so, we shall find a way to trigger remote wake-up from the why driver
<freemangordon> like, writing some NOP or dunno
<tmlind> or fake the usb gadget wake-up event to the host with the internal pulls on the data lines
<freemangordon> yes
<freemangordon> but how to do that from the phy driver
<tmlind> but that may not be the issue as the wake-up events never propagate to the qmi
<freemangordon> I think it is not that our devices are suspended
<tmlind> to me it seems we need to somehow signal the qmi layer about the event
<freemangordon> but that remote device (usb in the modem) is suspeneded
<tmlind> well the usb modem will respond to host queries though
<tmlind> the only thing the usb modem can signal is the gadget wake over the data lines
<tmlind> we need to somehow wake the usb host qmi layer..
<freemangordon> ok, lemme disable power-management to see if events will start coming
<tmlind> kind of what we do in ofono for the kick function
<freemangordon> I disabled PM of all USB ports
<freemangordon> to no use
<tmlind> yeah ok
<freemangordon> so it seems that *remote* side needs a kick
<tmlind> remote to what side?
<tmlind> usb peripheral?
<freemangordon> modem itself seems asleep
<freemangordon> so 'we' are AP (soc side) and 'remote' is BP (modem side)
<freemangordon> to me it seems BP USB is sleeping, that's why we don't receive anything
<tmlind> yeah ok could be
<freemangordon> any idea how to send some NOP URB?
<tmlind> from which driver?
<freemangordon> p, li { white-space: pre-wrap; } phy-mapphone-mdm6600
<freemangordon> that's the one that receives wake-up irq
<tmlind> the only thing phy-mapphone-mdm6600 can play with is the gpios and pulls for them
<freemangordon> hmm, ok
<freemangordon> so which driver it is then? cpcap-usb?
<freemangordon> musb?
<tmlind> no, ohci-platform
<freemangordon> ok
<tmlind> ohci-platform or qmi cdc whatever could also claim that gpio wake-up interrupt as a shared interrupt
<freemangordon> mhm
<freemangordon> hmm, seems I was able to enable *something* on d4 in regards to gps :)
<tmlind> cool
<freemangordon> tmlind: it seems I actually get gps data with ofono
<tmlind> freemangordon: nice, so no fixes needed then for gps?
DFP has quit [Quit: Leaving]
<tmlind> freemangordon: hmm so what if the mdm6600 phy sends a KEY_PHONE event, can ofono listen for it?
<freemangordon> perhaps yes, but sounds like a hack
<freemangordon> like, what would ofono do? kick the modem?
<tmlind> heh yeah
<freemangordon> well...
<freemangordon> lemme check if phy kicking the gpio will have any effect
<tmlind> ok
<freemangordon> tmlind: https://pastebin.com/aFfGBqQi
<freemangordon> code https://pastebin.com/L1U12yid
<freemangordon> this is with d4 connected in BP mode
* freemangordon is building d4 kernel
<tmlind> ok
<freemangordon> did you see paste ^^^? does it look like a proper data?
<sicelo> to me, yes
<freemangordon> cool
Livio has joined #maemo-leste
<tmlind> looks like the right data before satellites are seen
<freemangordon> ok
<tmlind> you may need to online the modem if not online though
<freemangordon> yeah
<tmlind> freemangordon: not sure if this helps, but see usb_autopm_get_interface() in drivers/net/usb/qmi_wwan.c.. if qmi_wwan.c added support for oob gpio interrupts, that could be called?
<freemangordon> ok, thanks
<tmlind> heh not sure if we have usb devices with gpio interrupts though :)
Livio has quit [Ping timeout: 264 seconds]
Anasko has quit [Read error: Connection reset by peer]
Livio has joined #maemo-leste
<freemangordon> tmlind: oh, phy-mapphone-mdm6600 already kicks mode_gpio0 (BP wake)
<freemangordon> tmlind: do I get it right that there is a real serial interface between modem and soc?
<freemangordon> not serial over usb?
xmn has joined #maemo-leste
fab_ has quit [Quit: fab_]
Livio_ has joined #maemo-leste
Livio has quit [Ping timeout: 264 seconds]
xmn has quit [Quit: ZZZzzz…]
xmn has joined #maemo-leste
akossh has quit [Quit: Leaving.]
Twig has quit [Remote host closed the connection]
Livio_ has quit [Ping timeout: 264 seconds]
attah has quit [Ping timeout: 252 seconds]
attah has joined #maemo-leste