elastic_dog has quit [Read error: Connection reset by peer]
elastic_dog has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
Danct12 has joined #linux-amlogic
hexdump0815 has quit [Ping timeout: 276 seconds]
hexdump0815 has joined #linux-amlogic
f_[xmpp] has quit [Ping timeout: 250 seconds]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
naoki has joined #linux-amlogic
ldevulder has joined #linux-amlogic
iprusov has joined #linux-amlogic
<rockosov>
jbrunet: Hello Jerome! First of all, thank you very much for detailed review of my meson a1 clock driver, appreciate it! I have one dilemma in the A1 clock driver implementation. It's related to pwm clocks. As you can see pwm clocks have different parents connected through the pwm_sel mux. One of them is RTC clock. We know that usually RTC clock is more accurate and sometimes it must be
<rockosov>
selected by default depending on what you connected to the SoC PWM I/O. So if we mark pwm clocks with auto-reparent flag and use .set_rate() callback, sometimes CCF logic will not choose RTC clock. If we open pwm_sel to device tree public IP (dt-bindings) and mark pwm clock with NO_REPARENT flag, we will not have ability to set_rate automatically for some pwm clocks which should not be
<rockosov>
connected with RTC. Do you know any way to resolve this problem and implement both ways together: auto-reparent and static parent binding? Appreciate any help, thank you for your time.
George41 has joined #linux-amlogic
naoki has quit [Quit: naoki]
JohnnyonFlame has joined #linux-amlogic
JohnnyonF has quit [Ping timeout: 255 seconds]
Danct12 has quit [Quit: WeeChat 3.8]
<phh>
narmstrong: wrt bypassing esparser, I would like to take a look at it. do you know what does the decoder take as input (let's say h264 for the moment)? so far it seems to me that the only thing esparser does is filling the vififo, and that bypassing esparser is "simply" setting vdec's vififo register to manual input, and the input format of vdec is still just NALs. Does that match your knowledge?
buzzmarshall has joined #linux-amlogic
<narmstrong>
phh: probably, I haven't looked at that, it was what mjourdan figured out with he wrote the multi h264 decoder
<narmstrong>
phh: did you see the WiP multi h264 decoder he wrote just before disappearing ?
<narmstrong>
he last commited exactly 3y ago today :-(
<phh>
thanks
<narmstrong>
it was close to be functionnal, and his plan was to convert the vp9 & hevc to direct input once the h264 was working
<narmstrong>
honestly I'll split the "old" and "new" into 2 drivers because the sequencing is very different, and it would greatly simplify the code
<narmstrong>
be first we must get rid of esparser for the new codecs so we can correctly track buffer lifetime
<phh>
i gidn't plan to go the multi route, but well
<narmstrong>
honestly, I tried fixing it but it's very hard to maintain both routes working with a common code, and it will be even worse when introducing direct input & multi output buffer formats
<phh>
ok, good to know
<rockosov>
narmstrong: Hello Neil! Could you please take a look at the above question about clk re-parent problem? Thanks in advance for any suggestion.
<phh>
doesn't multi end up being a stateless codec?
<narmstrong>
phh: hard to say, but perhaps we could reconstruct NAL units/buffers from userspace state and feed the decoder, or reverse the metadata buffer and fill it
<narmstrong>
rockosov: hmm, indeed it's a complex issue, there's no "preferred parent" stuff, perhaps find why the other parent is selected ? perhaps calculation is slighly off
<narmstrong>
rockosov: a way would be to set NO_REPARENT and specify parent in DT with assigned-clock-parents
<narmstrong>
rockosov: with this it would match the behavior of the GX/G12 PWM clk selection
f_ has joined #linux-amlogic
f_ has quit [Client Quit]
f_ has joined #linux-amlogic
<f_>
HackerKkillinghi, narmstrong: Got IR to work!
<f_>
I just had to enable the NEC decoder....XD
<f_>
Which meant rebuilding the kernel.
<f_>
HackerKkillinghi: I'll send a MR, adding support for the remote!
<rockosov>
narmstrong: Is it any reason to not have 'preferred parent' functionality? By design? Calculation may be wrong, but when we calculate clk rates properly, several clock parents can fit final rate, but they will have different HW parameters, for example accuracy (sysclk vs rtc clock)
<narmstrong>
f_: nice! I was wondering about that
<f_>
Yeah.
<narmstrong>
rockosov: no idea, I think accuracy is a kind of "generic" way to prefer a clock over another
<f_>
The `dmesg` error I pasted, saying that it was interesting, was actually telling that the IR used the NEC protocol, but that the kernel couldn't handle it because, the NEC decoder wasn't there.
<f_>
HackerKkillinghi: Also
<f_>
Both the IR remote that came with my device AND an aftermarket one work!
<f_>
HackerKkillinghi: You said you knew that one day we'll have a working IR remote without any additional configuration.
<f_>
Well. Today is the day!
<f_>
Anyway, I'll work on SXMO's "TV mode". Cya
GNUtoo has quit [Remote host closed the connection]
<rockosov>
narmstrong: so, may be it's time to propose 'preferred parent' optional feature to CCF :)
<narmstrong>
rockosov: Yea probably, but meantime sticking to NO_REPARENT and specifying assigned-clock-parents would be the best way to go
<rockosov>
narmstrong: NO_REPARENT totally disable re-parent mechanism, without assigned-clock-parents there is no way to set parent by rate propagation.
<narmstrong>
rockosov: rate propagation will work but with parent programmed in register at probe
<narmstrong>
so it's not a big deal
<rockosov>
narmstrong: yep, rate propagation will work only for static parent, set in the probe() during assigned-clocks handling. I mean auto-reparent process will not work. But yes, maybe it's not a big deal.
<HackerKkillinghi>
<f_> "Anyway, I'll work on SXMO's "..." <- Good kbd are useless now
<HackerKkillinghi>
u only need alot of different remote
<f_>
Sorry but what do you mean by that?
<f_>
I didn't fully understand.
<HackerKkillinghi>
f_: Joke
<f_>
¯\_(ツ)_/¯ Heh. That's why you said that we needed lots of different remotes
<f_>
So yeah, it works.
<HackerKkillinghi>
XD yeah
<f_>
Without needing anything else.
<f_>
I don't even need to use lirc!
<HackerKkillinghi>
XD
<f_>
It's recognised as an input by libinput/Sway, so yeah!
<f_>
It's basically handled just like a keyboard!
<HackerKkillinghi>
Ah
<f_>
Some of the buttons actually map to keyboard buttons!
<HackerKkillinghi>
Have you
<f_>
OK maps to Enter, for example!
<f_>
HackerKkillinghi: Yes?
<HackerKkillinghi>
HackerKkillinghi: make a mr for fixing that
<f_>
(nice one, appservice-irc)
<f_>
I'll make one shortly.
<f_>
And update the wiki page.
<HackerKkillinghi>
f_: i mean
<HackerKkillinghi>
make a mr on pm os for adding the ir nfc config in the kernel
<f_>
Yes..
<f_>
I just said I'll make one shortly. I'm testing and will create one later today.
<HackerKkillinghi>
f_: Ok
<f_>
So that others can benefit from the ultimate fix to my mistake!
<HackerKkillinghi>
f_: check yourmartix
<f_>
HackerKkillinghi: My matrix client doesn't work at the moment so I can't really check.
<HackerKkillinghi>
f_: XD
<f_>
I have to recompile it.
<f_>
Oh, and Element's unusable.
<HackerKkillinghi>
f_: I sented a dm to u
<f_>
Maybe send a PM on IRC? That'll be much easier.
<f_>
Or on XMPP if you use it?
gis has quit [Quit: leaving]
gis has joined #linux-amlogic
vagrantc has joined #linux-amlogic
GNUtoo has joined #linux-amlogic
GNUtoo has quit [Remote host closed the connection]