SysLink-IPC: SLPM - Set the proper Reset values for bw, lat and perf
authorJuan Gutierrez <jgutierrez@ti.com>
Mon, 18 Oct 2010 15:19:10 +0000 (10:19 -0500)
committerSuman Anna <s-anna@ti.com>
Wed, 20 Oct 2010 14:53:17 +0000 (09:53 -0500)
commit8992b8453476e282d6c8c3da47f95c8f1caffdc9
tree001537a99d57938ae33877799a17706ffd4f0d63
parent38af0bcd83c94cd95fac0f73a75f6dcbca01c827
SysLink-IPC: SLPM - Set the proper Reset values for bw, lat and perf

This patches set the proper values when releasing the constraints

The reset value for latency, performance and bandwidth are as follows

 slpm_NO_FREQ_CONSTRAINT      0
 slpm_NO_LAT_CONSTRAINT      -1 (0xFFFFFFFF)
 slpm_NO_BW_CONSTRAINT       -1 (0xFFFFFFFF)

When APPM3, SYSM3 or IPU resources are released, the constraints are updated
to reflect the constraints of the resources already available.
When all of these resources are not available the updated constraint should
be the respective reset value (lat =-1, perf = 0)

This patch also resolves the issue that overwrites the parameter values
for perf, lat and bw after request the resource. Now the parameters structure
could be populated before and after requesting the resource.

Signed-off-by: Juan Gutierrez jgutierrez@ti.com
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
packages/ti/omap/slpm/slpm.c
packages/ti/omap/slpm/slpm_interface.h
packages/ti/omap/slpm/slpm_transport.h