Jaguar1 enables EDCCA at bring-up where the vendor driver ships it off

Đang mở
#428 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, linux
Lĩnh vực
networking

Hướng nghiên cứu

Start by reading RtlJaguarDevice::apply_cca and the BB initialization table entry for 0x8a4; the issue also points to tests/dis_cca_tx_onair.sh for related measurements. The issue presents three possible policy changes but leaves the choice unresolved, with regulatory tradeoffs and limited device testing. Done would require settling that policy and implementing and validating the chosen behavior across relevant hardware.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

RtlJaguarDevice::apply_cca programs the BB EDCCA thresholds at 0x8a4 from
the live IGI whenever the EDCCA gate is enabled — which is the default — and
0x8a4 is otherwise parked by the BB init table at 0x7f7f, the
never-trigger value. So on Jaguar1 the enable is the active step: bring-up
takes a chip whose BB would never raise EDCCA and gives it a real operating
point.

That is a policy choice worth stating explicitly, because the Realtek vendor
driver makes the opposite one:

  • CONFIG_RTW_ADAPTIVITY_EN 0 — adaptivity (EDCCA) off by default.
  • rtw_adaptivity_en, rtw_adaptivity_mode, rtw_adaptivity_th_l2h_ini and
    rtw_adaptivity_th_edcca_hl_diff are all module parameters, mode 0644.

devourer enables it and hard-codes both th_l2h_ini (−17, −14 on 8814A) and
the H2L offset (−7).

What this costs, measured on an RTL8812AU injecting 300 frames at 6M on an
idle channel, with two independent witnesses of different families decoding
(RTL8822C and RTL8733BU, agreeing per arm within ~2%):

arm delivered
both gates on (the default) 5.7% / 15.7%
EDCCA off only 95.3% / 95.7%
primary CCA off only 31.0% / 12.7%
both gates off 94.0% / 95.0%

The default costs this family ~90% of what it is asked to transmit, and it is
EDCCA that does it — tests/dis_cca_tx_onair.sh reaches the opposite
conclusion on Jaguar3, where the 8812AU is only ever the flooder.

This is not an argument for dis_cca. With EDCCA off and primary CCA left on,
the same injector delivers 95% on an idle channel and still 78% under a
co-channel flooder — it defers when it should. With both gates off it collapses
to 0.3%, because it stops waiting for a gap and collides instead. The gate
worth turning off is the one the vendor never turned on.

Three things that might follow, in increasing order of change:

  1. Expose th_l2h_ini and the H2L offset as tuning config, matching the
    vendor's module parameters. Smallest change; makes the operating point a
    decision rather than a constant.
  2. Make the Jaguar1 EDCCA enable itself configurable, defaulting to the
    current behaviour so nothing moves unless asked.
  3. Follow the vendor and default it off on Jaguar1, on the grounds that the
    parked 0x7f7f is what the BB table ships and what every other driver
    leaves in place.

Raising rather than proposing: a default change has a blast radius I cannot
measure from one bench, and 5 GHz regulatory adaptivity requirements are a
real reason a project might want it on even at this cost. Filed out of
#427, which only split the gate so the two could be told apart.

Verified on RTL8812AU (Jaguar1) and RTL8822C (Jaguar3). Not re-run on
8822EU/8812EU — I do not have those parts.

Ngôn ngữ chính
C
Star
56
Fork
29
Merge trung bình
3 giờ 43 phút
Pull request đã merge (30 ngày)
75

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenIPC/devourer

Tất cả issue của OpenIPC/devourer

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.