narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
Guest613 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest3489
vagrantc has joined #linux-amlogic
Guest3489 has quit [Read error: Connection reset by peer]
sputnik has joined #linux-amlogic
sputnik is now known as Guest2632
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-amlogic
<cyrozap> ndufresne: Regarding the MediaTek video encoder/decoder RE discussion we had a couple days ago, if you're interested in reverse engineering that MediaTek encoder/decoder hardware, the MT8183's VPU firmware is actually run on an ARMv7-M core, not an MD32 (MediaTek custom ISA) core. In fact, IIRC, the MT8183 actually completely lacks an MD32 core, so it's not a suitable target for MD32 ISA RE. But
<cyrozap> because the MT8183 VPU firmware is being run on an ARM core, there's no need to do any ISA RE in order to disassemble the binary (which is a standard ELF file) and understand the video codec hardware itself, making it an ideal target if you're more interested in doing that.
<cyrozap> That firmware does more stuff than just manage the video codec, why it's called "SCP" in the MT8173 and not "VPU" like it was in the MT8173, but that should still contain some code for talking with the host and the video codec.
<cyrozap> Also, this is the main driver, but I'm not sure where exactly the split is between what the kernel is responsible for and what the firmware is responsible for: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/media/platform/mtk-vcodec
<cyrozap> Oops, typo: "...why it's called "SCP" in the *MT8183* and not "VPU" like it was in the MT8173..."
camus has joined #linux-amlogic
Guest2632 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest3097
Guest3097 has quit [Remote host closed the connection]
chewitt_ has quit [Read error: Connection reset by peer]
chewitt has joined #linux-amlogic
sputnik has joined #linux-amlogic
sputnik is now known as Guest1353
Guest1353 has quit [Remote host closed the connection]
buzzmarshall has quit [Quit: Konversation terminated!]
sputnik has joined #linux-amlogic
sputnik is now known as Guest4231
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-amlogic
<cyrozap> In case anyone cares about the MediaTek MT8183 SCP stuff, it seems the firmware is just a proprietary build of Chromium OS's EC (https://chromium.googlesource.com/chromiumos/platform/ec/), and you can probably get most of the functions auto-named by building the "kukui_scp" board target from the v2.0.0 tag (or maybe one of the *-kukui-* tags?), importing that ELF into Ghidra/IDA, generating
<cyrozap> signatures for all the functions, and then using those signatures with the linux-firmware `scp.img`.
<cyrozap> Anyways, I don't want to clutter an Amlogic channel with MediaTek RE talk, so if anyone wants to discuss this further, you can find me in #postmarketos-lowlevel on OFTC (#lowlevel:postmarketos.org on Matrix).
montjoie has quit [*.net *.split]
massoud has quit [*.net *.split]
massoud has joined #linux-amlogic
montjoie has joined #linux-amlogic
camus has quit [Ping timeout: 256 seconds]
camus has joined #linux-amlogic
Guest4231 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest4089
Guest4089 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest7602
vagrantc has quit [Quit: leaving]
Guest7602 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest8543
Guest8543 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest232
tdebrouw has joined #linux-amlogic
Guest232 has quit [Remote host closed the connection]
chewitt_ has quit [Read error: Connection reset by peer]
sputnik has joined #linux-amlogic
sputnik is now known as Guest8883
chewitt has joined #linux-amlogic
Guest8883 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest6170
Guest6170 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest8709
Guest8709 has quit [Remote host closed the connection]
chewitt_ has joined #linux-amlogic
sputnik has joined #linux-amlogic
sputnik is now known as Guest1760
chewitt has quit [Ping timeout: 264 seconds]
camus has quit [Ping timeout: 252 seconds]
camus has joined #linux-amlogic
<narmstrong> cyrozap: the MT8183 lacks any dedicated cpu to run the vdec/venc/mdp firmware
<narmstrong> cyrozap: on their bsp, they actually run this from user-space
<narmstrong> cyrozap: but for chromeOS MTK developed a firmware in the SCP m4 coproc, that wasn't designed for that
<narmstrong> this is why is does only stateless, the user-space firmware does statefull
<narmstrong> but the underlying HW is quite complex and well hidden
Guest1760 has quit [Remote host closed the connection]
<cyrozap> narmstrong: Yeah, that's what I gathered looking at the kernel code and chromiumos-ec sources, but thank you for the confirming that.
<cyrozap> "this is why is does only stateless, the user-space firmware does statefull" <- I'm having trouble understaning this. Do you mean that the hardware is stateless, and the firmware and bsp code make it stateful and hide hardware details?
sputnik has joined #linux-amlogic
sputnik is now known as Guest6992
Guest6992 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest9175
Guest9175 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest4751
Guest4751 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest9625
<narmstrong> yep
<narmstrong> the HW is just a bunch of accelerators (like in any SoCs)
Guest9625 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest2559
camus has quit [Ping timeout: 256 seconds]
camus has joined #linux-amlogic
Guest2559 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest3484
sputnik has joined #linux-amlogic
sputnik is now known as Guest3542
Guest3484 has quit [Ping timeout: 264 seconds]
Guest3542 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest5508
sputnik_ has joined #linux-amlogic
Guest5508 has quit [Remote host closed the connection]
sputnik_ has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
sputnik is now known as Guest4933
sputnik_ has quit [Client Quit]
Guest4933 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
sputnik is now known as Guest8407
Guest8407 has quit [Client Quit]
chewitt_ is now known as chewitt
sputnik_ has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest3496
Darkmatt- has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 256 seconds]
anessen97 has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
jernej has joined #linux-amlogic
vagrantc has joined #linux-amlogic
anessen97 has quit [Remote host closed the connection]
warpme__ has joined #linux-amlogic
anessen97 has joined #linux-amlogic
anessen97 has quit [Quit: The Lounge - https://thelounge.chat]
anessen97 has joined #linux-amlogic
anessen97 has quit [Quit: The Lounge - https://thelounge.chat]
anessen97 has joined #linux-amlogic
tdebrouw has quit [Ping timeout: 256 seconds]
pulpoff has joined #linux-amlogic
pulpoff has quit [Ping timeout: 256 seconds]
anessen97 has quit [Remote host closed the connection]
anessen97 has joined #linux-amlogic
jernej has quit [Ping timeout: 264 seconds]
anessen97 has quit [*.net *.split]
vagrantc has quit [*.net *.split]
Darkmatt- has quit [*.net *.split]
chewitt has quit [*.net *.split]
khilman has quit [*.net *.split]
Tartarus has quit [*.net *.split]
massoud has quit [*.net *.split]
Terry1373 has quit [*.net *.split]
rapha has quit [*.net *.split]
dliviu has quit [*.net *.split]
gbisson has quit [*.net *.split]
kilobyte_ch has quit [*.net *.split]
warpme__ has quit [*.net *.split]
steev has quit [*.net *.split]
ccaione has quit [*.net *.split]
rockosov has quit [*.net *.split]
cyrozap has quit [*.net *.split]
BlueMatt has quit [*.net *.split]
ndufresne has quit [*.net *.split]
Guest3496 has quit [Remote host closed the connection]
vagrantc has joined #linux-amlogic
anessen97 has joined #linux-amlogic
warpme__ has joined #linux-amlogic
Darkmatt- has joined #linux-amlogic
khilman has joined #linux-amlogic
massoud has joined #linux-amlogic
chewitt has joined #linux-amlogic
BlueMatt has joined #linux-amlogic
rapha has joined #linux-amlogic
ndufresne has joined #linux-amlogic
ccaione has joined #linux-amlogic
kilobyte_ch has joined #linux-amlogic
cyrozap has joined #linux-amlogic
Terry1373 has joined #linux-amlogic
Tartarus has joined #linux-amlogic
rockosov has joined #linux-amlogic
gbisson has joined #linux-amlogic
dliviu has joined #linux-amlogic
steev has joined #linux-amlogic
sputnik has joined #linux-amlogic
sputnik is now known as Guest4826
Guest4826 has quit [Remote host closed the connection]
sputnik has joined #linux-amlogic
sputnik is now known as Guest5448
warpme__ has quit [Quit: Connection closed for inactivity]