Page MenuHomeFreeBSD
Feed Advanced Search

Apr 2 2024

bz planned changes to D44590: LinuxKPI: sk_buff: implement skb_queue_splice_tail_init().
Apr 2 2024, 7:29 PM
bz requested review of D44591: LinuxKPI: napi_schedule() requires return value.
Apr 2 2024, 10:07 AM
bz requested review of D44590: LinuxKPI: sk_buff: implement skb_queue_splice_tail_init().
Apr 2 2024, 10:06 AM
bz committed rGce707e674f79: LinuxKPI: add PCI_VENDOR_ID_ITTIM (authored by bz).
LinuxKPI: add PCI_VENDOR_ID_ITTIM
Apr 2 2024, 10:04 AM
bz requested review of D44589: LinuxKPI: add devm_kfree().
Apr 2 2024, 10:02 AM
bz requested review of D44588: LinuxKPI: add dev_alloc_pages().
Apr 2 2024, 10:02 AM
bz requested review of D44587: LinuxKPI: add __counted_by() and __nonstring.
Apr 2 2024, 10:01 AM
bz requested review of D44586: LinuxKPI: implement memzero_explicit().
Apr 2 2024, 9:59 AM
bz committed rG465e5f1b8b80: ath_hal/ar9300: allow JUPITER cards to read eeprom (authored by bz).
ath_hal/ar9300: allow JUPITER cards to read eeprom
Apr 2 2024, 9:54 AM

Apr 1 2024

bz committed rGd1aff3556656: vf_i2c: split up and add ACPI attachments in addition to FDT (authored by pldrouin_gmail.com).
vf_i2c: split up and add ACPI attachments in addition to FDT
Apr 1 2024, 11:48 PM
bz committed rG4197e21ed39c: vf_i2c: update I2C controller logic (authored by pldrouin_gmail.com).
vf_i2c: update I2C controller logic
Apr 1 2024, 11:48 PM
bz committed rGe74405a4d648: LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM (authored by bz).
LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM
Apr 1 2024, 11:48 PM
bz committed rGdd167e59079b: LinuxKPI: 802.11: implement a deferred RX path (authored by bz).
LinuxKPI: 802.11: implement a deferred RX path
Apr 1 2024, 11:48 PM
bz committed rG4bce8178af85: iicbus/mux/pca954x: add support for PCA9546 I2C Switch (authored by bz).
iicbus/mux/pca954x: add support for PCA9546 I2C Switch
Apr 1 2024, 11:48 PM
bz committed rG21b6420f67cf: ath_hal/ar9300: allow JUPITER cards to read eeprom (authored by bz).
ath_hal/ar9300: allow JUPITER cards to read eeprom
Apr 1 2024, 11:47 PM
bz committed rGfaf66c373ab7: ath(4): always enable 11n (authored by bz).
ath(4): always enable 11n
Apr 1 2024, 11:47 PM

Mar 31 2024

bz requested review of D44573: LinuxKPI: add further constants to pci.h.
Mar 31 2024, 5:34 PM
bz added a comment to D44569: Status/2024Q1/ten64-whle-honeycomb.adoc: Add report.

Applied more changes

Mar 31 2024, 9:18 AM
bz updated the diff for D44569: Status/2024Q1/ten64-whle-honeycomb.adoc: Add report.

Address more review comments

Mar 31 2024, 9:18 AM
bz added inline comments to D44569: Status/2024Q1/ten64-whle-honeycomb.adoc: Add report.
Mar 31 2024, 3:09 AM
bz updated the diff for D44569: Status/2024Q1/ten64-whle-honeycomb.adoc: Add report.

Address review comments.

Mar 31 2024, 3:08 AM
bz added a comment to D44568: Status/2024Q1/wireless.adoc: Add report.

Update to mark the requested changes done.

Mar 31 2024, 2:58 AM
bz updated the diff for D44568: Status/2024Q1/wireless.adoc: Add report.

Address review comments using markup for man pages.

Mar 31 2024, 2:57 AM
bz requested review of D44569: Status/2024Q1/ten64-whle-honeycomb.adoc: Add report.
Mar 31 2024, 1:18 AM
bz requested review of D44568: Status/2024Q1/wireless.adoc: Add report.
Mar 31 2024, 12:02 AM

Mar 30 2024

bz committed rG298b8f1cf0f4: dts: Fix arm dts path for marvell too (authored by bz).
dts: Fix arm dts path for marvell too
Mar 30 2024, 2:34 AM

Mar 29 2024

bz committed rG44847114bd4c: vf_i2c: update I2C controller logic (authored by pldrouin_gmail.com).
vf_i2c: update I2C controller logic
Mar 29 2024, 11:14 PM
bz closed D44021: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.
Mar 29 2024, 11:14 PM · arm64, ARM
bz closed D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.
Mar 29 2024, 11:14 PM · arm64, ARM
bz committed rG5ca8e32633c4: vf_i2c: split up and add ACPI attachments in addition to FDT (authored by pldrouin_gmail.com).
vf_i2c: split up and add ACPI attachments in addition to FDT
Mar 29 2024, 11:14 PM
bz committed rGde2a4e80d7d3: LinuxKPI: remove dummy header files with implementation (authored by bz).
LinuxKPI: remove dummy header files with implementation
Mar 29 2024, 7:11 PM

Mar 20 2024

bz added a comment to D44434: KASSERT(9): add assertion message guidelines.

Thank you!
Can we also adjust the comment above MPASS() in the header file?

Mar 20 2024, 12:16 AM

Mar 15 2024

bz added inline comments to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.
Mar 15 2024, 7:14 PM

Mar 12 2024

bz closed D44208: LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM.
Mar 12 2024, 11:01 PM
bz committed rG906521f8176b: LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM (authored by bz).
LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM
Mar 12 2024, 11:01 PM
bz committed rGf254aad33dfb: ath_hal/ar9300: allow JUPITER cards to read eeprom (authored by bz).
ath_hal/ar9300: allow JUPITER cards to read eeprom
Mar 12 2024, 9:59 PM
bz closed D44328: ath_hal/ar9300: allow JUPITER cards to read eeprom.
Mar 12 2024, 9:59 PM
bz added a comment to D44328: ath_hal/ar9300: allow JUPITER cards to read eeprom.

