hanetzer1 has quit [Ping timeout: 480 seconds]
hanetzer has joined #openwrt-devel
minimal has quit [Quit: Leaving]
tSYS has quit [Quit: *squeak*]
tSYS has joined #openwrt-devel
valku has quit [Remote host closed the connection]
hanetzer1 has joined #openwrt-devel
hanetzer has quit [Ping timeout: 480 seconds]
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
rmilecki has quit [Quit: Konversation terminated!]
rmilecki has joined #openwrt-devel
rmilecki has quit []
rmilecki has joined #openwrt-devel
rmilecki has quit []
rmilecki has joined #openwrt-devel
xback has quit [Remote host closed the connection]
goliath has joined #openwrt-devel
xback has joined #openwrt-devel
robimarko has joined #openwrt-devel
Tapper has joined #openwrt-devel
kwz has quit [Ping timeout: 480 seconds]
floof58 has quit [Ping timeout: 480 seconds]
floof58 has joined #openwrt-devel
neggles has quit [Quit: bye friends - ZNC - https://znc.in]
rua has quit [Quit: Leaving.]
<Habbie> on which of the packages branches are CVE fix PRs accepted?
<Habbie> and, crucially, also eventually built and put in the feeds?
<robimarko> Should be on all of the supported ones
<Habbie> that's 23.05 and 22.03
<robimarko> And main/master
<Habbie> of course
<Habbie> that one was merged
<Habbie> i guess i shouldn't bother with 21.02 anyway
<Habbie> thanks for the reality check :)
neggles has joined #openwrt-devel
Tapper has quit [Read error: Connection reset by peer]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
Snuupy has quit [Quit: leaving]
Snuupy has joined #openwrt-devel
xback has quit [Remote host closed the connection]
xback has joined #openwrt-devel
<Ansuel> nbd ping?
<aparcar> why does openwrt uses it's own kmodloader and not busybox?
<russell--> [172824.035874] PowerPC Book-E Watchdog Exception
<russell--> [171932.844297] PowerPC Book-E Watchdog Exception
<russell--> seeing this on a Meraki MR24, repeatedly it seems
<russell--> # cat /etc/openwrt_version
<russell--> r24099-e66eed033f
<rmilecki> aparcar: i checked my logs but found this only: https://paste.debian.net/hidden/07ae0640/
<aparcar> Thanks!
<robimarko> Hm, couldnt we just generate the modules.dep via depmod
rua has joined #openwrt-devel
Borromini has joined #openwrt-devel
<Borromini> nbd: ping
<Borromini> could you review/merge https://github.com/openwrt/netifd/pull/13 into netifd please?
<Borromini> Ansuel: not sure if you got rights/time to look at this and merge this
<Ansuel> Borromini what is the inpact of this? I would love to just switch to network_device instead of keeping both
<Ansuel> but is it possible?
<Borromini> it's related to this PR: https://github.com/openwrt/openwrt/pull/13622
<Borromini> we bumped into it with a recent-ish rtl83xx commit, which made all the MAC addresses disappear on the switch ports
<Borromini> the underscore/hyphen issue with jshn was uncovered here: https://github.com/openwrt/openwrt/pull/13622
<Ansuel> ok lets assert this...
<Ansuel> board.json in theory is never touched and is not carried with config backup
<Ansuel> board.json is touched by uci-defaults scripts
<Ansuel> these 2 assumption are correct?
<Ansuel> ok just confirmed with a just egenrated backup that board.json is not included by default (and I don't think anyone would include it)
<Ansuel> also this problem is only with realtek switch so in theory anything that use ext4 (aka not overlay) should not be affected/ should not have the entry
<Ansuel> So in theory we can just change every entry of network-device to network_device and fix netifd to detect that
<Borromini> well it looks like realtek is the only target 'exploiting' that feature
<Ansuel> (no migration scripts should be needed)
<Borromini> that's good yeah
<Borromini> this is blogic's commit to set MACs on the switch ports: https://github.com/openwrt/openwrt/commit/9290539ca9c7b296891b1b386052c0fe308e9a62
<Ansuel> grep -rnw . -e ucidef_set_network_device_mac
<Ansuel> we have realtek
<Ansuel> ramips/mt7621
<Ansuel> and qoriq
<Ansuel> none of this should use ext4 and everyone should be overlay based
<Ansuel> Soo IMHO the correct approach is 2 patch. One fix config_generate and the other fix netifd...
<Borromini> ok :)
<Ansuel> main problem is how to handle the regression on stable...
<Ansuel> MHHHH
<Borromini> PR 13622 (against main) has the netifd patch incorporated - author is aware it won't get merged like that - but that worked for me on 23.05 HEAD
<Borromini> all my realtek devices just got their MACs back after a regular sysupgrade with the patched netifd
<Ansuel> yes cause board.json is generated from scratch everytime after a sysupgrade
<Ansuel> this is fixable but i need to hear hauke on suggestion on how to handle this...
<Ansuel> do we have an idea of the amount of broken devices?
<Borromini> all realtek devices, basically.
<Ansuel> (For sure SNAPSHOT can be restored as soon as the image are rebuilt)
<robimarko> Basically, fix this and the ramips wlan eeprom
<robimarko> And make a quick 23.05.1
<Borromini> Ansuel: 23.05.1 should be as easy as sysupgrading as well, if incorporated
rua has left #openwrt-devel [#openwrt-devel]
rua has joined #openwrt-devel
<Ansuel> just a bit upset of not noticing this in 4 rc :(
<Ansuel> robimarko what about ramips wlan eeprom ?
<Borromini> Ansuel: lots of bug reports flying around I suppose ;)
xback has quit [Remote host closed the connection]
xback has joined #openwrt-devel
valku has joined #openwrt-devel
<robimarko> Ansuel: The Unifi 6 WLAN not working after conversion to NVMEM
<Ansuel> but that is on snapshot or it's stable?
<robimarko> Oh you are right, that should be snapshot only
<Borromini> thanks Ansuel :)
<Ansuel> robimarko i just merged the revert commit... saddly that wifi chip require cal and precal like ath10k but that wasn't pointed out and it was asked to use only eeprom
<Ansuel> and IMHO it would be stupid to have one cell and use offset instead of declaring 2 cell and use the offset directly in DT
goliath has quit [Quit: SIGSEGV]
Borromini has quit [Quit: Lost terminal]
<Ansuel> I wonder if precal-eeprom would be good to use?????
sepf has joined #openwrt-devel
<rmilecki> Ansuel: oh, hey, I just saw revert and was going to ask you about that precal
<rmilecki> i'll take a look at it too
<Ansuel> I don't like using offeset in nvmem cell and I think that would be rejected upstream. For precal a reorg of the way precal is handled is needed (to keep compat with mtd and other)
<rmilecki> I was sure nbd said that internal layout is always the same and we can just point to the whole data blob
<rmilecki> i'll have to did it out
<rmilecki> my memory may fail me
<rmilecki> *may be failing me
<mrkiko> am I exhagerating or - in the future, a lot of ipq4xx evices are going to break due to kernel size limit?
Mangix has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
mentalow has quit [Quit: :]]
mentalow has joined #openwrt-devel
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #openwrt-devel
<KGB-2> https://tests.reproducible-builds.org/openwrt/openwrt_omap.html has been updated. (11.1% images and 100.0% packages reproducible in our current test framework.)
<Ansuel> yep really need nbd hint cause precal on mt7915 is fully bugged... unless i'm missing something the values are never loaded???
<cmonroe> is precal only failing on mt7981 (or mt7986 or mt7916) based devices like the u6-lite? e.g. mt7915 devices like the E8450 and friends are ok?
Danct12 has quit [Quit: A-lined: This user has been AVIVA-lined!]
Danct12 has joined #openwrt-devel
Mangix has joined #openwrt-devel
<Ansuel> https://github.com/torvalds/linux/commit/495184ac91bb866ad7d794ad6ceb064e191319d4 would really love to know how this was tested since it's broken...
<Mangix> oh?
<Ansuel> they added support for declaring an offset
<Ansuel> but then on the acrual read it's never handled and just ignored and override with
<Ansuel> offset = be32_to_cpup(list);
<Ansuel> that is the offset of the partition passed in DT
<Ansuel> offset should have been +=
<Ansuel> but it's =
<schmars[m]> nice find
<Ansuel> actually this is the quick fix i can backport... and then i will take care of rework all this mess since with the nvmem implementation this is a mess
<Mangix> Ansuel: OTOH they have the hardware. my understanding is that even if the code is broken, it allows everything to work
<Ansuel> Mangix thanks for asking... i was desperately trying to find a way to create a cheap and easy patch for backport since code avolved a lot and it's hard to backport...
<Mangix> hmm?
<Ansuel> Mangix... nothing just you asking made me think of a better way to create the patch series
<Ansuel> I can now rework the code without caring for backport
<Mangix> In other news, I asked ChatGPT to explain and english patch diff and it summarized it as Correção de compilação do GCC7.
<Mangix> I don't even
<Ansuel> AI is massively good for asm parsing and explaining tho
<Ansuel> I abused it for PCRE to PCRE2 conversion... but you always have to put a little of correct brain for the thing to actual work
<Ansuel> it's more of a boosted hint than actual solution for a problem
<Mangix> oh yeah, code conversions need to be double checked, but it tends to do it 90%
<Ansuel> i don't want to know the wall text the thing wrote
<Ansuel> also did you tried bing? (chatgpt4 + web)
<Mangix> no. I only use bard and ChatGPT. is bing free?
<Ansuel> yes
* Mangix looks
<Ansuel> bing.com/chat
<Mangix> I asked it to explain split phase like I'm 5. This explanation is useless.
<Mangix> It’s like having two different pipes that bring water to your house, but the water in one pipe is always moving in the opposite direction of the water in the other pipe. <-- what?
<Ansuel> also you are using balanced or creative?
<Mangix> balanced
<Ansuel> try creative
<Ansuel> balanced is shit
<Mangix> creative is worse with this question
<Mangix> oh nvm it's better later on
sepf has quit []
<Mangix> https://github.com/openwrt/openwrt/pull/13706 was probably merged to soon. I think we should have fixed the known broken devices only.
<Ansuel> MT7915 require some extra work with handling the precal that i'm working on so for now i prefer to revert
<Mangix> Since most of those devices are Chinese, I doubt they have pre-cal info
<Mangix> Current confirmed are dlink and Ubiquiti
<Ansuel> problem is that precal never worked and the -22 is just nvmem saying sir wtf are you trying to load?
<Mangix> Sure but it probably needs to work for 2-4 devices
goliath has quit [Quit: SIGSEGV]
<Ansuel> mhhh should i finish the rework or should I go to eat.... MHHHH
<Mangix> finish rework :)
<Mangix> Ansuel: btw don't know if you saw the bugfix for qca8k on ath79
<Ansuel> yes still need to create a theory about that... for sure it needs to be investigate
<Ansuel> it's both the system can't keep up with the phy request via eth or the switch have that feature broken...
<Mangix> I assume that's not related to clock speed
<Mangix> the archer I have is overclocked to 1GHz or 980Mhz. Forgot which
<Ansuel> nha
<Mangix> hillarious that the dude's performance issues with qca8k were fixed by turning off GRO
<Mangix> Wonder if a hack patch should be posted turning off GRO globally
<Ansuel> it's probably because with gro off you skip some extra path
<Ansuel> on low device all those check are expensive
<Ansuel> qcom on ath11k created a whole new api for tx and rx path
<Ansuel> "tx_simple"
<Ansuel> where they skip all kind of check and they archieved like 15% of better perf
<Ansuel> and that is ipq807x
<Mangix> interesting. so disabling GRO is as simple as dev->features &= ~NETIF_F_GRO;
* Mangix looks up what's active
<Mangix> /bin/ash: ethtool: not found
<Mangix> AGH
goliath has joined #openwrt-devel
<Ansuel> can finally go to eat...
rmilecki has quit [Quit: Konversation terminated!]
mkrle has joined #openwrt-devel
<Mangix> Ansuel: if I'm reading that right, the latest commit needs to be reverted again and those specific devices be handled
<mkrle> qq regarding NVMEM changes - I have a PR open to add support for a new mt7621 device and I've updated it yesterday to support the NVMEM format (mt7603+ mt7615). Am I right reading that only a few mt7915 are getting reverted and that I should keep the changes in my PR?
<Mangix> mkrle: yes
<mkrle> or not :)
<Mangix> it
<Ansuel> ok you don't need to repeat
<Mangix> 's probably mt7915 and newer
<Ansuel> Mangix actually that commit will have to be changed with the precal nvmem
<Mangix> right
<mkrle> Mangix: ty!
<Mangix> for that dlink and ubiquiti devices
<Mangix> /s//that/those
<Mangix> fff
<Ansuel> '
<Ansuel> ?
<Mangix> I failed to disable GRO/GSO
Tapper has joined #openwrt-devel
rua has quit [Ping timeout: 480 seconds]
aiyion has quit [Remote host closed the connection]
mkrle has quit [Quit: Page closed]
<Mangix> uhhh
<Mangix> git grep -c mtd-mac-address
<Mangix> target/linux/ath79/dts/qca9558_comfast_cf-e380ac-v2.dts:1
<Mangix> where does mtd-mac-address come from?
<Ansuel> from nothing since i deprecate it
<Mangix> so it's no/op?
<Ansuel> yes the patch should have been dropped
<Ansuel> no device should be accepted with that and nvmem cell should be used instead
<Mangix> Ansuel: next up, mtd-cal-data :)
<Ansuel> that is problematic since macaddress is 6
<Ansuel> cal data is not always the same
<Ansuel> but it seems things are moving
<Mangix> oh fun question since you looked into this earlier
<Ansuel> also as you can see while checking nvmem support... i'm finding more and more monster
<Mangix> I have a QCA9531 device. Trying to port to DSA. I'm noticing the driver is not being loaded. No dmesg output or anything.
<Mangix> the config is set and everything
<Ansuel> dt?
<Mangix> hit view file I guess
<Mangix> FWIW all of those ports are bogus. There's only one. I only have them there to see if I can get something
<Ansuel> you are missing the compatible
<Mangix> where?
<Ansuel> compatible = "qca,ar9331-switch";
<Ansuel> you also need the real compatible
<Mangix> hmm?
<Ansuel> but no idea what dsa switch would be used
<Mangix> compatible = "qca,ar9331-switch"; is present
<Mangix> it's ar9331.c in the kernel
<Ansuel> mh interesting
<Ansuel> can you share the full bootlog?
<Mangix> Press any key to interrupt autoboot ... 0
<Mangix> Unable to locate firmware.
<Mangix> alright...need to flash again
<Mangix> oh no tools/ need to be recompiled
<Mangix> ERROR: tools/elfutils failed to build. <-- alright this needs fixing
<Ansuel> ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
<Ansuel> this is a dependency it's the cpu port
<Mangix> hmm?
<Mangix> in gmac-config, this device applies switch-phy-swap. Could that be the reason it's failing?
<Ansuel> mhh where is that?
<Ansuel> you sure it's eth1 the cpuport? and not eth0?
<Mangix> https://github.com/neheb/openwrt/commits/mangix : before the m commit (DSA), it works perfectly fine
<Mangix> and yes I'm sure
<Mangix> I discussed this here before
<Mangix> compatible = "syscon", "simple-mfd"; made the device work
<Ansuel> set it to compatible = "qca,qca9530-eth", "syscon";
<Ansuel> or remove the compatible entry from the dts
<Ansuel> also set eth0 to disabled since it seems not connected on your board
<Mangix> it's the opposite. like I said, it works without the DSA conversion
<hauke> #/bu30
goliath has quit [Quit: SIGSEGV]
robimarko has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<Ansuel> well if they swap then i think for real cpuport should be eth0 and and the compatible should be correctly set to the real one. can you try?
<Ansuel> also can you try to not declare any dsa/swconfig node and see if the gmac correctly probe?
<Mangix> Ansuel: removing syscon from eth1 and disabling eth0 got me successful dmesg messages, along with an mdio failure. no traffic.
<Ansuel> can you give me log?
<Mangix> the port is connected to the switch. I'm sure of it.
<Ansuel> do you have also log with swconfig?
<Mangix> I can compile a build with swconfig
<Ansuel> please do i want to check what swconfig use
<Ansuel> anyway -22 might be just a problem with defining stuff in dt
<Mangix> could the issue also be the AR9331 not having support for something? I checked the datasheet and the switch is definitely AR9331
<Mangix> same ID
<Ansuel> could be but the dsa switch is not even probed
<Mangix> right. I have CONFIG_NET_DSA_AR9331=y and CONFIG_DSA_TAG_AR9331=y
<Mangix> i can ping it now
<Mangix> wait a minute.....
<Ansuel> set the thing to mdio0 instead of mdio1
<Ansuel> and retry with dsa
<Ansuel> you can set eth1 status to disabled
<Ansuel> from swconfig i can see everything is connected to eth0
<Ansuel> ag71xx 19000000.eth: connected to PHY at mdio.0:1f:00 [uid=004dd042, driver=Qualcomm Atheros QCA9561 built-in PHY]
<Mangix> eth1 is not present
<Ansuel> yes and we were using eth1 as cpu port
<Ansuel> and we are defining stuff in the eth1 mdio node
<Ansuel> swconfig was probably working as it does try to find the thing? or it wasn't using DT at all
<Mangix> interestingly enough, the datasheet lied
<Mangix> this is an ar9344 switch, not ar9331
<Ansuel> swconfig say switch0: Atheros AR8229 rev. 1 switch registered on mdio.0
<Ansuel> lol
rmilecki has joined #openwrt-devel
<Mangix> mdio0 suggestion did not work
<Ansuel> nothing changed in the log?
<Mangix> from the earlier DSA failures, no
<Mangix> both mdio0 and eth0 changes are no go
<mirko> can somebody help me with CONFIG_NF_TABLES_SET ? i can't find this symbol neitehr in linux upsream, nor within openwrt, except that a package NF depends on tries to package net/netfilter/nf_tables_set.ko which doesn't exist (and AFAIS can't be built)
<mirko> though the module is referenced since 2020 in include/netfilter.mk, so i'm probably jsut missing something
<mirko> ah, the moduel/symbol is only found in Linux kernels: 4.18–4.20, 5.0–5.6
<mirko> so not anymore in 5.15 / 6.1 what openwrt currently suppors - still wonder why nobody else runs into the same issue, though
<Mangix> Ansuel: finally got something: ag71xx 19000000.eth: connected to PHY at !ahb!eth@1a000000!mdio!switch@1f:04 [uid=004dd042, driver=Qualcomm Atheros QCA9561 built-in PHY]
<Ansuel> ? what did you change?
<Mangix> phy-handle = <&swphy4>; from 0
<Mangix> and status = okay for eth1
<Ansuel> are we sure the bit is getting applied???
<Mangix> addr swap? I didn't change it
<Ansuel> yep but i wonder if it was swconfig that apply it
<Mangix> no
<Mangix> ag71xx
<Ansuel> same compatible or eth1 with the original one?
<Mangix> original
<Mangix> i removed the compatible
<Ansuel> ok
<Mangix> now time to see if I can even pass traffic through this
<Ansuel> for sure it's getting detected
<Mangix> The switch is AR9344 AFAIK, which the driver doesn't support
<Ansuel> so the switch have comunication with the gmac
bluew has joined #openwrt-devel
hitech95 has quit [Ping timeout: 480 seconds]
minimal has joined #openwrt-devel
<hurricos> Ansuel: I have a powerpc turris I still haven't unboxed :c
<hurricos> Mangix: got the initramfs for me? :^)
<hurricos> I'll just flash it actually, I gotta open the case anyways
<hurricos> where in sweet heaven did I put my pile of mx60s
<hurricos> ah geez I bet they're back at the hackerspace