Skip to contentSkip to conversation

MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

MIPS Alon Bar-Lev 3 participants 7 messages Dec 23, 2007 – Dec 25, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

Hello,

When I have:
CONFIG_MIPS_DB1550
CONFIG_SOC_AU1550
CONFIG_SOC_AU1X00
CONFIG_PM

MEM_SDREFCFG is used at:
arch/mips/au1000/common/power.c::pm_do_freq()

While the MEM_SDREFCFG constant is declare only for CONFIG_SOC_AU1000, CONFIG_SOC_AU1500, CONFIG_SOC_AU1100 at:
include/asm-mips/mach-au1x00/au1000.h

Maybe MEM_SDREFCFG should be defined for CONFIG_SOC_AU1X00? Or there should be #ifdef for its usage in power.c?

Best Regards,
Alon Bar-Lev.

#1 lore raw

Hello,

Forgot to write that I checked mips & linus gits, and the problem still exists.

Best Regards,
Alon Bar-Lev.

Quoted 21 lines · Alon Bar-Lev

Hello,

When I have:
CONFIG_MIPS_DB1550
CONFIG_SOC_AU1550
CONFIG_SOC_AU1X00
CONFIG_PM

MEM_SDREFCFG is used at:
arch/mips/au1000/common/power.c::pm_do_freq()

While the MEM_SDREFCFG constant is declare only for CONFIG_SOC_AU1000, CONFIG_SOC_AU1500, CONFIG_SOC_AU1100 at:
include/asm-mips/mach-au1x00/au1000.h

Maybe MEM_SDREFCFG should be defined for CONFIG_SOC_AU1X00? Or there should be #ifdef for its usage in power.c?

Best Regards,
Alon Bar-Lev.

#2 lore raw
In reply to Alon Bar-Lev

Hello.

Quoted 8 lines · Alon Bar-Lev

When I have:
CONFIG_MIPS_DB1550
CONFIG_SOC_AU1550
CONFIG_SOC_AU1X00
CONFIG_PM

MEM_SDREFCFG is used at:
arch/mips/au1000/common/power.c::pm_do_freq()

PM code is generally broken and unmaintained, so no wonder. I don't
remember if anyone has fixed CPU context restoration code (it uses a "skewed" stack frame).

Quoted 5 lines

While the MEM_SDREFCFG constant is declare only for CONFIG_SOC_AU1000, CONFIG_SOC_AU1500, CONFIG_SOC_AU1100 at:
include/asm-mips/mach-au1x00/au1000.h

Maybe MEM_SDREFCFG should be defined for CONFIG_SOC_AU1X00?

I've just looked into the Au1550 datasheet and indeed it doesn't have such
register; its SDDRAM controller is not compatible with older SoCs.

Quoted 1 line

Or there should be #ifdef for its usage in power.c?

Looks like you'll have to invent something... ;-)

Quoted 2 lines

Best Regards,
Alon Bar-Lev.

WBR, Sergei

#3 lore raw
Quoted 17 lines · Sergei Shtylyov
Quoted 8 lines

When I have:
CONFIG_MIPS_DB1550
CONFIG_SOC_AU1550
CONFIG_SOC_AU1X00
CONFIG_PM

MEM_SDREFCFG is used at:
arch/mips/au1000/common/power.c::pm_do_freq()

PM code is generally broken and unmaintained, so no wonder. I don't
remember if anyone has fixed CPU context restoration code (it uses a "skewed" stack frame).

Quoted 3 lines

While the MEM_SDREFCFG constant is declare only for CONFIG_SOC_AU1000, CONFIG_SOC_AU1500, CONFIG_SOC_AU1100 at:
include/asm-mips/mach-au1x00/au1000.h

Quoted 11 lines
Quoted 1 line

Maybe MEM_SDREFCFG should be defined for CONFIG_SOC_AU1X00?

I've just looked into the Au1550 datasheet and indeed it doesn't have
such register; its SDDRAM controller is not compatible with older SoCs.

Quoted 1 line

Or there should be #ifdef for its usage in power.c?

Looks like you'll have to invent something... ;-)

Quoted 2 lines

Best Regards,
Alon Bar-Lev.

So I guess it's time to mark the whole PM stuff as BROKEN?

Ralf

#4 lore raw
In reply to Sergei Shtylyov

Thank you for your reply!

Quoted 3 lines · Sergei Shtylyov

PM code is generally broken and unmaintained, so no wonder. I don't
remember if anyone has fixed CPU context restoration code (it uses a "skewed" stack frame).

So suspend modes on these boards are not supported? Only "Always On" configuration is supported? Or there is another method to preserve power?

Best Regards,
Alon Bar-Lev.

#5 lore raw
Quoted 6 lines · Alon Bar-Lev
Quoted 3 lines

PM code is generally broken and unmaintained, so no wonder. I don't
remember if anyone has fixed CPU context restoration code (it uses a "skewed" stack frame).

So suspend modes on these boards are not supported? Only "Always On" configuration is supported?

Sleep mode is supported according to the code. But as I've said PM bits
haven't been maintained -- probably since the submission.

Quoted 2 lines

Best Regards,
Alon Bar-Lev.

WBR, Sergei

#6 lore raw
Quoted 5 lines · Sergei Shtylyov
Quoted 2 lines

So suspend modes on these boards are not supported? Only "Always On" configuration is supported?

Sleep mode is supported according to the code. But as I've said PM bits
haven't been maintained -- probably since the submission.

Thanks!
Will it be maintained? Are there any plans?
Is there, a missing features list (TODO)?
Or this is completely unsupported board?

Best Regards,
Alon Bar-Lev.