Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6f02a4d authored by Rahul Lakkireddy's avatar Rahul Lakkireddy Committed by David S. Miller
Browse files

cxgb4: fix trailing zero in CIM LA dump



Set correct size of the CIM LA dump for T6.

Fixes: 27887bc7 ("cxgb4: collect hardware LA dumps")
Signed-off-by: default avatarRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: default avatarGanesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c4e43e14
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -472,7 +472,7 @@ int cudbg_collect_cim_la(struct cudbg_init *pdbg_init,


	if (is_t6(padap->params.chip)) {
	if (is_t6(padap->params.chip)) {
		size = padap->params.cim_la_size / 10 + 1;
		size = padap->params.cim_la_size / 10 + 1;
		size *= 11 * sizeof(u32);
		size *= 10 * sizeof(u32);
	} else {
	} else {
		size = padap->params.cim_la_size / 8;
		size = padap->params.cim_la_size / 8;
		size *= 8 * sizeof(u32);
		size *= 8 * sizeof(u32);
+1 −1
Original line number Original line Diff line number Diff line
@@ -102,7 +102,7 @@ static u32 cxgb4_get_entity_length(struct adapter *adap, u32 entity)
	case CUDBG_CIM_LA:
	case CUDBG_CIM_LA:
		if (is_t6(adap->params.chip)) {
		if (is_t6(adap->params.chip)) {
			len = adap->params.cim_la_size / 10 + 1;
			len = adap->params.cim_la_size / 10 + 1;
			len *= 11 * sizeof(u32);
			len *= 10 * sizeof(u32);
		} else {
		} else {
			len = adap->params.cim_la_size / 8;
			len = adap->params.cim_la_size / 8;
			len *= 8 * sizeof(u32);
			len *= 8 * sizeof(u32);