History

qed: Add abstraction for different hsi values per chip

The number of BTB blocks was modified to be different between the two chip flavors supported (BB/K2) as a result, this lead to a re-write of selecting the default hsi value based on the chip. This patch creates a lookup table for hsi values per chip rather than ask again and again for every value.

Michal Kalderon committed 6 years ago

Commit 1392d191 parent 997af5d3 files · +90 −32Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/qed/common_hsi.h+2−2
@@ -663,8 +663,8 @@ · 662 unmodified lines
663663 #define PBF_MAX_CMD_LINES 3328
664664
665665 /* Number of BTB blocks. Each block is 256B. */
666−#define BTB_MAX_BLOCKS 1440
667−
666+#define BTB_MAX_BLOCKS_BB 1440
667+#define BTB_MAX_BLOCKS_K2 1840
668668 /*****************/
669669 /* PRS CONSTANTS */
670670 /*****************/