lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 16 Jan 2010 16:14:31 -0700
From:	Bjorn Helgaas <bjorn.helgaas@...com>
To:	Yinghai Lu <yinghai@...nel.org>
Cc:	Alex Chiang <achiang@...com>,
	Jesse Barnes <jbarnes@...tuousgeek.org>,
	Ingo Molnar <mingo@...e.hu>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Ivan Kokshaysky <ink@...assic.park.msu.ru>,
	Kenji Kaneshige <kaneshige.kenji@...fujitsu.com>,
	linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [PATCH 10/11] pciehp: add support for bridge
	resource	reallocation

On Sat, 2010-01-16 at 01:34 -0800, Yinghai Lu wrote:
> On 01/15/2010 08:59 PM, Alex Chiang wrote:
> > * Yinghai Lu <yinghai@...nel.org>:
> >> From: Kenji Kaneshige <kaneshige.kenji@...fujitsu.com>
> >>
> >> With this patch, pciehp driver try to clear PCI bridge resources to
> >> parent bridge (root port or switch downstream port) of the slot
> >>
> >> so we can shrink pci bridge resource for those port
> >>
> >> This feature is enabled when 'pciehp_realloc' option is specified.
> >>
> >> -v2: make it could be appiled after Yinghai patchset that touch pci bridge
> >>      resource also remove poweron check, because pci_bridge_release_res will
> >>      check child at first
> > 
> > Same comment as my earlier patch. Why not just make this the
> > default behavior, instead of introducing yet another command line
> > parameter for users to guess at?
> 
> it will break Eric's setup/

I think this is a clue that we don't understand the problem well enough
yet.

I'm opposed to adding kernel parameters for this sort of thing.  It is
unreasonable to expect users to figure out whether they need to use this
parameter or not.

Special-case switches like this make it much harder to maintain the code
in the future.

Bjorn


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