<konradybcio> here it's rb5 messing with my plans again :P
addcninblue has joined #linux-msm
addcninblue has quit [Remote host closed the connection]
<bamse> konradybcio: perst et al?
<konradybcio> yep
<konradybcio> i managed to commonize it, say for a difference or two in rb5
<bamse> i think it's best to push them out to the board, that way we don't get surprises when people change the common thing
<konradybcio> well, if you say so, i might just do that
<konradybcio> though rb5 only adds output-low on top of the common thing
<bamse> which should be unecessary to do...
<konradybcio> do you have this abomination of a pcb perhaps?
<bamse> which pcb? rb5?
<konradybcio> yep
<bamse> of course
<konradybcio> would you mind checking if all of that works without output-low on perst pins?
<konradybcio> also, would you mind if I kept gpio.h include in soc tree and rid it from board ones? it's just useless duplication as (almost) every board that boots to anything needs to set some kind of gpios
<bamse> gpio.h in the dtsi sounds good
<konradybcio> great, and the sdhci sleep patch seems like a perfect excuse to slap it in there
<konradybcio> or should i make it separate..?
<bamse> regarding perst, we request that "asserted", so as long as it's ACTIVE_LOW in DT the only thing output-low does is gives us slightly more time in the asserted state - if the bootloader for some reason left it HIGH
<bamse> does the sleep state have anything to do with the gpio include?
<konradybcio> well, there goes the anser
<konradybcio> answer*
<konradybcio> separate it is
<bamse> :)
<bamse> i picked up most of your patches btw
<konradybcio> thanks :)
<konradybcio> this time i'm doing everything so that we don't get 660 all over again..
<konradybcio> ..which is shelved until we fix smmu, really, apart from some smaller patches that i should post later this week
<konradybcio> do you think this output-low thing could be applied globally?
<konradybcio> pulling the pin low is a soc-specific, anyway
goepsilongo has joined #linux-msm
goepsilongo has quit [Remote host closed the connection]
<bamse> i don't think we need to output-low anywhere
<bamse> and it's not really soc specific, because RST# is an active-low line per the pcie specification
<bamse> but as it's just a gpio there's nothing preventing someone from moving it...
<konradybcio> but I do wonder whether the half-a-second or so between tlmm and pcie probe is mission critical
<konradybcio> but then what would it be mission critical for.. pcie devices have to wait to be discovered anyway..
<bamse> the output-low would be applied as the pcie controller is being probed
<konradybcio> oh right because the pins have to be assigned, the definitions alone don't do anything
<bamse> so it's a fraction of a second and if we're in need of that, then we're too close anyways
<konradybcio> so do I get the green light to yank output-low out?
<bamse> yes
<bamse> and i picked up the 4 patches you just posted
<konradybcio> great, rest of the team will be positively surprised when they wake up :)
<konradybcio> (it's 2:42 atm over here)
<konradybcio> in any case, I sent the rest that I was meaning to and I'm heading to sleep, gn
svarbanov has quit [Ping timeout: 480 seconds]
lumag_ has quit [Ping timeout: 480 seconds]
Majiir has joined #linux-msm
Majiir has quit [Remote host closed the connection]
Forsaken87 has joined #linux-msm
Forsaken87 has quit [Remote host closed the connection]
Gurty has joined #linux-msm
Gurty has quit [Remote host closed the connection]
hexdump01 has joined #linux-msm
hexdump0815 has quit [Ping timeout: 480 seconds]
jca7 has joined #linux-msm
jca7 has quit [Remote host closed the connection]
Danct12 has joined #linux-msm
bhsharma_ has quit []
bhsharma_ has joined #linux-msm
bhsharma_ has quit []
bhsharma has joined #linux-msm
cmeerw has joined #linux-msm
svarbanov has joined #linux-msm
cmeerw has quit [Ping timeout: 480 seconds]
ekleog7 has joined #linux-msm
ekleog7 has quit [Remote host closed the connection]
Draylor has joined #linux-msm
Draylor has quit [Remote host closed the connection]
deed02392 has joined #linux-msm
deed02392 has quit [Remote host closed the connection]
mani_s has joined #linux-msm
azrdev has joined #linux-msm
azrdev has quit [Remote host closed the connection]
Aleksandr2-t has joined #linux-msm
Aleksandr2-t has quit [Remote host closed the connection]
connrs_ has joined #linux-msm
connrs_ has quit [Remote host closed the connection]
z1410 has joined #linux-msm
z1410 has quit [Remote host closed the connection]
mani_s has quit [Quit: Leaving]
mani_s has joined #linux-msm
mani_s has quit []
mani_s has joined #linux-msm
mani_s has quit []
mani_s has joined #linux-msm
mani_s has quit []
mani_s has joined #linux-msm
janne has joined #linux-msm
janne has quit [Remote host closed the connection]
sjlnk5 has joined #linux-msm
sjlnk5 has quit [Remote host closed the connection]
GaryKim[m]1 has joined #linux-msm
GaryKim[m]1 has quit [Remote host closed the connection]
prawn has joined #linux-msm
mani_s has quit [Ping timeout: 480 seconds]
lumag_ has joined #linux-msm
null4bl3 has joined #linux-msm
null4bl3 has quit [Remote host closed the connection]
jbetz has joined #linux-msm
jbetz has quit [Remote host closed the connection]
cxl000 has quit [Remote host closed the connection]
cxl000 has joined #linux-msm
tamiko has joined #linux-msm
tamiko is now known as Guest2381
Guest2381 has quit [Remote host closed the connection]
hippo has joined #linux-msm
hippo has quit [Remote host closed the connection]
mani_s has joined #linux-msm
maxpowa4 has joined #linux-msm
maxpowa4 has quit [Remote host closed the connection]
Cale has joined #linux-msm
Cale has quit [Read error: Connection reset by peer]
mani_s has quit [Ping timeout: 480 seconds]
glaciurso has joined #linux-msm
glaciurso has quit [Remote host closed the connection]
mani_s has joined #linux-msm
lumag_ has quit [Ping timeout: 480 seconds]
Sergey2-t has joined #linux-msm
Sergey2-t has quit [Remote host closed the connection]
lumag_ has joined #linux-msm
supaman has joined #linux-msm
supaman has quit [Remote host closed the connection]
lumag_ has quit [Ping timeout: 480 seconds]
lumag_ has joined #linux-msm
lumag has quit [Ping timeout: 480 seconds]
jhugo has joined #linux-msm
mani_s has quit [Quit: Leaving]
mani_s has joined #linux-msm
scgtrp has joined #linux-msm
scgtrp has quit [Remote host closed the connection]
Almindor has joined #linux-msm
Almindor has quit [Remote host closed the connection]
cmeerw has joined #linux-msm
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #linux-msm
mani_s has quit [Quit: Leaving]
mani_s has joined #linux-msm
Daanct12 has joined #linux-msm
Danct12 has quit [Ping timeout: 480 seconds]
garo has joined #linux-msm
garo has quit [Remote host closed the connection]
lumag__ has joined #linux-msm
lumag_ has quit [Read error: Connection reset by peer]
lumag has joined #linux-msm
gmeyer has joined #linux-msm
gmeyer has quit [autokilled: Suspected spammer. Mail support@oftc.net with questions (2021-06-16 16:36:00)]
Bufalo-t has joined #linux-msm
Bufalo-t has quit [Remote host closed the connection]
Daanct12 has quit [Quit: Quitting]
Danct12 has joined #linux-msm
lumag__ has quit [Ping timeout: 480 seconds]
lumag__ has joined #linux-msm
ShadowJK has joined #linux-msm
ShadowJK has quit [Remote host closed the connection]
<minecrell> bamse: I noticed that in the commit where you added rpmsg_char the example you listed is the "DIAG_CNTL" channel (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c0cdc19f84a4712cf74888f83af286e3c2e14efd)
<minecrell> bamse: Do you know anything about the difference between all the DIAG channels provided by the modem? On msm8916 there is DIAG, DIAG_CMD, DIAG_CNTL, DIAG_2 and DIAG_2_CMD
<minecrell> bamse: I was thinking about adding the diag port to my WWAN rpmsg control driver but to be honest I have no idea (a) which one of the channels is the right one (b) how to use diag or even (c) what to do with it :D
<Mis012[m]> you can use it to change IMEI :P
<Mis012[m]> a very common usecase
<Mis012[m]> `echo -n "123456" > /sys/class/qcom_diag/imei`
<bamse> minecrell: from our point of view diag is all about routing messages between some PC tool and firmware running on the various remote processors (in particular modem)
<bamse> minecrell: qualcomm does this with the in-kernel diag driver, but there's github.com/andersson/diag that implements this in userspace
<bamse> minecrell: unfortunately i don't remember the exact details of the channels, but there's router/peripheral-rpmsg.c that deals with the interaction with those channels
<minecrell> bamse: Ah you use both DIAG_CNTL/DIAG_CMD, so it doesn't seem to map to a single channel (somehow it does for MHI, strange)
<bamse> right, there's data, control signals and some other set of control signals passed over the 3 channels
<minecrell> I guess I'll just leave that as-is then, it's not really priority to have that through the WWAN subsystem
<bamse> and what you can do with diag...the answer is pretty much "nothing"...it just tunnels data between the qualcomm's proprietary tools and the firmware
<bamse> there's some potential changes to that in the pipe, but right now that's what you have
<minecrell> bamse: Ah I see so your tool also just allows then using the proprietary tools via USB? :D
<bamse> well, my tool allows connecting to the pc using usb, serial or sockets...i typically just use the last one
<bamse> and then there's "send_data", which i use on the device itself for sending short messages
<bamse> e.g. you can invoke "send_data 123 0 1 2 3", which will send a "ping" to the modem and if things works you get "123 0 1 2 3" back
<minecrell> bamse: Is there anything useful (other than a ping) that can be done with that, or is the useful stuff only possible with the proprietary tools?
<bamse> yes, i have similar sequences for invoking the various types of crashes on all the remoteprocs
<bamse> and we've used it to do nv read and writes
<bamse> but my efforts to get permission to bundle that up in a nice tool has yet to pay off :(
<bamse> that said, there are some progress in that space, so we might see some changes there soon
<minecrell> bamse:There is a sequence to make the remoteproc crash for testing?
<bamse> yes
<minecrell> bamse: Hmm, I've been looking for some way to crash the modem remoteproc for testing my bam-dmux driver, would be really helpful if you could share that at some point :)
<bamse> sounds like motivation enough for me, i will kick the thread
<bamse> minecrell: what's the status of the bam dmux, is it heading upstream?
<minecrell> bamse: I'm hoping to send an initial version sometime after the control part lands (https://lore.kernel.org/linux-arm-msm/20210615133229.213064-1-stephan@gerhold.net/)
<minecrell> bamse: (If you have some time I'm looking for some feedback on the rpmsg parts for this one ^ btw :) )
<bamse> i saw it, haven't had time to look at it yet
<bamse> really nice to see the progress though!
<minecrell> bamse: Generally the bam-dmux driver seems to work just fine, didn't get many complaints and it has been in postmarketOS for a while already
<bamse> i read the code a while ago and liked what i saw
<minecrell> Perhaps it's not too resilient yet to edge cases like the remoteproc crashing, but I'm probably going to try to address that in some follow-up patches later
<Mis012[m]> bamse: argh, looks like the hexagon has a watchdog
<Mis012[m]> do you think it could bring the whole device down?
<bamse> yes, it has a watchdog...typically wired to the remoteproc driver so it can restart the remoteproc if the firmware isn't petting the watchdog
<bamse> and no i don't think it should bring the system down...
<Mis012[m]> bamse: it reboots with unchanged slpi fw, which is understandable because it will have different sensor configuration than my device
<Mis012[m]> bamse: but it also reboots with me putting an infinite loop in the earliest entry point I could find...
<bamse> so in that setup, what did you change?
<Mis012[m]> it should show up as a link
<bamse> or in what scenario is it rebooting? when you load the firmware?
<Mis012[m]> I replace the fw and boot lineageos
<Mis012[m]> (downstream)
<bamse> so it works, then you replace the firmware and it starts the whole thing?
<Mis012[m]> after I manged to sign it, it reboots before reaching boot animation
<Mis012[m]> with it not being signed, it just didn't load it but booted up fine
<Mis012[m]> bamse: though I'm not using `_v2`, because those build scripts are plain broken
<Mis012[m]> I have to sign the binary on my own using a different copy of sectools
<Mis012[m]> and I don't even know if I'm using the right one
<Mis012[m]> `common/sectools/sectools.py secimage -i slpi_proc/obj_v1/qdsp6v5_ReleaseG/unsigned/slpi.mbn -g slpi -c slpi_proc/sectools/config/integration/secimagev2.xml --cfg_soc_hw_version 0x30020000 --cfg_in_use_soc_hw_version 1 --cfg_soc_vers 0x3005 -sa -o slpi_proc/build/bsp/multi_pd_img/build/AAAAAAAA/sign"`
<Mis012[m]> and then `split> ../qdsp6/scripts/pil-splitter.py ../build/bsp/multi_pd_img/build/AAAAAAAA/sign/default/slpi/slpi.mbn slpi_v2`
<Mis012[m]> building `_v2` (and doing it "properly" in general) would require the `sectools` inside `slpi_proc` to not be hopelessy broken
cmeerw has quit [Ping timeout: 480 seconds]
nmg has joined #linux-msm
nmg has quit [Remote host closed the connection]
Techcable22 has joined #linux-msm
Techcable22 has quit [Remote host closed the connection]
thurs-4703661 has joined #linux-msm
thurs-4703661 has quit [Remote host closed the connection]
PSA9 has joined #linux-msm
PSA9 has quit [Remote host closed the connection]
Danct12 is now known as melt
melt has quit []
Danct12 has joined #linux-msm
sharewher810232 has joined #linux-msm
sharewher810232 has quit [Remote host closed the connection]
cxl000 has quit []
cxl000 has joined #linux-msm