oh, you have a jupiter card with eeprom, rather than just OTP? ooer. Good catch! I likely only have OTP AR9462s :(

Mar 12 2024, 9:56 PM
bz requested review of D44332: pca963x: add support for the PCA9633 4-bit Fm+ I2C-bus LED driver.
Mar 12 2024, 9:42 PM
bz requested review of D44328: ath_hal/ar9300: allow JUPITER cards to read eeprom.
Mar 12 2024, 9:23 PM
bz added inline comments to D44310: inpcb: remove unused KPIs to manipulate inpcbs.
Mar 12 2024, 3:37 PM
bz added a comment to D44219: ipsec_accel: kernel infrastructure.
In D44219#1008810, @kib wrote:
Mar 12 2024, 9:18 AM
bz accepted D44310: inpcb: remove unused KPIs to manipulate inpcbs.

Otherwise looks good to me.

Mar 12 2024, 9:16 AM
bz added inline comments to D44310: inpcb: remove unused KPIs to manipulate inpcbs.
Mar 12 2024, 9:16 AM
bz added inline comments to D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE.
Mar 12 2024, 9:13 AM
bz added a reviewer for D44306: linuxkpi: Provide a non-NULL value for THIS_MODULE: linuxkpi.
Mar 12 2024, 9:09 AM

Mar 6 2024

bz requested changes to D44260: LinuxKPI: LKPI_80211_HW_CRYPTO: add crypto debug flag in LinuxKPI.
Mar 6 2024, 10:56 PM
bz added inline comments to D43648: LinuxKPI: 802.11: hardware crypto offload improvements.
Mar 6 2024, 7:56 PM
bz added a comment to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.
In D44020#1009469, @bz wrote:

This may not be based on your latest version but the general idea is: call i2c_update_div_val() before taking the lock, get the div_reg value back (maybe you can avoid passing it as pointer and checking for error by simply checking for sc->freq == UINT32_MAX in the caller (reset function) afterwards to see if you should change anything or not (just came to my mind, haven't checked all code paths). Then do the register writes all together under lock.

My assumption here is that it is the reset function is not called twice at the same time in parallel from the bus.

What you describe is what I do in the latest version, but it does not work, since without the lock, i2c_get_div_val gets executed before the attach function has the chance to set the variables that are used by i2c_get_div_val. So I need to delay the call to i2c_get_div_val until the attach function completes. Without that I end up with the wrong divider value. Note that this problem seems to only occur at boot time and not if I load the driver as a module after booting.

Mar 6 2024, 7:34 PM · arm64, ARM
bz added a comment to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.

This may not be based on your latest version but the general idea is: call i2c_update_div_val() before taking the lock, get the div_reg value back (maybe you can avoid passing it as pointer and checking for error by simply checking for sc->freq == UINT32_MAX in the caller (reset function) afterwards to see if you should change anything or not (just came to my mind, haven't checked all code paths). Then do the register writes all together under lock.

Mar 6 2024, 7:14 PM · arm64, ARM
bz added a comment to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.

Ok I think I know how this could be fixed. I should create a sc->initialized_freq flag which is set by the attach function once sc->freq has been set. The reset function should check the status of this flag after locking sc->mutex, and if it is not the case, it should cv_wait for a condition from attach. The attach function should cv_signal this condition after setting the flag. Does it look like the best strategy to you?

Mar 6 2024, 7:05 PM · arm64, ARM

Mar 5 2024

bz added a comment to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.

We'll need to adjust that slightly in a different direction ...
@manu can you lend a hand? Probably a lot easier for you than for me.

Mar 5 2024, 10:36 PM · arm64, ARM
bz requested changes to D44021: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.
Mar 5 2024, 6:49 PM · arm64, ARM

Mar 4 2024

bz requested review of D44208: LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM.
Mar 4 2024, 11:08 PM
bz added a comment to D43634: net80211: crypto: fix check for driver having done decryption.

Aha i remember now. Ok, so.

ath10k does HW decrypt AND strips the MIC/IV on successful decrypts. So I wasn't seeing that ccmp_decrypt() path being called.

Checking for IEEE80211_RX_F_DECRYPTED too is likely fine.

Thing is, why's IEEE80211_KEY_SWDECRYPT set if the HW is doing decrypt? You shouldn't have that set if the HW is doing decrypt and you've programmed keys into the HW at this point?

Mar 4 2024, 11:08 PM
bz accepted D44204: ip6_output: Reduce cache misses on pktopts.

Initially I thought we should name some better but the original structs have the same names so all good.
I have not checked if you got all the places but it looks good.

Mar 4 2024, 10:49 PM

Mar 2 2024

bz accepted D44192: linuxkpi: Queue skbuffs at tail in skb_queue_tail.

Great catch! I wonder what else that will help for the other (unconnected) drivers. Thanks!

Mar 2 2024, 8:10 PM · linuxkpi
bz added a comment to D43994: iwm: lower probe priority.

Here's a second one showing the NONEXIST problem with older firmware https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277432
I think it would be good to sort that before moving people from iwm to iwlwifi by default -- or at least being prepared to handle the fallout.

Mar 2 2024, 10:54 AM

Feb 29 2024

bz added a comment to D43634: net80211: crypto: fix check for driver having done decryption.

err, lemme double check this first. SWDECRYPT is not related to hardware encryption offload; it's an earlier thing where you could have RX STA keys in the hardware (to accelerate knowing which STA it belongs to) but it still passes it through untouched requiring one to do encrypt/decrypt in software.

For the ath NICs, the keycache served both as a encryption/decryption key cache and also as a way of marking known STAs in hardware for doing things like auto-ACK, block-ACK tracking, hardware antenna diversity in the older NICs, etc. It doesn't /have/ to contain encryption keys - that's why SWDECRYPT is a thing.

Is IEEE80211_KEY_SWDECRYPT being set somewhere in the linux kpi layer?

Feb 29 2024, 8:37 PM

Feb 27 2024

bz updated subscribers of D43994: iwm: lower probe priority.

Another thing (apart from man pages) we should probably make sure works out of the box is suspend/resume as that's the other missing bit (and ideally without workarounds). I need to go back and see if @hrs has some USB-DEBUG serial console code (I think he gave a presentation about it a while ago at Euro? but I lost track) and assume he doesn't have any time currently.

Feb 27 2024, 9:53 PM
bz added a comment to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.

Thank you for all the changes. I think we are getting pretty close to getting this in.

Feb 27 2024, 6:27 PM · arm64, ARM

Feb 26 2024

bz requested changes to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.
Feb 26 2024, 7:08 AM · arm64, ARM

Feb 24 2024

bz added inline comments to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.
Feb 24 2024, 6:10 PM · arm64, ARM
bz added a comment to D44021: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.

WOW. Having looked at that logic probably a year ago this is good work; also good catches on the missing unlock and NOACK for the 1 byte!

Feb 24 2024, 7:38 AM · arm64, ARM
bz added a comment to D44020: Splitting the existing Vybrid I2C Controller Driver to Add ACPI Support.

Sorry this looks a lot but is mostly just white space.

Feb 24 2024, 7:25 AM · arm64, ARM

Feb 22 2024

bz committed rG759a996d610d: LinuxKPI: 802.11: implement a deferred RX path (authored by bz).
LinuxKPI: 802.11: implement a deferred RX path
Feb 22 2024, 10:50 PM
bz closed D43968: LinuxKPI: 802.11: implement a deferred RX path.
Feb 22 2024, 10:49 PM
bz committed rG46a968ecfb57: dev/uart: name uart_class_set DATA_SET macro UART_CLASS() (authored by bz).
dev/uart: name uart_class_set DATA_SET macro UART_CLASS()
Feb 22 2024, 10:45 PM
bz closed D43981: dev/uart: name uart_class_set DATA_SET macro UART_CLASS().
Feb 22 2024, 10:45 PM
bz committed rG89c1e54a71cc: ath(4): always enable 11n (authored by bz).
ath(4): always enable 11n
Feb 22 2024, 10:40 PM
bz closed D43964: ath(4): always enable 11n.
Feb 22 2024, 10:39 PM

Feb 21 2024

bz committed rGc81df1c11262: iicbus/mux/pca954x: add support for PCA9546 I2C Switch (authored by bz).
iicbus/mux/pca954x: add support for PCA9546 I2C Switch
Feb 21 2024, 4:47 PM
bz closed D44009: iicbus/mux/pca954x: add support for PCA9546 I2C Switch.
Feb 21 2024, 4:47 PM
bz added a comment to D44009: iicbus/mux/pca954x: add support for PCA9546 I2C Switch.

I just skimmed them:

Feb 21 2024, 4:43 PM
bz added a comment to D43811: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.

One comment: I tested this on a LS1088 in FDT mode and it makes me super happy as I can scan bits (and flawlessly read) now I had problems with on another board (which I should test as well once I can again).

Feb 21 2024, 4:14 PM · arm64, ARM
bz added a comment to D44009: iicbus/mux/pca954x: add support for PCA9546 I2C Switch.
In D44009#1004004, @imp wrote:

The change itself looks great.

There's other pca954x parts:

..

Seems like it would be easy to add them while you're in the neighborhood? Again, not a request, per se, but if you had a minute...

Feb 21 2024, 3:43 PM
bz requested review of D44009: iicbus/mux/pca954x: add support for PCA9546 I2C Switch.
Feb 21 2024, 9:16 AM

Feb 20 2024

bz added a comment to D43994: iwm: lower probe priority.

I'm now running with this change on my daily driver, which has:

Feb 20 15:53:33 nazar kernel: iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
Feb 20 2024, 9:35 PM
bz added inline comments to D43811: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.
Feb 20 2024, 9:29 PM · arm64, ARM
bz added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Merging the code with the existing driver in D43811. This differential is now obsolete.

Feb 20 2024, 9:28 PM · arm64, ARM
bz added inline comments to D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 20 2024, 9:18 PM · arm64, ARM
bz added a comment to D43994: iwm: lower probe priority.

Have you tested on a pre-22000 card 8xxx/9xxx recently?
I know we have to 2 PRs (well one now, two people) on those and given they use different interfaces within iwlwifi it's possible they do behave different.

Feb 20 2024, 9:09 PM
bz added a comment to D43811: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.

Really looking forward to this. Also a step towards getting SFP+ support going..

Feb 20 2024, 6:58 PM · arm64, ARM
bz added a comment to D37973: wtapctl(8): Introduce new tool for wtap(4).

@lwhsu I'll just pick the first review given they all live in a window here; last time I checked and asked if they were ready for review I was told to hold off for further changes? Have they been addressed, as in, is the stack of wtap changes ready for review?

Feb 20 2024, 5:46 PM · wireless
bz added a comment to D43968: LinuxKPI: 802.11: implement a deferred RX path.
In D43968#1003463, @cc wrote:

Initial test shows this error when I changed the channel number in AP. Looks like a reproduce of PR 277100 without LKPI_80211_HW_CRYPTO enabled, or a separate issue?

Feb 20 2024, 5:44 PM

Feb 19 2024

bz requested review of D43981: dev/uart: name uart_class_set DATA_SET macro UART_CLASS().
Feb 19 2024, 8:47 PM
bz added inline comments to D43945: LinuxKPI w/ LKPI_80211_HW_CRYPTO: fix non-sleepable mutex use..
Feb 19 2024, 6:40 PM
bz committed R9:5d4b90791c98: Document __FreeBSD_version 13.3 bumps for net80211 internal changes. (authored by bz).
Document __FreeBSD_version 13.3 bumps for net80211 internal changes.
Feb 19 2024, 4:27 PM
bz committed rG401dbf9cfc0c: LinuxKPI: 802.11: lsta txq locking cleanup (authored by bz).
LinuxKPI: 802.11: lsta txq locking cleanup
Feb 19 2024, 4:11 PM
bz committed rG9b2da4bc5a68: LinuxKPI: 802.11: update the ni/lsta reference cycle (authored by bz).
LinuxKPI: 802.11: update the ni/lsta reference cycle
Feb 19 2024, 4:11 PM
bz committed rGa75a3d7afcc8: Bump __FreeBSD_version for net80211 'struct ieee80211vap' changes (authored by bz).
Bump __FreeBSD_version for net80211 'struct ieee80211vap' changes
Feb 19 2024, 4:11 PM
bz committed rGd4b4efc6db6c: LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss) (authored by bz).
LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss)
Feb 19 2024, 4:11 PM
bz committed rG9b998db87c28: net80211: deal with lost state transitions (authored by bz).
net80211: deal with lost state transitions
Feb 19 2024, 4:11 PM
bz committed rGeecf453c0e56: net80211: make sure calls to (*iv_update_bss)() are locked (authored by bz).
net80211: make sure calls to (*iv_update_bss)() are locked
Feb 19 2024, 4:11 PM
bz committed rGf7c8d5448446: net80211: fix a NULL deref in ieee80211_sta_join1() (authored by bz).
net80211: fix a NULL deref in ieee80211_sta_join1()
Feb 19 2024, 4:11 PM
bz committed rG5463d4cd99f3: LinuxKPI: 802.11: fix field order in ieee80211_key_conf (authored by bz).
LinuxKPI: 802.11: fix field order in ieee80211_key_conf
Feb 19 2024, 4:11 PM
bz committed rGf93d06ac87f4: net80211: improve logging about state transitions lost (authored by bz).
net80211: improve logging about state transitions lost
Feb 19 2024, 4:11 PM
bz committed rG804a4c1c7b8f: LinuxKPI: 802.11: more TXQ implementation and locking (authored by bz).
LinuxKPI: 802.11: more TXQ implementation and locking
Feb 19 2024, 4:10 PM
bz committed rG7d781b891eed: iwlwififw: add firmware for the Bz/B200 chipset (authored by bz).
iwlwififw: add firmware for the Bz/B200 chipset
Feb 19 2024, 4:10 PM
bz committed rG4a646242c37f: wpa: ctrl_iface set sendbuf size (authored by bz).
wpa: ctrl_iface set sendbuf size
Feb 19 2024, 4:10 PM