qed_dbg_grc_dump(9)
π qed_dbg_grc_dump β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual entry for qed_dbg_grc_dump β¨. Yes this is a section 9 (kernel API) page, yes it's a whole function, and yes we're gonna get through it together because honestly? It's giving "dump the GRC data into a buffer" and nothing more chaotic than that. π«Ά
πΈ NAME πΈ
qed_dbg_grc_dump β literally dumps GRC data into the buffer you hand it. That's the whole job. Main character energy, minimal plot. π
β¨ SYNOPSIS β¨
enum dbg_status qed_dbg_grc_dump (struct qed_hwfn *p_hwfn , struct
qed_ptt *p_ptt , u32 *dump_buf , u32 buf_size_in_dwords , u32
*num_dumped_dwords );
Five args, returns an enum dbg_status, no cap. Let's go through every single one because we don't skip. π
π¦ ARGUMENTS π¦
p_hwfnβ the HW device data. like, the hardware's whole personality file. πp_pttβ the Ptt window used for writing the registers. your little window into register-land. πͺdump_bufβ pointer to write the collected GRC data into. this is the bucket, bestie. put the GRC data in the bucket. πͺ£buf_size_in_dwordsβ the size of the specified buffer, measured in dwords. yes, in dwords. not bytes. do not come at it with bytes. πnum_dumped_dwordsβ(OUT)number of dumped dwords. it tells you how much actually made it into the bucket. β
π₯ RETURN π₯
So it returns an error if one of the following holds β pay attention, this is the vibe check π§:
- The version wasn't set. π (set your version, girl.)
- The specified dump buffer is too small. π
Otherwise? It returns ok. Slay. β
no cap: if your buffer is tiny, this whole thing is not gonna work out. size it correctly before you call.
π SEE ALSO π
the kernel file it lives near:
./drivers/net/ethernet/qlogic/qed/qed_dbg_hsi.h
and, like, the entire extended friend group of debug functions β every single one, we're listing them all because they're all iconic in their own way π:
qed_dbg_set_bin_ptr(9), qed_read_regs(9), qed_read_fw_info(9), qed_dbg_grc_config(9), qed_dbg_grc_set_params_default(9), qed_dbg_grc_get_dump_buf_size(9), qed_dbg_idle_chk_get_dump_buf_size(9), qed_dbg_idle_chk_dump(9), qed_dbg_mcp_trace_get_dump_buf_size(9), qed_dbg_mcp_trace_dump(9), qed_dbg_reg_fifo_get_dump_buf_size(9), qed_dbg_reg_fifo_dump(9), qed_dbg_igu_fifo_get_dump_buf_size(9), qed_dbg_igu_fifo_dump(9), qed_dbg_protection_override_get_dump_buf_size(9), qed_dbg_protection_override_dump(9), qed_dbg_fw_asserts_get_dump_buf_size(9), qed_dbg_fw_asserts_dump(9), qed_dbg_read_attn(9), qed_dbg_print_attn(9), qed_dbg_user_set_bin_ptr(9), qed_dbg_alloc_user_data(9), qed_dbg_get_status_str(9), qed_get_idle_chk_results_buf_size(9), qed_print_idle_chk_results(9), qed_dbg_mcp_trace_set_meta_data(9), qed_get_mcp_trace_results_buf_size(9), qed_print_mcp_trace_results(9), qed_mcp_trace_free_meta_data(9), qed_get_reg_fifo_results_buf_size(9), qed_print_reg_fifo_results(9), qed_get_igu_fifo_results_buf_size(9), qed_print_igu_fifo_results(9), qed_get_protection_override_results_buf_size(9), qed_print_protection_override_results(9), qed_get_fw_asserts_results_buf_size(9), qed_print_fw_asserts_results(9), qed_dbg_parse_attn(9)
go read them. iykyk. π
anyway that's the whole page, mwah π β this came to you from the source tree at ./drivers/net/ethernet/qlogic/qed, dated October 2026, and it's qed_dbg_grc_dump(9) forever, 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