Commit a3c6f4f
crypto: sahara - do not resize req->src when doing hash operations
When testing sahara sha256 speed performance with tcrypt (mode=404) on
imx53-qsrb board, multiple "Invalid numbers of src SG." errors are
reported. This was traced to sahara_walk_and_recalc() resizing req->src
and causing the subsequent dma_map_sg() call to fail.
Now that the previous commit fixed sahara_sha_hw_links_create() to take
into account the actual request size, rather than relying on sg->length
values, the resize operation is no longer necessary.
Therefore, remove sahara_walk_and_recalc() and simplify associated logic.
Fixes: 5a2bb93 ("crypto: sahara - add support for SHA1/256")
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent 7bafa74 commit a3c6f4f
1 file changed
Lines changed: 2 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | 887 | | |
906 | 888 | | |
907 | 889 | | |
| |||
938 | 920 | | |
939 | 921 | | |
940 | 922 | | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
| 923 | + | |
946 | 924 | | |
947 | 925 | | |
948 | 926 | | |
949 | 927 | | |
950 | | - | |
951 | 928 | | |
952 | | - | |
953 | | - | |
954 | 929 | | |
955 | | - | |
956 | | - | |
957 | 930 | | |
958 | 931 | | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
| 932 | + | |
964 | 933 | | |
965 | | - | |
966 | 934 | | |
967 | 935 | | |
968 | 936 | | |
969 | | - | |
970 | | - | |
971 | 937 | | |
972 | 938 | | |
973 | 939 | | |
| |||
0 commit comments