Skip to contentSkip to conversation

PWM-based voltage management input clock

DISCUSSION Martin Peres 2 participants 4 messages Sep 18, 2015 – Oct 26, 2015 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

We recently reverse engineered PWM-based voltage management but found an odity in the input clock frequency for the PWM controller. It seems like RM is assuming an input clock of 27.648 MHz instead of the actual 27MHz crystal found on the board.

I thus have the following questions:
- Is it a fixed value hardcoded in RM? (Current way it is done in Nouveau)
- Should we use crystal_MHz * 1.024?

I could spend some time hooking up my osciloscope to the VR to check if it is a bringup issue but it would not help Nouveau much as we need to reproduce the behaviour of RM anyway since this is the only validated configuration.

Thanks in advance,
Martin

PS: The registers for this PWM controller are 0x20340 and 0x20344.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Thanks, Martin. I'll try to follow up on this next week and get you an answer. What GPUs have you observed this on?

Quoted 16 lines · Martin Peres

Hello,

We recently reverse engineered PWM-based voltage management but found an odity in the input clock frequency for the PWM controller. It seems like RM is assuming an input clock of 27.648 MHz instead of the actual 27MHz crystal found on the board.

I thus have the following questions:
- Is it a fixed value hardcoded in RM? (Current way it is done in Nouveau)
- Should we use crystal_MHz * 1.024?

I could spend some time hooking up my osciloscope to the VR to check if it is a bringup issue but it would not help Nouveau much as we need to reproduce the behaviour of RM anyway since this is the only validated configuration.

Quoted 4 lines

Thanks in advance,
Martin

PS: The registers for this PWM controller are 0x20340 and 0x20344.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 20150918203051.GA23395-FqhoBIChHNk6p33qAC56yVaTQe2KTcn/@public.gmane.org

#4 lore raw
Quoted 2 lines · Andy Ritger

Thanks, Martin. I'll try to follow up on this next week and get you an answer. What GPUs have you observed this on?

Thanks Andy,

As far as I can tell, it is the case for all GPUs using the PWM-based voltage management. To be more specific, we have seen this behaviour on a GK106 (mobile), a GM117 and a GM204.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 6 lines · Martin Peres
Quoted 2 lines · Andy Ritger

Thanks, Martin. I'll try to follow up on this next week and get you an answer. What GPUs have you observed this on?

Thanks Andy,

As far as I can tell, it is the case for all GPUs using the PWM-based voltage management. To be more specific, we have seen this behaviour on a GK106 (mobile), a GM117 and a GM204.

I guess this has fell into the cracks :) Any updates on this?

Thanks,
Martin
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau