linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "linuxppc-dev@lists.ozlabs.org list"
	<linuxppc-dev@lists.ozlabs.org>,
	opensuse-ppc@opensuse.org, stable <stable@vger.kernel.org>
Subject: Re: [PATCH] machintosh: select defaults for cooling
Date: Sun, 16 Jul 2017 07:56:33 +1000	[thread overview]
Message-ID: <1500155793.2865.105.camel@kernel.crashing.org> (raw)
In-Reply-To: <CACRpkda9xaOLudWrDkjzFEm49-yVSxS-NGUe7SfzAnLy0wwihg@mail.gmail.com>

On Sat, 2017-07-15 at 13:45 +0200, Linus Walleij wrote:
> 
> > It's not actually the BIOS but the fan controller HW who does that.
> 
> OK then :)
> 
> Are you running this hardware BTW?

A pm_72 ? No but I might still be able to find one somewhere in the lab
if needed (not sure).

> > > I think this will make install images work in the G5 Macs.
> > 
> > Why is it not the job of the defconfig ? I was under the impression
> > that just "selecting" like this was frowned upon ? I don't care much
> > either way mind you, I'll let Michael decide what he wants to do.
> 
> I think nobody is happy with Kconfig really.
> 
> This relates to a recent Kconfig unmanageability discussion at
> ksummit-discuss I'd say. The situation is not great, it is very hard
> to make working configs and this patch is meant to help with that
> using the crude tools we have.

Yup.

> I prefer to just think about making it easy to do the right thing.
> And making Kconfig do the right thing without human
> intervention, because humans just screw everything up.
> As is proven by the openSuSE install media situation.
> 
> They simply have no clue what to enable to create an installable
> powermac media, even though they obviously know their way
> around ppc64, it's just too hard to get the Kconfig right.
> 
> So if I patch arch/arm/configs/g5_defconfig it starts working for me,
> true.
> 
> But I would not be surprised if the distros just forget to sync their
> configs with g5_defconfig so it doesn't help at all but instead I have
> to go and poke everyone and their dog about it.
> 
> Debian obviously had this enabled in *their* defconfig, because that
> installed just fine with their Jessue distro. They have since dropped
> support for ppc64 yay.
> 
> An alternative option is to go in and patch
> drivers/cpufreq/Kconfig.powerpc like that:
> 
> config CPU_FREQ_PMAC64
>         bool "Support for some Apple G5s"
>         depends on PPC_PMAC && PPC64
> +        select WINDFARM
> +        select WINDFARM_PM81
> +        select WINDFARM_PM72
> +        select WINDFARM_RM31
> +        select WINDFARM_PM91
> +        select WINDFARM_PM112
> +        select WINDFARM_PM121
> 
> If that is preferred?

Not really. I don't like also how we end up selecting etc... based on
CPUFREQ... I wouldn't mind select'ing cpufreq itself but then we end up
having to pull i2c etc..

In the end, your defaults are probably be way to go but make them just
default y, the dependency on CPUFREQ should be sufficient. Or will that
screw up with modules ?

Cheers,
Ben.

  reply	other threads:[~2017-07-15 21:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14 11:46 [PATCH] machintosh: select defaults for cooling Linus Walleij
2017-07-14 22:53 ` Benjamin Herrenschmidt
2017-07-15 11:45   ` Linus Walleij
2017-07-15 21:56     ` Benjamin Herrenschmidt [this message]
2017-07-17  2:02 ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500155793.2865.105.camel@kernel.crashing.org \
    --to=benh@kernel.crashing.org \
    --cc=linus.walleij@linaro.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=opensuse-ppc@opensuse.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).