Skip to contentSkip to conversation

off mode and smartreflex

DISCUSSION Peter 'p2' De Schrijver 3 participants 5 messages Aug 1, 2008 – Aug 12, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

Using Rajendra's cpuidle and offmode patches + the patches I posted to configure triton2 and set the correct off mode polarity, I noticed the system does not go to off mode when smartreflex is enabled. At least sysoffmode is not deasserted and the VDD1 and VDD2 voltages do not drop to 0V. Should smartreflex be disabled by sw before the wfi is issued ? Any other idea on why this would happen ?

Thanks,

Peter.

Signature · 1 line
goa is a state of mind
#1 lore raw

Hi Peter,

Quoted 7 lines

Using Rajendra's cpuidle and offmode patches + the patches I posted to configure triton2 and set the correct off mode polarity, I noticed the system does not go to off mode when smartreflex is enabled. At least sysoffmode is not deasserted and the VDD1 and VDD2 voltages do not drop
to 0V. Should smartreflex be disabled by sw before the wfi is issued ? Any other idea on why this would happen ?

SR does need to be disabled before an OPP change and re-enabled after the change when using the bypass method.

Yes, I do think you also need to disable SR before idle. Also, this is in CDP code and functionally validated.

Regards,
Richard W.

#2 lore raw

Hi Richard,

Quoted 10 lines · Richard

Hi Peter,

Quoted 1 line

Using Rajendra's cpuidle and offmode patches + the patches I posted

to

Quoted 1 line

configure triton2 and set the correct off mode polarity, I noticed

the

Quoted 4 lines

system does not go to off mode when smartreflex is enabled. At least sysoffmode is not deasserted and the VDD1 and VDD2 voltages do not drop
to 0V. Should smartreflex be disabled by sw before the wfi is

Quoted 8 lines

issued ?

Quoted 1 line

Any other idea on why this would happen ?

SR does need to be disabled before an OPP change and re-enabled after the change when using the bypass method.

Yes, I do think you also need to disable SR before idle. Also, this is in CDP code and functionally validated.

I thought I'd fix this issue for both pm-idle and the up-coming cpu-idle by moving the smartreflex disable/enable calls to omap_sram_idle. But I could not do it, because this way the device hangs on both suspend and dynamic idle. I wonder why this is?

The CDP code seems to disable smartreflex in the early stages of the function calling omap_sram_idle. In the suspend path the disable call is made just before local_fiq_disable. In pm-idle path the call seems to be before checking if some interrupt has occurred. So I gathered this might have something to do with interrupts.

The thing that puzzles me is that with linux-omap, the suspend path does not have any local_fiq_disable calls. Nevertheless, if the smartreflex disable call is in omap_sram_idle, the suspend hangs. But, if it is in start of the preceding omap3_pm_suspend call, as it is now, suspending works fine. So this makes me think there could be some delay from when smartreflex is disabled to when the actual I2C commands stop to the voltage controller.

Do you know why the smartreflex disable calls are positioned as they are in the CDP code?

regards,
Kalle

Quoted 9 lines

Regards,
Richard W.

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 11 lines

I thought I'd fix this issue for both pm-idle and the up-coming cpu-idle by moving the smartreflex disable/enable calls to omap_sram_idle. But I could not do it, because this way the device hangs on both suspend and dynamic idle. I wonder why this is?

The CDP code seems to disable smartreflex in the early stages of the function calling omap_sram_idle. In the suspend path the disable call is made just before local_fiq_disable. In pm-idle path the call seems to be before checking if some interrupt has occurred. So I gathered this might have something to do with interrupts.

Quoted 7 lines

The thing that puzzles me is that with linux-omap, the suspend path does not have any local_fiq_disable calls. Nevertheless, if the smartreflex disable call is in omap_sram_idle, the suspend hangs. But, if it is in start of the preceding omap3_pm_suspend call, as it is now, suspending works fine. So this makes me think there could be some delay from when smartreflex is disabled to when the actual I2C commands stop to the voltage controller.

Have you enabled SR really to do something?

With out proper efuse values its job is to do OPP changes. Once you have proper efuses it can do safe auto-adjustment. Most early non-production devices won't have useable efuse values.

I agree hardware I2C messages when it is in use might be a point of worry when investigating issues.

Quoted 2 lines

Do you know why the smartreflex disable calls are positioned as they are in the CDP code?

I don't recall there being a placement. I can ask others if there aware.

Regards,
Richard W.

#4 lore raw
Quoted 19 lines · Richard
Quoted 11 lines

I thought I'd fix this issue for both pm-idle and the up-coming cpu-idle by moving the smartreflex disable/enable calls to omap_sram_idle. But I could not do it, because this way the device hangs on both suspend and dynamic idle. I wonder why this is?

The CDP code seems to disable smartreflex in the early stages of the function calling omap_sram_idle. In the suspend path the disable call is made just before local_fiq_disable. In pm-idle path the call seems to be before checking if some interrupt has occurred. So I gathered this might have something to do with interrupts.

Quoted 7 lines

The thing that puzzles me is that with linux-omap, the suspend path does not have any local_fiq_disable calls. Nevertheless, if the smartreflex disable call is in omap_sram_idle, the suspend hangs. But, if it is in start of the preceding omap3_pm_suspend call, as it is now, suspending works fine. So this makes me think there could be some delay from when smartreflex is disabled to when the actual I2C commands stop to the voltage controller.

Quoted 1 line

Have you enabled SR really to do something?

Yes, I'm using vdd1&vdd2 autocompensation with the hardcoded testing values instead of efuse. My board seems quite stable using them.

Quoted 7 lines

With out proper efuse values its job is to do OPP changes. Once you have proper efuses it can do safe auto-adjustment. Most early non-production devices won't have useable efuse values.

I agree hardware I2C messages when it is in use might be a point of worry when investigating issues.

Ok. The hang actually happens when coming out of suspend. The silicon errata states that if smartreflex is sending i2c commands while sleep command is issued, a warm reset will be generated. I don't know if warm resets are handled now, but this could be something causing the hang. Or it's something else, gotta do some debugging.

Quoted 6 lines
Quoted 3 lines

Do you know why the smartreflex disable calls are positioned as they are in the CDP code?

I don't recall there being a placement. I can ask others if there aware.

Thanks!

Regards,
Kalle

Quoted 4 lines

Regards,
Richard W.