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
shoragan has quit [Quit: quit]
shoragan has joined #linux-amlogic
shoragan has quit [Read error: Connection reset by peer]
naoki has joined #linux-amlogic
shoragan has joined #linux-amlogic
Danct12 has quit [Server closed connection]
Danct12 has joined #linux-amlogic
zkrx has quit [Ping timeout: 264 seconds]
buzzmarshall has quit [Quit: Konversation terminated!]
CounterPillow has quit [Server closed connection]
CounterPillow has joined #linux-amlogic
yang has quit [Server closed connection]
yang has joined #linux-amlogic
josch has quit [Server closed connection]
josch has joined #linux-amlogic
zkrx has joined #linux-amlogic
ldevulder has joined #linux-amlogic
naoki has quit [Quit: naoki]
mdrjr has quit [Server closed connection]
knuxify has quit [Server closed connection]
knuxify has joined #linux-amlogic
mdrjr has joined #linux-amlogic
naoki has joined #linux-amlogic
naoki has quit [Client Quit]
naoki has joined #linux-amlogic
naoki has quit [Client Quit]
rtp has quit [Server closed connection]
rtp has joined #linux-amlogic
naoki has joined #linux-amlogic
naoki has quit [Client Quit]
puck has quit [Server closed connection]
puck has joined #linux-amlogic
cottsay has quit [Server closed connection]
cottsay has joined #linux-amlogic
djrscally has joined #linux-amlogic
kenny has quit [Server closed connection]
kenny has joined #linux-amlogic
dliviu has quit [Server closed connection]
dliviu has joined #linux-amlogic
mripard has joined #linux-amlogic
tdebrouw has joined #linux-amlogic
<tdebrouw> narmstrong: I see some CSI clocks for the g12a have been added in mainline / 5205628ab0bfe64952974d476ee001f6c7e0ef7f
<tdebrouw> I also see that CSI support is WiP on the A311D here: https://www.linux-meson.com/hardware.html
<tdebrouw> I checked your tree on codelinaro
<tdebrouw> but I couldn't find any branch related to the CSI inputs
<tdebrouw> Is someone working on that?
<tdebrouw> I read the irclogs, in case I'm not online.
jelly has quit [Server closed connection]
jelly has joined #linux-amlogic
eery has quit [Server closed connection]
eery has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
<minute> is meson-g12b stuff gone from current u-boot dts Makefile or am i holding it wrong?
<minute> ok, need to understand how this works... where are the dts files coming from nowadays? https://github.com/u-boot/u-boot/commit/114df8b5339e503b50b6ac1a61bf1daac57c2e11
vagrantc has joined #linux-amlogic
<tdebrouw> CONFIG_ARCH is selected in defconfig
<tdebrouw> (example: khadas-vim3_defconfig has CONFIG_ARCH_MESON=y)
<tdebrouw> following this example:
<tdebrouw> this defconfig also contains: CONFIG_MESON_G12A=y
<tdebrouw> then in the following file:
<tdebrouw> arch/arm/mach-meson/Kconfig
<tdebrouw> you'll find a "config MESON_G12A"
<tdebrouw> which has a "imply OF_UPSTREAM"
<tdebrouw> "OF_UPSTREAM" can be found in dts/Kconfig
<tdebrouw> It was added to solve the device trees getting out of sync from the kernel
<xdarklight> minute: I was also wondering. tdebrouw gave a more technical explanation, the plain answer is: https://github.com/u-boot/u-boot/tree/master/dts/upstream/src/arm64/amlogic
<minute> thanks!
<minute> currently fighting with weird emmc clock issue in uboot on g12b
<minute> mmc_select_mode_and_width works maybe 50% of times
<minute> sometimes the freq is changed mysteriously after a line like > trying mode MMC High Speed (52MHz) width 8 (at 52 MHz)
<minute> for example, after this one comes > selecting mode MMC legacy (freq : 25 MHz)
<minute> but sometimes it does the right thing > selecting mode MMC High Speed (52MHz) (freq : 52 MHz)
<narmstrong> tdebrouw: there’s work on upstreaming the arm isp, but not the same version as the one in g12b, afaik nobody is working on adapting it and adding the missing phy and csi path bits. And I never had a csi camera module for a g12b board so I can’t help here
<minute> ah, __mmc_switch fails sometimes with -5
psydroid has quit [Server closed connection]
psydroid has joined #linux-amlogic
<minute> > mmc_send_cmd_retry ret: -5
<minute> so sometimes we can't communicate with the emmc for a while
<minute> getting STATUS_ERR_MASK
<minute> but when it starts working, it's totally stable
<minute> so weird
<minute> as a workaround i have a loop in mmc_init that tries up to three times
asriel has quit [Ping timeout: 246 seconds]
<minute> not reliable
<minute> how is it possible that the rom can load uboot reliably from emmc every time but then uboot fails to talk to the emmc sometimes
asriel has joined #linux-amlogic
<vagrantc> u-boot might try to use a faster but less stable mode?
<minute> vagrantc: maybe, but in the failure case, none of the modes it tries work
<minute> but if i wait a while after a failure and enter "mmc dev 1" again, it works
<vagrantc> sometimes things are on their own schedules ...
<minute> in the failure mode, even this fails: >
<minute> mmc trying mode MMC legacy width 1 (at 25 MHz)
<minute> i have a loop that does 10x retries with 1sec wait. this can fail, i.e. it exhausts the 10 tries. but when i wait a bit and enter "mmc dev 1" it most probably will work
<minute> i don't get it... i thought ok, maybe cache issue, but cache flush doesn't help
<minute> also, the emmc _always_ works in linux
<vagrantc> more complex or well tested initialization code in linux, probably
<minute> hm, uboot does not set CLK_RX_PHASE, only CLK_TX_PHASE
<minute> (doesn't make a difference, it would add 0)
<f_> I guess the ROM does only very minimal init - enough to load 48K BL2 and the rest
<minute> so none of you have emmc issues in uboot on g12b?
<f_> I did not experience eMMC issues lately, no.
<f_> But I'm on an old U-Boot.
<f_> dirty 2024.01
* f_ needs to rebase his tree...
<minute> ok? aml_send_calibration_blocksaml_send_calibration_blocks
<minute> sorry, copypaste issue
mripard_ has joined #linux-amlogic
mripard_ has quit [Remote host closed the connection]
mripard has quit [Ping timeout: 244 seconds]
<minute> interestingly, linux drives the card at hs200, but it doesn't look like meson_gx_mmc in uboot can do that?!
luka177 has joined #linux-amlogic
adema has quit [Server closed connection]
adema has joined #linux-amlogic
samueldr has quit [Server closed connection]
samueldr has joined #linux-amlogic
tdebrouw has quit [Quit: Leaving.]
djrscally has quit [Ping timeout: 272 seconds]
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
vagrantc has quit [Quit: leaving]