apply_link_downgrade_policy(9)
π apply_link_downgrade_policy(9) β the Kernel API manual, but make it make sense β¨
okay so bestie, we're in the apply_link_downgrade_policy(9) page of the Kernel API Manual, and honestly? this one's lowkey a vibe check for your link widths. no cap, let's get into it π«Ά
β¨ NAME β¨
apply_link_downgrade_policy β literally applies the link width downgrade enabled policy against the current active link widths. that's it, that's the whole thing π
πΈ SYNOPSIS πΈ
bool apply_link_downgrade_policy (struct hfi1_pportdata *ppd , bool
refresh_widths );
π ARGUMENTS π
ppdβ the info of the physical Hfi port. like, the whole personality of the port goes in here πrefresh_widthsβTruemeans a link downgrade event happened. it's giving "yes queen, something changed" β¨
π¦ RETURN π¦
Trueβ slay, the link downgrade worked πFalseβ nope, the link downgrade event failed, and the link will bounce back to default link width. it's giving "we're so back", but like, sadly π
π DESCRIPTION π
so this gets called whenever the enabled policy changes or the active link widths change β either one, she's on it π
refresh_widths is the one that says "hey, a link downgrade occurred." and then the link_downgraded variable gets set by refresh_widths, and that is what determines the success/failure of the policy application. so like, refresh_widths is the main character here, fr fr π
no big dramatic warnings on this one, bestie β just know that the return value is the whole story:True= the downgrade stuck,False= the link bounces back to default link width. π«Ά
π SEE ALSO π
the kernel file lives right here, iconic:
./drivers/infiniband/hw/hfi1/chip.c
and the whole friend group π«:
hfi1_addr_from_offset(9)read_csr(9)write_csr(9)get_csr_addr(9)update_xmit_counters(9)is_rcv_avail_int(9)is_rcv_urgent_int(9)general_interrupt(9)hfi1_rcd_eoi_intr(9)hfi1_netdev_rx_napi(9)data_vls_operational(9)encode_rcv_header_entry_size(9)hfi1_validate_rcvhdrcnt(9)set_hdrq_regs(9)update_statusp(9)wait_logical_linkstate(9)read_mod_write(9)set_intr_bits(9)set_up_interrupts(9)hfi1_get_qp_map(9)init_qpmap_table(9)init_qos(9)hfi1_init_dd(9)create_pbc(9)
okay that's the whole page, you ate that π
this lil gem comes to you straight from ./drivers/infiniband/hw/hfi1, dated October 2026 β apply_link_downgrade_policy(9), periodt. ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms