genii has quit [Remote host closed the connection]
mszyprow_ has joined #linux-exynos
PabloPL has joined #linux-exynos
<PabloPL> mszyprow_: Got boot mainline kernel on exynos7580 with logs - problem was with sboot. Even though it uses a device tree it looks like it's not passing fdt correctly to kernel (or it's passing something different)
<mszyprow_> PabloPL: nice
<PabloPL> mszyprow_: Had to use appended dtb (like on s5pv210) for arm64 ...
<PabloPL> mszyprow_: Now it fails on ioream for gic interrupt-controller....
<PabloPL> mszyprow_: Looking at oops it fails at check "Don't allow RAM to be mapped" in ioremap
<PabloPL> fixed, wrong setup of memory node...
PabloPL has quit [Quit: Wychodzi]
PabloPL has joined #linux-exynos
<PabloPL> exynos7580 has 8 cores, but in some devices only 4 of them are enabled (for example A3 2016 - SM-A310F). How should this be handled in base dtsi? (not sure if for example all cores on those devices are fully working etc)
PabloPL has quit [Quit: Wychodzi]
<krzk> Hi Pablo
PabloPL has joined #linux-exynos
<krzk> PabloPL: hi!
<krzk> Cool news
<krzk> for the 4 cores
<krzk> There are few ways how this can be done. First of all SM-A310F does not have 7580 but 7578
<krzk> and in such case it should be probably different DTSI, sharing common part
<krzk> Exynos5420/5422/5800 have something like this already - share a lot, but CPU configuration is separate.
<PabloPL> ok, so maybe 7578 are just 7580 where second group of cores is not working correctly (for example didn't passed tests etc). in kernel source it's named 7580 and also bootloader is saying the same
<krzk> PabloPL: that's interesting... I wonder what revision does it have (report)
<PabloPL> i can check in vendor kernel , there was some addition to chipid driver
<PabloPL> krzk: for now i'm stuck with this https://gist.github.com/PabloPL/db7b75afc6e009c2f38a183fc4f7cf57
<krzk> PabloPL: disable arch timer and use only exynos mct (or bump exynos mct clocksource higher to be the main timer)
<krzk> there are known issues with Arch timer on Exynos - it is tightly coupled with MCT (or even the same block physically) so certain hacks are needed to make it running
<PabloPL> ok, in vendor there are some "magic" going in timers (for example disabling only half of it, if some flag in dts is set and "use it as clocksource only")
<PabloPL> i hope that my clk driver is working...i want to run dwmmc now
<krzk> mszyprow_ was sending some patches necessary for ARMv8 Exynos for its timer - you can pick them up for your tests
<PabloPL> ok, will check this. thanks
<PabloPL> krzk: about id in vendor sources i've only found EXYNOS7580_SOC_ID 0xE7580000
<PabloPL> will try to boot all 8 cores, we'll see what it is
<krzk> I mean, what the SoC reports
<krzk> I guess that in such case it repotrs 0xE7580000...
<krzk> you can also dump the other regs from chip id (the bin etc)
<PabloPL> [ 0.314105] smp: Brought up 1 node, 8 CPUs
<PabloPL> [ 0.369420] SMP: Total of 8 processors activated.
<krzk> PabloPL: ok, but do you have 7580 or this 7578 (4 cores officially)?
<PabloPL> krzk: in vendor it's all named 7580, sboot also returns this information. There are 2 7580.dtsi files in vendor sources - in one there are just 4 cores cut from it (also some minimal pinctrl changes)
<krzk> PabloPL: I mean, the device you have
<krzk> what do you have?
<PabloPL> krzk: Also saw some time ago that on xda developers people did found and tested it with 8 cores
<PabloPL> krzk: A3-2016
<PabloPL> it should have 4 cores officially
<PabloPL> EXYNOS7580 EVT 0.2 (Base on ARM CortexA53)
<PabloPL> from bootloader
<krzk> then either the difference is be stored in the other chipid registers, or this is pure bollocks :)
<krzk> anyway, it is well known behavior from all chip manufacturers - develop actually one hardware :)
<PabloPL> good that they didn't used fuses for it
<krzk> but probably you should not mainline it as 7580 (8 core) - some people might be affected
<PabloPL> that's why i've asked about it
<PabloPL> saw some reports on xda where people enabled 8 cores and had some problems with stability
<PabloPL> question is, should this stay as 7580 or change to 7578, but i'll think about this when pushing patches to mainline
<PabloPL> for now mmc/sdcard and wifi later, to put some normal os on it...
<mszyprow_> PabloPL: maybe it easily overheats if 8 core are running
<PabloPL> mszyprow_: and battery drains probably fast. for now it'll stay as 4 cores
<krzk> Then DTSI should be 7578...
adjtm has quit [Ping timeout: 268 seconds]
<PabloPL> mrzyprow_: Tested those patches, now that error is gone. Thanks!
afaerber has joined #linux-exynos
<PabloPL> hm...now got that error/similar again
<PabloPL> after a while
PabloPL has quit [Quit: Wychodzi]
PabloPL has joined #linux-exynos
PabloPL has quit [Client Quit]
PabloPL has joined #linux-exynos
adjtm has joined #linux-exynos
mszyprow_ has quit [Ping timeout: 272 seconds]
PabloPL has quit [Quit: Wychodzi]
genii has joined #linux-exynos
aalm has quit [Quit: xyz 2.3]
PabloPL has joined #linux-exynos
PabloPL has quit [Quit: Wychodzi]
PabloPL has joined #linux-exynos
<PabloPL> krzk: Are You there?
<PabloPL> krzk: i had problem with patch https://patchwork.kernel.org/patch/10646937/ . with mct and arch timer in dts (where mct is first), i was getting kernel panic "Unable to initialise architected timer" which looks like arch_timer_get_rate returned 0 (but i got in dts clock-frequency set for timer)
<PabloPL> krzk: after removing that patch but having both mct and arch timer (in this order, the same like it's done for 5433), there is no error and no kernel panic
PabloPL has quit [Client Quit]
PabloPL has joined #linux-exynos
trinityhex has joined #linux-exynos
PabloPL has quit [Remote host closed the connection]
adjtm has quit [Ping timeout: 248 seconds]
adjtm has joined #linux-exynos
adjtm_ has joined #linux-exynos
adjtm has quit [Ping timeout: 268 seconds]
dllud has quit [Ping timeout: 248 seconds]
GrimKriegor has quit [Ping timeout: 246 seconds]
dllud has joined #linux-exynos
GrimKriegor has joined #linux-exynos
GrimKriegor has quit [Changing host]
GrimKriegor has joined #linux-exynos