u-boot-brain/common
Breno Lima d7af2baa49 crypto/fsl: Fix HW accelerated hash commands
The hash command function were not flushing the dcache before passing data
to CAAM/DMA and not invalidating the dcache when getting data back.

Due the data cache incoherency, HW accelerated hash commands used to fail
with CAAM errors like "Invalid KEY Command".

Check if pbuf and pout buffers are properly aligned to the cache line size
and flush/invalidate the memory regions to address this issue.

This solution is based in a previous work from Clemens Gruber in
commit 598e9dccc7 ("crypto/fsl: fix BLOB encapsulation and
decapsulation")

Reported-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
2018-01-23 11:21:20 -08:00
..
eeprom
init spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN 2017-07-27 14:59:03 +02:00
spl mmc: add a Kconfig option to enable the support for MMC write operations 2018-01-12 18:11:24 +09:00
autoboot.c env: Rename getenv_hex(), getenv_yesno(), getenv_ulong() 2017-08-16 08:30:32 -04:00
bedbug.c
board_f.c common: board_f: vid: Add VID specific API to adjust core voltage 2018-01-23 11:20:46 -08:00
board_info.c
board_r.c board_r: remove superfluous #ifdef CONFIG_PRAM 2018-01-19 15:49:29 -05:00
boot_fit.c fit: fixed bug in locate_dtb_in_fit() 2017-10-05 21:31:04 -04:00
bootm_os.c bootvx_fdt: fix missing 'fdt_fixup_ethernet(...)' on vxWorks boot 2017-08-28 07:19:13 -04:00
bootm.c fpga: allow programming fpga from FIT image for all FPGA drivers 2017-12-14 16:09:39 +01:00
bootretry.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
bootstage.c bootstage: Provide a separate record count setting for SPL 2017-09-16 14:57:44 +08:00
bouncebuf.c
cli_hush.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cli_readline.c
cli_simple.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cli.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
command.c common: command: tempory buffer should have size of command line buf 2017-11-29 22:30:50 -05:00
common_fit.c fit: If no matching config is found in fit_find_config_node(), use the default one 2017-10-05 21:31:04 -04:00
console.c Revert "sandbox: Drop special case console code for sandbox" 2017-12-07 15:17:00 -05:00
cros_ec.c
ddr_spd.c
dfu.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
dlmalloc.c malloc: don't compare pointers to 0 2017-11-20 20:18:39 -05:00
dlmalloc.src
edid.c edid: Use sizeof() in cea_is_hdmi_vsdb_present() 2017-06-12 08:38:06 -04:00
exports.c
fb_mmc.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
fb_nand.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
fdt_support.c common: Fix-up MAC addr in dts by fetching env variable serially 2017-12-24 12:42:50 -07:00
flash.c flash: compile common/flash.c iif CONFIG_MTD_NO_FLASH is enabled 2017-02-12 14:30:31 -05:00
hash.c crypto/fsl: Fix HW accelerated hash commands 2018-01-23 11:21:20 -08:00
hwconfig.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
image-android.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
image-fdt.c common: Remove genimg_get_image() 2017-10-16 09:42:51 -04:00
image-fit.c fix incorrect usage of DT node unit address in comments 2018-01-15 18:29:21 -07:00
image-sig.c fix incorrect usage of DT node unit address in comments 2018-01-15 18:29:21 -07:00
image-sparse.c
image.c common: image.c: Fix CACHE: Misaligned operation output 2017-12-18 13:06:30 -05:00
iomux.c console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL 2017-02-06 11:38:46 +08:00
iotrace.c
kallsyms.c
Kconfig log: Add a test command 2017-12-07 15:17:00 -05:00
kgdb_stubs.c
kgdb.c
lcd_console_rotation.c
lcd_console.c
lcd_simplefb.c dm: video: Add driver-model support to lcd_simplefb 2017-05-09 20:20:41 -04:00
lcd.c lcd: avoid possible NULL dereference 2017-08-19 20:42:20 +02:00
log_console.c log: Add a console driver 2017-12-07 15:17:00 -05:00
log.c log: Plumb logging into the init sequence 2017-12-07 15:17:00 -05:00
lynxkdi.c powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
main.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
Makefile common: do not compile common fastboot code when building the SPL 2018-01-12 18:11:23 +09:00
malloc_simple.c malloc_simple: Add debug statements to memalign_simple 2017-01-28 14:04:34 -05:00
memsize.c
menu.c
miiphyutil.c
s_record.c
splash_source.c splash_source: Verify FIT magic 2017-09-04 23:53:47 +02:00
splash.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
stdio.c Drop the log buffer 2017-12-07 15:17:00 -05:00
system_map.c
update.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
usb_hub.c usb: Correct use of debug() 2017-12-07 15:17:00 -05:00
usb_kbd.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
usb_storage.c usb: storage: Fix overwritten in usb_stor_set_max_xfer_blk() 2017-10-01 16:32:55 +02:00
usb.c usb: Read device descriptor after device is addressed for xHCI 2017-10-01 16:32:53 +02:00
xyzModem.c common/xyzModem.c: Do not use hard-coded address for debug buffer 2017-04-08 09:26:55 -04:00