2019-12-23

<anarsoul> montjoie: what SoC?
<montjoie> but clearly the driver is not loading
<montjoie> curlybracket: I dont see this problem in v8
<montjoie> so dt patch are wrong ?
<curlybracket> montjoie: I've encountered the same problem with the sun8i-thermal driver you described on Saturday. sun8i_ths_probe was failing with -2 because DT node listed "ahb" clock name instead of "mod" which was expected by the driver.

2019-12-22

<montjoie> oh very interested! It will permit to remove all my USB dongle on all my H6
<montjoie> tuxd3v: kernelci have a lime2 so you could always check its status
<tuxd3v> montjoie, maybe sun4i_ss was ok, before.. I have never succeeded in configuring PRNG correctly... using RNG-tools .. and now out-of-the-box it just work with config CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG=y
<montjoie> tuxd3v: sun4i_ss was not fine before ?

2019-12-21

<anarsoul> montjoie: they exist because you have thermal zones in dts
<montjoie> basicly all kernelci boards
<montjoie> I hit that on pineh64 model b and sun50i-h5-libretech-all-h3-cc and sun8i-h2-plus-orangepi-r1
<montjoie> but strange that the /sys files exists without it
<montjoie> anarsoul: I have probably a problem since i didnt see the driver loaded
<anarsoul> montjoie: on what platform did you test it?
<anarsoul> montjoie: I tested it only on A64 (don't have other devices) - works fine for me
<jernej> montjoie: I just tried thermal patch on top of 5.4 on Tanix TX6 (H6) and it works fine when reading /sys/class/thermal/thermal_zone0/temp
<montjoie> anarsoul: I test your thermal serie, and I got cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument

2019-12-20

<montjoie> SMB...
<montjoie> but there are too many users...
<montjoie> it can pass
<montjoie> joke, no joke who knows
<montjoie> 1st april is not fat, I could try it on this day
<montjoie> I try to see if any non-crypto driver use it
<montjoie> for made the linecount god happy
<montjoie> time to try a BIG PATCH THAT REMOVE IT (along with DES3)
<montjoie> I dont know why Linux keep it
<montjoie> hé hé hé
<willmore> montjoie, how much to disable DES?
<montjoie> or more evil, enable AES 1024
<montjoie> or money. I will create a kickstarter for crypto, larger backer will get extra speed ah ah ahah

2019-12-17

<rellla> maz, montjoie: it was the commit from linus on top of 5.5-rc2 btw
<rellla> maz, montjoie: thanks, i'll give master chance then.
<montjoie> rellla: no problem on my side (kernelci) on 5.5-rc2 gcc-8 sunxi_defconfig
<montjoie> I retry 5.5-rc2 on kernelci https://kernelci.org/boot/sun7i-a20-cubieboard2/

2019-12-16

<montjoie> I send a patch for renamin next to "sid"

2019-12-10

<tuxd3v> montjoie, thanks :)
<montjoie> I need to update wiki/doc
<montjoie> sun4i-ss has PRNG but the hardware is totally different
<montjoie> no H6 is sun8i-ce
<montjoie> tuxd3v: no PRNG nor TRNG support in H6 actually, I need to send it
<montjoie> and arm seems to didnt boot
<montjoie> arm64
<montjoie> the patch fixing it is ready
<montjoie> b120a822ef107df8dc5b4faf383871aa2449eb92 is broken ("ARM: dts: allwinner: Split out non-SoC specific parts of Neutis N5")
<montjoie> strange that this broken patch was not spotted by kbuild robot
<montjoie> next is broken due to sunxi...

2019-12-09

