qed_dbg_reg_fifo_dump(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qed_dbg_reg_fifo_dump β€” NAME ✨

okay so bestie, this is qed_dbg_reg_fifo_dump(9) from the Kernel API Manual, and it literally does what it says: it reads the reg fifo and then writes the results into the buffer you handed it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

enum dbg_status qed_dbg_reg_fifo_dump (struct qed_hwfn *p_hwfn , struct
qed_ptt *p_ptt , u32 *dump_buf , u32 buf_size_in_dwords , u32
*num_dumped_dwords );

like, that's the whole signature, no cap. five args, one enum dbg_status coming back at you. πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • p_hwfn β€” HW device data. that's your hardware function struct, the main character of the whole qed situation πŸ‘‘
  • p_ptt β€” the ptt window that gets used for writing the registers. ptt = the little doorway you go through, iykyk πŸšͺ✨
  • dump_buf β€” pointer to write the reg fifo data into. this is the destination, the place the good stuff lands 🫢
  • buf_size_in_dwords β€” the size of the buffer you specified, measured in dwords (yes, dwords, not bytes, pay attention bestie 😭)
  • num_dumped_dwords β€” (OUT) number of dumped dwords. it's an OUT param, meaning it comes back with info for you, so don't expect it to hold anything useful on the way in πŸ’€

πŸ”₯ RETURN πŸ”₯

it returns an error if any one of these holds:

  • the version wasn't set πŸ™ˆ
  • the buffer you specified is too small (ngl this is the classic one, size your buffers correctly besties) 😭
  • the DMAE transaction failed πŸ’€

otherwise? it returns ok. slay. ✨

fr fr, those are the only three failure cases listed β€” don't go inventing extra ones, that's not the vibe.

πŸ’œ SEE ALSO πŸ’œ

first up, the kernel file itself:

Kernel file ./drivers/net/ethernet/qlogic/qed/qed_dbg_hsi.h

and then the whole friend group, in order, all of them, no skipping:

like, that's a lot of siblings, but every single one of them is on the list so we're listing every single one of them. periodt. πŸ’…


and that's the page!! 🧚 this little beauty lives in ./drivers/net/ethernet/qlogic/qed, and the version we're reading is dated October 2026 β€” so go forth, dump that reg fifo, and remember: check your buffer size first, bestie πŸ“πŸ’œ

πŸ“¦ where this page comes from