ChanServ changed the topic of #linux-msm to:
cxl000 has quit [Remote host closed the connection]
cxl000 has joined #linux-msm
cxl000 has quit [Remote host closed the connection]
cxl000 has joined #linux-msm
threader has joined #linux-msm
<bamse> minecrell: the advantage is the solution is pretty much drop-in...while exposing the hardware directly requires a bunch of new stuff exposed in linux
threader has quit [Quit: Leaving]
hexdump0815 has joined #linux-msm
hexdump01 has quit [Ping timeout: 480 seconds]
marvin24_ has joined #linux-msm
hexdump01 has joined #linux-msm
marvin24 has quit [Ping timeout: 480 seconds]
hexdump0815 has quit [Ping timeout: 480 seconds]
pevik_ has joined #linux-msm
aedancullen has quit [Server closed connection]
aedancullen has joined #linux-msm
alexeymin has quit [Server closed connection]
alexeymin has joined #linux-msm
sboyd_ has quit [Read error: Connection reset by peer]
sboyd_ has joined #linux-msm
cxl000 has quit [Quit: Leaving]
cxl000 has joined #linux-msm
<Mis012[m]> bamse: you would still need linux-side drivers...? or would that be in userspace
<Mis012[m]> bamse: in any case, exposing it in Linux is cleaner, and I already wrote the drivers
svarbanov has joined #linux-msm
flow__ has quit []
flowriser has joined #linux-msm
svarbanov has quit [Ping timeout: 480 seconds]
svarbanov has joined #linux-msm
pevik_ has quit [Ping timeout: 480 seconds]
<bamse> Mis012[m]: i definitely would need linux-side driver as well...it's just that they already exist
<bamse> Mis012[m]: or could be wirtten as normal iio drivers and reused by others
<Mis012[m]> bamse: my driver allows reusing existing iio drivers, how's that worse?
<Mis012[m]> could probably also reuse existing BLSP drivers fwiw, but still not sure about the interrupt lines
<bamse> right, the iio drivers would be the same between the two cases...and the i2c bus could be handled by virtio-i2c on the linux side
<bamse> i don't know what kind of flexibility you have on the interrupt routing, but that would be quite neat
<bamse> i just see the drop-in ssc firmware as a somewhat easier path to push out broadly...but i guess it doesn't matter as long as the platform vendor isn't playing along
<Mis012[m]> bamse: I mean, I will be looking into making foss ssc firmware at some point, but arguably changing a few lines in the ssmu config array in hypervisor sources would be a lot simpler
<Mis012[m]> would still need to add a hypervisor call for enabling the one clock that is not in it's own smmu zone, but it's not that hard either
pevik_ has joined #linux-msm
pevik_ has quit []
pevik_ has joined #linux-msm
<deathmist> and I'll never see this on my retail MSM8998 device with secure boot enabled :/
<minecrell> Mis012[m]: I'd kind of expect that there is something funny to route the interrupts. I mean, 8916 has something funny to route UART and I2C interrupts to wcnss and I have no idea why qcom considered that useful
<minecrell> same for modem actually
<minecrell> the registers are called like TCSR_PHSS_UART_MSS_INT_SEL (see APQ8016E TRM)
<minecrell> eh, HRD actually
<minecrell> Although I guess you want the reverse
<minecrell> I guess if anything except APQ8016E had documentation you'd just read that to have the answer :/ This kind of stuff is briefly mentioned in the docs
<Mis012[m]> minecrell: there *are* such registers, but not for the interrupts that I am interested in afaict
<Mis012[m]> deathmist: I can send you hypervisor elf with debugging symbols if you want to look for a vulnerability
<Mis012[m]> LPASS, SSC and MSS
<Mis012[m]> neither one is the one that I care for :P
<deathmist> @Mis012 you really think I could find anything? I barely managed write a simple kernel driver...
<Mis012[m]> well, that's a completely different skillset :P
<minecrell> Mis012[m]: I think I'm not gonna click that link, but it would be fun if this was actually a regular blsp thing and it's just routed to SSC with such PHSS registers
<Mis012[m]> well... it definitely is a regular BLSP thing, the only question is how the interrupts are routed
<Mis012[m]> and I can promise you that the link only contains non-copyrightable facts :P
<Mis012[m]> it's an excerpt from the FLAT
<Mis012[m]> but with my gedit highlighting
<Mis012[m]> so it's quite a bit more pleasant to read
<minecrell> shrug, I have limited interest in the newer platforms anyway so no need to risk anything :)
<bamse> deathmist: unfortunately you won't have the custom ssc firmware signed for your 8998 device either...so neither option is likely to work for you
<Mis012[m]> worst case could swap the SoC
<minecrell> Mis012[m]: still waiting for you to proof that this is feasible xD
<Mis012[m]> best case would probably be figuring out that they used a strap and not the fuse
<Mis012[m]> but that's not exactly likely
<Mis012[m]> minecrell: just the issue with msm8998 is that it's PoP
<minecrell> Mis012[m]: Fair enough, I would be also convinced if you replace the 8916 in your samsung-a3
<minecrell> iirc 8916 is not
<Mis012[m]> yeah, it's not
<Mis012[m]> but I'm not sure if you can do it by hand
<Mis012[m]> guess it might be small enough
<Mis012[m]> will you buy me a hot air station so I can try? :P
<minecrell> if you give me the money I suppose I could buy it for you
<Mis012[m]> don't think that counts :P
<Mis012[m]> minecrell: hm, there is no TCSR_PHSS_UART_APSS_INT_SEL on msm8916 either
<Mis012[m]> how does that work then
<minecrell> Mis012[m]: The interrupts seem to go to both APSS and TCSR, and TCSR can distribute them to other peripherals. See e.g. figure 6-38 on page 1768 in the TRM
<Mis012[m]> hm, right
<minecrell> so I suppose it's not impossible that if they considered SSC to be the main target for the SSC-specific BLSP, that there might be no way to route it to APSS
<Mis012[m]> huh, 8916 QUP already had NOISE_REJECTION? :D
<minecrell> Not aware of any usages of that though
<Mis012[m]> good, that means there is no shitty board design happening :P
<Mis012[m]> >For recovery, retransmit the data and revise the hardware.
<Mis012[m]> like the data was so important that it has to be retransmitted even though the prototype should clearly be scrapped :P
<Mis012[m]> minecrell: hm, so it seems that QUP1_IRQ is directly connected to both APSS and TCSR
<minecrell> yes, that's what I said right? :D
<Mis012[m]> I hoped there would be some mux
<Mis012[m]> so that I can find it based on register name :P
pevik_ has quit [Ping timeout: 480 seconds]
animist has quit [Server closed connection]
animist has joined #linux-msm
MatrixTravelerbot[m] has quit [Server closed connection]
MatrixTravelerbot[m] has joined #linux-msm
cxl000 has quit [Quit: Leaving]