Ansuel has quit [Ping timeout: 480 seconds]
minimal has quit [Quit: Leaving]
danitool has quit [Ping timeout: 480 seconds]
Ansuel has joined #openwrt-devel
<owrt-images-builds> Build [#8](https://buildbot.staging.openwrt.org/images/#/builders/158/builds/8) of `openwrt-23.05_mvebu/cortexa53` failed.
xes has quit [Ping timeout: 480 seconds]
tSYS has quit [Quit: *squeak*]
fakuivan has quit [Remote host closed the connection]
fakuivan has joined #openwrt-devel
tSYS has joined #openwrt-devel
xes has joined #openwrt-devel
dangole has quit [Ping timeout: 480 seconds]
rmb has joined #openwrt-devel
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
<owrt-images-builds> Build [#8](https://buildbot.staging.openwrt.org/images/#/builders/121/builds/8) of `openwrt-23.05_x86/legacy` completed successfully.
<owrt-images-builds> Build [#8](https://buildbot.staging.openwrt.org/images/#/builders/115/builds/8) of `openwrt-23.05_x86/64` completed successfully.
<ynezz> Ansuel: yes, I'm using it when I want to use artifacts
<owrt-images-builds> Build [#8](https://buildbot.staging.openwrt.org/images/#/builders/103/builds/8) of `openwrt-23.05_x86/geode` completed successfully.
goliath has joined #openwrt-devel
bluew has quit [Ping timeout: 480 seconds]
<djfe> robimarko: Zyxel WRE6606
<djfe> oh wait he is offline
<\x> ohohoh https://imgur.com/a/FFejXzq tried me that mini pcie to 2x mini pcie, its a pcie switch!
danitool has joined #openwrt-devel
<owrt-images-builds> Build [#20](https://buildbot.staging.openwrt.org/images/#/builders/79/builds/20) of `master_bmips/bcm6328` completed successfully.
xback has joined #openwrt-devel
<owrt-images-builds> Build [#21](https://buildbot.staging.openwrt.org/images/#/builders/69/builds/21) of `master_mxs/generic` completed successfully.
<owrt-images-builds> Build [#21](https://buildbot.staging.openwrt.org/images/#/builders/64/builds/21) of `master_bcm47xx/mips74k` failed.
rua has quit [Quit: Leaving.]
<ynezz> hm, in QSDK on ipq8074 I've proper board_id=0xa4 "ath11k_pci 0001:01:00.0: chip_id 0x0 chip_family 0x0 board_id 0xa4 soc_id 0xffffffff" likely as they pass cnss2.bdf_pci1=0xa4 from the bootloader
<ynezz> in OpenWrt I get 0xff, is there some way to override it to the correct board_id ?
dangole has joined #openwrt-devel
robimarko has joined #openwrt-devel
<ynezz> qcom,board_id=<0xa4>; is in DTS, probably some QSDK feature, can't find the similar feature in the tree
<robimarko> ynezz: You dont need to override it
<robimarko> We used to support that, but upstream shot it down as you can just use the variant string to match properly
<ynezz> ah, ok
<robimarko> You are getting 0xff as none of the vendors except for QCA itself bothered to fuse the board ID
<robimarko> Is that pluggable card?
<ynezz> no
<robimarko> Then just using the variant string to match up the BDF will work just fine
<\x> ei robimarko, might be something cool to see https://imgur.com/a/FFejXzq
<ynezz> robimarko: so I should just rename 'bus=pci,qmi-chip-id=0,qmi-board-id=164.bin' to 'bus=pci,qmi-chip-id=0,qmi-board-id=255,variant=foo.bin' ?
<robimarko> ynezz: Yes
<robimarko> And add the variant in DTS
<ynezz> that board-id is not encoded inside that file?
<ynezz> so it would load whatever you give it, right?
<robimarko> ynezz: If you just copy the bdwlan.bin from QSDK then its just a plain BDF
<robimarko> If you want to include the device in OpenWrt you have to wrap it with ath11k-bdecoder so it containts the metadata for matching
<robimarko> \x: That is cool indeed, did not know they made cards like that
<ynezz> robimarko: sure, I'm doing that, just wondering if it would load bin with qmi-board-id=164 on board which returns qmi-board-id=255
<ynezz> lets see
<robimarko> ynezz: Nope
<robimarko> It should fail
<ynezz> so its actually wrong approach, isn't it?
<robimarko> ynezz: Why?
<\x> robimarko: very niche indeed, so the seller/maker asks for 18$ for one
<ynezz> robimarko: because vendor for some reason uses 164 and we'll use 255 in OpenWrt
<robimarko> ynezz: But the end result is the same
<\x> but hell yeah it is neat as hell
<robimarko> That is why you use the variant so it matches the correct BDF
<robimarko> 0xff is the default for any unfused device, and none of the vendors bothered to fuse the ID
<robimarko> Only pluggable cards have it fused, even first series of those were messed up so they were replacing them
<ynezz> ok, lets see
<ynezz> how I hate this binary blob crap :P
<robimarko> ^You and me both
<Ansuel> ynezz btw i think i will have to fork that action to use mc mirror --overwrite instead of cp
<Ansuel> ynezz and you are not aware of the whole regdb problem with those blob :D
<ynezz> Ansuel: yep
<ynezz> Ansuel: so you actually managed to get it working with GCS?
<Ansuel> ynezz with yesterday test i was able to correctly upload and download stuff
<Ansuel> the idea is to make the bucket public so we can download from it directly (from pull request actions) and push events would refresh the cache
<Ansuel> that is the main idea currently
<Ansuel> the publis download link doesn't change so that is not a problem
<Ansuel> minio have some problem with GCS with some feature but for what we need it does work correctly
<Ansuel> also i will follow what github does with ccache aka tar everything and upload/extract the tar
<Ansuel> since i notice minio doesn't like uploading various small file
<ynezz> it works pretty fine here locally
<Ansuel> i tested with a random github repository and it wasn't that fast
<ynezz> and IMO if you're going with tarball approach you don't need that mirror feature, you're always going to upload complete file
<f00b4r0> try rsync? ;^)
<Ansuel> cp reject overwriting the file from what i read
<Ansuel> and rm is not supported by GCS S3
<ynezz> ok
<robimarko> Ansuel: Why couldnt they made it so simple on IPQ8074 and IPQ6018: https://patchwork.kernel.org/project/linux-arm-msm/patch/20230521222852.5740-11-quic_mmanikan@quicinc.com/
<owrt-images-builds> Build [#20](https://buildbot.staging.openwrt.org/images/#/builders/26/builds/20) of `master_oxnas/ox820` completed successfully.
<robimarko> They even made each "radio" a separate process so the whole FW doesnt crash
cmonroe has quit [Read error: Connection reset by peer]
cmonroe has joined #openwrt-devel
<Ansuel> ynezz btw planning to include minio in the tools container or even better we can consider adding it to the buildbot container
<Ansuel> doesn't make sense to use an actions to run 2 commands
<Ansuel> since that actions just take the minio container and put a script in it
<Ansuel> (and we can consider also using it later for buildbot itself since there was an idea of replacing rsync ?)
bbezak has quit [Quit: The Lounge - https://thelounge.chat]
<ynezz> Ansuel: I would include it when its actually needed, its 25MB binary BTW
<Ansuel> oh! that thing is big
<owrt-images-builds> Build [#22](https://buildbot.staging.openwrt.org/images/#/builders/65/builds/22) of `master_at91/sam9x` completed successfully.
bbezak has joined #openwrt-devel
<Ansuel> creating the 2 container for the action is just extra 20 second
<ynezz> I was talking about buildworker image, IMO its fine to included it in your tools container for CI
<Ansuel> yep if we don't plan on adding in buildworker then yes i will add to tools prefer to have more control since the actions lacks some feature
<ynezz> BTW I'm seeing issues with qcn9074 firmware loading, it seems to be looking for board.bin file
<ynezz> but that ipq-wifi is installing it as board-2.bin, what should be changed?
<ynezz> "user.notice 11-ath11k-caldata: Unable to serve ath11k/QCN9074/hw1.0/board.bin request"
<ynezz> "ath11k_pci 0001:01:00.0: failed to fetch board data for bus=pci,qmi-chip-id=0,qmi-board-id=255 from ath11k/QCN9074/hw1.0/board-2.bin" is really misleading
<Ansuel> ynezz today wants to suffer
<robimarko> ynezz: board.bin is the fallback
<robimarko> It will try that if it fails finding the correct BDF in board-2.bin or board-2.bin is missing
rua has joined #openwrt-devel
<ynezz> yep, but that should be correct BDF
<robimarko> Can you run ath11k-bdencoder -i on the board-2.bin?
<robimarko> And did you set the variant string in the DTS?
<ynezz> yes, and it loads that file via board.bin so it should be ok
<ynezz> I've created symlink
<ynezz> yes, that variant in DTS matches
<ynezz> it works fine for the internal radios
<Ansuel> https://github.com/Ansuel/openwrt/actions/runs/5120846845/jobs/9207856696 ok upload with my modified action worked correctly
<Ansuel> now second run with download
<Ansuel> well lovely the action put the current entire workflow in the new minio docker so everything became root...
xback has quit [Ping timeout: 480 seconds]
<Ansuel> +1 reason not to use the action i guess
<robimarko> well that "solves" any kind of permission issue
<Ansuel> still amazing that it's a PITA running actions with non-root containers
<Ansuel> aand it works
<Ansuel> 2:42 to build kernel
<owrt-images-builds> Build [#22](https://buildbot.staging.openwrt.org/images/#/builders/44/builds/22) of `master_bmips/bcm63268` completed successfully.
<ynezz> robimarko: "ath11k_pci 0001:01:00.0: DT bdf variant name not set." seems like a clue, that DT node was on the other PCI bus, works now :o
rua has quit [Quit: Leaving.]
<djfe> robimarko: about bootipq, yes it's just a command to boot from spi
<djfe> the board I have access to, is a Zyxel WRE6606
<djfe> if Kernel is larger than 4MiB, then bootipq won't load enough of the Kernel and booting fails
<djfe> In another ipq40xx device they replaced bootcmd https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=45eb57f12f3a128a1822a20b7e536527ab92ca67
<djfe> lzma-loader is probably the better alternative, since they only seem to support gzip natively
<owrt-images-builds> Build [#22](https://buildbot.staging.openwrt.org/images/#/builders/33/builds/22) of `master_bcm47xx/generic` failed.
minimal has joined #openwrt-devel
<djfe> not only will it make the kernel smaller but also allow for larger kernel partitions in the future :)
hgl has joined #openwrt-devel
rua has joined #openwrt-devel
<robimarko> djfe: Well most of the vendors did not enable LZMA which works fine but wasnt enabled by default
<robimarko> And somebody would have to port lzma-loader
<robimarko> ynezz: glad it works
<owrt-images-builds> Build [#21](https://buildbot.staging.openwrt.org/images/#/builders/42/builds/21) of `master_kirkwood/generic` completed successfully.
<djfe> I know, it takes effort but it's probably the better solution, right?
<robimarko> djfe: I dont know, I am that much of lzma-loader fan
<djfe> looking at devices with KERNEL_SIZE = 4096k there are quite a few devices affected
<djfe> why not?
<robimarko> To put it mildly, its a mess currently
<robimarko> But, if you want to port it, please go ahead cause there isnt much of an alternative that works without tweaking the bootloader
<djfe> ok but increasing compat and asking users to modify their uboot environment could lead to issues as well.
<djfe> Well, yes ^^
<djfe> The biggest problem for me is finding out how this is done.
<djfe> Also if I do it, it will probably take quite a while since I haven't implemented anything similar before
<robimarko> Well, then you gotta find a volunteer to do so
<robimarko> Cause it is low-level work
<djfe> yes, definitely not my strong suit, but I would like to get to know stuff like that eventually
<djfe> Finding volunteers: I wanted to bring the issue to attention here by asking, if anyone else was already affected by this and had to recover their devices via serial like me :)
<djfe> I kind of want to prevent people having to recover their devices after installing release candidates ^^
<djfe> I'm not sure KERNEL_SIZE is set for every affected device, it wasn't set for the wre6606.
<robimarko> Its probably not set on all device
<djfe> First I'm going to do damage prevention, trying to figure out which devices are missing KERNEL_SIZE, so it will rather fail building then booting later on
<ynezz> robimarko: is there any preference for handling of ipq807x devices using eMMC storage ?
<robimarko> ynezz: In what sense?
<djfe> It might be all spi/nor flash devices on ipq40xx, but I'm not entirely certain, yet.
<ynezz> robimarko: there is no such device in the tree yet, but there might be some in the works
<robimarko> ynezz: Qnap 301W and NBG use eMMC
<ynezz> ah, I've missed that, thanks
<robimarko> So, everything should be there
<robimarko> djfe: Its not all devices, it depends on what vendor did in bootloader
<robimarko> But it would be safe to assume a lot of them have the 4MB limit
<Ansuel> now time to polish and wait for aparcar for the required changes
xback has joined #openwrt-devel
<robimarko> BTW, Ben Greearb is offering some beta ath10k-ct FW but has no place to host it
<robimarko> Neither do I that is public, is there interest in making that available?
<Ansuel> can't he use github?
<robimarko> I am guessing he doesnt want it that public
<Ansuel> mhhh if they won't be public how could we test them?
<robimarko> Il ask him
<aparcar[m]> Ansuel what the speed impact of the cache?
dangole has quit [Ping timeout: 480 seconds]
<Ansuel> aparcar what do you mean?
<aparcar[m]> Like time wise
<Ansuel> to download and upload it's 2 seconds. with ccache used and my fixup to build a kernel it's just 2 minutes
<Ansuel> (comparedo to 20-30 on the current implementation)
<aparcar[m]> Oh sweet
<robimarko> It could give some breathing room to CI
<Ansuel> i'm curious for the packages workflow that is currently 2 hours
<ynezz> Ansuel: nice!
<owrt-images-builds> Build [#20](https://buildbot.staging.openwrt.org/images/#/builders/22/builds/20) of `master_ipq806x/generic` completed successfully.
<owrt-images-builds> Build [#21](https://buildbot.staging.openwrt.org/images/#/builders/30/builds/21) of `master_ath79/generic` completed successfully.
valku has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
* f00b4r0 discovers that his mobile provider is currently in recovery position, nation-wide. Impressive
<Ansuel> recovery?
<f00b4r0> SNAFU
<f00b4r0> nation-wide outage
<Ansuel> OH LOL
<f00b4r0> which is only like the second time in under 6 months, which is bound to have some consequences, given this is the state-owned "historical" provider, namely Orange.
djfe is now known as Guest1753
djfe has joined #openwrt-devel
Guest1753 has quit [Ping timeout: 480 seconds]
<owrt-images-builds> Build [#21](https://buildbot.staging.openwrt.org/images/#/builders/61/builds/21) of `master_bcm47xx/legacy` failed.
goliath has joined #openwrt-devel
tmn505 has quit [Quit: leaving]
<minimal> f00b4r0: Switzerland? Poland? France?
<f00b4r0> minimal: FR
csharper2005 has joined #openwrt-devel
goliath has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
Borromini has joined #openwrt-devel
<robimarko> mrkiko: Any more I/O errors?
<robimarko> I hit that once on Qnap after a sysupgrade but then I tried multiple times and nothing
tmn505 has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
Danct12 has joined #openwrt-devel
Daanct12 has quit [Ping timeout: 480 seconds]
<csharper2005> f00b4r0: I would be interested to see how their Major Incident Commitee is working now...
<Ansuel> btw first drawback of the ccache system... we have to build every target and subtarget on push events
<Ansuel> i'm curious how it goes tho
Borromini has quit [Ping timeout: 480 seconds]
rua has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
<ynezz> Ansuel: robimarko: nice work with 6.1 and ipq807x, works like a charm, thanks!
<robimarko> ynezz: My plan is to move to 6.1 ASAP as backporting upstreamed stuff is just becoming a pain
<robimarko> But, I am now worried about the loop device I/O errors that I am seeing, its always on the same sector
<Ansuel> same sector does sounds like a bad block
<ynezz> when where?
<Ansuel> or a bug that triggers in handling that sector
<robimarko> ynezz: In my case on Qnap 301W that uses eMMC
<ynezz> I've device with eMMC as well, running from it
<robimarko> On boot, after loopback device gets mounted it always spews one I/O error on the same sector
<robimarko> I/O error, dev loop0, sector 596 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 2
<ynezz> I don't see it
<robimarko> It took me couple of sysupgrades to see it
<ynezz> from 6.1 to 6.1?
<robimarko> Yes
schwicht has quit [Read error: Connection reset by peer]
<robimarko> I am now going to try 5.15 to 5.15 for couple of times
schwicht has joined #openwrt-devel
<ynezz> but I'm using 'mmc-hs400-1_8v;' (not removing it in my DTS)
<Ansuel> if it was present with 5.15 people would have complained already
<ynezz> well, you've just 2 devices with eMMC
<robimarko> ynezz: Even better if HS400 works for you
<robimarko> eMMC in the Qnap seems to have a HW bug where it doesnt like scaling down from HS400 to HS200 so that is why HS400 is disabled on it
<robimarko> Yeah, 5.15 to 5.15 doesnt seem to do it
<robimarko> Honestly, I doubts it a bad block, eMMC FW would just move to using a spare one
<robimarko> Even benchmarking the eMMC doesnt trigger anything, maybe its loop device itself
<ynezz> and you keep settings during sysupgrade?
<Ansuel> imho it's the loop device and there is a regression there
<Ansuel> or from 5.15 to 6.1 they added new warnings
<robimarko> Yes, kept the settings
<robimarko> Ansuel: Well, there is a lot of commits in loop.c
<robimarko> No idea where to even start
<robimarko> Especially since you need to mount the loop device and use it
<ynezz> works fine here
goliath has joined #openwrt-devel
minimal has quit [Quit: Leaving]
<robimarko> Well, upgrading from 5.15 to 6.1 triggers it instantly
csharper2005 has quit [Read error: Connection reset by peer]
hurricos has joined #openwrt-devel
<hurricos> @blocktrron How did you ultimately get around the Colubris / bidio crap on the HP MSM560?
<blocktrron> Yes
<blocktrron> I've replaced the uboot
zer0def has quit [Read error: Connection reset by peer]
zer0def has joined #openwrt-devel
FLD has quit [Ping timeout: 480 seconds]
csharper2005 has joined #openwrt-devel
<Ansuel> robimarko disable trim
FLD has joined #openwrt-devel
<Ansuel> and check
<Ansuel> comment the case
<robimarko> Already on it
<Ansuel> mhhh if that is the thing than time to add a binding
<Ansuel> will be fun for them...
<robimarko> BTW, we should update to 6.1.31
<robimarko> Wouldnt be surprised if this eMMC has broken TRIM
<ynezz> robimarko: I'm not able to reproduce with sysuprade from 5.15.113 to 6.1.29
<Ansuel> ynezz considering the problem with hs400...
<Ansuel> probably the emmc is just shit and broken
<robimarko> Ansuel: Guess whether the kernel has TRIM broken quirk
<aparcar[m]> hah, I wanted to make a issue about the master/main migration but I can only open bug reports since "blank templates" are disabled
<ynezz> did anyone noticed the slower boot time in 6.1?
<ynezz> [ 5.806613] init: - preinit - [ 15.596425] random: crng init done
<aparcar[m]> stintel: do you mind I enable blank templates again or do you think people will go nuts?
<stintel> blank templates ?
<robimarko> ynezz: Yeah, it seems to hang for a bit more on preinit than on 5.15
<Ansuel> aparcar maybe there is a way to allow blank templates only for members ?
<Mangix> I installed dd-wrt on a wr940nv4 just because the stock firmware doesn't support disabling WAN. Doesn't support WPA3. Wonder if I can flash OpenWrt with support for that.
<aparcar[m]> Ansuel: strangly not, I looked for something like "announcements" but it doesn't seem to be there neither
rua has quit [Ping timeout: 480 seconds]
<aparcar[m]> Ansuel: what's the status of the CI ;)? Still waiting for CI build of another repo
<Ansuel> bootstrapping it on my personal repo
<Ansuel> then will create pr
<Ansuel> and it's pretty much ready with with the secret and access key to add on the org secrets
<aparcar[m]> so on each commit to main a new cache is uploaded?
<Ansuel> yes that's the idea
<Ansuel> the size won't increase
<Ansuel> the old one is overwritten (but i would check this on cloud storage in case they create an object and save the old version of the tar)
<aparcar[m]> btw we can also start externalizing the CI stuff and within OpenWrt you only link to something like openwrt/github-ci@v2
<aparcar[m]> this way we don't bloat the log with so much CI changes (which are all great!)
<Ansuel> yep main problem is how to handle stuff for the stable release
<aparcar[m]> Ansuel: I disabled versioning for the CI so that shouldn't be an issue
<aparcar[m]> with dynamic targets that shouldn't be an issue right?
<Ansuel> now that i think about it in theory stable branch would keep the current workflow and would continue to work
<Mangix> Ah nope. Last supported version is 18.06
<Mangix> Wonder if I should still flash OpenWrt
rua has joined #openwrt-devel
<Ansuel> aparcar anyway i agree that it's a nice idea to move intermediate workflow to a separate repo
<Ansuel> it's also a problem with useless rebuild on the buildbot
<robimarko> Ansuel: Well, its damn Micron eMMC
<robimarko> As soon as I made the check whether it supports TRIM WRITE_ZEROS magically dissapears
<Ansuel> time to check if a quirk exist
<robimarko> There are
<robimarko> MMC_QUIRK_TRIM_BROKEN
<robimarko> and MMC_QUIRK_SEC_ERASE_TRIM_BROKEN
<Ansuel> but i guess you can apply a fixup to the driver level
<robimarko> Why driver?
<robimarko> There is a quirks DB per eMMC
<Ansuel> yep was referring to that
<Ansuel> there is a similar thing for pcie and usb
<robimarko> There isnt a WRITE_ZEROS specific one though
<Ansuel> wonder if there is a quirck for hs400 ?
<csharper2005> Why do bootloaders change on the most mediatek/filogic devices? Isn't this still a dangerous action for the end user?
<robimarko> Ansuel: No, there isnt a HS400 specific one
<robimarko> I wouldnt want to disable TRIM completely, maybe just set the secure erase broken using TRIM
<robimarko> And that wont work cause its sending a TRIM request for WRITE_ZEROS
Borromini has joined #openwrt-devel
<Ansuel> robimarko the emmc is 4gb right?
<robimarko> Ansuel: Yes
<Ansuel> also trim wasn't used anyway or am i wrong?
<robimarko> Ansuel: I guess its supposed to be used by default
<Ansuel> it is but probably wasn't supported in 5.15
<robimarko> Well, how would I check that
<Ansuel> let me check that link
<robimarko> Micron proudly advertises TRIM in the datasheet
<Ansuel> mmc_blk_mq_issue_rq issued trim command in 5.15 ?
Borromini has quit [Quit: Lost terminal]
<robimarko> Ansuel: That function doesnt care about the ARG specificially
<robimarko> While TRIM has caused headaches in the past for SSD users, hopefully the eMMC reporting of TRIM capabilities is reliable and this doesn't end up causing issues / non-zeroing-out behavior for quirky devices...
<Ansuel> imho the feature to zero-out sector is broken
<robimarko> Why?
<Ansuel> for that single emmc
<robimarko> Yeah
<robimarko> Ansuel: They say in the commit description: If an eMMC card supports TRIM and indicates that it erases to zeros
<robimarko> But, I dont see how they check whether that TRIM erases to zero?
<Ansuel> ehhh i wonder if they assume support
<robimarko> mmc_can_trim does however also check for EXT_CSD_SEC_GB_CL_EN
<robimarko> Whatever that means
<Ansuel> ynezz aparcar can you check and review this? github.com/openwrt/openwrt/pull/12774
<mrkiko> robimarko: hi!! No, but ... I am not writing actively to the flash as the device is running normally
<mrkiko> robimarko: reading the memory with grep didn't cause any error... I would need some writing to try
<mrkiko> robimarko: I am able to cause I/O errors with fstrim - [93010.835112] I/O error, dev loop0, sector 16902 op 0x3:(DISCARD) flags 0x800 phys_seg 1 prio class 2
<Ansuel> we should test
<Ansuel> if fstrim cause the same error on 5.15
<Ansuel> but my idea is that it wasn't supported
<Ansuel> for emmc
<mrkiko> Ansuel: I can confirm that
<robimarko> I suspect TRIM was broken all along but never used
<Ansuel> yes and the datasheet is just for the meme
<Ansuel> or a copy past error
<Ansuel> copy paste*
<mrkiko> for now, I can not observe fs corruptions with e2fsck with the -n flag; and after having mounted ro both / and /overlay
<mrkiko> To write-stress a little, I installed curl and python3 packages...
bluew has joined #openwrt-devel
<mrkiko> but not seeing any of the initial WRITE_ZERO ones
<robimarko> mrkiko: Does fstrim cause issues in 5.15 is my question?
<robimarko> Cause, it looks damn likely that TRIM was broken on these eMMC from the start but I dont OpenWrt triggers TRIM ever
<Ansuel> robimarko trim doesn't make that sense on 4gb emmc since doing it by sw should not cause that big of perf regression
<robimarko> Anusel: There should be no regression as it wasnt being used, cause AFAIK you need to periodically call fstrim or like to actually use it
floof58 has quit [Remote host closed the connection]
<robimarko> Ideally we would leave it but it seems broken
<robimarko> At least partially
lucenera has quit [Quit: The Lounge - https://thelounge.chat]
<mrkiko> robimarko: on 5.15 fstrim said operation not supported I think
<robimarko> That would explain this never showing up before
<mrkiko> but there are two kind of i/o errors involved here and I don't have the knowledge to correlate them - one isdiscard-related, the other (the ones I reported yesterday) might not be
<Ansuel> well one might be
<Ansuel> validating the trim and noticing that it failed
<Ansuel> the other is 0 in the wrong place
<robimarko> Write zeroes one is 100% TRIM being broken
<robimarko> Cause its trying to offload that by using TRIM commands
<Ansuel> if the feature is broken the kernel expect a block while in reality it's something else and that is reported
lucenera has joined #openwrt-devel
<robimarko> It expects that block to be zeroed out
<robimarko> mrkiko: What is the eMMC model you have?
floof58 has joined #openwrt-devel
<mrkiko> so, it expects the block to be zroed out but it's not? Or writes zeroes somewhere it shouldn't? furthermore, the write zero ones are triggered at boot as far as i can tell, at least after sysupgrade and with no intervention on my side
<Ansuel> it's probably called on when the emmc is mounted
<robimarko> Its called once EXT4 fs is mounted
<mrkiko> robimarko: how do I retrieve these informations?
<robimarko> Its all in /sys/class/mmc_host/mmc0/mmc0:0001
eloy_ has quit [Ping timeout: 480 seconds]
<robimarko> Ok, so a Kingston device
<mrkiko> robimarko: yes
<robimarko> Some Kingston ones are already in the quirks table
<Ansuel> lovely they report support but it's broken
<Ansuel> i guess they just enable it for the marketing
<robimarko> Well, classic thing
<mrkiko> As for thedevice name, gato in italian = cat in english, altough a "t" letter is missing. Forno is oven - because the device might get little bit hot, even tough sustainably in my experience
<robimarko> I added mine to the quirks list and no more errors
<robimarko> Funnily enough, it seems that TRIM kind of works
<robimarko> Cause fstrim has no errors, but it doesnt seem to like writing zeros
<Ansuel> well problem is exactly that
<Ansuel> the feature half working and having fw bug
<mrkiko> I hope it doesn't break hw, or that it doesn't break the deviceenough to need to boot from initramfs and restore partitions tables and so on :D
<robimarko> Nah
<robimarko> Its just failing to do whats being asked for
<mrkiko> :D
<robimarko> Worst it can do is mess up the overlay
<mrkiko> no problem then
<Ansuel> mrkiko worst that can happen is corrupted fs
<mrkiko> but so far the impression is - the code is detecting errors and behaving well. As said, no detectable corruptions for now
<mrkiko> with e2fsck
<robimarko> AFAIK, it will see that I/O call failed and just revert to the old SW path
<Ansuel> yep was similar to the problem of ipq8064 using different EC configuration on some partition
<robimarko> Il add the patch for Micron eMMC I have and send it upstream
<robimarko> Maybe they have some ideas
<Ansuel> reporting error but the thing wasn't touched
<mrkiko> infact... probably the main reason to try to avoid these errors is to avoid confusion in a sense
<robimarko> Dont get me wrong, I/O errors are something to always be looked into
<robimarko> It makes even more sense since ynezz reported even in HS400 his eMMC works without any errors
<robimarko> It would also explain why benchmarking does not trigger anything
<mrkiko> if I can test, I'll do so, so feel free to ping me
<robimarko> mrkiko: You dont happen to know somebody with a high res pictures of the NBG or maybe who knows the eMMC model?
<Ansuel> no image on FCC?
<robimarko> I cant make out the eMMC IC, let alone the model
<robimarko> Anyway, off to bed
robimarko has quit [Quit: Leaving]
goliath has quit [Quit: SIGSEGV]
tlj has quit [Ping timeout: 480 seconds]
csharper2005 has quit [Ping timeout: 480 seconds]
cmonroe has quit [Ping timeout: 480 seconds]
cmonroe has joined #openwrt-devel
cmonroe has quit [Ping timeout: 480 seconds]
schwicht has quit [Read error: Connection reset by peer]
schwicht has joined #openwrt-devel
Tapper has quit [Ping timeout: 480 seconds]
Danct12 has quit [Ping timeout: 480 seconds]
<SlimeyX> usually are the black antenna leads 2.4 and white or grey 5G?
<SlimeyX> AP with dual radios
<\x> cant tell
<\x> depends
<\x> just try and see signal readings on which is better if in doubt ;) got a phone right?
<SlimeyX> heh yeah
<SlimeyX> ap has two of the exact same cards trying to figure out which should do which band
ptudor has joined #openwrt-devel
<\x> which ap is this
<SlimeyX> adtran bsap-1930
<SlimeyX> nm i found it in my notes
<SlimeyX> grey 5 black 2.4
rsalvaterra has quit [Read error: Connection reset by peer]