Skip to content

read registers before calculating pll clock#28

Open
wose wants to merge 1 commit intointel-retail:mainfrom
wose:fix-get-pll-clock-xe
Open

read registers before calculating pll clock#28
wose wants to merge 1 commit intointel-retail:mainfrom
wose:fix-get-pll-clock-xe

Conversation

@wose
Copy link

@wose wose commented Mar 11, 2026

We were trying to use the library on devices with Arrow Lake-S GPU running linux 6.18 and the Xe driver. The call to get_pll_clock always returned 0.0. This was verified by running pllctl -R 16666 which also read 0.0 and failed after that when setting the pll clock with invalid arguments.

Making sure the register state is initialized before calling the calculate_pll_clock method of the phy by calling read_registers fixed it.

I'm not sure if this is the best place to initialize the register state. Maybe a call to read_registers in the constructors of the phy implementations would be better?

@wose wose force-pushed the fix-get-pll-clock-xe branch from c23957a to fb81177 Compare March 11, 2026 14:21
get_pll_clock always returned 0.0 on devices running the xe driver.
Initializing the register state by calling read_register before
calculating the clock fixes this.
@wose wose force-pushed the fix-get-pll-clock-xe branch from fb81177 to 1adf4f8 Compare March 11, 2026 14:22
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.

1 participant