diff options
author | Marek Vasut <[email protected]> | 2021-09-07 04:38:29 +0200 |
---|---|---|
committer | Shawn Guo <[email protected]> | 2021-10-04 15:53:01 +0800 |
commit | 34a01d9ea7c4981e19c9e926f5e293b011ecd5a3 (patch) | |
tree | 7039e6391194c81573b102de786b2cfd861daeee /tools/perf/scripts/python/sched-migration.py | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
soc: imx: gpcv2: Turn domain->pgc into bitfield
There is currently the MX8MM GPU domain, which is in fact a composite domain
for both GPU2D and GPU3D. To correctly configure this domain, it is necessary
to control both GPC_PGC_nCTRL(GPU_2D) and GPC_PGC_nCTRL(GPU_3D) at the same
time. This is currently not possible.
Turn the domain->pgc from value into bitfield and use for_each_set_bit() to
iterate over all bits set in domain->pgc when configuring GPC_PGC_nCTRL
register array. This way it is possible to configure all GPC_PGC_nCTRL
registers required in a particular domain.
This is a preparatory patch, no functional change.
Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Cc: Frieder Schrempf <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Shawn Guo <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions