Initial commit
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build Kernel / Build all affected Kernels (push) Has been cancelled
				
			
		
			
				
	
				Build all core packages / Build all core packages for selected target (push) Has been cancelled
				
			
		
			
				
	
				Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
				
			
		
			
				
	
				Build Toolchains / Build Toolchains for each target (push) Has been cancelled
				
			
		
			
				
	
				Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
				
			
		
			
				
	
				Coverity scan build / Coverity x86/64 build (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build Kernel / Build all affected Kernels (push) Has been cancelled
				
			Build all core packages / Build all core packages for selected target (push) Has been cancelled
				
			Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
				
			Build Toolchains / Build Toolchains for each target (push) Has been cancelled
				
			Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
				
			Coverity scan build / Coverity x86/64 build (push) Has been cancelled
				
			This commit is contained in:
		| @@ -0,0 +1,27 @@ | ||||
| --- a/drivers/crypto/inside-secure/safexcel.c | ||||
| +++ b/drivers/crypto/inside-secure/safexcel.c | ||||
| @@ -608,6 +608,14 @@ static int safexcel_hw_init(struct safex | ||||
|  		val |= EIP197_MST_CTRL_TX_MAX_CMD(5); | ||||
|  		writel(val, EIP197_HIA_AIC(priv) + EIP197_HIA_MST_CTRL); | ||||
|  	} | ||||
| +	/* | ||||
| +	 * Set maximum number of TX commands to 2^4 = 16 for EIP97 HW2.1/HW2.3 | ||||
| +	 */ | ||||
| +	else { | ||||
| +		val = 0; | ||||
| +		val |= EIP97_MST_CTRL_TX_MAX_CMD(4); | ||||
| +		writel(val, EIP197_HIA_AIC(priv) + EIP197_HIA_MST_CTRL); | ||||
| +	} | ||||
|   | ||||
|  	/* Configure wr/rd cache values */ | ||||
|  	writel(EIP197_MST_CTRL_RD_CACHE(RD_CACHE_4BITS) | | ||||
| --- a/drivers/crypto/inside-secure/safexcel.h | ||||
| +++ b/drivers/crypto/inside-secure/safexcel.h | ||||
| @@ -315,6 +315,7 @@ | ||||
|  #define EIP197_MST_CTRL_RD_CACHE(n)		(((n) & 0xf) << 0) | ||||
|  #define EIP197_MST_CTRL_WD_CACHE(n)		(((n) & 0xf) << 4) | ||||
|  #define EIP197_MST_CTRL_TX_MAX_CMD(n)		(((n) & 0xf) << 20) | ||||
| +#define EIP97_MST_CTRL_TX_MAX_CMD(n)		(((n) & 0xf) << 4) | ||||
|  #define EIP197_MST_CTRL_BYTE_SWAP		BIT(24) | ||||
|  #define EIP197_MST_CTRL_NO_BYTE_SWAP		BIT(25) | ||||
|  #define EIP197_MST_CTRL_BYTE_SWAP_BITS          GENMASK(25, 24) | ||||
		Reference in New Issue
	
	Block a user
	 domenico
					domenico