<montjoie> karlp: i mean host but yes it could be splited
<montjoie> done
<montjoie> (at least)
<montjoie> with USB NET SD as line
<montjoie> do you agree to have a uboot support matrix in http://linux-sunxi.org/Mainline_U-Boot ?
<montjoie> I have stuff but on the same page for uboot I will do
<montjoie> a section like that is good for wanna do something starter
<montjoie> but for example, I have a coworker which seek a "driver to do"
<montjoie> I dont know what is remaining apart from crypto
<montjoie> I found it on december 2017
<montjoie> "left to be done"
<montjoie> no I remember a section like "pick one"
<montjoie> a section with "low medium hard difficulty" existed
<montjoie> why the mainline TODO section was removed in the wiki ?
<montjoie> very few failure like 1/2 per 1000 in my memory, but it is a prng so ok for me
<wens> montjoie: what sorts of results did you get?
<montjoie> wens: I used it a bit for testing sun4i-ss rng
<wens> montjoie: do you know anything about rngtest?

2019-12-07

<willmore> montjoie, that's a bummer.
<montjoie> so no sdcard encryption
<montjoie> argh my live test confirm it, EMCE is only for mmc2/emmc
<wens> montjoie: yup, standard scheme for allwinner: mmc0 = sd card, mmc1 = sdio for wifi, mmc2/mmc3 = emmc

2019-12-06

<montjoie> oh emmc
<montjoie> sadly I read in the datasheet that EMCE is availlable only on SMHC2, and only pineh64 have it enabled
<montjoie> could someone said what is the mmc2 on the pineh64 ?
<montjoie> that was my last hope of using it for CI
<montjoie> seems to fail on A80/cubie4
<montjoie> anyone played with kexec on sunxi ?

2019-12-03

<montjoie> and when you saw the official advice "put your board vertically for fixing heat problem"...
<montjoie> wens: I need to add rpi4 on CI, no uboot USB, no uboot net, my only way is to code some kexec fun
<wens> montjoie: sh*t how? :p
<montjoie> fALSO: I confirm, rpi4 is so s..t
<montjoie> mmmh I have THERMAL_HWMON so I should see it
<montjoie> anarsoul: I have tried your THS serie, but I saw no change, how to test it ? running sensor give no output for example

2019-11-27

<anarsoul> montjoie: it applies more or less cleanly on linux-next, some dts patches are fuzzy, but it's OK. Anyway, I'll rebase it onto linux-next before sending v7
<montjoie> I try to finish my boot-all-sunxi-patch-serie-bot
<montjoie> thanks
<anarsoul> montjoie: linux master
<montjoie> I fail to apply it on mripard/for-next and linux-next
<montjoie> anarsoul|c: on top of which tree your thermal serie is based ?
<jernej> montjoie: I think there is none. 5.6 related branches will apear once 5.5-rc1 is released.
<montjoie> wens: which branch of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/ is next-next ?
<montjoie> mripard_: where is your "next" tree ? the one I find seems obsoletes
<montjoie> mripard_: you said applied for pine64 model b but I still didnt saw them in linux-next

2019-11-25

<montjoie> rules for young/old, you are always the young of someone, my grandfather was saying "noob you use transistor based electronics"
<montjoie> it should

2019-11-22

<montjoie> ah I just saw that "the ninth gate 2" scenario will be based on Allwinner BSP
<montjoie> willmore: yes it is worse than any satan ritual or is a part of it
<montjoie> but the "do RSA in symmetric mode" was the best alarm of the BSP driver usefullness
<montjoie> I just check for confirming, in BSP the A33 SHA1 problem is not handled...
<willmore> montjoie, then implementing from scratch makes even more sense. :)
<montjoie> I am nearly sure it was never tested
<montjoie> willmore: the BSP driver is more awfull than using old API
<willmore> wens, I wasn't sure if montjoie started from a clean slate or worked to move the BSP driver over. If it were the latter, I would assume it would have been written in the most out of date API possible. Knowing vendors...
<willmore> montjoie, oh, good. I got worried when I read that article that you're have another hurdle thrown in your path.
<montjoie> willmore: wens: yes all sunxi crypto uses skcipher

2019-11-21

<willmore> montjoie, is your sunxi-crypto work compatable with the new crypto api or do they use some other api? https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.5-Finishes-SKCIPHER
<montjoie> willmore: yes gremlins are everywhere
<montjoie> swap over NFS in case of missing RAM size
<montjoie> especially after midnight
<montjoie> NEVER build on sdcard

2019-11-17

