Commit ab2e696b authored by Sara Sharon's avatar Sara Sharon Committed by Luca Coelho

iwlwifi: pcie: make sure packet arrived to destined queue

Add a warning in case packet didn't end up in the HW
destined queue.
Signed-off-by: default avatarSara Sharon <sara.sharon@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 63044335
...@@ -212,6 +212,8 @@ struct iwl_cmd_header_wide { ...@@ -212,6 +212,8 @@ struct iwl_cmd_header_wide {
#define FH_RSCSR_FRAME_INVALID 0x55550000 #define FH_RSCSR_FRAME_INVALID 0x55550000
#define FH_RSCSR_FRAME_ALIGN 0x40 #define FH_RSCSR_FRAME_ALIGN 0x40
#define FH_RSCSR_RPA_EN BIT(25) #define FH_RSCSR_RPA_EN BIT(25)
#define FH_RSCSR_RXQ_POS 16
#define FH_RSCSR_RXQ_MASK 0x3F0000
struct iwl_rx_packet { struct iwl_rx_packet {
/* /*
...@@ -223,7 +225,11 @@ struct iwl_rx_packet { ...@@ -223,7 +225,11 @@ struct iwl_rx_packet {
* 29: flag fast IRQ request * 29: flag fast IRQ request
* 28-26: Reserved * 28-26: Reserved
* 25: Offload enabled * 25: Offload enabled
* 24-14: Reserved * 24: RPF enabled
* 23: RSS enabled
* 22: Checksum enabled
* 21-16: RX queue
* 15-14: Reserved
* 13-00: RX frame size * 13-00: RX frame size
*/ */
__le32 len_n_flags; __le32 len_n_flags;
......
...@@ -1104,6 +1104,9 @@ static void iwl_pcie_rx_handle_rb(struct iwl_trans *trans, ...@@ -1104,6 +1104,9 @@ static void iwl_pcie_rx_handle_rb(struct iwl_trans *trans,
if (pkt->len_n_flags == cpu_to_le32(FH_RSCSR_FRAME_INVALID)) if (pkt->len_n_flags == cpu_to_le32(FH_RSCSR_FRAME_INVALID))
break; break;
WARN_ON((le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_RXQ_MASK) >>
FH_RSCSR_RXQ_POS != rxq->id);
IWL_DEBUG_RX(trans, IWL_DEBUG_RX(trans,
"cmd at offset %d: %s (0x%.2x, seq 0x%x)\n", "cmd at offset %d: %s (0x%.2x, seq 0x%x)\n",
rxcb._offset, rxcb._offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment