Re: [PATCH] crypto:caam - Modify width of few read only registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 29 Apr 2014 15:34:37 +0530
Ruchika Gupta <ruchika.gupta@xxxxxxxxxxxxx> wrote:

> Few read only registers like CHAVID, CTPR etc were wrongly defined
> as 64 bit registers. This functioned properly on the powerpc platforms.
> However ARM SoC's wouldn't function correctly if these registers
> are defined as 64 bit. So correcting the definition to two 32 bit registers.

please rewrite, adding the details of the problem posted toward the
end of this thread, e.g., what registers are affected, and how that
renders MCFGR:DWT ineffective in this case.

>  	/* Check to see if QI present. If so, enable */
> -	ctrlpriv->qi_present = !!(rd_reg64(&topregs->ctrl.perfmon.comp_parms) &
> -				  CTPR_QI_MASK);
> +	ctrlpriv->qi_present =
> +			!!(rd_reg32(&topregs->ctrl.perfmon.comp_parms_ms) &
> +				  CTPR_MS_QI_MASK);

alignment

>  	/* Report "alive" for developer to see */
> -	dev_info(dev, "device ID = 0x%016llx (Era %d)\n", caam_id,
> +	dev_info(dev, "device ID = 0x%08x (Era %d)\n", caam_id,
>  		 caam_get_era());

Why are we dropping the upper 32 bits here?

Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux