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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110330220806.GJ18334@atomide.com>
Date:	Wed, 30 Mar 2011 15:08:06 -0700
From:	Tony Lindgren <tony@...mide.com>
To:	Nicolas Pitre <nico@...xnic.net>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Arnd Bergmann <arnd@...db.de>,
	Russell King - ARM Linux <linux@....linux.org.uk>,
	David Brown <davidb@...eaurora.org>,
	lkml <linux-kernel@...r.kernel.org>,
	linux-arm-kernel@...ts.infradead.org, linux-omap@...r.kernel.org,
	Catalin Marinas <catalin.marinas@....com>
Subject: Re: [GIT PULL] omap changes for v2.6.39 merge window

* Nicolas Pitre <nico@...xnic.net> [110330 13:39]:
> 
> Trying to rely on bootloaders doing things right is like saying that x86 
> should always rely on the BIOS doing things right.  We have this chance 
> in the OMAP case to have a manufacturer who is smart enough to document 
> all those things so that the kernel can be autonomous and more reliable, 
> and the BIOS joke avoided entirely. When something needs fixing it is 
> much easier to update the kernel ourselves than waiting after any 
> bootloader updates which are themselves much more risky to perform.
> 
> Granted, things could be structured in a better way so to minimize the 
> risk of conflicts when clocks for unrelated drivers are updated at the 
> same time.  Something like initcall tables or the like.

We are hitting a problem with these data files for omap2+ already
where the size of the kernel gets too bloated. So the device tree
approach would help making more distro friendly kernel.

If we want to keep the data in the kernel, they should be loadable
kernel modules except for the few core clocks etc needed to bring
up the system.

I guess an alternative to device thee could be place them under
drivers/firmware or something similar. That does not help with
per-board data though, it would only help with the clocks needed
by device drivers.

> There is on-going work to bring device tree support to ARM.  Maybe that 
> will be the way to go to move those clock details out of the kernel.  
> And maybe that will become another unfixable PC BIOS fiasco. We'll see.  
> I don't particularly like the idea of _more_ APIs between bootloaders 
> and the kernel.  Keeping everything fixable in only one place is way 
> more convenient than the burden of the occasional merge conflict.
>
> Sure, something has to be done to minimize the pain, your pain, but not 
> by increasing the pain elsewhere.  I think that you know pretty well 
> already how painful dealing with BIOS data, or ACPI, or any other vendor 
> controlled (sometimes closed source) config tables might be.  We've 
> sidestepped that pain entirely on ARM so far and that really feels good.

Yeah the syncing up with the bootloader and patching kernel around
bootloader bugs is an issue. But the bloat issue might be hard to
work around otherwise.

Regards,

Tony
--
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