Re: Can we drop upstream Linux x32 support?

2018-12-13 Thread Richard Purdie
On Mon, 2018-12-10 at 17:40 -0800, Linus Torvalds wrote: > On Mon, Dec 10, 2018 at 5:23 PM Andy Lutomirski > wrote: > > I'm seriously considering sending a patch to remove x32 support > > from > > upstream Linux. Here are some problems with it: > > I talked to Arnd (I think - we were talking abo

Re: [PATCH] MAINTAINERS: Remove Richard Purdie from LED maintainers

2018-02-18 Thread Richard Purdie
the emails but not needed to be involved for a while now, you're doing fine without me! :) > Cc: Richard Purdie > Signed-off-by: Jacek Anaszewski Acked-by: Richard Purdie > --- >  MAINTAINERS | 1 - >  1 file changed, 1 deletion(-) > > diff --git a/MAINTAINERS b/MAI

Re: [PATCH 1/2] KVM: x86: fix APIC page invalidation

2017-12-13 Thread Richard Purdie
.14 host kernels where the guest doesn't have x2apic enabled. I can confirm this fixes issues the Yocto Project automated testing infrastructure was seeing. I'd like to add support for backporting this in stable. Tested-by: Richard Purdie Cheers, Richard

Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"

2016-03-11 Thread Richard Purdie
On Fri, 2016-03-11 at 17:28 -0500, Bruce Ashfield wrote: > On 2016-03-11 5:16 PM, Borislav Petkov wrote: > > On Fri, Mar 11, 2016 at 08:18:23PM +0100, Paolo Bonzini wrote: > > > Somebody got it wrong 10-ish years ago, and nobody has ever > > > checked since. > > > > > > But, don't use qemu32 or qe

Performance of 'forky' workloads

2015-12-07 Thread Richard Purdie
This may be a silly question however its puzzling me and I don't have any answer I'm happy with so I'm going to ask. I have a 'stupid' workload which does a lot of forking, basically pathologically stupid configure scripts. Its easy to replicate: $ wget http://ftp.gnu.org/pub/gnu/gettext/gettext-

Re: [PATCH/RFC v4 06/21] leds: add API for setting torch brightness

2014-08-18 Thread Richard Purdie
On Thu, 2014-08-14 at 07:39 +0300, Sakari Ailus wrote: > Bryan and Richard, > > Your opinion would be much appreciated to a question myself and Jacek were > pondering. Please see below. > > On Thu, Aug 07, 2014 at 03:12:09PM +0200, Jacek Anaszewski wrote: > > Hi Sakari, > > > > On 08/04/2014 02:

Re: [PATCH/RFC v2 1/8] leds: Add sysfs and kernel internal API for flash LEDs

2014-03-31 Thread Richard Purdie
ewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Purdie > --- > drivers/leds/Kconfig|8 + > drivers/leds/Makefile |1 + > drivers/leds/led-class.c| 56 +-- > drivers/leds/led-flash.c| 375 >

Re: [PATCH/RFC 1/8] leds: Add sysfs and kernel internal API for flash LEDs

2014-03-20 Thread Richard Purdie
class > device control and communicate with it through the kernel > internal interface. The LED sysfs interface is made > unavailable then. > > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard

Re: [PATCH] Add the LED burst trigger

2013-12-27 Thread Richard Purdie
On Fri, 2013-12-27 at 18:13 +, One Thousand Gnomes wrote: > > Well, this one will be really smaller. And yes, it will make some > > memory non-swappable, but I believe with triggers and infrastructure > > for N900 (and similar) it will be worth it. > > Ah yes thats such a major proportion of p

Re: [PATCH] MAINTAINERS: remove Richard Purdie as backlight maintainer

2013-10-04 Thread Richard Purdie
On Thu, 2013-10-03 at 17:43 -0700, Andrew Morton wrote: > On Fri, 04 Oct 2013 08:50:57 +0900 Jingoo Han wrote: > > > On Friday, October 04, 2013 8:21 AM, Andrew Morton wrote: > > > On Fri, 27 Sep 2013 12:59:28 +0900 Jingoo Han wrote: > > > > > > > Re

Re: [RFC PATCH] perf: add SLANG_INC for slang.h

2012-09-05 Thread Richard Purdie
On Wed, 2012-09-05 at 13:54 -0700, Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 24, 2012 at 11:10:39AM +0800, Liang Li escreveu: > > CFLAGS was previously hard coded to contain "-I/usr/include/slang" to > > work with hosts that have "/usr/include/slang/slang.h" as well as hosts > > that have "/usr

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Richard Purdie
On Sat, 2012-07-21 at 01:26 -0700, Colin Cross wrote: > On Sat, Jul 21, 2012 at 12:33 AM, Richard Purdie > wrote: > > On Fri, 2012-07-20 at 21:08 -0700, Greg KH wrote: > >> On Fri, Jul 20, 2012 at 05:46:14PM -0700, Colin Cross wrote: > >> > I'm trying to us

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Richard Purdie
On Fri, 2012-07-20 at 21:08 -0700, Greg KH wrote: > On Fri, Jul 20, 2012 at 05:46:14PM -0700, Colin Cross wrote: > > I'm trying to use the standard ledtrig-timer.c code to handle led > > blinking for notifications on an Android device, and I'm hitting some > > issues with setting permissions on the

Re: Apm_emulation and proper suspend

2008-02-21 Thread Richard Purdie
On Thu, 2008-02-21 at 12:33 +0100, Kristoffer Ericson wrote: > I'm reworking a couple of apm drivers and for whatever reason it > doesn't seem to update my /proc/apm_bios. I was under the impression > that it should do that when apm_bios was catted? Currently I have a > value that never change. I e

Re: [PATCH] leds: disable triggers on brightness set

2008-02-17 Thread Richard Purdie
On Sun, 2008-02-10 at 12:52 +0100, Németh Márton wrote: > Disable any active triggers when the brightness attribute is > set to zero. I agree with this approach and will merge this as a clarification of the interface, thanks. I'll also merge your other two patches into the LED queue. Cheers, Ric

Re: [GIT PULL] LED updates

2008-02-07 Thread Richard Purdie
On Thu, 2008-02-07 at 19:38 -0200, Henrique de Moraes Holschuh wrote: > On Thu, 07 Feb 2008, Richard Purdie wrote: > > Márton Németh: > > leds: Add support for hardware accelerated LED flashing > > leds: hw acceleration for Clevo mail LED driver > > This on

[GIT PULL] Backlight updates

2008-02-07 Thread Richard Purdie
Linus, Could you please pull from: git://git.o-hand.com/linux-rpurdie-backlight for-linus for the backlight tree updates for 2.6.25. This includes a new driver and an optimisation for the class. Both changes have been testing in -mm for quite a while. Thanks, Richard drivers/video/backlight/K

[GIT PULL] LED updates

2008-02-07 Thread Richard Purdie
support for hardware accelerated LED flashing leds: hw acceleration for Clevo mail LED driver Raphael Assenat (1): leds: Fix led-gpio active_low default brightness Richard Purdie (1): leds: Standardise LED naming scheme Rod Whitby (1): leds: Remove the now uneeded ixp4xx

Re: [PATCH/HP6XX] - Add leds support to the HP Jornada 6xx handheld

2008-02-07 Thread Richard Purdie
On Tue, 2008-02-05 at 19:13 +0100, Kristoffer Ericson wrote: > Richard, I've been told from paul that I should seek another solution > for my hd6446x.h merger (perhaps mfd driver). So this patch > is against linux-2.6.git with the header and defines changed back to > old style. Tested to compile. I

Re: [PATH] misc,acpi,backlight: Compal Laptop Extras (2nd try)

2008-02-07 Thread Richard Purdie
On Tue, 2008-02-05 at 18:38 +0100, Cezary Jackiewicz wrote: > From: Cezary Jackiewicz <[EMAIL PROTECTED]> > > This is driver for Compal Laptop: FL90/IFL90, based on MSI > driver. > > This driver exports a few files in /sys/devices/platform/compal-laptop/: > lcd_level - screen brightness: contain

Re: [PATCH] leds: Add support for power LED on WRAP systems

2008-02-07 Thread Richard Purdie
On Tue, 2008-02-05 at 21:51 +0100, Sven Wegener wrote: > WRAP systems have an additional LED. The power LED is normally lit after boot > and doesn't serve any other purpose besides showing that the system is powered > on. Nevertheless, its state is controllable and we can attach a trigger to it. T

Re: [PATCH/HP7XX] - Add combined LCD / BL driver for platform HP Jornada 7xx handhelds

2008-02-06 Thread Richard Purdie
On Wed, 2008-02-06 at 17:33 +0100, Kristoffer Ericson wrote: > Oki, here is attempt #2 (btw, new mail or just keep thread?) Apart from the issues Russell mentioned, --- /dev/null +++ b/drivers/video/backlight/jornada720_bllcd.c @@ -0,0 +1,286 @@ +/* + * drivers/video/backlight/jornada720_bllcd.c

Re: [PATCH/LEDS] - Add support for leds on the HP Jornada 6xx series

2008-02-03 Thread Richard Purdie
On Sun, 2008-02-03 at 21:46 +0100, Kristoffer Ericson wrote: > shortlog: > The HP Jornada 6xx series have simple leds thats able to produce green or red > light. > This patch enables the leds to be used by the kernel and/or userland. > > signed-off-by: Kristoffer Ericson <[EMAIL PROTECTED]> > >

Re: [PATCH] leds: Add support for the 3rd LED on the PCEngines WRAP

2008-01-13 Thread Richard Purdie
On Thu, 2007-12-27 at 14:31 +0100, Michael Loeffler wrote: > The 3rd LED on this board is something like a power-led, it is on all the > time. With this change to the leds-wrap driver it is possible to use this > LED too. > > Signed-off-by: Michael Loeffler <[EMAIL PROTECTED]> > --- > Hi > > I won

[RFC PATCH] Add input event to APM event bridge for embedded devices

2008-01-01 Thread Richard Purdie
as a module so the "hardcoded" policy can easily be removed from the kernel at runtime if desired too. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- drivers/input/Kconfig | 12 drivers/input/Makefile|1 drivers/input/ap

[GIT PULL] LED bugfixes

2008-01-01 Thread Richard Purdie
-locomo.c |2 +- drivers/leds/leds.h |3 ++- 5 files changed, 13 insertions(+), 12 deletions(-) Richard Purdie (2): leds: Fix leds_list_lock locking issues leds: Fix locomo LED driver oops -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

Kernel bloat - is it happening and if so, where?

2007-12-28 Thread Richard Purdie
is is an extremely quick hack and it could be a ton more efficient. Certain code was left in case I wanted to go back to looking at things at a function level too: #!/usr/bin/python # # Copyright 2007 Richard Purdie <[EMAIL PROTECTED]> # Copyright 2004 Matt Mackall <[EMAIL PROTECTED]> #

Re: 2.6.24-rc4-git5: Reported regressions from 2.6.23

2007-12-08 Thread Richard Purdie
On Sat, 2007-12-08 at 03:40 +0100, Rafael J. Wysocki wrote: > Subject : leds: ledtrig-timer calls sleeping function from > invalid context > Submitter : Márton Németh <[EMAIL PROTECTED]> > References: http://bugzilla.kernel.org/show_bug.cgi?id=9264 > Ha

[GIT PULL] LED bugfix

2007-12-07 Thread Richard Purdie
-triggers.c | 49 ++-- include/linux/leds.h|3 +- 3 files changed, 30 insertions(+), 28 deletions(-) Richard Purdie (1): leds: Fix led trigger locking bugs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

[GIT PULL] LED bugfixes

2007-11-05 Thread Richard Purdie
Linus, Could you please pull from: git://git.o-hand.com/linux-rpurdie-leds for-linus for some LED driver bugfixes for 2.6.24. Thanks, Richard drivers/leds/leds-gpio.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) David Brownell (1): leds: bugfixes for le

Re: [PATCH 3/3] leds-clevo-mail: driver for Clevo mail LED

2007-10-31 Thread Richard Purdie
On Sun, 2007-10-28 at 12:22 +0100, Németh Márton wrote: > Richard Purdie wrote: > > Hmm, there really is no way to just turn the LED on? :( > > Unfortunately I do not have these optional modules so I never saw the LED > just on without blinking. I don't know if there is

Re: [Bugme-new] [Bug 9217] New: CONFIG_CMDLINE doesn't pass to kernel

2007-10-28 Thread Richard Purdie
On Thu, 2007-10-25 at 22:54 +0100, Richard Purdie wrote: > On Thu, 2007-10-25 at 13:02 -0700, Andrew Morton wrote: > > It was in the inital report, at > > http://bugzilla.kernel.org/show_bug.cgi?id=9217 : > > This is the commandline they wanted to use, not the one that was >

Re: [PATCH] ata: ahci: Enable enclosure management via LED (resend)

2007-10-25 Thread Richard Purdie
On Thu, 2007-10-25 at 23:35 +0200, Ingo Oeser wrote: > On Thursday 25 October 2007, Kristen Carlson Accardi wrote: > > Enable enclosure management via LED > > > > As described in the AHCI spec, some AHCI controllers may support > > Enclosure management via a variety of protocols. This patch > >

Re: [Bugme-new] [Bug 9217] New: CONFIG_CMDLINE doesn't pass to kernel

2007-10-25 Thread Richard Purdie
On Thu, 2007-10-25 at 13:02 -0700, Andrew Morton wrote: > On Thu, 25 Oct 2007 14:43:36 +0100 > Richard Purdie <[EMAIL PROTECTED]> wrote: > > Could the original bug reporter please report what commandline the > > kernel actually uses please? In theory it can only be ei

Re: Linux machines dieing in swap storms

2007-10-25 Thread Richard Purdie
On Thu, 2007-10-25 at 17:13 +0100, Alan Cox wrote: > > I'm seriously tempted to add a "kill the process using the most memory" > > key combination into SysRq which might let me save the desktop but won't > > help with my remote server. I could also just disable swap I guess. > > For specific appli

Linux machines dieing in swap storms

2007-10-25 Thread Richard Purdie
I've got a problem I keep running into. My computers have buggy software which can sometimes run out of control. Two specific examples: Evolution: Sometimes its memory usage decides to suddenly grow out of control. It usually idles at around 300MB, you can watch it in top, doubling, trebling and e

Re: [Bugme-new] [Bug 9217] New: CONFIG_CMDLINE doesn't pass to kernel

2007-10-25 Thread Richard Purdie
On Thu, 2007-10-25 at 14:23 +0200, Lennert Buytenhek wrote: > On Wed, Oct 24, 2007 at 10:35:33PM -0500, Bill Gatliff wrote: > > > >Something broke CONFIG_CMDLINE of ARM (at least) between 2.6.22 and 2.6.23. > > > > > >I don't know whether it was an ARM patch one of those kernel-wide changes. > >

Re: [PATCH 2/3] leds-clevo-mail: hw accelerated LED blink extension

2007-10-23 Thread Richard Purdie
On Sun, 2007-10-21 at 14:54 +0200, Németh Márton wrote: > From: Márton Németh <[EMAIL PROTECTED]> > > Extends the leds subsystem with a blink_set() callback function which can > be optionally implemented by a LED driver. If implemented, the driver can use > the hardware acceleration for blinking a

Re: [PATCH 3/3] leds-clevo-mail: driver for Clevo mail LED

2007-10-23 Thread Richard Purdie
On Sun, 2007-10-21 at 14:55 +0200, Németh Márton wrote: > diff -uprN linux-2.6.23.orig/Documentation/leds-class.txt > linux-2.6.23/Documentation/leds-class.txt > --- linux-2.6.23.orig/Documentation/leds-class.txt2007-10-09 > 22:31:38.0 +0200 > +++ linux-2.6.23/Documentation/leds-class

Re: Power button policy and mechanism

2007-10-19 Thread Richard Purdie
hings like APM as a "user" event so the power button triggered a suspend event but anything in userspace needing to know about (or veto) it could do so. > > 2. Seeing as my knowledge about this area isn't the best I would > > appreciate all opinions on the subject from the

[GIT PULL] LED updates

2007-10-11 Thread Richard Purdie
Linus, Could you please pull from: git://git.o-hand.com/linux-rpurdie-leds for-linus for the LED tree updates for 2.6.24. Just some changes to the cobalt driver really. Thanks, Richard drivers/leds/Kconfig| 13 ++- drivers/leds/Makefile |3 drivers/leds/leds-cobal

[GIT PULL] Backlight updates

2007-10-11 Thread Richard Purdie
): backlight/leds: Make two structs static Haavard Skinnemoen (1): backlight: Add Samsung LTV350QV LCD driver Jesper Juhl (1): backlight: Fix cr_bllcd allocations and error paths Richard Purdie (1): backlight: Convert corgi backlight driver into a more generic driver

Re: What's in linux-leds.git for 2.6.24?

2007-10-01 Thread Richard Purdie
On Mon, 2007-10-01 at 00:52 +0100, Richard Purdie wrote: > The leds tree doesn't have much in it, basically some changes to the > cobalt LED drivers. > > http://git.o-hand.com/?p=linux-rpurdie-leds;a=shortlog;h=for-mm > > Yoichi Yuasa (3): > leds: Rename leds-

Re: What's in linux-backlight.git for 2.6.24?

2007-10-01 Thread Richard Purdie
On Sun, 2007-09-30 at 19:43 -0700, Greg KH wrote: > On Mon, Oct 01, 2007 at 12:52:07AM +0100, Richard Purdie wrote: > > I've become aware that I should be posting a merge plan, probably > > slightly earlier than this but better late than never. > > Can you post a diffs

What's in linux-backlight.git for 2.6.24?

2007-09-30 Thread Richard Purdie
tp://git.o-hand.com/?p=linux-rpurdie-backlight;a=shortlog;h=for-mm Adrian Bunk (1): backlight/leds: Make two structs static Haavard Skinnemoen (1): backlight: Add Samsung LTV350QV LCD driver Jesper Juhl (1): backlight: Fix cr_bllcd allocations and error paths Richard

What's in linux-leds.git for 2.6.24?

2007-09-30 Thread Richard Purdie
I've become aware that I should be posting a merge plan, probably slightly earlier than this but better late than never. The leds tree doesn't have much in it, basically some changes to the cobalt LED drivers. http://git.o-hand.com/?p=linux-rpurdie-leds;a=shortlog;h=for-mm Yoichi Yuasa (3):

Re: [PATCH] leds: add missing header

2007-09-24 Thread Richard Purdie
On Sun, 2007-09-23 at 08:14 +0200, Pierre Ossman wrote: > rwlocks are used in the structures so make sure the right header > is included. > > Signed-off-by: Pierre Ossman <[EMAIL PROTECTED]> I think something similar was already committed in revision df96efd73b81b8bc2d23b3d8b6025cce3d43db6c. Che

Re: [Linux-fbdev-devel] [RFC] driving a LCD panel via I2C

2007-09-24 Thread Richard Purdie
On Mon, 2007-09-24 at 12:34 +0200, Haavard Skinnemoen wrote: > On Mon, 24 Sep 2007 10:58:08 +0200 (CEST) > "Rodolfo Giometti" <[EMAIL PROTECTED]> wrote: > > I have an LCD panel on a custom PXA27x based board and it must be > > turned on/off by some special commands via a GPIO throught a I2C chip.

Re: [PATCH][1/2] led: add Cobalt Raq LEDs support

2007-09-13 Thread Richard Purdie
On Thu, 2007-09-13 at 23:54 +0900, Yoichi Yuasa wrote: > Add Cobalt Raq LEDs support. > > Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]> Not the clearest patch I've ever seen or the most helpful patch description. The rename could probably be split from the additional new driver at least... > d

Re: [PATCH] leds: add #include to include/linux/leds.h for rwlock_t

2007-09-11 Thread Richard Purdie
On Tue, 2007-09-11 at 17:48 +0900, Yoichi Yuasa wrote: > This patch has added #include to include/linux/leds.h for > rwlock_t. > > Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]> Added to the leds tree[1], thanks. http://git.o-hand.com/?p=linux-rpurdie-leds;a=shortlog;h=for-mm Richard - To u

[PATCH] lzo: Add some missing casts

2007-07-27 Thread Richard Purdie
Add some casts to the LZO compression algorithm after they were removed during cleanup and shouldn't have been. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- This fixes the reported problems for me, I've checked fairly carefully and I can't see any other issues. Edw

Re: 2.6.23-rc1-mm1: reiser4 <-> lzo compile error

2007-07-27 Thread Richard Purdie
On Fri, 2007-07-27 at 16:35 +0400, Edward Shishkin wrote: > Sorry, guys, I am not happy with the modified LZO: > the compressor tries to test bytes which are out of bounds. > > The attached module testlzo.c causes an oops in the second pass: > AFAIK, both, @m and @m_pos should be in [wrkmem, wrkme

Re: MMC/SD Root filesystem suspend/resume problems

2007-07-25 Thread Richard Purdie
On Wed, 2007-07-25 at 19:01 +, Pavel Machek wrote: > > I enabled the MMC_UNSAFE_RESUME option and the problems I was seeing was > > "fixed". I think having this option is a bad idea (in its current form) > > as it doesn't actually stop filesystem corruption. > > > > With the option disabled, i

Re: [1/2] 2.6.23-rc1: known regressions

2007-07-23 Thread Richard Purdie
On Mon, 2007-07-23 at 14:36 +0100, Al Viro wrote: > On Mon, Jul 23, 2007 at 02:12:07PM +0100, Richard Purdie wrote: > > Fix the leak where asus-led registration fails half way through. > > Frankly, I don't think that any post-factum checks are needed. We > should just b

Re: [1/2] 2.6.23-rc1: known regressions

2007-07-23 Thread Richard Purdie
register to simplify drivers. Fix error leftover from LED class struct device conversion (after the above, drivers don't need to look at the device structure). Fix the leak where asus-led registration fails half way through. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> diff --

Re: [PATCH][37/37] Clean up duplicate includes in sound/soc/

2007-07-23 Thread Richard Purdie
On Sat, 2007-07-21 at 17:04 +0200, Jesper Juhl wrote: > This patch cleans up duplicate includes in > sound/soc/ > > > Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> Acked-by: Richard Purdie <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line &q

[GIT PULL #2] Backlight updates

2007-07-22 Thread Richard Purdie
| 14 ++- 13 files changed, 148 insertions(+), 162 deletions(-) Andrew Morton (1): leds: cr_bllcd.c: build fix David Brownell (1): backlight: Fix order of Kconfig entries Richard Purdie (1): backlight: Convert from struct class_device to struct device - To

[GIT PULL #2] LED updates

2007-07-22 Thread Richard Purdie
driver Richard Purdie (3): leds: Fix trigger unregister_simple if register_simple fails leds: Add warning printks in error paths leds: Convert from struct class_device to struct device - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: MMC/SD Root filesystem suspend/resume problems

2007-07-22 Thread Richard Purdie
On Sun, 2007-07-22 at 16:05 +0200, Pierre Ossman wrote: > On Sun, 22 Jul 2007 14:18:33 +0100 > Richard Purdie <[EMAIL PROTECTED]> wrote: > > I enabled the MMC_UNSAFE_RESUME option and the problems I was seeing > > was "fixed". I think having this option is a bad

Re: MMC/SD Root filesystem suspend/resume problems

2007-07-22 Thread Richard Purdie
On Thu, 2007-07-19 at 19:03 +0200, Pierre Ossman wrote: > On Thu, 19 Jul 2007 16:53:39 +0100 > Richard Purdie <[EMAIL PROTECTED]> wrote: > > Lots of Linux handhelds use MMC/SD devices as the root file system. > > This has worked quite reliably for many kernel versions. In 2

Re: MMC/SD Root filesystem suspend/resume problems

2007-07-19 Thread Richard Purdie
On Thu, 2007-07-19 at 16:57 +0100, Richard Purdie wrote: > Lots of Linux handhelds use MMC/SD devices as the root file system. This > has worked quite reliably for many kernel versions. In 2.6.22, it seems > that if you suspend such a system then resume it, the device locks up. > Tryin

MMC/SD Root filesystem suspend/resume problems

2007-07-19 Thread Richard Purdie
Hi Pierre, Lots of Linux handhelds use MMC/SD devices as the root file system. This has worked quite reliably for many kernel versions. In 2.6.22, it seems that if you suspend such a system then resume it, the device locks up. Trying to execute anything on the filesystem results in a "Permission D

[GIT PULL] Backlight updates

2007-07-16 Thread Richard Purdie
files changed, 148 insertions(+), 162 deletions(-) David Brownell (1): backlight: Fix order of Kconfig entries Richard Purdie (1): backlight: Convert from struct class_device to struct device - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[GIT PULL] LED updates

2007-07-16 Thread Richard Purdie
deletions(-) David Brownell (2): leds: Teach leds-gpio to handle timer-unsafe GPIOs leds: leds-gpio for ngw100 Jan Engelhardt (1): leds: Use menuconfig objects II - LED Raphael Assenat (1): leds: Add generic GPIO LED driver Richard Purdie (3): leds: Fix trigger

[PATCH] mtd: Add sync/unblank function to mtdoops

2007-07-10 Thread Richard Purdie
fore add a sync function to mtdoops and call this when console unblank events occur. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> Index: linux/drivers/mtd/mtdoops.c === --- linux.orig/drivers/mtd/mtdoops.c2007-07-10 20:

[PATCH] leds: Convert from struct class_device to struct device

2007-07-09 Thread Richard Purdie
Convert the LEDs class from struct class_device to struct device since class_device is scheduled for removal. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> [I've applied this patch to the LEDs for-mm branch for testing but will work in any feedback] drivers/leds/led-class.c

[PATCH] backlight: Convert from struct class_device to struct device

2007-07-09 Thread Richard Purdie
names clash with the core. I can't see a way around this. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> [I've applied this patch to the backlight for-mm branch for testing but will work in any feedback] drivers/acpi/video.c |4 - drivers/usb/misc/appledispl

Re: [PATCH/RFC] oops and panic message logging to MTD

2007-07-04 Thread Richard Purdie
On Tue, 2007-07-03 at 12:47 +0300, Jarkko Lavinen wrote: > On Tue, Jun 19, 2007 at 11:00:54AM +0100, Richard Purdie wrote: > > Its not a case of formatting the whole partition. The whole point of > > this code is the following use case: > > > > 1. Device crashes

Re: [patch] Move led attributes out of device name and into sysfs attributes, was Re: LED devices

2007-06-26 Thread Richard Purdie
On Sun, 2007-06-24 at 22:06 -0700, Greg KH wrote: > On Sat, Jun 09, 2007 at 10:25:16AM +0100, Richard Purdie wrote: > > Anyhow, time to stop pretending I have any choice in this ;-). I will > > have the LED class use random numbers for busids and add a name > > attribute unle

Re: [PATCH/RFC] oops and panic message logging to MTD

2007-06-19 Thread Richard Purdie
On Tue, 2007-06-19 at 13:29 +0300, Artem Bityutskiy wrote: > On Tue, 2007-06-19 at 11:00 +0100, Richard Purdie wrote: > > > Well, mtd->block_isbad() may return error, unlikely, bu still. You also > > > ignore the error at other places. > > > > Ignoring that i

Re: [PATCH/RFC] oops and panic message logging to MTD

2007-06-19 Thread Richard Purdie
On Tue, 2007-06-19 at 10:55 +0300, Artem Bityutskiy wrote: > On Mon, 2007-06-18 at 17:31 +0100, Richard Purdie wrote: > > + if (mtd->erasesize < OOPS_PAGE_SIZE) > > + erase.len = OOPS_PAGE_SIZE; > > It seems to me that your code won't work if mtd->

[PATCH/RFC] oops and panic message logging to MTD

2007-06-18 Thread Richard Purdie
evice number to use). http://folks.o-hand.com/richard/oopslog.c is an example of extracting this information in userspace. It will work with an mtdblock device or a dump of an mtd partition. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- drivers/mtd/Kconfig |8 + drivers/m

[PATCH] Add LZO1X algorithm to the kernel

2007-06-18 Thread Richard Purdie
gned-off-by: Richard Purdie <[EMAIL PROTECTED]> include/linux/lzo.h| 44 +++ lib/Kconfig|6 + lib/Makefile |2 lib/lzo/Makefile |5 lib/lzo/lzo1x_compress.c | 227 lib/lzo/lzo1x_de

Re: [patch] Move led attributes out of device name and into sysfs attributes, was Re: LED devices

2007-06-09 Thread Richard Purdie
On Fri, 2007-06-08 at 16:46 -0700, Greg KH wrote: > On Sat, Jun 09, 2007 at 12:02:28AM +0100, Richard Purdie wrote: > > On Fri, 2007-06-08 at 11:57 -0700, Greg KH wrote: > > > On Fri, Jun 01, 2007 at 05:23:24PM +0100, Richard Purdie wrote: > > > Why not just

Re: [patch] Move led attributes out of device name and into sysfs attributes, was Re: LED devices

2007-06-08 Thread Richard Purdie
On Fri, 2007-06-08 at 11:57 -0700, Greg KH wrote: > On Fri, Jun 01, 2007 at 05:23:24PM +0100, Richard Purdie wrote: > > I still question whether either colour or function properties are > > actually particularly useful to userspace other than for naming purposes > > which is

Re: [PATCH 2/2] LEDS: generic driver

2007-06-07 Thread Richard Purdie
On Wed, 2007-06-06 at 19:02 +0200, Robin Farine wrote: > From: Robin Farine <[EMAIL PROTECTED]> > > This generic LED driver implements the platform independent part of a > LED driver letting platform specific code focus on the hardware > details. The driver binds to platform devices named "Generi

Re: LZO patch comparision

2007-06-07 Thread Richard Purdie
On Thu, 2007-06-07 at 19:40 +0530, Nitin Gupta wrote: > On 6/7/07, Richard Purdie <[EMAIL PROTECTED]> wrote: > > In the following, > > - is Nitin's patch > > + is my version. > > + for (;;) { > > - DINDEX1(dindex, ip); > >

LZO patch comparision

2007-06-07 Thread Richard Purdie
Below is a diff between our versions. I've annotated it with comments on the differences. There are some differences not easily seen in the diff, the main one is the filenames. I've mentioned this elsewhere but I will do so here for completeness. There are two reasons for my choice of file/module

Re: [PATCH -mm] Add LZO1X compression support to the kernel

2007-06-07 Thread Richard Purdie
On Thu, 2007-06-07 at 10:11 +0530, Nitin Gupta wrote: > Your code now looks nice and clean. But I don't know what you want. I > already spent lot of time on version 7 I posted and contains all those > corrections which were suggested for my earlier version. I cannot ask > you to look into possible

[PATCH -mm] Add LZO1X compression support to the kernel

2007-06-06 Thread Richard Purdie
7;ll finish analysing the PTR_ code changes and then hopefully we can get something into -mm... Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- include/linux/lzo.h| 51 lib/Kconfig|6 lib/Makefile |2 lib/lzo/Make

Problems (a bug?) with UINT_MAX from kernel.h

2007-06-05 Thread Richard Purdie
The kernel uses UINT_MAX defined from kernel.h in a variety of places. While looking at the behaviour of the LZO code, I noticed it seemed to think an int was 8 bytes large on my 32 bit i386 machine. It isn't but why did it think that? kernel.h says: #define INT_MAX ((int)(~0U>>1)) #defi

Re: [PATCH -mm 0/5] LZO and swap write failure patches for -mm

2007-06-05 Thread Richard Purdie
On Mon, 2007-06-04 at 22:50 -0700, Andrew Morton wrote: > I'd say go with the cleanups. The code I've seen is going to be quite > unmaintainable by any kernel developer. > > Any fixes which come from upstream can be trivially applied by taking the > diffs against the version of upstream we starte

Re: [PATCH -mm 0/5] LZO and swap write failure patches for -mm

2007-06-04 Thread Richard Purdie
On Mon, 2007-06-04 at 23:56 +0530, Nitin Gupta wrote: > Yes there might still be problems - that is why I posted as RFC. I got > useful comments and the code is improving. Going for such fork might > be pain initially but IMHO its worth it. My idea for this 'fork' is > not just clean-ups but potent

Re: [PATCH -mm 0/5] LZO and swap write failure patches for -mm

2007-06-04 Thread Richard Purdie
On Mon, 2007-06-04 at 13:37 -0400, Daniel Hazelton wrote: > Yes - most of that work, IIRC, is related to the alignment issues that Herr > Oberhumer noted. As it stands, the alternative does work well for a large > number of the platforms that the kernel supports. With a little Kconfig magic > it

Re: [PATCH -mm 0/5] LZO and swap write failure patches for -mm

2007-06-04 Thread Richard Purdie
On Mon, 2007-06-04 at 12:14 -0400, Daniel Hazelton wrote: > On Monday 04 June 2007 11:36:18 Richard Purdie wrote: > I have been involved in benchmarking and testing that stripped down and > kernel-style version and cannot recall any mention of said alignment errors. > Perhaps I was

[PATCH -mm 5/5] swap: Catch pages with errors and mark as bad

2007-06-04 Thread Richard Purdie
me of my own changes as discussed on LKML. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- mm/page_io.c |3 --- mm/vmscan.c |9 + 2 files changed, 9 insertions(+), 3 deletions(-) Index: linux-2.6.21/m

[PATCH -mm 3/5] swap: Have swap_free() mark pages with errors as bad

2007-06-04 Thread Richard Purdie
Pass an optional struct page * to swap_free(), fixing up all users. Have swap_free check the page for errors and if found, mark the swap page as bad. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- include/linux/swap.h |4 ++-- kernel/power/swsusp.c |4 ++-- mm/me

[PATCH -mm 4/5] swap: Add try_to_unuse_page_entry()

2007-06-04 Thread Richard Purdie
Add try_to_unuse_page_entry() which can be used to unuse page entries. This needs try_to_unuse_anon() which is also added, similar to try_to_unmap_anon(). Originally based on a patch by Nick Piggin from LKML with changes of my own after hints from Hugh Dickins. Signed-off-by: Richard Purdie

[PATCH -mm 1/5] Add LZO1X compression support to the kernel

2007-06-04 Thread Richard Purdie
: Richard Purdie <[EMAIL PROTECTED]> --- include/linux/lzo.h | 59 ++ lib/Kconfig |5 lib/Makefile|1 lib/lzo/Makefile|3 lib/lzo/lzoconf.h | 116 lib/lzo/lzodefs.h | 176 +++ lib/lzo/lzointf.c | 36 + lib/lzo/minilzo.c

[PATCH -mm 0/5] LZO and swap write failure patches for -mm

2007-06-04 Thread Richard Purdie
The following series contains several patches which I'm hoping could see some testing in -mm. They're all been seen before at some point. The LZO ones are important due to the dependent patches, the swap write failure ones have just fallen off the radar. LZO === We've seen a lot of activity in at

Re: [patch] Move led attributes out of device name and into sysfs attributes, was Re: LED devices

2007-06-01 Thread Richard Purdie
On Fri, 2007-06-01 at 16:59 +0100, Richard Hughes wrote: > On Fri, 2007-06-01 at 16:43 +0100, Richard Purdie wrote: > > I accept this is basically out of my hands now. Greg/Kay have the > > appropriate emails and if they'll let me know which approach they want > &

Re: [patch] Move led attributes out of device name and into sysfs attributes, was Re: LED devices

2007-06-01 Thread Richard Purdie
On Fri, 2007-06-01 at 16:04 +0100, Richard Hughes wrote: > Patch attached corrects all the brokenness with the led class (encoding > some attributes in the device handle). For the benefit of LKML, there has been some discussion of this elsewhere. My arguments do not particularly come across in Ric

Re: [PATCH] Support for controlling leds on xbox 360 pad.

2007-05-31 Thread Richard Purdie
Hi, On Thu, 2007-05-31 at 17:53 +0200, Jan Kratochvil wrote: > On Thu, 31 May 2007, Pavel Machek wrote: > >> Led subsystem allows us to set brightness, but there is > >> nothing like brightness on this device. So brightness is > >> actually interpreted as the command (only values between > >> 0 an

Re: [PATCH] Support for controlling leds on xbox 360 pad.

2007-05-30 Thread Richard Purdie
Hi Dmitry, On Wed, 2007-05-30 at 10:56 -0400, Dmitry Torokhov wrote: > Do you think it makes sense to split the driver (and Kconfig options) > between input and leds directories as Jan had done? I know that I > prefer to keep anything input related in input directory because it > makes my life as

Re: [PATCH] Samsung LTV350QV LCD driver

2007-05-29 Thread Richard Purdie
On Tue, 2007-05-29 at 14:38 -0700, David Brownell wrote: > On Tuesday 29 May 2007, Richard Purdie wrote: > > The LCD class device bits look fine to me. The only change I'd request > > is not to change the order of things in drivers/video/backlight/Kconfig. > > If you do w

Re: [PATCH] Support for controlling leds on xbox 360 pad.

2007-05-29 Thread Richard Purdie
On Tue, 2007-05-29 at 23:29 +0200, Jan Kratochvil wrote: >I have question, probably for Richard. Why is > /sys/class/leds/whatsoever/brightness mode set to 0644? Is it really > necessary? > I feel like I'll be happy to allow anybody to change the state of this led. > (Ok > this maybe doesn'

Re: [PATCH] Samsung LTV350QV LCD driver

2007-05-29 Thread Richard Purdie
On Tue, 2007-05-29 at 21:52 +0200, Haavard Skinnemoen wrote: > This patch adds support for powering on and off the Samsung LTV350QV > LCD panel via SPI. The driver responds to framebuffer power > management, it powers off the panel on reboot/halt/poweroff, and it > can also be controlled through sy

Re: [RFC] LZO de/compression support - take 4

2007-05-26 Thread Richard Purdie
Hi Nitin, On Fri, 2007-05-25 at 18:27 +0530, Nitin Gupta wrote: > On 5/25/07, Richard Purdie <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:15 +0530, Nitin Gupta wrote: > > > Richard, can you please provide perf. results for this patch also? > > > Also

Re: [RFC] LZO de/compression support - take 4

2007-05-25 Thread Richard Purdie
On Fri, 2007-05-25 at 18:07 +0530, Satyam Sharma wrote: > On 5/25/07, Richard Purdie <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:15 +0530, Nitin Gupta wrote: > > > Richard, can you please provide perf. results for this patch also? > > > Also, can you p

Re: [RFC] LZO de/compression support - take 4

2007-05-25 Thread Richard Purdie
Hi Nitin, On Fri, 2007-05-25 at 18:27 +0530, Nitin Gupta wrote: > On 5/25/07, Richard Purdie <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:15 +0530, Nitin Gupta wrote: > > > Richard, can you please provide perf. results for this patch also? > > > Also

  1   2   3   4   >