Skip to content

Commit 1028b86

Browse files
committed
Merge: crypto: octeontx2: update octeontx2 crypto driver to v6.15-rc1
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/732 ``` JIRA: https://issues.redhat.com/browse/RHEL-74336 Upstream Status: 4 commits are merged into the linux.git 1 partial commit Bring in the latest OcteonTX2 driver bugfixes and updates. All the commits apply cleanly, no conflicts, no changes vs the upstream. One commit has a partial scope limited to OcteonTX2 driver only. Signed-off-by: Vladis Dronov <vdronov@redhat.com> ``` Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: Phil Auld <pauld@redhat.com> Approved-by: Herbert Xu <zxu@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Julio Faracco <jfaracco@redhat.com>
2 parents 6f5251f + c16d652 commit 1028b86

File tree

4 files changed

+5
-105
lines changed

4 files changed

+5
-105
lines changed

MAINTAINERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13722,8 +13722,6 @@ F: drivers/gpu/drm/armada/
1372213722
F: include/uapi/drm/armada_drm.h
1372313723

1372413724
MARVELL CRYPTO DRIVER
13725-
M: Boris Brezillon <bbrezillon@kernel.org>
13726-
M: Arnaud Ebalard <arno@natisbad.org>
1372713725
M: Srujana Challa <schalla@marvell.com>
1372813726
L: linux-crypto@vger.kernel.org
1372913727
S: Maintained

drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c

