Re: [PATCH v2 7/9] ARM: OMAP: iommu: optimize save and restore routines

2012-09-18 Thread Omar Ramirez Luna
Hi Tony, On 18 September 2012 13:04, Tony Lindgren wrote: > * Omar Ramirez Luna [120912 12:47]: >> --- a/arch/arm/plat-omap/include/plat/iommu.h >> +++ b/arch/arm/plat-omap/include/plat/iommu.h >> @@ -27,6 +27,13 @@ struct iotlb_entry { >> }; >> }; >> >> +/* context registers */ >> +struc

Re: [PATCH v2 7/9] ARM: OMAP: iommu: optimize save and restore routines

2012-09-18 Thread Tony Lindgren
* Omar Ramirez Luna [120912 12:47]: > --- a/arch/arm/plat-omap/include/plat/iommu.h > +++ b/arch/arm/plat-omap/include/plat/iommu.h > @@ -27,6 +27,13 @@ struct iotlb_entry { > }; > }; > > +/* context registers */ > +struct iommu_regs { > + u32 irqen; > + u32 cntl; > + u32 ttb;

[PATCH v2 7/9] ARM: OMAP: iommu: optimize save and restore routines

2012-09-12 Thread Omar Ramirez Luna
These functions save and restore registers irrespectively of their read or write permissions, this ends up in registers being saved that can't be restored because of read only attributes. OTOH, so far only 3 of them need to be saved. In future GP_REG (which is present only on OMAP4 ipu) needs to b