<tuxd3v> montjoie, thanks for your confirmation :)
<montjoie> megi: yes I test BE currently, I will enable it on kernelci for all sunxi soon
<megi> montjoie: you can run H3 in big endian mode?
<montjoie> fun, cryptsetup crash only on (BigEndian && opi1+)
<montjoie> tuxd3v: yes sun4i-ss provide ciphers, hash and prng

2019-11-14

<montjoie> endianess killed me

2019-11-13

<montjoie> it is a valid compilation target, so it must works
<montjoie> no, fixes for arm bigendian and for A33
<montjoie> wow such stack of fix for sun4i-ss comming

2019-11-12

<montjoie> pfff SS fail on sha1 test on A33 only, probably since the beginning, nobody never reported...
<montjoie> and listenning some reversed metal

2019-11-09

<montjoie> uhubctl to the rescue!
<montjoie> raaah the serial leak power ton the pineh64

2019-11-08

<montjoie> I saw higher price
<montjoie> it is cheap
<montjoie> for our LAB we use cambrionix HUB, but it is 110livre sterling for 8 ports
<montjoie> for testing you need to automate power cycling
<montjoie> Power Distribution Unit
<montjoie> it is an amazon basics hub which have per port power via uhubctl
<montjoie> someone from NXP give me their cheap power PDU reference
<montjoie> if you want to automate testing, I recommand to use LAVA for board management
<montjoie> pineh64 modelA availlable for kernelci
<montjoie> yes! it works
<montjoie> and for the moment my ethernet USB dongle is not detected
<montjoie> it dont
<montjoie> fALSO: yes I mean for uboot
<montjoie> smaeul: does your ATF serie is sufficient for having emac in uboot for h6
<montjoie> I cannot find them
<montjoie> could someone point me the patch for H6 emac in uboot ?

2019-11-05

<montjoie> I dont understand why they dont have simple made it x4
<montjoie> sŧill contention on one register (the start task)
<montjoie> and I have a patch for boosting even further sun8i-ce
<montjoie> but the result is still in favor of sun8i-ce
<montjoie> but sun8i-ce can do only one algo class (rng, sym, asym) at a time and the sun8i-ss could do two
<montjoie> wens: at least the perf is better
<wens> montjoie: seems like the newer sun8i-ce is much better, as it uses task descriptors?

2019-11-01

<montjoie> yes
<montjoie> ah ah ah 3 crypto driver (with both allwinner ones) in one linux release

2019-10-30

<tuxd3v> thanks montjoie
<montjoie> tuxd3v: you could ignore the syscon warning
<montjoie> thanks megi
<montjoie> yes adding the "connector:" label did the trick
<megi> montjoie: grep for hdmi-connector in base dts
<montjoie> I got Label or path connector not found
<montjoie> jernej: your "patch" fail to build

2019-10-29

<montjoie> jernej: thanks
<jernej> montjoie: you still need that node in pine64 model A DT
<montjoie> okay so only ethernet remains different
<megi> montjoie: my ddc-en-gpios patch for the hdmi driver was merged upstream, so dts change should work
<montjoie> or perhaps it will be easier that you send a patch after mine
<montjoie> jernej: I will resend the pineH64 model A serie, could you confirm that your patch is still needed and working https://lkml.org/lkml/2019/8/16/309

2019-10-28

<tuxd3v> montjoie: thanks for the info
<montjoie> tuxd3v: TRNG is on my TODO list for sun8i-ce

2019-10-25

<smaeul> montjoie: megi: I posted a u-boot patch for the necessary driver changes a couple of weeks ago
<montjoie> tomeu: someone is working on H6 ethernet for uboot, but cannot remember who
<tomeu> montjoie: guess there isn't support for it in u-boot yet?
<montjoie> tomeu: no the erthernet GMAC is real device
<montjoie> try all ports
<tomeu> montjoie: yeah
<montjoie> tomeu: you mean an "USB ethernet dongle" ?
<tomeu> montjoie: I'm having trouble getting the eth probed in u-boot on a h64

2019-10-19

<montjoie> on aliexpress I mean
<montjoie> on allwinner I found some probable real FTDI but nothing less than 6€
<montjoie> real FTDI are 15€
<montjoie> seems unaivaillable on the web site
<ullbeking> montjoie: it's got an 'e' on the end
<montjoie> ullbeking: seems yes http://www.orangepi.org/orangepiplus2e/
<montjoie> ask orangepi ?

2019-10-12

<montjoie> hello

2019-10-11

<montjoie> Net147: with ignore_loglevel it seems to always boot
<montjoie> all recent boots passed withotu USB, I try to reenable it
<montjoie> nothing is connected
<montjoie> uboot was freezed in starting USB
<montjoie> related ?
<montjoie> pff I just remember that I disabled USB in uboot for this board...
<montjoie> will try
<montjoie> totally normal, CRYPTO_EXTRA_TEST is enabled
<montjoie> according to the working boot, it is USB just after the freeze
<montjoie> but the boot didnt reach init
<montjoie> no distrib, it is a kernelci job (with simple buildroot on ramfs)
<montjoie> the fail is random...
<montjoie> I just started to re-enable things and wont boot (even without sata)
<montjoie> yes
<Net147> montjoie: are you powering using DC connector?
<montjoie> now, time to understand why sata break the board
<Net147> montjoie: 4.19.78 is less than a week old...
<Net147> montjoie: I don't have SATA enabled in my kernel
<montjoie> removing sata made it boot...
<montjoie> Net147: could you try something more recent ? but since my board fail on 4.8.17...
<Net147> montjoie: I have sun7i-a20-olinuxino-micro, running 4.19.78
<montjoie> but I need to know if my hw is ok
<montjoie> plaes: for the moment from 4.8 up to next it wont boot
<plaes> montjoie: I have one at home
<montjoie> anyone with a sun7i-a20-olinuxino-micro ? 5.2.18 fail to boot on it

2019-10-08

<montjoie> was going mad while my driver was failling only when encapsulated in a gcm(aes)
<montjoie> it is a test vector in linux
<montjoie> ppffff when data is full of zero and key is full of zero, SS does not work...
<montjoie> I need to boot it automatically
<montjoie> wens: A80 is one of the remaining SoC not in kernelci
<wens> montjoie: I haven't done that in some time... and never with mainline u-boot
<montjoie> wens: I want to boot cubie4 via FEL, not using it as host
<smaeul> montjoie: ^
<wens> montjoie: you can't use the cubie4 as a host for doing FEL stuff

2019-10-07

<montjoie> wens: so no FEL on cubie4 ?
<montjoie> any idea ?
<montjoie> when doing FEL from latest sunxi-tools on a Cubie4 I get 'libusb_claim_interface() ERROR -5: Entity not found'
<montjoie> like undefine dinstructions
<montjoie> avph: I have errors when doing that (the go xxxx)
<smaeul> montjoie: that's what I've been trying to do :)
<avph> montjoie: That's a only a feature in the allwinner uboot. With mainline uboot you can just jump to FEL address: https://linux-sunxi.org/FEL#Through_serial_console
<montjoie> with the stock uboot it works
<montjoie> do I need to do something ?
<montjoie> I try to do FEL with a cubie4 and mainline uboot, but "efex" does not work
<MoeIcenowy> montjoie: maybe
<montjoie> I have lot of PHY timeout on bananapi M64, do you think this kind of hack could help ?
<montjoie> smaeul: I am really interested in testing it, all H6 boards in kernelCI need an USB dongle for the moment...
<montjoie> smaeul: you could test TFTP

2019-10-04

<montjoie> now dmcrypt accept 4096 sector size...
<montjoie> my far though was to add it as a kconfig option, but nobody asked for it and I forgot it
<montjoie> megi: I will try to refound my patch for it, and will give it to you as example
<montjoie> I could do a retry for a bench
<montjoie> yes
<montjoie> this increase time of treatement
<montjoie> using DMA needs dmamapping and some other checks
<montjoie> speed is generic/10
<montjoie> megi: TOO SLOW
<megi> montjoie: is there any reason why sun4i-ss-cipher does not use DMA?

2019-10-03

