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
Ntemis has quit [Remote host closed the connection]
dave0x6d has joined #linux-sunxi
florianH has quit [Quit: Connection closed for inactivity]
lurchi__ is now known as lurchi_
afaerber has quit [Quit: Leaving]
lkcl has quit [Ping timeout: 258 seconds]
Hao has joined #linux-sunxi
chomwitt has quit [Ping timeout: 240 seconds]
lurchi_ has quit [Quit: Konversation terminated!]
lurchi_ has joined #linux-sunxi
Hao has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
ninolein has joined #linux-sunxi
ninolein_ has quit [Ping timeout: 258 seconds]
sgteem_ has joined #linux-sunxi
Hao has joined #linux-sunxi
sgteem has quit [Ping timeout: 240 seconds]
Andy-D_ has quit [Ping timeout: 240 seconds]
<willmore> KotCzarny, not bad connector placement. Power, HDMI, ethernet (if any), and some USB out the back and uSD card and USB( if any left) out the front.
apritzel has quit [Ping timeout: 246 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
terra854 has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
lurchi_ is now known as lurchi__
pg12 has quit [Ping timeout: 260 seconds]
pg12 has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
dave0x6d has quit [Quit: Connection closed for inactivity]
victhor has quit [Ping timeout: 268 seconds]
JohnDoe_71Rus has joined #linux-sunxi
leviathancn has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
cnxsoft has quit [Read error: Connection reset by peer]
leviathancn has quit [Ping timeout: 260 seconds]
Hao has quit [Remote host closed the connection]
Hao has joined #linux-sunxi
TheSeven has quit [Ping timeout: 256 seconds]
[7] has joined #linux-sunxi
IgorPec has joined #linux-sunxi
|Jeroen| has joined #linux-sunxi
Hao has quit [Ping timeout: 256 seconds]
<KotCzarny> offtopic, but somehow related: http://i.imgur.com/NkMDXFL.jpg
lkcl has joined #linux-sunxi
foxx has joined #linux-sunxi
foxx has quit []
f0xx has joined #linux-sunxi
goofie has joined #linux-sunxi
Guest54298 has joined #linux-sunxi
ssvb has joined #linux-sunxi
|Jeroen| has quit [Quit: dada]
cnxsoft has joined #linux-sunxi
quard has joined #linux-sunxi
<ssvb> lkcl: you still seem to be able to edit the wiki, so I don't quite understand why you can't or unwilling to provide a bit more details about your NAND problems
<ssvb> lkcl: wiki is an excellent collaboration tool for sharing information, you could improve it a lot by providing the information about the exact NAND IC model(s) that you were having problems with
<ssvb> lkcl: just a generalized claim that "it aint work" looks like a FUD
<ssvb> lkcl: and it is disrespectful to the people who have actually disassembled the BROM code to find https://linux-sunxi.org/NAND#More_information_on_BROM_NAND
Guest54298 has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
<ssvb> lkcl: and BTW, nobody is forcing you to use the mailing list, because the wiki is a much better place for sharing this kind of information
<KotCzarny> (or irc?, which is also permanently remembered, searchable)
<ssvb> KotCzarny: nope, irc logs are a pain to search
<ssvb> wiki is a lot more structured than irc or mailing list archives
<KotCzarny> but still, better than no info, and remember most people here trace the backlog daily
<ssvb> yeah, irc is good to discuss something in real time
<ssvb> but it would be best if lkcl could just add a table to the wiki with the list if NAND chips which do not work for him on A20
<ssvb> we also can't rule out the possibility that lkcl just did not flash these chips correctly, so step by step instructions about how to reproduce the failure would be welcome too
<KotCzarny> offtopic, is there a way to find out details of the socket in linux? in /proc/pid/fd/number there is 'socket:[149311]'
<beeble> KotCzarny: lsof?
<KotCzarny> ss doesnt even list it
<KotCzarny> beeble: thanks! found it
<KotCzarny> now, how can i nudge it to check if it's still valid? it's in ESTABLISHED state but libav is stuck (my ip changed in the meantime)
apritzel has joined #linux-sunxi
Andy-D_ has joined #linux-sunxi
scream has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
alexvf has quit [Ping timeout: 260 seconds]
p1202 has joined #linux-sunxi
<p1202> DWC hdmi databook & manual: https://dropfile.to/ce7rSm8 https://dropfile.to/svQoKXH
<p1202> ^jernej
p1202 has quit [Client Quit]
apritzel has quit [Ping timeout: 260 seconds]
Mr__Anderson has joined #linux-sunxi
BenG has joined #linux-sunxi
BenG is now known as Guest92191
Guest92191 is now known as BenG83_
The_Loko has joined #linux-sunxi
Putti has quit [Ping timeout: 240 seconds]
Putti has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
komunista has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
mzki_ has quit [Quit: leaving]
Andy-D_ has quit [Ping timeout: 246 seconds]
IgorPec has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 260 seconds]
marvs has quit [Read error: Connection reset by peer]
_whitelogger has joined #linux-sunxi
netlynx has joined #linux-sunxi
foxx has joined #linux-sunxi
foxx has quit [Ping timeout: 258 seconds]
vagrantc has joined #linux-sunxi
jernej has joined #linux-sunxi
<MoeIcenowy> jernej: someone posted some document of DW HDMI from DesignWare here
<MoeIcenowy> I downloaded, checked and found no confidential mark
<jernej> MoeIcenowy: It still says confidential on second page
<MoeIcenowy> ?
<jernej> under "copyright notice and proprietry information"
<MoeIcenowy> P.S. I tried to manually override the different registers on broken U-Boot
<MoeIcenowy> it didn't work.
<jernej> but anyway, the only new thing which is not described in a imx6 manual, it would be i2s audio transport, but that is already implemented in kernel driver
<MoeIcenowy> is there any magic bits that is needed to update the configuration?
<KotCzarny> doesnt allwinner docs say confidential too on quite a few of them?
<jernej> MoeIcenowy: then it might be timing issue. Can you enable debug output in DE2 and sunxi driver? It slowed execution just enough to work when I worked on it, before I add wait on clock stabilization.
<jernej> eh, hdmi driver
scream has quit [Remote host closed the connection]
<jernej> KotCzarny: true, but because IANAL, I don't know what is considered safe to use
reinforce has joined #linux-sunxi
chomwitt has joined #linux-sunxi
<jernej> MoeIcenowy: did you set driver to 32 bpp? Maybe that will help
<MoeIcenowy> both 16 bpp and 32 bpp do not work
<MoeIcenowy> jernej: I seem to get only 3 lines of debug info
<MoeIcenowy> Using device 'sunxi_dw_hdmi', disp_uc_priv=59f4f190\ndotclock: 32000kHz = 32000kHz: (24MHz * 16) / 3 / 4\nfb=5e000000, size=1024 600
<jernej> MoeIcenowy: Does this monitor fails regardless of the H3 board variant or it is limited only to boards with 512 MiB SDRAM
<jernej> ?
<MoeIcenowy> I have only OPi One/PC2, Pine64 with HDMI
<MoeIcenowy> Pine64 also failed
<jernej> PC2 works?
<MoeIcenowy> didn't test
<MoeIcenowy> will try it
<MoeIcenowy> and it shouldn't be fb issue
<MoeIcenowy> as the timing is broken (it will temporarily break the pixel points on the LCD panel, this won't happen if timing is correct)
<jernej> you mean that the issue is with the clocks?
<MoeIcenowy> should be
<jernej> I don't understand what would be wrong if every register is the same (except few in the hdmi controller)
<MoeIcenowy> maybe use mw.b to override register is not so correct
<jernej> oh, btw, I think you missed few clock registers yesterday. You should go full range 0x400
<MoeIcenowy> I got full range 0x10000 bytes.
<jernej> believe me, it is, for range 0x1ee0000 to 0x1ef0000
<MoeIcenowy> yes
<MoeIcenowy> md.b 01ee0000 10000
<jernej> I mean clocks as in CCU
<MoeIcenowy> clocks in CCU is compared in the first pass
<MoeIcenowy> md 01c20000 80 (0x80 words = 0x200 bytes)
<MoeIcenowy> and no difference
<MoeIcenowy> and in first pass DE2 registers are also compared -- no difference
<jernej> but some important registers are around 0x294 or so
<jernej> in CCU
<MoeIcenowy> ok on OPi PC2 it's also broken.
my123 has quit [Ping timeout: 268 seconds]
<jernej> eh, 0x01c202c4 for example
diego_r has joined #linux-sunxi
<MoeIcenowy> 0x01c202c4 are both 0x00001c08
<jernej> MoeIcenowy: Does your monitor support audio out?
<MoeIcenowy> nope.
<MoeIcenowy> no audio at all
<jernej> then try to comment out audio initialization in drivers/video/dw_hdmi.c
<jernej> in dw_hdmi_enable()
<jernej> you can also try to comment out hdmi_clear_overflow()
<MoeIcenowy> with audio commented out, still broken
<MoeIcenowy> with clear_overflow commented out, still broken
<jernej> when we are talking about "broken", in which way? Doesn't show anything?
<MoeIcenowy> strange display.
<MoeIcenowy> if you want I can take some photos
<jernej> Please do
<jernej> does it flicker?
<MoeIcenowy> P.S. nothing meaningful is displayed
<jernej> Can you also check if refresh rate is correct on the monitor?
yann-kaelig has joined #linux-sunxi
<MoeIcenowy> how to check it?
lkcl has quit [Ping timeout: 260 seconds]
<jernej> Most monitors display refresh rate somewhere in the menu
<jernej> Even my monitor which is made out of laptop panel and lvds to hdmi converter, reports it.
lkcl has joined #linux-sunxi
<MoeIcenowy> ok let me try to connect it to PC...
<MoeIcenowy> oh I forgot that my PC have only DP :-(
<jernej> I have to go... But I will read backlog, so just report anything you find out...
my123 has joined #linux-sunxi
apritzel has joined #linux-sunxi
my123 has quit [Changing host]
my123 has joined #linux-sunxi
<MoeIcenowy> jernej: http://img.vim-cn.com/d5/945272f54709c1d48ad66ff0c89542cf135e6b.jpg is the display just after U-Boot starts
<MoeIcenowy> and if it's placed for several seconds, it will finally change to http://img.vim-cn.com/80/56ff9bb47179ca5d50b96ce905ec220ccf67a9.jpg
Hao has joined #linux-sunxi
gjm has joined #linux-sunxi
lkcl has quit [Read error: Connection timed out]
lkcl has joined #linux-sunxi
Hao has quit [Ping timeout: 258 seconds]
BenG83_ has quit [Quit: Leaving]
Hao has joined #linux-sunxi
wzyy2 has quit [Quit: Ex-Chat]
wzyy2 has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
apritzel has quit [Ping timeout: 246 seconds]
[7] has quit [Ping timeout: 256 seconds]
LargePrime has quit [Ping timeout: 256 seconds]
TheSeven has joined #linux-sunxi
LargePrime has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
dave0x6d has joined #linux-sunxi
lkcl has quit [Ping timeout: 260 seconds]
LargePrime has quit [Ping timeout: 246 seconds]
afaerber has joined #linux-sunxi
LargePrime has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
Andy-D_ has joined #linux-sunxi
<jernej> MoeIcenowy: Can you try blue test pattern?
Hao has quit [Ping timeout: 268 seconds]
Hao has joined #linux-sunxi
Hao has quit [Ping timeout: 260 seconds]
leviathancn has joined #linux-sunxi
<MoeIcenowy> jernej: display abnormal with 0x01c0c090 or-ed 2
Hao has joined #linux-sunxi
<MoeIcenowy> but the abnormal parts get a bit blue
Andy-D_ has quit [Ping timeout: 260 seconds]
lkcl has joined #linux-sunxi
Hao has quit [Ping timeout: 240 seconds]
Hao has joined #linux-sunxi
<jernej> MoeIcenowy: which patches do you use and which U-Boot version? For example, does it happen with my dm_video_v3 branch?
Mr__Anderson has joined #linux-sunxi
<MoeIcenowy> yes, dm_video_v3
<MoeIcenowy> with your edid reading patch
<BenG83> if you need me to test with a different display I can help
<jernej> BenG83: That would be helpful
<jernej> BenG83: https://github.com/jernejsk/u-boot dm_video_v3 branch
<jernej> BenG83: If HDMI output is not right, please check it with de2_wip branch too
<BenG83> on normal Pine64?
<jernej> MoeIcenowy: I will check with current U-Boot master next week, I don't have boards over the weekend near me
<jernej> BenG83: Yes, it will work too on Pine64
<jernej> at least it should
<jernej> Anyway, see you later
<BenG83> does defconfig work or do I have to set some things?
<jernej> no, it works, you don't need to use ATF
<jernej> just defconfig
<BenG83> ok
<MoeIcenowy> or I have some built firmwares that have ATF, can boot Linux, and with the driver from de2_wip
<MoeIcenowy> (which perfectly runs with my 1024x600 special screen
<BenG83> I will test with Eizo EV2466 or my TV
<MoeIcenowy> P.S. My screen is WaveShare HDMI LCD 7-inch (C)
leviathancn has quit [Quit: No Ping reply in 180 seconds.]
jernej has quit [Ping timeout: 256 seconds]
<BenG83> looks nice
<BenG83> mmh I think I have to browse that shop a little...
leviathancn has joined #linux-sunxi
lurchi_ is now known as lurchi__
leviathancn has quit [Remote host closed the connection]
IgorPec has quit [Ping timeout: 268 seconds]
lurchi__ is now known as lurchi_
leviathancn has joined #linux-sunxi
apritzel has joined #linux-sunxi
lurchi_ is now known as lurchi__
<MoeIcenowy> apritzel: do you know the correct magic number to fix Pine64 GbE issue?
<MoeIcenowy> is it 0xd591 or 0xb591?
leviathancn has quit [Remote host closed the connection]
cptG has joined #linux-sunxi
cptG_ has quit [Ping timeout: 256 seconds]
apritzel has quit [Ping timeout: 260 seconds]
afaerber has quit [Quit: Leaving]
Mr__Anderson has quit [Quit: Leaving.]
IgorPec has joined #linux-sunxi
alsy has joined #linux-sunxi
alsy has quit [Ping timeout: 240 seconds]
Ntemis has joined #linux-sunxi
chomwitt has quit [Ping timeout: 240 seconds]
f0xx has quit [Ping timeout: 260 seconds]
Mr__Anderson has joined #linux-sunxi
multi_io has quit [Ping timeout: 246 seconds]
multi_io has joined #linux-sunxi
LargePrime has quit [Ping timeout: 258 seconds]
scream has joined #linux-sunxi
Ntemis has quit [Remote host closed the connection]
LargePrime has joined #linux-sunxi
lurchi__ is now known as lurchi_
apritzel has joined #linux-sunxi
<apritzel> MoeIcenowy: I have 0xb591 in my code, but that's just some number, AFAIK there is no explanation
<MoeIcenowy> P.S. is there any method to do MDIO in userspace?
<MoeIcenowy> I'm curious about the initial value ;-)
<beeble> linux does not have userspace mdio interface. there are drivers floating around exposing it to uesrland. or you could write it yourself. if you are interested in initial values maybe uboot is good enough for you?
<beeble> there is a mdio command available
<MoeIcenowy> wow thx
<MoeIcenowy> apritzel: the default value seems to be 0x8575
<MoeIcenowy> too many bits are different
<MoeIcenowy> no help.
<apritzel> MoeIcenowy: It's a kind of magic ...
<MoeIcenowy> yes...
victhor has joined #linux-sunxi
<MoeIcenowy> I hope the driver maintainer can accept the magic numbers
<MoeIcenowy> as they really work, although we cannot tell why
<apritzel> MoeIcenowy: does it have a negative effect on the working PHYs?
<MoeIcenowy> maybe some performance issues
<MoeIcenowy> but as I don't really use the ethernet function in production, I cannot judge it
<MoeIcenowy> (and even my kernel images are sent to one of my friends as I do not have broken PHYs
f0xx has joined #linux-sunxi
<MoeIcenowy> apritzel: P.S. will you push 32-bit SPL patchset to mainline u-boot?
<BenG83> as far as I understood what Tl said the Realtek engineer did was disable internal delay tuning for RX
<BenG83> this has nothing to do with the normal delay tuning though
<BenG83> +phy_write(phydev, 0x1f, 0x0007);//sel ext page
<BenG83> +phy_write(phydev, 0x1f, 0x0000);//sel page 0
<BenG83> +phy_write(phydev, 0x1c, 0xb591);//only enable TX
<BenG83> +phy_write(phydev, 0x1e, 0x00a4);//sel page 164
<BenG83> mayb Tl can reproduce more info
<BenG83> the question is, who else got that particular batch of PHY :)
<BenG83> but they are in so many devices so probably no one knows
<KotCzarny> not to derail the conversation, but my opipc isnt working with hdmi (legacy kernel, uboot display works), anyone got a clue what i broke?
<ssvb> KotCzarny: you can try to disable video support in U-Boot
<ssvb> maybe the BSP kernel expects the display controller to be in a certain state and gets confused if somebody has touched it
<KotCzarny> uh, sorry for the confusion, apparently i broke the fex (works now)
<ssvb> ok
lurchi_ has quit [Ping timeout: 240 seconds]
<KotCzarny> i've rewritten my fex with armbian's one, which resulted in hdcp being enabled (probably)
<ssvb> my understanding is that its purpose partially overlaps with https://linux-sunxi.org/GPL_Violations
<KotCzarny> ssvb, my idea was to create simple-pill-for-pasting-to-articles-about-how-things-are-in-allwinner-land
<ssvb> also we can't really expect to have unbiased information about other SoCs at the linux-sunxi wiki :-)
<MoeIcenowy> KotCzarny: for the states, I think we should have some more
<MoeIcenowy> e.g. "officially closed, reverse enginerring WIP"
<MoeIcenowy> and this status can be divided into "RE result mature" and "RE result not mature"
<KotCzarny> moeicenowy: that could be added as notes/references imo, not to overload the table with info
<MoeIcenowy> but this situation sometimes belong to no existed option
<MoeIcenowy> for example, the status of A64 DRAM -- we have some supports, but not as good as the official one (e.g. lack of LPDDR3 support in at least denx's repo)
<KotCzarny> in cases where open source driver is wip/not working well, i guess it would be 'closed source or blobbed only', and a note that work is being done, or just update it once it hits mainline
<KotCzarny> ssvb, our bias cant be worse than any random/phoronix article
<apritzel> MoeIcenowy: yes, I was thinking the same
<MoeIcenowy> apritzel: this answer is about 32-bit spl?
<apritzel> for the DRAM controller we have something that works (for H3/H5/A64/R40), but I wouldn't say that we have full understanding
<apritzel> MoeIcenowy: no: about that Wiki page
<MoeIcenowy> I agree
<KotCzarny> does it work well?
<apritzel> KotCzarny: define: "well"
<MoeIcenowy> P.S. when I went to AW they mentioned they will largely change the DRAM controller when adding LPDDR4 support
<KotCzarny> no issues, breakages, hangs, does what its supposed to do (ie. initialize hardware)
<MoeIcenowy> I'm very worried...
<apritzel> KotCzarny: I am pretty sure the code is wrong in places, also we leave performance and reliability on the table
maik_ has joined #linux-sunxi
<MoeIcenowy> I think the status is "it works; but it can surely work much better"
<KotCzarny> regarding performance and reliability, it is worse than aw blob?
<apritzel> KotCzarny: who knows?
<apritzel> did somebody did elaborate testing?
<KotCzarny> benchmarks? stability-testers?
<BenG83> not for A64 I think? I looked at what was done for A10/A20 on the wiki
<apritzel> BenG83: indeed
<maik_> Hi, i like to use the analog audio output of the nanopiNEO. Should this work with buildroot + linux-4.11-rc3 out of the box?
<MoeIcenowy> maik_: seems no...
<MoeIcenowy> I remember the audio pins are only available with expand pins...
<MoeIcenowy> that will mean you may need some device tree change
<KotCzarny> moeicenowy: have you seen nanopi air audio board?
<MoeIcenowy> KotCzarny: nope
<maik_> But this was planed for the 4.11 "Audio codec device tree changes"
<MoeIcenowy> maik_: yes, but our maintainer do not like to add functions directly to the device tree, when it's not available without expansion boards
<apritzel> MoeIcenowy: re: 32-bit SPL: I have other stuff higher in my priority list
<apritzel> MoeIcenowy: I think we need to find a way to use the same defconfig for both bitnesses
<maik_> But the analog pins are available without any extension board!
<MoeIcenowy> maik_: the standard connector is not available
<MoeIcenowy> you can refer to arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts for chapter &codec
<KotCzarny> it's for nanopi air
<MoeIcenowy> and try to adapt this part to arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
<maik_> No, i am talking about the nanopi NEO. Its hase a analog LINEOUT. These pins are working with the default image. But i like to use buildroot + mainline kernel.
<MoeIcenowy> maik_: nanopi m1 and nanopi neo both uses sun8i-h3-nanopi.dtsi
<MoeIcenowy> so you can enable it there
<MoeIcenowy> and I mention the opi pc device tree for a reference
<MoeIcenowy> mripard: may we enable unmuxed pins that is available via expansion connectors by default?
<MoeIcenowy> I think this problem at least exists on Nano Pi NEO and Orange Pi Zero
jernej has joined #linux-sunxi
<MoeIcenowy> or if we cannot, at least our community should maintain a repository for all official expansion boards' device tree overlays
LargePrime has quit [Ping timeout: 240 seconds]
<apritzel> MoeIcenowy: actually we should have such a DT repo in any case
LargePrime has joined #linux-sunxi
<apritzel> because having DTs for each and every *board* in the kernel isn't strictly necessary
<maik_> So i have to add this block "&codec {allwinner,audio-routing ="Line Out", "LINEOUT", ... };" in arch/arm/boot/dts/sun8i-h3-nanopi.dtsi. This will enable the analog pins?
cloud-e has quit [Ping timeout: 264 seconds]
<apritzel> shall we create another repo in github/linux-sunxi?
<MoeIcenowy> maik_: I think so.
pg12 has quit [Ping timeout: 260 seconds]
pg12 has joined #linux-sunxi
f0xx has quit [Ping timeout: 240 seconds]
netlynx has quit [Quit: Ex-Chat]
<maik_> When I add "&codec {allwinner,audio-routing ="Line Out", "LINEOUT", ... };", then the sound card disapears in /proc/asound/cards? http://pastebin.com/GWxBcHwm
apritzel has quit [Ping timeout: 240 seconds]
<MoeIcenowy> maik_: have you enabled sun4i-codec and sun8i-analog-codec drivers?
<maik_> Yes: CONFIG_SND_SUN4I_CODEC=y, CONFIG_SND_SUN8I_CODEC=y, CONFIG_SND_SUN8I_CODEC_ANALOG=y
<ssvb> lkcl: if you think that you can provide some constructive input, such as the real-world examples of problematic NAND ICs, then it would surely improve the page and help other people to avoid problems
<ssvb> lkcl: feel free to ping me on IRC if you want to discuss something
cloud-e has joined #linux-sunxi
Keziolio has quit [Ping timeout: 260 seconds]
Keziolio has joined #linux-sunxi
Keziolio has joined #linux-sunxi
Keziolio has quit [Changing host]
f0xx has joined #linux-sunxi
wzyy2 has quit [Quit: Ex-Chat]
wzyy2 has joined #linux-sunxi
f0xx has quit [Ping timeout: 260 seconds]
Andy-D_ has joined #linux-sunxi
alsy has joined #linux-sunxi
Putti has quit [Ping timeout: 240 seconds]
alsy has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
komunista has quit [Quit: Leaving.]
<yann-kaelig> Hi. Any idea why this fix is broken https://github.com/linux-sunxi/linux-sunxi/commit/d050898d0ceb68d73e15912df767cc2496a6c106 ? There is no sys_config.h into the arch/arm/plat-sunxi folder
<KotCzarny> its legacy kernel, abandoned and smelly
<KotCzarny> Latest commit d47d367 on Feb 20, 2015
<yann-kaelig> KotCzarny, HI, I know that, but actually there is nothing correct for MALI GPU 400 on mainline
<KotCzarny> wasnt there a patch for mainline?
vinimac has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
<yann-kaelig> a patch for what ? I need 3D acceleration for gpu mali400.
<KotCzarny> or even a;lready integrated
<KotCzarny> btw. mali is only 3d, you know? it wont accel 2d or videos
<KotCzarny> also in mainline without any patch: # CONFIG_DRM_MALI_DISPLAY is not set
<KotCzarny> though i dont know what it does
parazyd has quit [Quit: nuked]
<yann-kaelig> KotCzarny, drm_mali if I remember correctly is for mali450 and other one, but not the 400
<KotCzarny> but what do you need mali for?
parazyd has joined #linux-sunxi
parazyd has joined #linux-sunxi
lurchi_ is now known as lurchi__
<yann-kaelig> I need Mali for two software. Kodi and Mixxx (DJ turntable) without Mali kodi doesn't start and on mixxx turnable control is impossible due to the lag
<KotCzarny> as for kernel, you are right, it's for dp500,550,650
<yann-kaelig> yes, thx you right dp...
<KotCzarny> ssvb: ^ another reason to have mali supported
<vinimac> hi. how can I define interrupt function in dts code? function="irq"?
terra854 has quit [Quit: Connection closed for inactivity]
lurchi__ has quit [Ping timeout: 264 seconds]
<ssvb> KotCzarny: yeah, Kodi can't function properly without Mali, it's a known thing
<yann-kaelig> KotCzarny, I ask on lima channel if a crowdfunding could help to finish the development, and replied that it is simply impossible. So we can't use the full power of this good multimedia board. It's like a lamborghini with a 2CV ^^
<KotCzarny> kodi is known, i meant the other program
<ssvb> yann-kaelig: you still can use the proprietary driver
<ssvb> I mean the mali blob
<yann-kaelig> ssvb, hi. but not on the mainline kernel ?
<KotCzarny> um, allwinner is more like dacia
<ssvb> yann-kaelig: why not?
<KotCzarny> definitely far from any power-stuff ;)
<ssvb> yann-kaelig: you can hook the Mali driver anywhere
lkcl has quit [Ping timeout: 260 seconds]
<yann-kaelig> ssvb, the userspace binary blob is not only compiled for a specific kernel version ?
<ssvb> yann-kaelig: it is
<ssvb> but the kernel driver is open source
<ssvb> and you can adapt it
<yann-kaelig> ssvb, ok, but what can I with kernel driver without the userspace side ?
<ssvb> in fact everyone and their dog is doing that
<yann-kaelig> do*
<ssvb> you get the userland blob
<ssvb> check what kind of version it is
<ssvb> then go to the arm website and download a tarball with the matching kernel driver version (it is open source)
<ssvb> then do a bit of patching to integrate it with the display driver, and also ensure that it is properly configured and clocked
<ssvb> numerous people have done this in their private kernel trees
<ssvb> there is also a recent effort to contribute some parts of Mali support code to the mainline kernel
<ssvb> basically, the devicetree bindings and maybe some other minor things
<ssvb> this should reduce the amount of patching required in people's private forks
<ssvb> yann-kaelig: what kind of hardware do you have? and what are you trying to do with it?
IgorPec has quit [Ping timeout: 240 seconds]
<yann-kaelig> I have a cubieboard2 and cubietruck (A20) I would like to use them for my musical purpose, and touchscreen control and Mixxx is one of them and also with kodi
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
quard has quit [Ping timeout: 240 seconds]
wzyy2_ has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]
reinforce has quit [Quit: Leaving.]
wzyy2_ has quit [Ping timeout: 240 seconds]
jbrown has quit [Ping timeout: 240 seconds]
maik_ has quit [Ping timeout: 260 seconds]
maik_ has joined #linux-sunxi
<rreignier> For another use-case of Mali, I wanted to create a Qt 5.8 qtquickcontrols2 app on a H3 device and it failed because required OpenGL ES support. So I had to use the old kernel.
lurchi__ has joined #linux-sunxi
<rreignier> And somehow related, do someone aware of something like fbcp on Raspberry that allow to copy the HDMI framebuffer to the one provided by fbtft (SPI display) in order to take the benefit of hardware accelerated graphics on a small screen? (for an H3 device).
jernej has quit [Ping timeout: 256 seconds]
jbrown has joined #linux-sunxi
ericxdu has quit [Remote host closed the connection]
chomwitt has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
<ssvb> rreignier: you can have 3D accelerated Qt5 on H3 with a legacy kernel
<ssvb> mainline kernel is also possible, but just needs some work
<Net147> rreignier: Qt 5.8 has software rendering support built-in for Qt Quick now. You won't have tear-free graphics though.
<ssvb> Net147: you can use Qt5 with Mali
<ssvb> these are a bit old instructions for A10/A20 and X11 mali driver - https://linux-sunxi.org/Qt5_For_Mali_Binaries
<ssvb> the framebuffer mali driver also works
<rreignier> ssvb: Yes, I managed to get it on legacy. It just would have prefered a mainline one. I have followed what mripard did for the CHIP so yes, it would be possible to get a driver for mali in mainline but I do not have the knowledge and time right now :(
<ssvb> rreignier: exactly, as I said, a bit of patching is needed to adapt Mali drivers and hook them with the display driver
<ssvb> one of the problems is that the mainline kernel is a moving target
<ssvb> the mali blobs are a moving target too
<rreignier> Net147: Actually, I did not try the software rendering because I was not sure about the performance. Actually, it is a GUI for a robot so the CPU has a lot of tasks to do in the background...
<ssvb> if you want to be always up to date, then it is going to constantly drain your time and efforts
maik_ has quit [Ping timeout: 260 seconds]
<rreignier> ssvd: Thanks for the link, I did not see it before.
<ssvb> it's a very old link, I don't know if it still works
<rreignier> ssvb: and yes, it seems that maintaining a mali driver would be quite time consuming.
ericxdu has joined #linux-sunxi
<rreignier> Does anyone knows if mrpiard's sunxi-mali repo could be apply to other CPU than the R8 of the CHIP?
<ssvb> first of all, you need a display driver
<rreignier> Ah yes, I see
<rreignier> I am not very confortable with all the elements of the Linux graphics stack applied to Allwinner
<ssvb> because mali is just rendering everything to memory buffers, it does not implement hdmi or lcd support
<ssvb> a display driver is something that can be completely open source, and some work is ongoing in this direction
<ssvb> both in U-Boot (for simplefb and/or efifb) and in the linux kernel (drm/kms)
<rreignier> Ok, nice.
<rreignier> And does the new tiny-drm thing is something that we can call a "display driver"?
<rreignier> It seems to replace fbtft, using the drm system.
<ssvb> you can check the irc logs and the messages from MoeIcenowy and jernej
yann-kaelig has quit [Quit: Leaving]
<Net147> rreignier: I have used mripard's sunxi-mali with A20 successfully
<rreignier> ssvb: Ah yes, I have seen the messages but did not really understand the subject...
<rreignier> Net147: Oh, interesting! But is there a drm/kms driver for the A20 already? Or does it work with simplefb also?
<ssvb> this is the messy stuff
<ssvb> sokmething is already mainlined
<ssvb> something is in private branches
<ssvb> something is under review
<ssvb> and something can't be mainlined at all (the kernel driver from ARM)
<ssvb> if you get a competent developer, then this stuff is doable and even not that difficult
<Net147> rreignier: you can use sun4i-drm driver with some devicetree hacks on A20
<rreignier> ssvb: Oh ok, I see. So not an easy task for a hobbyist like me.
<ssvb> rreignier: the problem is that this stuff gets outdated pretty fast even if somebody does it
<ssvb> and it's not a pure "mainline" kernel because you will have some patches on top of it
<ssvb> you need to adjust your expectations
<rreignier> Net147: Ah ok, interesting. No really comfortable with device tree hacks right now but definitely something I could try one day.
<rreignier> ssvb: I am ok with some patches, what I mean by mainline is a "recent enough" kernel so basically, a 4.1x and not 3.10.
GrimKriegor has quit [Quit: oh bai bai bai]
GrimKriegor has joined #linux-sunxi
apritzel has joined #linux-sunxi
goofie has quit [Ping timeout: 258 seconds]
scream has quit [Remote host closed the connection]
lurchi__ has joined #linux-sunxi
xes has quit [Ping timeout: 240 seconds]
paulk-collins has quit [Read error: Connection reset by peer]
xes has joined #linux-sunxi
bonbons has joined #linux-sunxi
Ntemis has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 264 seconds]
Mr__Anderson has quit [Remote host closed the connection]
The_Loko has quit [Quit: Leaving]
Andy-D_ has quit [Ping timeout: 256 seconds]
bonbons has quit [Quit: Leaving]