forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: bump to 4.9.171, 4.14.114, 4.19.37
- Loading branch information
1 parent
5985e79
commit 45401c9
Showing
51 changed files
with
213 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,25 +39,25 @@ Signed-off-by: Herbert Xu <[email protected]> | |
sa = (struct dynamic_sa_ctl *) ctx->sa_in; | ||
- ctx->hash_final = 0; | ||
|
||
set_dynamic_sa_command_0(sa, SA_NOT_SAVE_HASH, SA_NOT_SAVE_IV, | ||
SA_LOAD_HASH_FROM_SA, SA_LOAD_IV_FROM_STATE, | ||
@@ -191,7 +188,6 @@ static int crypto4xx_hash_alg_init(struc | ||
set_dynamic_sa_command_0(sa, SA_NOT_SAVE_HASH, (cm == CRYPTO_MODE_CBC ? | ||
SA_SAVE_IV : SA_NOT_SAVE_IV), | ||
@@ -192,7 +189,6 @@ static int crypto4xx_hash_alg_init(struc | ||
|
||
ctx->dev = my_alg->dev; | ||
ctx->is_hash = 1; | ||
- ctx->hash_final = 0; | ||
|
||
/* Create SA */ | ||
if (ctx->sa_in_dma_addr || ctx->sa_out_dma_addr) | ||
@@ -256,7 +252,6 @@ int crypto4xx_hash_update(struct ahash_r | ||
@@ -257,7 +253,6 @@ int crypto4xx_hash_update(struct ahash_r | ||
struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); | ||
|
||
ctx->is_hash = 1; | ||
- ctx->hash_final = 0; | ||
ctx->pd_ctl = 0x11; | ||
ctx->direction = DIR_INBOUND; | ||
|
||
@@ -274,7 +269,6 @@ int crypto4xx_hash_digest(struct ahash_r | ||
@@ -275,7 +270,6 @@ int crypto4xx_hash_digest(struct ahash_r | ||
{ | ||
struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); | ||
|
||
|
@@ -67,7 +67,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
--- a/drivers/crypto/amcc/crypto4xx_core.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_core.c | ||
@@ -964,7 +964,7 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -973,7 +973,7 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
|
||
sa->sa_command_1.bf.hash_crypto_offset = 0; | ||
pd->pd_ctl.w = ctx->pd_ctl; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
--- a/drivers/crypto/amcc/crypto4xx_core.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_core.c | ||
@@ -1116,7 +1116,9 @@ struct crypto4xx_alg_common crypto4xx_al | ||
@@ -1125,7 +1125,9 @@ struct crypto4xx_alg_common crypto4xx_al | ||
.cra_name = "cbc(aes)", | ||
.cra_driver_name = "cbc-aes-ppc4xx", | ||
.cra_priority = CRYPTO4XX_CRYPTO_PRIORITY, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
--- a/drivers/crypto/amcc/crypto4xx_core.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_core.c | ||
@@ -1081,7 +1081,6 @@ static void crypto4xx_bh_tasklet_cb(unsi | ||
@@ -1090,7 +1090,6 @@ static void crypto4xx_bh_tasklet_cb(unsi | ||
pd->pd_ctl.bf.pe_done = 0; | ||
crypto4xx_pd_done(core_dev->dev, tail); | ||
crypto4xx_put_pd_to_pdr(core_dev->dev, tail); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
--- a/drivers/crypto/amcc/crypto4xx_alg.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_alg.c | ||
@@ -149,7 +149,7 @@ static int crypto4xx_setkey_aes(struct c | ||
@@ -150,7 +150,7 @@ static int crypto4xx_setkey_aes(struct c | ||
SA_NOT_COPY_HDR); | ||
crypto4xx_memcpy_le(ctx->sa_in + get_dynamic_sa_offset_key_field(ctx), | ||
key, keylen); | ||
|
@@ -27,7 +27,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
sa->sa_command_1.bf.key_len = keylen >> 3; | ||
ctx->is_hash = 0; | ||
ctx->direction = DIR_INBOUND; | ||
@@ -219,7 +219,7 @@ static int crypto4xx_hash_alg_init(struc | ||
@@ -220,7 +220,7 @@ static int crypto4xx_hash_alg_init(struc | ||
SA_NOT_COPY_PAD, SA_NOT_COPY_PAYLOAD, | ||
SA_NOT_COPY_HDR); | ||
ctx->direction = DIR_INBOUND; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
} | ||
|
||
/** | ||
@@ -147,15 +147,15 @@ static int crypto4xx_setkey_aes(struct c | ||
@@ -148,15 +148,15 @@ static int crypto4xx_setkey_aes(struct c | ||
SA_SEQ_MASK_OFF, SA_MC_ENABLE, | ||
SA_NOT_COPY_PAD, SA_NOT_COPY_PAYLOAD, | ||
SA_NOT_COPY_HDR); | ||
|
@@ -88,7 +88,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
memcpy(ctx->sa_out, ctx->sa_in, ctx->sa_len * 4); | ||
sa = (struct dynamic_sa_ctl *) ctx->sa_out; | ||
@@ -225,7 +225,7 @@ static int crypto4xx_hash_alg_init(struc | ||
@@ -226,7 +226,7 @@ static int crypto4xx_hash_alg_init(struc | ||
memset(sa_in->inner_digest, 0, sizeof(sa_in->inner_digest)); | ||
memset(sa_in->outer_digest, 0, sizeof(sa_in->outer_digest)); | ||
sa_in->state_ptr = ctx->state_record_dma_addr; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
#include "crypto4xx_reg_def.h" | ||
#include "crypto4xx_core.h" | ||
#include "crypto4xx_sa.h" | ||
@@ -171,6 +172,71 @@ int crypto4xx_setkey_aes_cbc(struct cryp | ||
@@ -172,6 +173,71 @@ int crypto4xx_setkey_aes_cbc(struct cryp | ||
CRYPTO_FEEDBACK_MODE_NO_FB); | ||
} | ||
|
||
|
@@ -109,7 +109,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
#include <crypto/sha.h> | ||
#include "crypto4xx_reg_def.h" | ||
#include "crypto4xx_core.h" | ||
@@ -1135,6 +1136,103 @@ struct crypto4xx_alg_common crypto4xx_al | ||
@@ -1144,6 +1145,103 @@ struct crypto4xx_alg_common crypto4xx_al | ||
} | ||
} | ||
}}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,9 +25,9 @@ Signed-off-by: Herbert Xu <[email protected]> | |
- sa = (struct dynamic_sa_ctl *) ctx->sa_in; | ||
+ sa = ctx->sa_in; | ||
|
||
set_dynamic_sa_command_0(sa, SA_NOT_SAVE_HASH, SA_NOT_SAVE_IV, | ||
SA_LOAD_HASH_FROM_SA, SA_LOAD_IV_FROM_STATE, | ||
@@ -159,7 +159,7 @@ static int crypto4xx_setkey_aes(struct c | ||
set_dynamic_sa_command_0(sa, SA_NOT_SAVE_HASH, (cm == CRYPTO_MODE_CBC ? | ||
SA_SAVE_IV : SA_NOT_SAVE_IV), | ||
@@ -160,7 +160,7 @@ static int crypto4xx_setkey_aes(struct c | ||
ctx->offset_to_sr_ptr = get_dynamic_sa_offset_state_ptr_field(sa); | ||
|
||
memcpy(ctx->sa_out, ctx->sa_in, ctx->sa_len * 4); | ||
|
@@ -36,7 +36,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
sa->sa_command_0.bf.dir = DIR_OUTBOUND; | ||
|
||
return 0; | ||
@@ -248,8 +248,7 @@ static int crypto4xx_hash_alg_init(struc | ||
@@ -249,8 +249,7 @@ static int crypto4xx_hash_alg_init(struc | ||
struct crypto_alg *alg = tfm->__crt_alg; | ||
struct crypto4xx_alg *my_alg = crypto_alg_to_crypto4xx_alg(alg); | ||
struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); | ||
|
@@ -46,7 +46,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
int rc; | ||
|
||
ctx->dev = my_alg->dev; | ||
@@ -273,25 +272,24 @@ static int crypto4xx_hash_alg_init(struc | ||
@@ -274,25 +273,24 @@ static int crypto4xx_hash_alg_init(struc | ||
|
||
crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), | ||
sizeof(struct crypto4xx_ctx)); | ||
|
@@ -80,7 +80,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
return 0; | ||
} | ||
@@ -302,7 +300,7 @@ int crypto4xx_hash_init(struct ahash_req | ||
@@ -303,7 +301,7 @@ int crypto4xx_hash_init(struct ahash_req | ||
int ds; | ||
struct dynamic_sa_ctl *sa; | ||
|
||
|
@@ -206,7 +206,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
SA_HASH_ALG_SHA1_DIGEST_SIZE); | ||
} | ||
|
||
@@ -607,11 +600,9 @@ static u32 crypto4xx_ahash_done(struct c | ||
@@ -616,11 +609,9 @@ static u32 crypto4xx_ahash_done(struct c | ||
|
||
static u32 crypto4xx_pd_done(struct crypto4xx_device *dev, u32 idx) | ||
{ | ||
|
@@ -220,15 +220,15 @@ Signed-off-by: Herbert Xu <[email protected]> | |
if (crypto_tfm_alg_type(pd_uinfo->async_req->tfm) == | ||
CRYPTO_ALG_TYPE_ABLKCIPHER) | ||
return crypto4xx_ablkcipher_done(dev, pd_uinfo, pd); | ||
@@ -712,7 +703,6 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -721,7 +712,6 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
unsigned long flags; | ||
struct pd_uinfo *pd_uinfo = NULL; | ||
unsigned int nbytes = datalen, idx; | ||
- unsigned int ivlen = 0; | ||
u32 gd_idx = 0; | ||
|
||
/* figure how many gd is needed */ | ||
@@ -771,17 +761,15 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -780,17 +770,15 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
} | ||
spin_unlock_irqrestore(&dev->core_dev->lock, flags); | ||
|
||
|
@@ -248,7 +248,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
if (ctx->direction == DIR_INBOUND) | ||
memcpy(sa, ctx->sa_in, ctx->sa_len * 4); | ||
else | ||
@@ -791,14 +779,15 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -800,14 +788,15 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
&pd_uinfo->sr_pa, 4); | ||
|
||
if (iv_len) | ||
|
@@ -267,7 +267,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
} | ||
} | ||
pd->sa_len = ctx->sa_len; | ||
@@ -1006,9 +995,8 @@ static void crypto4xx_bh_tasklet_cb(unsi | ||
@@ -1015,9 +1004,8 @@ static void crypto4xx_bh_tasklet_cb(unsi | ||
|
||
while (core_dev->dev->pdr_head != core_dev->dev->pdr_tail) { | ||
tail = core_dev->dev->pdr_tail; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
--- a/drivers/crypto/amcc/crypto4xx_core.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_core.c | ||
@@ -1148,7 +1148,7 @@ struct crypto4xx_alg_common crypto4xx_al | ||
@@ -1157,7 +1157,7 @@ struct crypto4xx_alg_common crypto4xx_al | ||
.min_keysize = AES_MIN_KEY_SIZE, | ||
.max_keysize = AES_MAX_KEY_SIZE, | ||
.ivsize = AES_IV_SIZE, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,9 +56,9 @@ Signed-off-by: Herbert Xu <[email protected]> | |
#include "crypto4xx_reg_def.h" | ||
#include "crypto4xx_core.h" | ||
#include "crypto4xx_sa.h" | ||
@@ -573,8 +574,10 @@ static u32 crypto4xx_ablkcipher_done(str | ||
dst->offset, dst->length, DMA_FROM_DEVICE); | ||
@@ -582,8 +583,10 @@ static u32 crypto4xx_ablkcipher_done(str | ||
} | ||
|
||
crypto4xx_ret_sg_desc(dev, pd_uinfo); | ||
- if (ablk_req->base.complete != NULL) | ||
- ablk_req->base.complete(&ablk_req->base, 0); | ||
|
@@ -69,7 +69,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
return 0; | ||
} | ||
@@ -591,9 +594,10 @@ static u32 crypto4xx_ahash_done(struct c | ||
@@ -600,9 +603,10 @@ static u32 crypto4xx_ahash_done(struct c | ||
crypto4xx_copy_digest_to_dst(pd_uinfo, | ||
crypto_tfm_ctx(ahash_req->base.tfm)); | ||
crypto4xx_ret_sg_desc(dev, pd_uinfo); | ||
|
@@ -83,15 +83,15 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
return 0; | ||
} | ||
@@ -704,6 +708,7 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -713,6 +717,7 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
struct pd_uinfo *pd_uinfo = NULL; | ||
unsigned int nbytes = datalen, idx; | ||
u32 gd_idx = 0; | ||
+ bool is_busy; | ||
|
||
/* figure how many gd is needed */ | ||
num_gd = sg_nents_for_len(src, datalen); | ||
@@ -734,6 +739,31 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -743,6 +748,31 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
* already got must be return the original place. | ||
*/ | ||
spin_lock_irqsave(&dev->core_dev->lock, flags); | ||
|
@@ -123,7 +123,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
if (num_gd) { | ||
fst_gd = crypto4xx_get_n_gd(dev, num_gd); | ||
if (fst_gd == ERING_WAS_FULL) { | ||
@@ -888,11 +918,12 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -897,11 +927,12 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
sa->sa_command_1.bf.hash_crypto_offset = 0; | ||
pd->pd_ctl.w = ctx->pd_ctl; | ||
pd->pd_ctl_len.w = 0x00400000 | datalen; | ||
|
@@ -138,7 +138,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
} | ||
|
||
/** | ||
@@ -997,7 +1028,7 @@ static void crypto4xx_bh_tasklet_cb(unsi | ||
@@ -1006,7 +1037,7 @@ static void crypto4xx_bh_tasklet_cb(unsi | ||
tail = core_dev->dev->pdr_tail; | ||
pd_uinfo = &core_dev->dev->pdr_uinfo[tail]; | ||
pd = &core_dev->dev->pdr[tail]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
|
||
--- a/drivers/crypto/amcc/crypto4xx_alg.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_alg.c | ||
@@ -149,8 +149,8 @@ static int crypto4xx_setkey_aes(struct c | ||
@@ -150,8 +150,8 @@ static int crypto4xx_setkey_aes(struct c | ||
SA_SEQ_MASK_OFF, SA_MC_ENABLE, | ||
SA_NOT_COPY_PAD, SA_NOT_COPY_PAYLOAD, | ||
SA_NOT_COPY_HDR); | ||
|
@@ -45,7 +45,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
ctx->is_hash = 0; | ||
--- a/drivers/crypto/amcc/crypto4xx_core.c | ||
+++ b/drivers/crypto/amcc/crypto4xx_core.c | ||
@@ -614,42 +614,6 @@ static u32 crypto4xx_pd_done(struct cryp | ||
@@ -623,42 +623,6 @@ static u32 crypto4xx_pd_done(struct cryp | ||
return crypto4xx_ahash_done(dev, pd_uinfo); | ||
} | ||
|
||
|
@@ -88,7 +88,7 @@ Signed-off-by: Herbert Xu <[email protected]> | |
static void crypto4xx_stop_all(struct crypto4xx_core_device *core_dev) | ||
{ | ||
crypto4xx_destroy_pdr(core_dev->dev); | ||
@@ -809,8 +773,8 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
@@ -818,8 +782,8 @@ u32 crypto4xx_build_pd(struct crypto_asy | ||
&pd_uinfo->sr_pa, 4); | ||
|
||
if (iv_len) | ||
|
Oops, something went wrong.