diff options
author | Sanjay Singh Rawat <srawat@nvidia.com> | 2011-04-28 18:55:57 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2011-04-28 21:46:05 -0700 |
commit | 0008cdb0f38d0cd0c074671fc067c4321f340b06 (patch) | |
tree | c901aefaaf7820847013573851085fbd16c6205f /arch/arm/mach-tegra | |
parent | b6426b90fd99bf82114465a12ff7e4da2a4c982e (diff) |
crypto: tegra-aes: dual core support
* add bsea engine support for encryption and decryption
* add arbitration semaphore id for bsea
Bug 803932
Change-Id: I978b06a12265acecae99dbf13607e00ae74e87f7
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/29672
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/arb_sema.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/arb_sema.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/arb_sema.c b/arch/arm/mach-tegra/arb_sema.c index 55af15e935f2..eecdee5967c8 100644 --- a/arch/arm/mach-tegra/arb_sema.c +++ b/arch/arm/mach-tegra/arb_sema.c @@ -36,6 +36,7 @@ #define ARB_GRANT_STATUS 0x0 #define ARB_GRANT_REQUEST 0x4 #define ARB_GRANT_RELEASE 0x8 +#define ARB_GRANT_PENDING 0xC struct tegra_arb_dev { void __iomem *sema_base; @@ -117,7 +118,7 @@ int tegra_arb_mutex_lock_timeout(enum tegra_arb_module lock, int msecs) request_arb_sem(lock); ret = wait_for_completion_timeout(&arb->arb_gnt_complete[lock], msecs_to_jiffies(msecs)); if (ret == 0) { - pr_err("timed out.\n"); + pr_err("timed out. pending:0x%x\n", arb_sema_read(ARB_GRANT_PENDING)); cancel_arb_sem(lock); mutex_unlock(&arb->mutexes[lock]); return -ETIMEDOUT; diff --git a/arch/arm/mach-tegra/include/mach/arb_sema.h b/arch/arm/mach-tegra/include/mach/arb_sema.h index 374c5a913700..9283f079cf61 100644 --- a/arch/arm/mach-tegra/include/mach/arb_sema.h +++ b/arch/arm/mach-tegra/include/mach/arb_sema.h @@ -24,7 +24,8 @@ #define __MACH_TEGRA_ARB_SEMA_H enum tegra_arb_module { - TEGRA_ARB_AES = 0, + TEGRA_ARB_BSEV = 0, + TEGRA_ARB_BSEA, }; int tegra_arb_mutex_lock_timeout(enum tegra_arb_module lock, int msecs); |