Lines changed: 1 addition & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <linux/ctype.h>
55
#include <linux/firmware.h>
6+
#include <linux/string_choices.h>
67
#include "otx2_cptpf_ucode.h"
78
#include "otx2_cpt_common.h"
89
#include "otx2_cptpf.h"
@@ -1774,102 +1775,3 @@ int otx2_cpt_dl_custom_egrp_delete(struct otx2_cptpf_dev *cptpf,
17741775
dev_err(dev, "%s\n", err_msg);
17751776
return -EINVAL;
17761777
}
1777-
1778-
static void get_engs_info(struct otx2_cpt_eng_grp_info *eng_grp, char *buf,
1779-
int size, int idx)
1780-
{
1781-
struct otx2_cpt_engs_rsvd *mirrored_engs = NULL;
1782-
struct otx2_cpt_engs_rsvd *engs;
1783-
int len, i;
1784-
1785-
buf[0] = '\0';
1786-
for (i = 0; i < OTX2_CPT_MAX_ETYPES_PER_GRP; i++) {
1787-
engs = &eng_grp->engs[i];
1788-
if (!engs->type)
1789-
continue;
1790-
if (idx != -1 && idx != i)
1791-
continue;
1792-
1793-
if (eng_grp->mirror.is_ena)
1794-
mirrored_engs = find_engines_by_type(
1795-
&eng_grp->g->grp[eng_grp->mirror.idx],
1796-
engs->type);
1797-
if (i > 0 && idx == -1) {
1798-
len = strlen(buf);
1799-
scnprintf(buf + len, size - len, ", ");
1800-
}
1801-
1802-
len = strlen(buf);
1803-
scnprintf(buf + len, size - len, "%d %s ",
1804-
mirrored_engs ? engs->count + mirrored_engs->count :
1805-
engs->count,
1806-
get_eng_type_str(engs->type));
1807-
if (mirrored_engs) {
1808-
len = strlen(buf);
1809-
scnprintf(buf + len, size - len,
1810-
"(%d shared with engine_group%d) ",
1811-
engs->count <= 0 ?
1812-
engs->count + mirrored_engs->count :
1813-
mirrored_engs->count,
1814-
eng_grp->mirror.idx);
1815-
}
1816-
}
1817-
}
1818-
1819-
void otx2_cpt_print_uc_dbg_info(struct otx2_cptpf_dev *cptpf)
1820-
{
1821-
struct otx2_cpt_eng_grps *eng_grps = &cptpf->eng_grps;
1822-
struct otx2_cpt_eng_grp_info *mirrored_grp;
1823-
char engs_info[2 * OTX2_CPT_NAME_LENGTH];
1824-
struct otx2_cpt_eng_grp_info *grp;
1825-
struct otx2_cpt_engs_rsvd *engs;
1826-
int i, j;
1827-
1828-
pr_debug("Engine groups global info");
1829-
pr_debug("max SE %d, max IE %d, max AE %d", eng_grps->avail.max_se_cnt,
1830-
eng_grps->avail.max_ie_cnt, eng_grps->avail.max_ae_cnt);
1831-
pr_debug("free SE %d", eng_grps->avail.se_cnt);
1832-
pr_debug("free IE %d", eng_grps->avail.ie_cnt);
1833-
pr_debug("free AE %d", eng_grps->avail.ae_cnt);
1834-
1835-
for (i = 0; i < OTX2_CPT_MAX_ENGINE_GROUPS; i++) {
1836-
grp = &eng_grps->grp[i];
1837-
pr_debug("engine_group%d, state %s", i,
1838-
grp->is_enabled ? "enabled" : "disabled");
1839-
if (grp->is_enabled) {
1840-
mirrored_grp = &eng_grps->grp[grp->mirror.idx];
1841-
pr_debug("Ucode0 filename %s, version %s",
1842-
grp->mirror.is_ena ?
1843-
mirrored_grp->ucode[0].filename :
1844-
grp->ucode[0].filename,
1845-
grp->mirror.is_ena ?
1846-
mirrored_grp->ucode[0].ver_str :
1847-
grp->ucode[0].ver_str);
1848-
if (is_2nd_ucode_used(grp))
1849-
pr_debug("Ucode1 filename %s, version %s",
1850-
grp->ucode[1].filename,
1851-
grp->ucode[1].ver_str);
1852-
}
1853-
1854-
for (j = 0; j < OTX2_CPT_MAX_ETYPES_PER_GRP; j++) {
1855-
engs = &grp->engs[j];
1856-
if (engs->type) {
1857-
u32 mask[5] = { };
1858-
1859-
get_engs_info(grp, engs_info,
1860-
2 * OTX2_CPT_NAME_LENGTH, j);
1861-
pr_debug("Slot%d: %s", j, engs_info);
1862-
bitmap_to_arr32(mask, engs->bmap,
1863-
eng_grps->engs_num);
1864-
if (is_dev_otx2(cptpf->pdev))
1865-
pr_debug("Mask: %8.8x %8.8x %8.8x %8.8x",
1866-
mask[3], mask[2], mask[1],
1867-
mask[0]);
1868-
else
1869-
pr_debug("Mask: %8.8x %8.8x %8.8x %8.8x %8.8x",
1870-
mask[4], mask[3], mask[2], mask[1],
1871-
mask[0]);
1872-
}
1873-
}
1874-
}
1875-
}

drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ int otx2_cpt_dl_custom_egrp_create(struct otx2_cptpf_dev *cptpf,
166166
struct devlink_param_gset_ctx *ctx);
167167
int otx2_cpt_dl_custom_egrp_delete(struct otx2_cptpf_dev *cptpf,
168168
struct devlink_param_gset_ctx *ctx);
169-
void otx2_cpt_print_uc_dbg_info(struct otx2_cptpf_dev *cptpf);
170169
struct otx2_cpt_engs_rsvd *find_engines_by_type(
171170
struct otx2_cpt_eng_grp_info *eng_grp,
172171
int eng_type);

drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,10 @@ static int cpt_process_ccode(struct otx2_cptlfs_info *lfs,
264264
break;
265265
}
266266

267-
dev_err(&pdev->dev,
268-
"Request failed with software error code 0x%x\n",
269-
cpt_status->s.uc_compcode);
267+
pr_debug("Request failed with software error code 0x%x: algo = %s driver = %s\n",
268+
cpt_status->s.uc_compcode,
269+
info->req->areq->tfm->__crt_alg->cra_name,
270+
info->req->areq->tfm->__crt_alg->cra_driver_name);
270271
otx2_cpt_dump_sg_list(pdev, info->req);
271272
break;
272273
}

0 commit comments

Comments
 (0)