MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)
Hello,
When I have:CONFIG_MIPS_DB1550CONFIG_SOC_AU1550CONFIG_SOC_AU1X00CONFIG_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.
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_DB1550CONFIG_SOC_AU1550CONFIG_SOC_AU1X00CONFIG_PM
MEM_SDREFCFGis used at:
arch/mips/au1000/common/power.c::pm_do_freq()While the
MEM_SDREFCFGconstant is declare only forCONFIG_SOC_AU1000,CONFIG_SOC_AU1500,CONFIG_SOC_AU1100at:include/asm-mips/mach-au1x00/au1000.hMaybe
MEM_SDREFCFGshould be defined forCONFIG_SOC_AU1X00? Or there should be #ifdef for its usage inpower.c?Best Regards,
Alon Bar-Lev.
Hello.
Quoted 8 lines · Alon Bar-Lev
When I have:
CONFIG_MIPS_DB1550CONFIG_SOC_AU1550CONFIG_SOC_AU1X00CONFIG_PM
MEM_SDREFCFGis 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_SDREFCFGconstant is declare only forCONFIG_SOC_AU1000,CONFIG_SOC_AU1500,CONFIG_SOC_AU1100at:include/asm-mips/mach-au1x00/au1000.hMaybe
MEM_SDREFCFGshould be defined forCONFIG_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
Quoted 17 lines · Sergei Shtylyov
Quoted 8 lines
When I have:
CONFIG_MIPS_DB1550CONFIG_SOC_AU1550CONFIG_SOC_AU1X00CONFIG_PM
MEM_SDREFCFGis 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_SDREFCFGconstant is declare only forCONFIG_SOC_AU1000,CONFIG_SOC_AU1500,CONFIG_SOC_AU1100at:include/asm-mips/mach-au1x00/au1000.h
Quoted 11 lines
Quoted 1 line
Maybe
MEM_SDREFCFGshould be defined forCONFIG_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
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.
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
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.