Skip to content

Conversation

@lumag
Copy link
Collaborator

@lumag lumag commented Jun 16, 2023

Enforcing a primary+leaf configuration does not walk for all the cases. Some clocks (msm8996 CPU) have more muxes to be powered on. Other (MCCC) do not require GCC at all. Make clock measurement more versatile by reworking GCC + optional leaf into a chain of muxes.

cc @MarijnS95 @konradybcio-work

@lumag lumag marked this pull request as draft June 16, 2023 11:45
@lumag
Copy link
Collaborator Author

lumag commented Jun 16, 2023

Note, this is an early draft. I'd like to discuss the concept before finishing the conversion. This was not validated on the hw, so it can be buggy even for the reworked platforms.

@lumag lumag mentioned this pull request Jun 16, 2023
Copy link
Contributor

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea!

@lumag lumag marked this pull request as ready for review November 2, 2023 14:35
@lumag lumag changed the title WIP: Rework clock muxes into a chain structure Rework clock muxes into a chain structure Nov 2, 2023
@lumag
Copy link
Collaborator Author

lumag commented Nov 2, 2023

@MarijnS95 @konradybcio please review, I think I'm done with the implementation.

@lumag lumag requested a review from MarijnS95 November 6, 2023 09:43
Copy link
Contributor

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't cross-checked every platform change, but the architectural rework and function implementations look fine to me!

Will try to test on a few platforms when I get the chance.

Enforcing a primary+leaf configuration does not walk for all the cases.
Some clocks (msm8996 CPU) have more muxes to be powered on. Other (MCCC)
do not require GCC at all. Make clock measurement more versatile by
reworking GCC + optional leaf into a chain of muxes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
@MarijnS95
Copy link
Contributor

Quickly tested on sm8150, seems to work fine 👍

@superna9999
Copy link
Member

Tested on sm8550, works fine 👍

@lumag
Copy link
Collaborator Author

lumag commented Nov 7, 2023

My primary testing targets were msm8996 and sm8250.

@konradybcio konradybcio merged commit d744e1a into linux-msm:master Nov 7, 2023
@lumag lumag deleted the mux-chain branch November 7, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants