Turl changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
paulk-collins has quit [Quit: Leaving]
phipli has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
fl_0 has quit [Ping timeout: 240 seconds]
fl_0 has joined #linux-sunxi
dr1337 has joined #linux-sunxi
matthias_bgg_ has quit [Quit: Leaving]
dr1337 has quit [Quit: Page closed]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
phipli has quit [Ping timeout: 240 seconds]
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
wzyy2 has joined #linux-sunxi
ErwinH has joined #linux-sunxi
stoned0651 has joined #linux-sunxi
ErwinH has quit [Ping timeout: 268 seconds]
apritzel has quit [Ping timeout: 268 seconds]
ErwinH has joined #linux-sunxi
jernej has quit [Ping timeout: 260 seconds]
ErwinH has quit [Ping timeout: 240 seconds]
dr1337 has joined #linux-sunxi
Andy-D has quit [Ping timeout: 260 seconds]
cnxsoft has joined #linux-sunxi
nicker17 has quit [Ping timeout: 260 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
ninolein_ has joined #linux-sunxi
ninolein has quit [Ping timeout: 255 seconds]
Pepe has quit [Ping timeout: 268 seconds]
Ntemis has quit [Read error: Connection reset by peer]
lurchi_ is now known as lurchi__
<wens> MoeIcenowy: you should probably have different compatibles for the different ccus, matching the soc name at least? (if they are known to be different)
\\Mr_C\\ has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
chlorine has joined #linux-sunxi
pg12 has quit [Ping timeout: 268 seconds]
pg12 has joined #linux-sunxi
chlorine has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
leviathan has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
<plaes> wens: while you're at it...
<plaes> in drivers/gpu/drm/sun4i/sun4i_backend.c sunxi_rgb2yuv_coef can be marked const
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
TheSeven has quit [Ping timeout: 259 seconds]
TheSeven has joined #linux-sunxi
lurchi__ has quit [Read error: Connection reset by peer]
lurchi_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
chlorine has joined #linux-sunxi
ErwinH has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
<wens> plaes: OK
<plaes> btw, there's ANX7814 driver in kernel now
ErwinH has quit [Ping timeout: 260 seconds]
victhor has quit [Ping timeout: 268 seconds]
<plaes> ah.. ANX980x is a different beast
JohnDoe_71Rus has joined #linux-sunxi
jernej has joined #linux-sunxi
terra854 has joined #linux-sunxi
fkluknav has joined #linux-sunxi
IgorPec has quit [Quit: Nettalk6 - www.ntalk.de]
jernej has quit [Ping timeout: 240 seconds]
f0xx has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
dave0x6d has quit [Quit: Connection closed for inactivity]
msevwork has joined #linux-sunxi
r1mikey has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
r1mikey has joined #linux-sunxi
djakov has joined #linux-sunxi
lemonzest has joined #linux-sunxi
leviathan has quit [Remote host closed the connection]
florianH has joined #linux-sunxi
massi has joined #linux-sunxi
terra854 has quit [Quit: Connection closed for inactivity]
paulk-collins has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
r1mikey has joined #linux-sunxi
BenG83_PB has quit [Quit: Leaving]
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
r1mikey has quit [Read error: Connection reset by peer]
Pepes has joined #linux-sunxi
Pepes is now known as Pepe
yann has quit [Ping timeout: 240 seconds]
camh has quit [Ping timeout: 276 seconds]
r1mikey has joined #linux-sunxi
camh has joined #linux-sunxi
chlorine has joined #linux-sunxi
yann has joined #linux-sunxi
BenG83 has joined #linux-sunxi
reinforce has joined #linux-sunxi
popolon has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
reev has joined #linux-sunxi
r1mikey has joined #linux-sunxi
dr1337 has quit [Quit: Connection closed for inactivity]
camh1 has joined #linux-sunxi
reev has quit [Read error: Connection reset by peer]
reev has joined #linux-sunxi
camh has quit [Ping timeout: 240 seconds]
wzyy2 has quit [Ping timeout: 260 seconds]
reev has quit [Ping timeout: 240 seconds]
Mr__Anderson has joined #linux-sunxi
reev has joined #linux-sunxi
IgorPec4 has joined #linux-sunxi
leviathan has joined #linux-sunxi
IgorPec4 has quit [Ping timeout: 260 seconds]
chlorine has quit [Remote host closed the connection]
wzyy2 has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
r1mikey has joined #linux-sunxi
vishnup has joined #linux-sunxi
Ntemis has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
BenG83 has quit [Quit: Leaving]
reev has quit [Quit: Leaving]
terra854 has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
BenG83 has joined #linux-sunxi
r1mikey has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
komunista has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
IgorPec has joined #linux-sunxi
techping has joined #linux-sunxi
techping_ has joined #linux-sunxi
cptG has joined #linux-sunxi
cptG_ has quit [Ping timeout: 255 seconds]
sgteem has joined #linux-sunxi
techping_ has quit [Quit: Leaving]
walkiry has joined #linux-sunxi
<walkiry> Hi guys, quick questions, On the A64, does the RSA mode of the Crypto engines works?
<willmore> That would be a montjoie question.
Worf has joined #linux-sunxi
<montjoie> walkiry: no
<montjoie> more generally, RSA does not work on any Allwinner CE
<willmore> Oh, yeah "works" vs "does the chip have it". I was researching the wrong question.
<walkiry> the chip has it
<willmore> But it's not documented well enough to implement support.
<montjoie> at least they claim it is present
<walkiry> but i try to encode a buffer for two days, and there is no way i can talk with it
r1mikey has quit [Read error: Network is unreachable]
<walkiry> the result output is nowhere near the expected output
<montjoie> the BSP driver for RSA is a total joke
<montjoie> RSA in CBC mode
r1mikey has joined #linux-sunxi
<montjoie> "lol" is totaly legal for such a code
<montjoie> walkiry: you could check my cryptoengine github branch
<walkiry> yes i was looking at it
<willmore> CBC RSA? wa???
<montjoie> but RSA is in "I try everything for made it works" (crappy)
<walkiry> montjoie: you say the A64 crypto ip block is the same as the H3
lurchi__ is now known as lurchi_
<montjoie> walkiry: I think my issue is LE/BE ordering
<montjoie> walkiry: near the same
<walkiry> montjoie: i try every configuration
fkluknav has quit [Ping timeout: 255 seconds]
<montjoie> just some algs are different like absence of sha512
<walkiry> in the lichee bsp from
<walkiry> in the lichee bsp from allwinner, they are using the RSA to verify some stuff
<montjoie> where ?
<walkiry> in the file lichee/brandy/u-boot-2014.07/arch/arm/cpu/armv7/sun50iw2p1/ss.c
<montjoie> could you paste the content ?
<MoeIcenowy> finished meeting to Shenzhen with TL Lim and Allwinner guys
<jelle> nice
lurchi_ is now known as lurchi__
<montjoie> MoeIcenowy: do they give you TX/RX delay infos ?
<MoeIcenowy> It's said that AW BU2 is working on updating BSP to 4.4
<walkiry> montjoie: http://pastebin.com/EwAwDVyy
<MoeIcenowy> montjoie: nope... BU2 seems to not care EMAC
<walkiry> montjoie: line 371
<walkiry> montjoie: i commented some stuffs i understood from their maze code
<oliv3r> wens: ok turns out, its the PMIC that stops working after enabling ldo3 in u-boot
<jelle> MoeIcenowy: BU2 is?
gumblex has quit [Quit: ZNC 1.6.4+deb1 - http://znc.in]
<montjoie> MoeIcenowy: thanks for the try, I will try ask them direclty just in case of...
<MoeIcenowy> A series and VR
gumblex has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
fkluknav has joined #linux-sunxi
<willmore> MoeIcenowy, welcome back! Are you going to put your notes online somewhere? :)
<MoeIcenowy> an email will be sent to me
<MoeIcenowy> and I will translate it to English
<willmore> Wonderful. Thank you for all the work you've done!
<BenG83> yeah thanks I hope you had a good trip
<oliv3r> wens: i have not figured out as to why enabling LDO3 75% of the time causes failure. I have seen an old thread where people talk about ldo3 and its unknown secret properties
<wens> MoeIcenowy: sounds like it was a long meeting
<MoeIcenowy> not too long ;-)
my123 has quit [Ping timeout: 260 seconds]
Worf has quit [Quit: Konversation terminated!]
<oliv3r> i'm now going over the datasheet, but I wonder if there is an errata for the AXP209 user manual?
<oliv3r> i'm guessing we may need to stagger power up of the PMIC
victhor has joined #linux-sunxi
<oliv3r> MoeIcenowy: did you get anything usefull from it? :)
fkluknav has quit [Ping timeout: 240 seconds]
jemk has quit [Remote host closed the connection]
jemk has joined #linux-sunxi
techping has quit [Remote host closed the connection]
msevwork has quit [Quit: Leaving]
willmore has quit [Ping timeout: 260 seconds]
Andy-D has joined #linux-sunxi
fkluknav has joined #linux-sunxi
ErwinH has joined #linux-sunxi
willmore has joined #linux-sunxi
ErwinH has quit [Read error: No route to host]
ErwinH has joined #linux-sunxi
chlorine has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
The_Loko has joined #linux-sunxi
chlorine has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
my123 has joined #linux-sunxi
my123 has joined #linux-sunxi
my123 has quit [Changing host]
ErwinH has quit [Ping timeout: 268 seconds]
IgorPec has quit [Ping timeout: 260 seconds]
pietrushnic has quit [Ping timeout: 240 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
LargePrime has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
fkluknav has quit [Ping timeout: 260 seconds]
LargePrime has joined #linux-sunxi
nove has joined #linux-sunxi
fkluknav has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
r1mikey has joined #linux-sunxi
<nove> As yesterday there was (again) amlogic talking and about their community, this slides gives a view of their state -> http://events.linuxfoundation.org/sites/events/files/slides/elcna-2017-amlogic.pdf
<nove> they are also using synopsys designware hdmi controller
r1mikey has quit [Ping timeout: 255 seconds]
fkluknav has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
r1mikey has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
IgorPec has joined #linux-sunxi
fkluknav has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
<wens> nice slides and good progress in a short time
ErwinH has quit [Remote host closed the connection]
Mr__Anderson has quit [Quit: Leaving.]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
IgorPec has quit [Ping timeout: 255 seconds]
ErwinH has joined #linux-sunxi
wzyy2 has quit [Ping timeout: 240 seconds]
ErwinH has quit [Ping timeout: 240 seconds]
book`_ has quit [Quit: Leaving]
sgteem has quit [Ping timeout: 240 seconds]
ErwinH has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
jernej has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
sgteem has joined #linux-sunxi
ErwinH has joined #linux-sunxi
yann has quit [Ping timeout: 240 seconds]
ErwinH has quit [Ping timeout: 240 seconds]
book` has joined #linux-sunxi
IgorPec has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
yann has joined #linux-sunxi
yann has quit [Ping timeout: 240 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
ErwinH has joined #linux-sunxi
<jernej> ssvb: MoeIcenowy: I just readed yesterdays backlog. DE2 doesn't need physical to bus address conversion.
<jernej> it was tested on OPiPlus2E
massi has quit [Quit: Leaving]
apritzel has joined #linux-sunxi
BenG83 has quit [Quit: Leaving]
<apritzel> MoeIcenowy: thanks for trying to talk some sense into AW ;-)
<MoeIcenowy> jernej: thx
ErwinH has quit [Ping timeout: 260 seconds]
<apritzel> MoeIcenowy: I started with LPDDR3 support yesterday, identifying differences in boot0 between LPDDR3 and DDR3 and adding this to the U-Boot driver
<MoeIcenowy> thx ;-)
<apritzel> MoeIcenowy: I need now to add the different timings, probably taking some of your V3s patches as a base
<apritzel> MoeIcenowy: and then probably compare register dumps as a final step to identify leftovers
ErwinH has joined #linux-sunxi
<jernej> MoeIcenowy: I also found out that MIPI DSI on A64 is same as described in R16/A33 manual (unfortunatelly, without PHY part)
ErwinH has quit [Ping timeout: 240 seconds]
<jernej> MoeIcenowy: and that GPL licensed DSI code is in tinalinux repo
<jernej> at least we can support A64 lcds...
<jernej> I mean pine64
<MoeIcenowy> yes I think so ;-)
* apritzel is slightly concerned that a 4.4 BSP will not be helpful
<apritzel> instead might steer people away from mainline
ErwinH has joined #linux-sunxi
<apritzel> I wonder if they just forward port their drivers, mostly ignoring the mainline drivers
phipli has joined #linux-sunxi
<Ke> btw. are people also pushing supported configurations to distro stock kernels as far as they are possible?
<jelle> well that's up to the distros I assume
<apritzel> Ke: you mean asking for backports?
sgteem has quit [Ping timeout: 240 seconds]
<Ke> definitely, but distros often might not move unless prompted to do so
<Ke> apritzel: I mean enabling proper config options in the existing kernels
<jelle> o?
<apritzel> Ke: oh, I see
<Ke> not everything can be supported in whatever distros provide, but to the extent that is possible
<apritzel> Ke: for arm64 parts (the one and only) defconfig should cover most of it
<MoeIcenowy> apritzel: I think they reused some mainline drivers when porting to 3.10
<apritzel> Ke: that's what we push for
<Ke> I remember c201 support bug on debian bugzilla unattended for a very long time even though linux-4.9 has extremely good support for it
ErwinH has quit [Ping timeout: 260 seconds]
<apritzel> MoeIcenowy: did they? I thought that they are still using their UART drivers, for instance
<jelle> Ke: well that's up to debian then I'd say
<Ke> apritzel: do distros mainly follow defconfigs?
<MoeIcenowy> at least for MMC driver they applied their changes on top of mainlined driver
<MoeIcenowy> so does sun4i-emac driver (used in R40)
<Ke> jelle: obviously, but distros can be lobbied
<apritzel> Ke: so you are volunteering? Nice!
<Ke> I don't even own the hw, just asking
* jelle doesn't see the point
afaerber has quit [Quit: Leaving]
<apritzel> Ubuntu has CONFIG_ARCH_SUNXI off in their arm64 v4.10 .config
<apritzel> (though 4.10 is not really useful, I've to admit)
<apritzel> but it's enabled in mainline defconfig
ErwinH has joined #linux-sunxi
sgteem has joined #linux-sunxi
<MoeIcenowy> oh the bridge get mysterious -- when it's probed it's normal, but when it boots into U-Boot cmdline it disappeared on I2C bus
<jernej> which bridge?
<MoeIcenowy> ANX6345, used in Pinebook as RGB to eDP
ErwinH has quit [Ping timeout: 260 seconds]
chomwitt has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
BenG83_PB has joined #linux-sunxi
LargePrime has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
vishnup has quit [Ping timeout: 268 seconds]
alt01d has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
r1mikey has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
r1mikey has joined #linux-sunxi
IgorPec has quit [Ping timeout: 255 seconds]
ErwinH has joined #linux-sunxi
<alt01d> Hi, I want to change the APB1 clock from 24MHz to 30MHz on CHIP (R8, GR8) on Linux 4.4. Can I do that in the device tree? or do I need to change drivers/clk/sunxi/clk/sunxi.c?
<MoeIcenowy> apritzel: have you asked any Pinebook sample to TL?
<apritzel> MoeIcenowy: no, though he once mentioned earlier he wanted to send some to me
<apritzel> MoeIcenowy: but I'd wait till get the display to work :-D
<apritzel> *till you get*
<apritzel> MoeIcenowy: is it easy to connect serial?
<MoeIcenowy> this early version is a disaster for developing...
<MoeIcenowy> very uneasy
<MoeIcenowy> except use MicroSD breakout
<apritzel> opening the case?
<MoeIcenowy> soldering needed
ErwinH has quit [Ping timeout: 240 seconds]
<jernej> apritzel: simplefb works with my u-boot patches
<jernej> I guess it is enough for dev purposes
<apritzel> jernej: so you have a "magic bit 24" patch in your repo?
<jernej> yep
<apritzel> jernej: but only via HDMI, right?
<jernej> yes
<apritzel> jernej: I might give it a try on my Remix Mini PC, then
<jernej> de2_wip branch
<MoeIcenowy> I'm now trying hard to get eDP to work on PB...
<MoeIcenowy> I hate the Analogix bridge
<apritzel> MoeIcenowy: do you have *any* kind of documentation?
<jernej> it has also H5 hdmi and tv out support
<MoeIcenowy> no except some code by AW/RK
* apritzel feels pity for MoeIcenowy
ErwinH has joined #linux-sunxi
<MoeIcenowy> or should I just give up U-Boot and go to kernel side for graphics support? ;-)
<apritzel> I will trade LPDDR3 support for a working display ;-)
<BenG83_PB> :)
<MoeIcenowy> As the kernel TCON code is more robust ;-)
<apritzel> MoeIcenowy: makes some sense, but for the Pinebook U-Boot graphics support would be actually useful
<BenG83_PB> whatever AW hacked in the driver for the ANX, it was enough to get it working on their BSP kernel
<jernej> apritzel: actually, that 24th bit is not magic anymore. It has comment that it means switching SRAM from cpu to video control
<MoeIcenowy> s/enough/only &/g
<BenG83_PB> ;P
<jernej> apritzel: but I don't know which section.
<apritzel> jernej: right, I saw that the other day
<apritzel> jernej: do we know which (part of the) SRAM this affects
ErwinH has quit [Ping timeout: 260 seconds]
<jernej> apritzel: as I said, no
<MoeIcenowy> I think currently these "SRAM"s do not have any mapping in CPU address space
<MoeIcenowy> so we can just consider them as generic syscon magic bits ;-)
<apritzel> MoeIcenowy: but we don't have access to the last part of SRAM C, for instance
<apritzel> MoeIcenowy: and also see issues with higher bus frequencies for the first part
<BenG83_PB> I hoped Tl had a new PCB revision for MoeIcenowy, that's why I started the wiki page for PB
<MoeIcenowy> BenG83: Nope
<MoeIcenowy> some small hardware bugs occured on the new revision
<MoeIcenowy> so it's delayed
<BenG83_PB> ok
<apritzel> also IIRC on older AW SoCs you also switch SRAM ownership
<BenG83_PB> should I start adding pictures for UART, FEL testpoints for the prototype revision?
<BenG83_PB> or do we wait a bit until the next PCBs come out
<apritzel> BenG83_PB: yes, please
<apritzel> give as most information as possible
<apritzel> chances are most of it does not change much
<apritzel> even if, it's a Wiki ...
<jernej> uh, BSP u-boot mentions that VE is enabled by BROM (reset, gates) and it is explicitly cleared by U-Boot
leviathan has quit [Ping timeout: 255 seconds]
<jernej> should we do something similar?
<jernej> as I don't see any value having VE enabled
<apritzel> jernej: VE?
<apritzel> what for?
<apritzel> fancy boot animation? ;-)
<BenG83_PB> ^
<jernej> no, it is not used at all
<jemk> for sram c, at least the secure brom uses it for large toc0
<jernej> but for some strange reason, BROM enables it
<jernej> and leaves it enabled
<jernej> at least partially
phipli has quit [Ping timeout: 255 seconds]
<apritzel> jemk: I saw the secure brom enables crypto engine
<apritzel> which makes some sense
<jernej> if you dump CCU regs, check bus gating and reset regs
<jernej> you will see that VE is enabled
<jernej> on mainline U-Boot
<apritzel> jernej: I think I did it lately and didn't spot anything weird, but can re-check
<MoeIcenowy> jernej: on which SoC?
<jernej> A64
<MoeIcenowy> oh ghosty
<jernej> ^ there is explanation
ErwinH has joined #linux-sunxi
<MoeIcenowy> maybe BROM needs some special function in VE?
<jernej> what for? Do we have BROM sources or at least dump?
<MoeIcenowy> it's easy to dump one ;-)
<MoeIcenowy> sunxi-fel read is enough
<jernej> what memory region?
The_Loko has quit [Quit: Leaving]
<MoeIcenowy> see user manual ;-)
netlynx has quit [Quit: Ex-Chat]
<jernej> ah, ok, it is easier than I thought :)
<jernej> I will try soon
ErwinH has quit [Ping timeout: 260 seconds]
<apritzel> jernej: I have a slightly annotated disassembly, can send it later to you
<jernej> apritzel: that would be even better, thanks
<apritzel> jernej: you are interested in gates & reset of the VE clocks?
<jernej> apritzel: not per se, I only thought about sending patch for disabling it in U-Boot
<ssvb> apritzel: are you talking about the "bootmode" bit? http://lists.denx.de/pipermail/u-boot/2016-September/265651.html
<jernej> apritzel: but I'm not sure where would be the best place
ErwinH has joined #linux-sunxi
<apritzel> ssvb: yeah, I dimly remembered you mentioning this some months ago
IgorPec4 has joined #linux-sunxi
<apritzel> so this is actually this "magic" bit which makes DE work on the A64, right?
<jernej> if you mean 24 bit in sram control register, then yes
ErwinH has quit [Ping timeout: 240 seconds]
<MoeIcenowy> Is DE2 just occpying SRAM C?
<MoeIcenowy> Or what it occpies is only some unmapped SRAM?
<ssvb> both DE2 and VE might possibly use it for storing its own data
<apritzel> MoeIcenowy: and I think it's the same SRAM C that *is* mapped to the CPU as well
<apritzel> so this bit just transfers ownership
<ssvb> during early boot SRAM C provides some extra storage space in SRAM for the bootloader
<ssvb> if we don't need this storage space, then we can disable it from the SPL
<montjoie> MoeIcenowy: PHY problem confirmed on my opipc without emac in uboot
<apritzel> ssvb: yeah, makes sense, when you need graphics or video, you probably have DRAM up already
<MoeIcenowy> montjoie: thx l-)
<MoeIcenowy> ;-)
ErwinH has joined #linux-sunxi
<montjoie> MoeIcenowy: I will work on it tomorow, but fix is nearly easy
<montjoie> funny that I hit it certainly, but forget it after updated uboot
<montjoie> and so moved init_phy too late in the process
<jernej> apritzel: ssvb: Should be also VE gate and reset disabled in SPL? I just confirmed that they are enabled through fel
<ssvb> jernej: maybe yes, if allwinner is handling these configuration bits together
<MoeIcenowy> Now I really hope there can be someone to give me tips for the ANX bridge support ;-)
<jemk> ssvb: followup on bootimes, i've now measured them and my feeling was correct: 1.13s secure vs 0.51s normal, from cpu reset to first char of spl banner, on h3
ErwinH has quit [Ping timeout: 240 seconds]
<ssvb> apritzel: if we disable SRAM C, then we need to find 8K of space in SRAM A2 for FEL boot
<ssvb> apritzel: so that we fit the SPL stack, FEL backup storage area and ATF there
* apritzel generously hands over the last 8K of it
<apritzel> ssvb: ATF is only about 32KB atm
<apritzel> and I started using parts of it for the SPL stack already
r1mikey_ has joined #linux-sunxi
<apritzel> ssvb: what about 0x50000 - 0x51fff?
<apritzel> so 5,2000 till 5,3fff can be used for the SPL stack
r1mikey has quit [Ping timeout: 240 seconds]
<apritzel> that would still leave 48K for ATF
r1mikey_ has quit [Ping timeout: 240 seconds]
<apritzel> (which is the total amount of RAM my first computer had)
afaerber has joined #linux-sunxi
phipli has joined #linux-sunxi
alexxy has quit [Ping timeout: 245 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
<jernej> apritzel: ssvb: Should I prepare the patch for A64 SPL to transfer SRAM control and disable VE bits?
ErwinH has quit [Ping timeout: 260 seconds]
IgorPec has joined #linux-sunxi
yann has joined #linux-sunxi
ErwinH has joined #linux-sunxi
IgorPec4 has quit [Ping timeout: 260 seconds]
terra854 has quit [Quit: Connection closed for inactivity]
IgorPec4 has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
Wizzup has quit [Ping timeout: 260 seconds]
fkluknav has quit [Ping timeout: 240 seconds]
Wizzup has joined #linux-sunxi
ErwinH has joined #linux-sunxi
IgorPec4 has quit [Quit: Nettalk6 - www.ntalk.de]
r1mikey has joined #linux-sunxi
r1mikey has quit [Remote host closed the connection]
ErwinH has quit [Ping timeout: 260 seconds]
alt01d has quit [Ping timeout: 260 seconds]
mossroy has joined #linux-sunxi
f0xx has quit [Ping timeout: 240 seconds]
_whitelogger_ has joined #linux-sunxi
lemonzest has quit [Quit: Leaving]
ErwinH has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Remote host closed the connection]
iamfrankenstein has quit [Quit: iamfrankenstein]
phipli has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> jernej: transfer SRAM control to whom? The DE? Wouldn't this be part of the DE2.0 U-Boot series?
r1mikey has joined #linux-sunxi
ErwinH has joined #linux-sunxi
<jernej> yes, but it would also be needed if there is a possibility to run BSP kernel. Is such thing possible?
<apritzel> jernej: do you mean BSP kernel with upstream U-Boot?
<jernej> apritzel: yes, that works nicely with H3
<apritzel> jernej: but doesn't work at all with the A64
<apritzel> and this bit is A64 only, right?
<ssvb> apritzel, jernej: personally I would prefer to see SRAM C disabling and AHB1 reclocking done somewhere after the SPL, maybe in the ATF
<ssvb> but this just breaks a nice abstraction where we have basic clocks setup done by the SPL
ErwinH has quit [Ping timeout: 240 seconds]
<ssvb> still having SRAM C available to the SPL potentially allows us to load huge SPL binaries (via runtime code decompression or a simple trampoline stub)
<jernej> apritzel: yes, it is A64 only. Out of curiosity, what is the issue with loading BSP kernel on upstream U-Boot? ATF?
komunista has quit [Quit: Leaving.]
<jernej> ssvb: I'm ok either way, but that bit must be cleared any way (I guess DRM driver won't bother with that)
<jernej> so maybe in board init code?
<ssvb> as a start, can your video driver just do this?
<jernej> of course, that was initial plan
<ssvb> :)
ErwinH has joined #linux-sunxi
<jernej> but as I said, should be Linux DRM driver aware of this? I think not...
<ssvb> you can always check the bit and do something if it is not right (fixup and/or maybe print some warning)
<jernej> we could change this later anyway
IgorPec4 has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
lurchi__ is now known as lurchi_
iamfrankenstein has joined #linux-sunxi
ErwinH has joined #linux-sunxi
LargePrime has joined #linux-sunxi
mossroy has quit [Quit: Leaving]
ErwinH has quit [Ping timeout: 255 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
IgorPec4 has quit [Quit: Nettalk6 - www.ntalk.de]
LargePrime has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
lurchi_ is now known as lurchi__
<apritzel> jernej: yeah, poking a syscon register from the Linux driver sounds nasty
<apritzel> but keep it in the U-Boot video driver for now
<apritzel> and we can easily have it in ATF
<apritzel> jernej: A64 BSP kernel> they have some weird interface to the firmware, which we didn't want to copy
<apritzel> and since we don't have to ...
<jernej> you mean ATF <-> kernel interface?
<apritzel> also I think that any proliferation of BSP crap just turns people away from mainline
<apritzel> jernej: yes
<apritzel> basically we would need to implement security holes to make the BSP kernel work
ErwinH has quit [Ping timeout: 255 seconds]
<jernej> ok, thanks for explanation
<apritzel> I haven't checked whether they actually use this, but it smells like
<jernej> btw, how far is H5 U-Boot support?
<apritzel> jernej: I have ACKs on every patch, I guess we are just waiting for the merge window
<jernej> great to hear
<apritzel> at least there was no reply on my latest post
<jernej> what about that revert in your repo?
<apritzel> just lazy to really fix it ;-)
<apritzel> be my guest
<jernej> last time I tried it was needed to boot latest upstream master branch on pine64
<apritzel> yes
<apritzel> I think it even affects all sunxi boards
<apritzel> at least my OPi Zero was affected as well
<apritzel> but only MMC boot, FEL is fine
<apritzel> which is probably why hackers don't care ;-)
<jernej> and what is a proper fix? I guess reverting is not?
ErwinH has joined #linux-sunxi
<apritzel> to find which memory collides now
<apritzel> my hunch is it's BSS and DRAM SPL stack
reinforce has quit [Quit: Leaving.]
<apritzel> but j
<apritzel> let me procrastinate with your repo first ;-)
lurchi__ is now known as lurchi_
ErwinH has quit [Ping timeout: 260 seconds]
LargePrime has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
ErwinH has joined #linux-sunxi
<apritzel> jernej: I get warnings about SUNXI_TVE0_BASE being redefined
ErwinH has quit [Ping timeout: 240 seconds]
<apritzel> so what's the story here: H3 is at 0x01e00000, H5 at 0x01e40000, everyone else at 0x01c0a000?
<jernej> This is latest change which was not really tested on A64. I will fix it.
<jernej> but yes, that's the story
victhor has quit [Ping timeout: 255 seconds]
<apritzel> I have the H5 patches in that branch and cherry-picked yours, so the symbol names changed a bit
<jernej> I really wonder why they slightly moved that IP block
<apritzel> even between H3 and H5?
<jernej> yes
ErwinH has joined #linux-sunxi
<apritzel> jernej: why do you have the AXP803 patch in your repo? Do you need to set anything beyond the HDMI regulator?
<apritzel> (which I finally set now in ATF)
<jernej> because I was lazy and I didn't want to fiddle with ATF. I was using 32 bit version of U-Boot from your H5 branch
<jernej> but yes, only because of HDMI regulator
<apritzel> amazing: HDMI connected: Setting up a 1920x1200 dvi console (overscan 0x0)
<apritzel> but I see some colorful flickering lines
ErwinH has quit [Ping timeout: 268 seconds]
<jernej> strange
<jernej> so obviously HDMI part works
<apritzel> haha, I like that typing on the serial shows up on both screens
<apritzel> jernej: yes
<apritzel> this is with an HDMI->DVI-D cable
<apritzel> yes, I think so
<jernej> shouldn't matter. I tested it with both cables, HDMI and DVI, although with the same screen
<apritzel> yup, it's in
paulk-collins has quit [Quit: Leaving]
<jernej> do you have any hdmi screen available for testing?
<apritzel> no, only monitors with either DVI-D or DP
<apritzel> no TV in that household ;-)
dave0x6d has joined #linux-sunxi
<jernej> well, I don't have TV either, but two PC monitors
IgorPec has quit [Ping timeout: 240 seconds]
<jernej> anyway, I think there could be issue either with some DVI setting or DE2
<apritzel> maybe it's even my cable
ErwinH has joined #linux-sunxi
<apritzel> can try tomorrow an another monitor and another cable
<jernej> till now nobody really complained and I can say it is field tested through Armbian...
<apritzel> but for now that is the first time I see something on a screen from a Pine64 ;-)
<apritzel> jernej: congrats and well done!
<lurchi_> apritzel: great!
<jernej> thanks :)
<jernej> during development, most of the time, I saw only green screen :)
<jernej> due to the sram issue
<apritzel> ah, good hint
<lurchi_> jernej: green is the color of hope!
<apritzel> I think I have some patches in to bump AHB to 200 MHz in SPL
<apritzel> to boost FEL speed
<apritzel> let me try on a pristine branch
ErwinH has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
<jernej> apritzel: what is your plan with CONFIG_MACH_SUN50I define? Will it represent only A64 or H5 too?
ErwinH has quit [Ping timeout: 255 seconds]
<apritzel> so there will be a CONFIG_MACH_SUNXI_H3_H5 define, if that answers your question as well ...
<apritzel> and at the moment it looks like CONFIG_MACH_SUN50I is for A64 only
<apritzel> and CONFIG_MACH_SUN50I_H5 is for H5 only
<apritzel> CONFIG_MACH_SUNXI_H3_H5 for everything that affects both H3 and H5
<jernej> wouldn't be better to rename it then with A64 suffix? One would assume that it is for all sun50i familly.
<apritzel> yeah, this whole naming is getting really out of control
<apritzel> I believe we painted ourselves in a corner by copying this stupid Allwinner SUN<x>I generation naming
ErwinH has joined #linux-sunxi
<apritzel> which is mostly pointless, since it just tells the core generation (sun8i = A7, sun50i= A53)
<apritzel> and adding confusion due to the old naming, which really showed SoC generations
<apritzel> I actually wonder if we should get rid of those MACH defines at all, using KConfig or DT for addresses instead
r1mikey_ has joined #linux-sunxi
<jernej> Maybe it would be nice to adopt DM even further. IMO clocks definitions are also going out of control...
<apritzel> exactly
<apritzel> there are patches on the list for that
<jernej> they are? do you have a link?
<apritzel> there is a v2 from yesterday evening: [PATCH v2 0/6] sunxi: DM pinctrl implementation
r1mikey has quit [Ping timeout: 255 seconds]
ErwinH has quit [Ping timeout: 240 seconds]
<apritzel> and the older version seems to cover clocks as well: http://lists.denx.de/pipermail/u-boot/2017-February/281627.html
r1mikey_ has quit [Ping timeout: 255 seconds]
nove has quit [Quit: nove]
lurchi_ is now known as lurchi__
<jernej> This is interesting. I hope that H3 follows soon after.
ErwinH has joined #linux-sunxi
lurchi__ is now known as lurchi_
ErwinH has quit [Ping timeout: 260 seconds]
<apritzel> interesting, only black screen on the Remix Mini
<apritzel> but maybe there is really some difference between the H64 and the A64
<jernej> apritzel: What you could try is to replace this define: https://github.com/jernejsk/u-boot/blob/de2_wip/drivers/video/sunxi_display2.c#L434 with either 1 or 0
<jernej> I mean ifdef
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
<apritzel> didn't change either way
ErwinH has joined #linux-sunxi
<apritzel> but in the end the advertised graphics/video capabilities are slightly different between H64 and A64
<jernej> what is allwinner name for H64? Is there any user manual?
<jernej> Clocks might be different
<apritzel> I have some dodgy one, which fell off a lorry ;-)
<apritzel> usually H means set-top box
<jernej> I know
<jernej> Uh, then it probably has inverted tcon0 and tcon1 meaning
<apritzel> MIPI-DSI and RGB go up to 1920x1200 instead of the 1366x768
ErwinH has quit [Ping timeout: 240 seconds]
<apritzel> jernej: yeah, was wondering if it's like an H5 in this respect
<jernej> for quick test
<jernej> uh, or not
<jernej> anyway, you have to make sure that for hdmi mux or tcon 0 is selected
<jernej> that is done on multiple places:
<jernej> hm... or actually only on these two
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
<apritzel> setting both to #if 1 generates no valid signal (monitor complaining)
<apritzel> before that the signal seemed valid, though the screened remained black
<apritzel> checking now only one of them
<jernej> well, you could still try to set that clrbits to setbits
<jernej> if signal seems to be ok, then the issue has to be connected to DE2
<apritzel> setbits didn't help either
<apritzel> setting mux := 1; now: still no signal
<apritzel> (in line 1009 I mean)
lurchi_ is now known as lurchi__
ErwinH has joined #linux-sunxi
<jernej> I'm out of the ideas. It might be something with the clocks. For example, A83T doesn't even have DE2 clock register. Why? I don't know, but it seems that Allwinner likes doing small changes
lurchi__ is now known as lurchi_
<apritzel> jernej: no worries, thanks anyway for your help
ErwinH has quit [Ping timeout: 260 seconds]
<jernej> no problem, but you will still test it with A64?
<apritzel> so changing either or both line 988 and 1009 to the H3/H5 behaviour never generated a signal
phipli has quit [Ping timeout: 240 seconds]
<apritzel> keeping them both to the non-H3/H5 makes the screen black, actually to the point where the monitor doesn't really react anymore (on-screen menu doesn't appear)
<apritzel> clrbits or setbits in line 442 doesn't make a difference
<apritzel> let me compare the clock registers
<apritzel> the usual ones in the CCU? Or in the DE2 block?
<apritzel> and sure: I will stay on the A64
<jernej> uh, there is also the possibility that H64 is using different HDMI PHY, just like A83T
<apritzel> sounds like AW
<apritzel> mix and match
<jernej> actually, I would prefer A83T approach, because it uses standard Synopsys IP block
<jernej> other SoCs are using something proprietary with no documentation
<jernej> I mean HDMI PHY
ErwinH has joined #linux-sunxi
<apritzel> Ah, I see
<apritzel> do we have A83T HDMI PHY support in U-Boot already?
<jernej> no, I plan to add it
<jernej> I first have to extract platform independant code from rockchip hdmi driver
<jernej> to share as much as possible
<jernej> this will work very well with A83T
<apritzel> sounds nice indeed
ErwinH has quit [Ping timeout: 255 seconds]
<apritzel> and no hurry here, H64 is not that widespread
<apritzel> lets focus on A64/H3/H5 first
<apritzel> jernej: I was wondering if we could name the #defines after their effect and not after the SoCs showing this behaviour
<jernej> you mean for mux number?
<apritzel> something like: #ifdef CONFIG_SUNXI_H3_H5
<apritzel> #define SWAP_MUXES
<apritzel> #endif
<apritzel> for instance, but not limited to
<jernej> that hopefully won't be necessary, because I plan to write DM driver
<apritzel> those lines somewhere at the beginning of the file
<apritzel> even better ...
<jernej> and because there are no DE2 nodes yet in DT
<jernej> I will have to settle with platform data
<jernej> and manually invoking driver trough defines
<jernej> eh, through ifdefs
<apritzel> aren't there proposals for DE2 bindings for Linux yet?
Ntemis has quit [Remote host closed the connection]
ErwinH has joined #linux-sunxi
<jernej> it seems that Jean-Francois dropped his efforts to mainline his driver
camh1 is now known as camh
<jernej> but MoeIcenowy just yesterday proposed new approach
<jernej> which doesn't yet support multiple pipelines
<jernej> actually only tcon0
<jernej> so, nothing short term