Problem with regulator_shutdown() introduced in r331989

Milan Obuch freebsd-arm at dino.sk
Sat Apr 21 07:17:36 UTC 2018


On Fri, 20 Apr 2018 23:38:47 +0200
Emmanuel Vadot <manu at bidouilliste.com> wrote:

> On Sat, 7 Apr 2018 21:34:13 +0200
> Milan Obuch <freebsd-arm at dino.sk> wrote:
> 
> > Hi,
> > 
> > after some time with running slightly older sources based kernel I
> > decided to upgrade, but current sources based kernel does not boot
> > on Orange Pi Zero, maybe on other Allwinner based boards too, I did
> > not test them. Problem manifests itself on console with following:
> > 
> > Release APs
> > CPU(3) applied BP hardening: not necessary
> > CPU(1) applied BP hardening: not necessary
> > CPU(2) applied BP hardening: not necessary
> > WARNING: WITNESS option enabled, expect reduced performance.
> > regulator: shuting down vcc3v0
> > Trying to mount root from ufs:/dev/mmcsd0s2a [rw]...
> > GEOM: new disk mmcsd0
> > regulator: shuting down vcc5v0
> > regulator: shuting down vcc-wifi
> > mmc0: panic: Invalid enable count
> > cpuid = 0
> > time = 1

[ snip ]

> > I can override it with either manually entering
> > 
> > set hw.regulator.disable_unused=0
> > 
> > on loader prompt, or putting line
> > 
> > hw.regulator.disable_unused=0
> > 
> > into /boot/loader.conf file.
> > 
> > Either way, system boots then normally and works as expected. Has
> > anybody any explanation what's going on? What purpose does this
> > function actually serve? Reading source, disabling unused regulatos
> > looks like a way to conserve power, but I am not sure if I think
> > about it the right way. Anyway, something is wrong - why has mmc0
> > invalid enable count? Looks strange to me...
> > 
> > Regards,
> > Milan
> 
>  Hi,
> 
>  r332843 should fix this problem.
> 
>  Cheers,
> 

Hi,

confirmed - new kernel built works with no workaround, some regulator
disabled, boots full to userland:

regulator: shuting down vcc3v0
regulator: shuting down vcc3v3
regulator: shuting down vcc5v0
regulator: shuting down vcc-wifi

Thanks for fix.

Regards,
Milan


More information about the freebsd-arm mailing list