public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: linux-arch@vger.kernel.org,
	Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
	Chris Wright <chrisw@sous-sol.org>
Subject: Re: [patch] s390 kconfig cleanup.
Date: Mon, 15 May 2006 19:30:31 +0200	[thread overview]
Message-ID: <200605151930.32241.ak@suse.de> (raw)
In-Reply-To: <20060515171645.GA11397@skybase>

On Monday 15 May 2006 19:16, Martin Schwidefsky wrote:
> Hi folks,
> I tried once again to clean up the Kconfig files for s390.
> We do not use drivers/Kconfig so far because this creates
> a lot of config options that make absolutely no sense for
> s390. The hardware for whole families of drivers, e.g.
> IPMI, TPM, I2C, I2O, ATA, IEEE1394, ISDN, etc, do not exist
> and very likely will never exist on a s390.
> 
> The "solution" so far had been to avoid drivers/Kconfig and
> use a special s390 version in driver/s390/Kconfig which
> includes some Kconfig files from the drivers directory
> tree and <copies> a few more config options which are useful
> for s390.
> 
> This has obviously two drawbacks: 1) we tend to "forget" new
> useful config options from Kconfig files we do not include,
> 2) the copies of the config options bit-rot just like code
> does, for example we still have UNIX98_PTY_COUNT which does
> not exist anymore.
> 
> The attached patch makes s390 use the common drivers/Kconfig
> and adds a lot of "depends on !S390" to hide all the config
> options that do not make sense for us.> What I think could 
> be improved is the fact that the dependency is negative,
> that is not-something, it would be much cleaner to have
> positive dependencies. For example the menues for Fusion
> or I2O are hidden with "depends on PCI" which is much nicer
> than "depends on !S390". Unluckily it is not obvious what
> the positive dependency should be for almost all menus.
> That is where the arch people get involved. Can we come
> up with a method how to "tag" all menus in the Kconfig files
> under drivers/ with a positive list of the architectures
> that actually want to include the menu/driver? Or even
> better tag the menu/driver with the bus that is required
> to attach the device?

Xen has a similar problem. They currently have tons of ugly negative
checks too. REAL_HARDWARE or similar is needed there, but it might
not fit the s390.

Checking PCI is a good start and should apply to most menus already.

I would suggest you guys come up with a common solution that works
for Xen and s390 at least (and maybe UML too?)

-Andi

  reply	other threads:[~2006-05-15 17:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 17:16 [patch] s390 kconfig cleanup Martin Schwidefsky
2006-05-15 17:30 ` Andi Kleen [this message]
2006-05-15 19:00   ` Geert Uytterhoeven
2006-05-15 21:24   ` Chris Wright
2006-05-16  8:08     ` Martin Schwidefsky
2006-05-16 21:12       ` Chris Wright
2006-05-17  8:17         ` Martin Schwidefsky
2006-05-17 11:18           ` Geert Uytterhoeven
2006-05-17 11:22             ` Martin Schwidefsky
2006-05-17 11:24               ` Geert Uytterhoeven
2006-05-17 12:07                 ` Martin Schwidefsky
2006-05-17 12:12                   ` Geert Uytterhoeven
2006-05-17 12:24                     ` Martin Schwidefsky
2006-05-17 13:25 ` Matthew Wilcox
2006-05-17 16:50   ` Martin Schwidefsky
2006-05-17 20:06     ` Geert Uytterhoeven

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=200605151930.32241.ak@suse.de \
    --to=ak@suse.de \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=chrisw@sous-sol.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    /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