<montjoie> wow it seems that we can choose to encrypt only some sector
<montjoie> ah there's more EMCE register directly in sdhc and ndfc controller
<willmore> montjoie, yep, that's the normal way to do it. Ask at boot.
<montjoie> a possible way is protect the key by a password and ask it at boot
<montjoie> it is readable by anyone
<montjoie> but having to store the key somewhere readable is...
<montjoie> If I understand well the limited documentation...
<willmore> montjoie, understood.
<montjoie> it seems to intercept MMC/NAND "traffic"
<montjoie> willmore: EMCE bypass dmcrypt/luks
<montjoie> another solution is to have sdcard only for starting and rootfs on encrypted NAND since EMCE support the NAND
<montjoie> so I have to add support for it to uboot
<montjoie> it supports aes-xts
<montjoie> it seems that the encryption is for the whole sdcard or not
<montjoie> and where to store the key ?
<montjoie> but how to set this nicely in linux
<montjoie> EMCE seems in middle of the mmc "bus" so transparent for the controller
<montjoie> willmore: the more problem is that the documentation is SMALL
<willmore> montjoie, LOL, true. I'm sure that it won't work because of layering issues.
<montjoie> willmore: for mmc the EMCE should be more effective, but who know, it is allwinner stuff...
<montjoie> willmore: for network, I never tested ipsec (but I should to)
<willmore> montjoie, that's what I was afraid of. It makes it hard to use it for efficient disk or network encryption.
<montjoie> it is on my TODO driver queue
<montjoie> willmore: on H6 it exists a crypto device dedicated for MMC
<montjoie> willmore: only from memory
<willmore> montjoie, the encryption engine works like DMA in that it reads data and writes it out somewhere else (or back to the origin), right? Can it read/write from I/O devices like the SATA controller or SD controller? Or does it need to operate only on in-memory buffers?
<montjoie> wens: yes
<montjoie> for each request we still need to do lots of cpu action like dmamapping
<montjoie> the ce already do dma
<montjoie> the gain is due in fact to: less interupts and less kthread resume
<montjoie> willmore: not sure to have understood your question

2019-10-02

<montjoie> I use it also, but not really reliable
<montjoie> aes-xts-plain64
<montjoie> xts(ecb)
<montjoie> 200MB/s with dd on LUKS2/4096 not bad
<montjoie> and I need to add a bench with a 4096 sector size LUKS, I expect it better
<montjoie> the interest is that the speed is the same when cpu is loaded (last time I benched)
<montjoie> jernej: not so slow, I need to rebench against arm-crypto
<jernej> montjoie: so now HW crypto is actually useful?
<willmore> montjoie, congrats.
<montjoie> I batch by 8, let's try 32
<montjoie> on all soce
<montjoie> so I batch request, but doing that force me to go away the official "linux/cryptoengine" for managing queue
<montjoie> I use the task list next which I didnt use before
<montjoie> yeah it seems tham I just found an optimization which increase crypto engine by 20% up to 100%

2019-09-27

<montjoie> perhaps it is possible, but I dont remember to have saw something
<montjoie> KotCzarny: no WOL for sunxi
<KotCzarny> montjoie: do stmmac support wake-on-lan? or in particular, ethernet on sunxi socs?

2019-09-20

<KotCzarny> montjoie: ^
<montjoie> send a patch for review as RFC/RFT
<montjoie> since it is a modified R40, probably it uses the sun8i-emac
<montjoie> tdebrouw: are you sure that V40 use sun4i-emac ?

2019-09-19

<montjoie> not yet
<libv> montjoie: did you try olimexes own uboot tree?
<montjoie> anyway, I will put it on the testlab with 100M switch
<montjoie> libv: my lime2 is rev: C, I still tried it and no change

2019-09-18

<montjoie> libv: thanks I will try it
<montjoie> the tx delay thing ? not sure to have understood you
<montjoie> seems that the gigabit is unstable
<montjoie> anyone with an sun7i-a20-olinuxino-lime2 using uboot ethernet ?

2019-09-16

<montjoie> hé hé, I have just received 6 more sunxi boards to add to kernelci