mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
net: hns3: Modify the order of initializing command queue register
According to hardware's description, the head pointer register should be written before the tail pointer register while doing command queue initialization. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aea06eb276
commit
1b3725781a
@ -119,8 +119,8 @@ static void hclge_cmd_config_regs(struct hclge_cmq_ring *ring)
|
||||
hclge_write_dev(hw, HCLGE_NIC_CSQ_DEPTH_REG,
|
||||
(ring->desc_num >> HCLGE_NIC_CMQ_DESC_NUM_S) |
|
||||
HCLGE_NIC_CMQ_ENABLE);
|
||||
hclge_write_dev(hw, HCLGE_NIC_CSQ_TAIL_REG, 0);
|
||||
hclge_write_dev(hw, HCLGE_NIC_CSQ_HEAD_REG, 0);
|
||||
hclge_write_dev(hw, HCLGE_NIC_CSQ_TAIL_REG, 0);
|
||||
} else {
|
||||
hclge_write_dev(hw, HCLGE_NIC_CRQ_BASEADDR_L_REG,
|
||||
lower_32_bits(dma));
|
||||
@ -129,8 +129,8 @@ static void hclge_cmd_config_regs(struct hclge_cmq_ring *ring)
|
||||
hclge_write_dev(hw, HCLGE_NIC_CRQ_DEPTH_REG,
|
||||
(ring->desc_num >> HCLGE_NIC_CMQ_DESC_NUM_S) |
|
||||
HCLGE_NIC_CMQ_ENABLE);
|
||||
hclge_write_dev(hw, HCLGE_NIC_CRQ_TAIL_REG, 0);
|
||||
hclge_write_dev(hw, HCLGE_NIC_CRQ_HEAD_REG, 0);
|
||||
hclge_write_dev(hw, HCLGE_NIC_CRQ_TAIL_REG, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user