[roce-0114]RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN

Bug #1859597 reported by Fred Kimmy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Fix Released
Undecided
Unassigned
Ubuntu-18.04
Fix Released
Undecided
Unassigned
Ubuntu-18.04-hwe
Fix Released
Undecided
Unassigned
Ubuntu-20.04
Fix Released
Undecided
Unassigned
Upstream-kernel
Fix Released
Undecided
Unassigned

Bug Description

[Bug Description]
Size of pointer to buf field of struct hns_roce_hem_chunk should be considered when calculating HNS_ROCE_HEM_CHUNK_LEN, or sg table size will be larger than expected when allocating hem.

[Steps to Reproduce]
NA

[Actual Results]
Use wrong size to init sg table when allocating hem

[Expected Results]
Allocating hem correctly

[Reproducibility]
Inevitably

[Additional information]
Hardware: D06 CS
Firmware: NA
Kernel: NA

[Resolution]
Add size of pointer to buf field of struct hns_roce_hem_chunk when caculating HNS_ROCE_HEM_CHUNK_LEN

RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN

Ike Panhc (ikepanhc)
tags: added: ikeradar
Revision history for this message
Ike Panhc (ikepanhc) wrote :

In bionic/master-next and focal kernel.

Changed in kunpeng920:
status: New → Fix Committed
tags: removed: ikeradar
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Patch hits bionic GA kernel since 4.15.0-87.87

Revision history for this message
Ike Panhc (ikepanhc) wrote :

In HWE 5.3 kernel already.

Changed in kunpeng920:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.