linux-kernel mailing list

FromSubjectsort iconDate
Christoffer Dall
[C/R ARM v2][PATCH 0/3] Linux Checkpoint-Restart - ARM port
Following there will be two preparatory patches for an ARM port of the checkpoint-restart code and finally a third patch implementing the architecture-specific parts of c/r. The preparatory patches consist of a partial syscall trace implementation for ARM and an eclone implementation for ARM. The syscall trace implementation provides only the needed functionality for c/r. There is a separate patch for the user space code, which supports cross-compilation, extracting headers for ARM and an ...
Apr 26, 2:43 pm 2010
Christoffer Dall
[C/R ARM v2][PATCH 1/3] ARM: Rudimentary syscall interfaces
Introduces a few of the system call inspection functions for ARM. The current motivation is checkpoint restart, but the general interface requirements are met, making it possible for a debugger or tracer to obtain information about the system call status of another process. The patch is in part based on the following proposal from Roland McGrath: https://patchwork.kernel.org/patch/32101/ Compared to other architectures, the code to implement syscall_get_nr is somewhat comprehensive. However, ...
Apr 26, 2:43 pm 2010
Christoffer Dall
[C/R ARM v2][PATCH 2/3] ARM: Add the eclone system call
In addition to doing everything that clone() system call does, the eclone() system call: - allows additional clone flags (31 of 32 bits in the flags parameter to clone() are in use) - allows user to specify a pid for the child process in its active and ancestor pid namespaces. Eclone is needed for restarting a process from a checkpoint. See more in Documentation/eclone and refer to the original LKML posting: http://lkml.org/lkml/2009/11/11/361 The new system call for ARM has ...
Apr 26, 2:43 pm 2010
Christoffer Dall
[C/R ARM v2][PATCH 3/3] c/r: ARM implementation of check ...
Implements architecture specific requirements for checkpoint/restart on ARM. The changes touch almost only c/r related code. Most of the work is done in arch/arm/checkpoint.c, which implements checkpointing of the CPU and necessary fields on the thread_info struct. The following restrictions are enforced: ---------------------------------------- The CPU architecture (given by cpu_architecture()) is checkpointed and verified against the CPU architecture on restart. We require that the restart ...
Apr 26, 2:43 pm 2010
Christoffer Dall
Re: [C/R ARM v2][PATCH] ARM: Rudimentary syscall interfaces
Hi Roland. Thanks for your feedback. The changed patch below should address your concerns. Best, Christoffer --- arch/arm/include/asm/syscall.h | 32 ++++++++++++++++++ arch/arm/kernel/ptrace.c | 69 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 0 deletions(-) create mode 100644 arch/arm/include/asm/syscall.h diff --git a/arch/arm/include/asm/syscall.h b/arch/arm/include/asm/syscall.h new file mode 100644 index 0000000..1a6ca68 --- ...
Apr 26, 3:36 pm 2010
Stephen Rothwell
linux-next: build warning in Linus' tree
Hi Greg, Today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/usb/serial/ti_usb_3410_5052.c: In function 'ti_download_firmware': drivers/usb/serial/ti_usb_3410_5052.c:1738: warning: format '%d' expects type 'int', but argument 5 has type 'size_t' Introduced by commit cdc04834ce70343aa6f87c5332ec66c35d968967 ("USB: ti_usb_3410_5052: adding multitech dialup fax/modem devices"). -- Cheers, Stephen Rothwell ...
Apr 26, 4:30 pm 2010
Greg KH
Re: linux-next: build warning in Linus' tree
Thanks, Randy has already sent me a fix for this, I'm working on apply it to my tree soon (doing must-fix things first...) thanks, greg k-h --
Apr 26, 4:42 pm 2010
Alan Cox
Re: linux-next: build warning after merge of the tty.cur ...
On Tue, 27 Apr 2010 09:23:46 +1000 I'll fix that tomorrow and send it to Greg --
Apr 26, 4:37 pm 2010
Stephen Rothwell
linux-next: build warning after merge of the tty.current tree
Hi Greg, After merging the tty.current tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/char/isicom.c: In function 'isicom_open': drivers/char/isicom.c:875: warning: unused variable 'card' Introduced by commit 746b212efb4664117612c7f43f880d230588d617 ("tty: Fix regressions in the char driver conversion"). -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/
Apr 26, 4:23 pm 2010
Alan Ott
[PATCH 1/1] Bug in hidraw When a HID Device Contains Mul ...
From: Alan Ott <alan@signal11.us> Make hidraw not stick an extra byte on the beginning of an IN transfer when a HID device contains multiple reports. Signed-off-by: Alan Ott <alan@signal11.us> --- In drivers/hid/hid-core.c, hid_report_raw_event() does the following to pass the raw data to hidraw: if (hid->claimed & HID_CLAIMED_HIDRAW) { /* numbered reports need to be passed with the report num */ if (report_enum->numbered) ...
Apr 26, 3:34 pm 2010
H. Peter Anvin
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Properly done, these aren't separate cases at all. The E820 interface as specified doesn't reserve the address space below 1 MB, because it is legacy space -- which is another way of saying "everyone already knows to reserve it." The Right Thing[TM] to do is simply to modify the data output by E820 to reserve all non-memory space below 1 MB; this can (and should) be done in platform-specific initialization code to allow overrides. Once that is done, both your (2) and (3) cases are nothing ...
Apr 26, 4:49 pm 2010
H. Peter Anvin
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
I don't think it's sufficient, actually. We regularly see machines where devices point into e820_reserved memory above 1 MB - because it's a platform device or because firmware (e.g. smm) is touching the device. I think Bjorn's fix is great for .34, but longer term I think we need to structure the code to actually handle reserved regions differently from occupied/forbidden regions. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Apr 26, 4:02 pm 2010
Jesse Barnes
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Sorry, sounds like we're talking about a few different things here: 1) devices which sit in e820 reserved space (whether at < 1M or > 1M) 2) devices which sit in e820 ram or other space below 1M 3) how to hand out space from the 0-1M region Bjorn's patch fixes (3) so that regular PCI devices don't get space there, which makes sense. Some devices may be in the special region, but were pointed there by the BIOS. Generally this should be ok, so drivers requesting this space should be ...
Apr 26, 4:25 pm 2010
H. Peter Anvin
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Properly done, these aren't separate cases at all. The E820 interface as specified doesn't reserve the address space below 1 MB, because it is legacy space -- which is another way of saying "everyone already knows to reserve it." The Right Thing[TM] to do is simply to modify the data output by E820 to reserve all non-memory space below 1 MB; this can (and should) be done in platform-specific initialization code to allow overrides. Once that is done, both your (2) and (3) cases are nothing ...
Apr 26, 4:49 pm 2010
Minchan Kim
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ks ...
Actually, I am worry about rollback approach like this. If we don't often need anon_vmas serializing, that's enough. But I am not sure how often we need locking of anon_vmas like this. Whenever we need it, we have to use rollback approach like this in future. In my opinion, it's not good. Rik, can't we make anon_vma locks more simple? Anyway, Mel's patch is best now. I hope improving locks of anon_vmas without rollback approach in near future. Thanks, Mel. -- Kind ...
Apr 26, 4:15 pm 2010
Mel Gorman
[PATCH 0/2] Fix migration races in rmap_walk()
After digging around a lot, I believe the following two patches are the best way to close the race that allows a migration PTE to be left behind triggering a BUG check in migration_entry_to_page(). Patch one alters has fork() wait for migration to complete. Patch two has vma_adjust() acquire the anon_vma lock it is aware of and makes rmap_walk() aware that different VMAs can be encountered during the walk. I dropped the use of the seq counter because there were still races in place. For ...
Apr 26, 3:37 pm 2010
Mel Gorman
[PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] s ...
vma_adjust() is updating anon VMA information without any locks taken. In contrast, file-backed mappings use the i_mmap_lock and this lack of locking can result in races with page migration. During rmap_walk(), vma_address() can return -EFAULT for an address that will soon be valid. This leaves a dangling migration PTE behind which can later cause a BUG_ON to trigger when the page is faulted in. With the recent anon_vma changes, there can be more than one anon_vma->lock that can be taken in a ...
Apr 26, 3:37 pm 2010
Andrea Arcangeli
Re: [PATCH 0/2] Fix migration races in rmap_walk()
So patch 1 is for aa.git too, and patch 2 is only for mainline with the new anon-vma changes (patch 2 not needed in current aa.git, and if I apply it, it'll deadlock so...) right? split_huge_page is somewhat simpler and more strict in its checking than migrate.c in this respect, and yes patch 2 will also need to be extended to cover split_huge_page the moment I stop backing out the new anon-vma code (but it won't be any different, whatever works for migrate will also work for split_huge_page ...
Apr 26, 4:04 pm 2010
Minchan Kim
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ks ...
if (address == -EFAULT) -- Kind regards, Minchan Kim
Apr 26, 4:05 pm 2010
Mel Gorman
[PATCH 1/2] mm,migration: During fork(), wait for migrat ...
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> At page migration, we replace pte with migration_entry, which has similar format as swap_entry and replace it with real pfn at the end of migration. But there is a race with fork()'s copy_page_range(). Assume page migraion on CPU A and fork in CPU B. On CPU A, a page of a process is under migration. On CPU B, a page's pte is under copy. CPUA CPU ...
Apr 26, 3:37 pm 2010
Minchan Kim
Re: [PATCH 1/2] mm,migration: During fork(), wait for mi ...
Reviewed-by : Minchan Kim <minchan.kim@gmail.com> -- Kind regards, Minchan Kim
Apr 26, 4:28 pm 2010
Pavan Savoy
Re: [PATCH] drivers:staging: sources for ST core
Alan, The st_recv is a global pointer to a function, and changes only once in lifetime of the driver (after a function called download_firmware). This can be easily avoided by having a flag in my st_tty_recieve function, as in if (test_bit(FIRMWARE_DOWNLOADED, st_gdata->st_state) /* * if fw download is in progress then route incoming data * to KIM for validation */ st_int_recv(data, count); else kim_recv(data, count); ...
Apr 26, 3:06 pm 2010
Pavan Savoy Apr 26, 2:24 pm 2010
Philip Langdale
Positive results with Transparent Hugepages at VMware
Hi, I've been following the Transparent Hugepage patch set over the last few weeks and have been experimenting with leveraging the functionality in VMware's Linux virtualization software (eg: Workstation, Player). The initial results have been extremely positive. We have a standardized VM workload that we use to demonstrate the difference that large page support makes - it's a Linux VM running the SPECjbb benchmark in a JVM that has itself been configured to use large pages through hugetlbfs - as ...
Apr 26, 2:17 pm 2010
Nicolas Palix
Re: [PATCH 1/4] Add targets to use the Coccinelle checker
Thank you for your feedback and support. From 98aba248f7cba64c771f3632c11b8188819c45a1 Mon Sep 17 00:00:00 2001 From: Nicolas Palix <npalix@diku.dk> Date: Sun, 4 Apr 2010 15:42:57 +0200 Subject: [PATCH 1/4] Add targets to use the Coccinelle checker Four targets are added. Each one generates a different output kind: context, patch, org, report. Every SmPL file in 'scripts/smpl' is given to the spatch frontend (located in the 'scripts' directory), and applied to the entire source ...
Apr 26, 3:20 pm 2010
Nicolas Palix
[PATCH 0/4] Add a Coccinelle front-end script
New targets are added (coccicheck-<mode>) to call the spatch front-end in the 'scripts' directory with the <mode> argument. Four modes are defined: report, patch, context, and org. 'report' mode generates a list in the following format: file:line:column-column: message 'patch' mode proposes a generic fix, when possible. 'context' mode highlights lines of interest and their context in a diff-like style. 'org' mode generates a report in the Org mode format of Emacs. Three semantic ...
Apr 26, 2:11 pm 2010
Nicolas Palix
[PATCH 1/4] Add targets to use the Coccinelle checker
Four targets are added. Each one generates a different output kind: context, patch, org, report. Every SmPL file in 'scripts/smpl' is given to the spatch frontend (located in the 'scripts' directory), and applied to the entire source tree. Signed-off-by: Nicolas Palix <npalix@diku.dk> --- MAINTAINERS | 10 ++++++++++ Makefile | 9 +++++++++ scripts/spatch.sh | 14 ++++++++++++++ 3 files changed, 33 insertions(+), 0 deletions(-) create mode 100755 ...
Apr 26, 2:11 pm 2010
Nicolas Palix
[PATCH 2/4] Add scripts/smpl/drop_kmalloc_cast.cocci
The purpose of this semantic patch is to remove useless casts, as mentioned in the Linux documentation. See Chapter 14 in Documentation/CodingStyle for more information. Signed-off-by: Nicolas Palix <npalix@diku.dk> --- scripts/smpl/drop_kmalloc_cast.cocci | 74 ++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) create mode 100644 scripts/smpl/drop_kmalloc_cast.cocci diff --git a/scripts/smpl/drop_kmalloc_cast.cocci ...
Apr 26, 2:11 pm 2010
Nicolas Palix
[PATCH 3/4] Add scripts/smpl/kzalloc-simple.cocci
This semantic patch replaces a pair of calls to kmalloc and memset by a single call to kzalloc. It only looks for simple cases to improve the confidence. Signed-off-by: Nicolas Palix <npalix@diku.dk> --- scripts/smpl/kzalloc-simple.cocci | 88 +++++++++++++++++++++++++++++++++++++ 1 files changed, 88 insertions(+), 0 deletions(-) create mode 100644 scripts/smpl/kzalloc-simple.cocci diff --git a/scripts/smpl/kzalloc-simple.cocci b/scripts/smpl/kzalloc-simple.cocci new file mode ...
Apr 26, 2:11 pm 2010
Nicolas Palix
[PATCH 4/4] Add scripts/smpl/resource_size.cocci
This semantic patch replaces explicit computations of resource size by a call to resource_size. Signed-off-by: Nicolas Palix <npalix@diku.dk> --- scripts/smpl/resource_size.cocci | 101 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 101 insertions(+), 0 deletions(-) create mode 100644 scripts/smpl/resource_size.cocci diff --git a/scripts/smpl/resource_size.cocci b/scripts/smpl/resource_size.cocci new file mode 100644 index 0000000..e5e24ac --- /dev/null +++ ...
Apr 26, 2:11 pm 2010
Joe Perches
Re: [PATCH 1/4] Add targets to use the Coccinelle checker
I like the concept and believe the kernel tree is a better repository for these scripts than an external website. you --
Apr 26, 2:37 pm 2010
Randy Dunlap Apr 26, 3:23 pm 2010
Jack Steiner
[PATCH] - New round-robin rotor for SLAB allocations
We have observed several workloads running on multi-node systems where memory is assigned unevenly across the nodes in the system. There are numerous reasons for this but one is the round-robin rotor in cpuset_mem_spread_node(). For example, a simple test that writes a multi-page file will allocate pages on nodes 0 2 4 6 ... Odd nodes are skipped. (Sometimes it allocates on odd nodes & skips even nodes). An example is shown below. The program "lfile" writes a file consisting of 10 pages. ...
Apr 26, 2:00 pm 2010
Jason Wessel
[PATCH] Correctly deal with make that has an argument wh ...
When using remake, which is based on gnumake, if you invoke an example build as shown below, the build will become silent due to the top level make file incorrectly guessing that the end user wants a silent build because an argument that contained an "s" was used. remake --no-extended-errors Fix up the top level Makefile to use filter with a list of options that mean silent with the various revisions of gnumake, instead of findstring. Signed-off-by: Jason Wessel ...
Apr 26, 1:56 pm 2010
Alberto Panizzo
[PATCH] backlight: l4f00242t03: Fix regulators handling ...
Simple swap of regulator free Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com> --- drivers/video/backlight/l4f00242t03.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index 74abd69..9e64afa 100644 --- a/drivers/video/backlight/l4f00242t03.c +++ b/drivers/video/backlight/l4f00242t03.c @@ -221,9 +221,9 @@ static int __devexit l4f00242t03_remove(struct spi_device *spi) ...
Apr 26, 1:51 pm 2010
Alan Stern
Re: [linux-pm] Invalid opcode on resume from STR on Asus ...
That could be the answer. Clearly this should be handled by the arch-specific boot/setup code. I don't know enough about it, but other people do. Alan Stern --
Apr 26, 1:34 pm 2010
Dominik Brodowski
[RFC PATCH v2] nohz/sched: disable ilb on !mc_capable()
From: Dominik Brodowski <linux@dominikbrodowski.net> Date: Thu, 8 Apr 2010 21:51:18 +0200 Subject: [PATCH] nohz/sched: disable ilb on !mc_capable() On my dual-core, !mc_capbale() CPU, the idle load balancer (ilb) is one of the main reasons ticks are not stopped: Under moderate load (~98 % idle), upt o half of the calls to tick_nohz_top_sched_tick() are aborted due to calls to select_nohz_load_balancer(1). I suspect this is caused by the following phenomenon: CPU0 CPU1 ...
Apr 26, 1:31 pm 2010
Steven Rostedt
[PATCH 00/10][RFC] tracing: Lowering the footprint of TR ...
This is an RFC patch set that also affects kprobes and perf. At the Linux Collaboration Summit, I talked with Mathieu and others about lowering the footprint of trace events. I spent all of last week trying to get the size as small as I could. Currently, each TRACE_EVENT() macro adds 1 - 5K per tracepoint. I got various results by adding a TRACE_EVENT() with the compiler, depending on config options that did not seem related. The new tracepoint I added would add between 1 and 5K, but I did ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 05/10][RFC] tracing: Move fields from event to cl ...
From: Steven Rostedt <srostedt@redhat.com> Move the defined fields from the event to the class structure. Since the fields of the event are defined by the class they belong to, it makes sense to have the class hold the information instead of the individual events. The events of the same class would just hold duplicate information. After this change the size of the kernel dropped another 8K: text data bss dec hex filename 5788186 1337252 9351592 16477030 ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 09/10][RFC] tracing: Remove duplicate id informat ...
From: Steven Rostedt <srostedt@redhat.com> Now that the trace_event structure is embedded in the ftrace_event_call structure, there is no need for the ftrace_event_call id field. The id field is the same as the trace_event type field. Removing the id and re-arranging the structure brings down the tracepoint footprint by another 5K. text data bss dec hex filename 5788186 1337252 9351592 16477030 fb6b66 vmlinux.orig 5761154 1268356 9351592 16381102 ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 10/10][RFC] tracing: Combine event filter_active ...
From: Steven Rostedt <srostedt@redhat.com> The filter_active and enable both use an int (4 bytes each) to set a single flag. We can save 4 bytes per event by combining the two into a single integer. text data bss dec hex filename 5788186 1337252 9351592 16477030 fb6b66 vmlinux.orig 5761074 1262596 9351592 16375262 f9ddde vmlinux.id 5761007 1256916 9351592 16369515 f9c76b vmlinux.flags This gives us another 5K in savings. The modification of both the enable and ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 02/10][RFC] tracing: Let tracepoints have data pa ...
From: Steven Rostedt <srostedt@redhat.com> This patch allows data to be passed to the tracepoint callbacks if the tracepoint was created to do so. If a tracepoint is defined with: DECLARE_TRACE_DATA(name, proto, args) Then a registered function can also register data to be passed to the tracepoint as such: DECLARE_TRACE_DATA(mytracepoint, TP_PROTO(int status), TP_ARGS(status)); /* In the C file */ DEFINE_TRACE(mytracepoint, TP_PROTO(int status), TP_ARGS(status)); ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 04/10][RFC] tracing: Remove per event trace registering
From: Steven Rostedt <srostedt@redhat.com> This patch removes the register functions of TRACE_EVENT() to enable and disable tracepoints. The registering of a event is now down directly in the trace_events.c file. The tracepoint_probe_register() is now called directly. The prototypes are no longer type checked, but this should not be an issue since the tracepoints are created automatically by the macros. If a prototype is incorrect in the TRACE_EVENT() macro, then other macros will catch ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 08/10][RFC] tracing: Move print functions into ev ...
From: Steven Rostedt <srostedt@redhat.com> Currently, every event has its own trace_event structure. This is fine since the structure is needed anyway. But the print function structure (trace_event_functions) is now separate. Since the output of the trace event is done by the class (with the exception of events defined by DEFINE_EVENT_PRINT), it makes sense to have the class define the print functions that all events in the class can use. This makes a bigger deal with the syscall events since ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 07/10][RFC] tracing: Allow events to share their ...
From: Steven Rostedt <srostedt@redhat.com> Multiple events may use the same method to print their data. Instead of having all events have a pointer to their print funtions, the trace_event structure now points to a trace_event_functions structure that will hold the way to print ouf the event. The event itself is now passed to the print function to let the print function know what kind of event it should print. This opens the door to consolidating the way several events print their ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 06/10][RFC] tracing: Move raw_init from events to class
From: Steven Rostedt <srostedt@redhat.com> The raw_init function pointer in the event is used to initialize various kinds of events. The type of initialization needed is usually classed to the kind of event it is. Two events with the same class will always have the same initialization function, so it makes sense to move this to the class structure. Perhaps even making a special system structure would work since the initialization is the same for all events within a system. But since ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 01/10][RFC] tracing: Create class struct for events
From: Steven Rostedt <srostedt@redhat.com> This patch creates a ftrace_event_class struct that event structs point to. This class struct will be made to hold information to modify the events. Currently the class struct only holds the events system name. This patch slightly increases the size of the text as well as decreases the data size. The overall change is still a slight increase, but this change lays the ground work of other changes to make the footprint of tracepoints smaller. With ...
Apr 26, 12:50 pm 2010
Steven Rostedt
[PATCH 03/10][RFC] tracing: Convert TRACE_EVENT() to use ...
From: Steven Rostedt <srostedt@redhat.com> Switch the TRACE_EVENT() macros to use DECLARE_TRACE_DATA(). This patch is done to prove that the DATA macros work. If any regressions were to surface, then this patch would help a git bisect to localize the area. Once again this patch increases the size of the kernel. text data bss dec hex filename 5788186 1337252 9351592 16477030 fb6b66 vmlinux.orig 5792282 1333796 9351592 16477670 ...
Apr 26, 12:50 pm 2010
Alan Stern
Re: INFO: umount blocked for more than 120 seconds
Is this repeatable? Can you do this with CONFIG_USB_DEBUG enabled? And acquire a usbmon trace at the same time (see Documentation/usb/usbmon.txt)? Alan Stern --
Apr 26, 12:36 pm 2010
Alan Stern
Re: USB gadget with drivers "on board"
I was going to say the same thing. For ease of use, I recommend using a "SCSI eject" to trigger the mode change. That way, Linux users who don't have the usb-modeswitch program installed can get the same effect by running eject. Alan Stern --
Apr 26, 12:34 pm 2010
Hollis Blanchard
hack for Lilliput 669GL-70NP/C/T 7" USB touchscreen
I've been working with a Lilliput 7" USB touchscreen (model 669GL-70NP/C/T), and discovered that while usbtouchscreen.c claims to support its USB ID, the driver didn't actually work. Here is the lsusb output: Bus 001 Device 003: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol ...
Apr 26, 11:48 am 2010
Greg KH
Re: [PATCH 00/19 V2] staging:iio: ABi changes round 1
Series looks good to me, nice job. greg k-h --
Apr 26, 2:30 pm 2010
Jonathan Cameron
[PATCH 00/19 V2] staging:iio: ABi changes round 1
Dear All, The original patch set was sent to iio-linux@vger.kernel.org back in March. Principally this updated set includes a number of minor fixes based on additional testing. One or two of these patches are outright fixes that have been picked up by Greg in the meantime. Conversely this is based on mainline as of yesterday, so does not include all of the fixes that are in Greg's for next tree. If people are in happy with these I will do a clean set suitable for direct use by Greg ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
Re: [PATCH 00/19 V2] staging:iio: ABi changes round 1
Need sleep... Can't even remember the name of the iio list. Sorry all. Rather than reposting the whole series, I'll send a copy there as well with a note to cc lkml and try and ensure anything of more general interest does get sent on. --
Apr 26, 1:10 pm 2010
Jonathan Cameron
[PATCH 01/19] staging:iio: Add new in_raw definitions fo ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/adc/adc.h | 12 ++++++++++++ drivers/staging/iio/sysfs.h | 3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/adc/adc.h b/drivers/staging/iio/adc/adc.h index d925b2c..46f0d08 100644 --- a/drivers/staging/iio/adc/adc.h +++ b/drivers/staging/iio/adc/adc.h @@ -9,5 +9,17 @@ * */ +/* Deprecated */ #define IIO_DEV_ATTR_ADC(_num, _show, _addr) \ ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 18/19] staging:iio:tsl2563 add a name attribute u ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/light/tsl2563.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c index 911c898..da3d51c 100644 --- a/drivers/staging/iio/light/tsl2563.c +++ b/drivers/staging/iio/light/tsl2563.c @@ -598,12 +598,24 @@ static DEVICE_ATTR(calib0, S_IRUGO | S_IWUSR, static DEVICE_ATTR(calib1, S_IRUGO | S_IWUSR, ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 02/19] staging:iio: Add new attrs for sampling fr ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/sysfs.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/staging/iio/sysfs.h b/drivers/staging/iio/sysfs.h index d8fe0e2..afcf5ab 100644 --- a/drivers/staging/iio/sysfs.h +++ b/drivers/staging/iio/sysfs.h @@ -144,18 +144,25 @@ struct iio_const_attr { * * May be mode dependent on some devices **/ +/* Deprecated */ #define IIO_DEV_ATTR_AVAIL_SAMP_FREQ(_show) \ ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 19/19] staging:iio:Documentation: Rewrite example ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/Documentation/iio_utils.h | 277 ++++++++++++-------- .../iio/Documentation/lis3l02dqbuffersimple.c | 237 +++++++++++------ 2 files changed, 314 insertions(+), 200 deletions(-) diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index d24006a..a4555e6 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 17/19] staging:iio:ring_sw: Fix incorrect test on ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/ring_sw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/iio/ring_sw.c b/drivers/staging/iio/ring_sw.c index 4e5134c..8d2f7cd 100644 --- a/drivers/staging/iio/ring_sw.c +++ b/drivers/staging/iio/ring_sw.c @@ -297,7 +297,7 @@ again: return -EAGAIN; memcpy(data, last_written_p_copy, ring->buf.bpd); - if (unlikely(ring->last_written_p >= last_written_p_copy)) + if ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 15/19] staging:iio:max1363 add support for 8 bit ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/adc/Kconfig | 12 ++- drivers/staging/iio/adc/max1363_core.c | 143 ++++++++++++++++++++++++++++++-- drivers/staging/iio/adc/max1363_ring.c | 23 ++++-- 3 files changed, 161 insertions(+), 17 deletions(-) diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig index afc8318..0835fbc 100644 --- a/drivers/staging/iio/adc/Kconfig +++ b/drivers/staging/iio/adc/Kconfig @@ -10,11 +10,13 @@ ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 16/19] Staging: IIO: Fix uses of spinlocks prior ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/industrialio-ring.c | 3 +++ drivers/staging/iio/ring_generic.h | 8 +++----- drivers/staging/iio/ring_sw.c | 19 +++++++++++++------ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/staging/iio/industrialio-ring.c b/drivers/staging/iio/industrialio-ring.c index a8f0086..758b425 100644 --- a/drivers/staging/iio/industrialio-ring.c +++ ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 14/19] staging:iio:max1363 add support for max116 ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/adc/Kconfig | 4 +- drivers/staging/iio/adc/max1363_core.c | 216 +++++++++++++++++++++++++++++++- 2 files changed, 218 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig index 101ea4b..afc8318 100644 --- a/drivers/staging/iio/adc/Kconfig +++ b/drivers/staging/iio/adc/Kconfig @@ -12,7 +12,9 @@ config MAX1363 Say yes here to build support for many ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 08/19] staging:iio:max1363 move to new abi.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/adc/Kconfig | 1 + drivers/staging/iio/adc/Makefile | 2 +- drivers/staging/iio/adc/max1363.h | 122 +++--- drivers/staging/iio/adc/max1363_core.c | 762 +++++++++++++++++++------------- drivers/staging/iio/adc/max1363_ring.c | 65 ++- 5 files changed, 548 insertions(+), 404 deletions(-) diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig index 3989c0c..101ea4b ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 12/19] staging:iio:tsl2563: change lux to illumin ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/light/tsl2563.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c index 1ba4aa3..911c898 100644 --- a/drivers/staging/iio/light/tsl2563.c +++ b/drivers/staging/iio/light/tsl2563.c @@ -592,7 +592,7 @@ static ssize_t tsl2563_calib1_store(struct device *dev, * once I understand what they mean */ static DEVICE_ATTR(adc0, ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 10/19] staging:iio: ABI documentation (partial)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/Documentation/sysfs-class-iio | 285 +++++++++++++++++++++ 1 files changed, 285 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/Documentation/sysfs-class-iio b/drivers/staging/iio/Documentation/sysfs-class-iio new file mode 100644 index 0000000..7238582 --- /dev/null +++ b/drivers/staging/iio/Documentation/sysfs-class-iio @@ -0,0 +1,285 ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 13/19] staging:iio: Remove naming via IDR's where ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/accel/lis3l02dq_ring.c | 2 +- drivers/staging/iio/accel/sca3000_core.c | 2 +- drivers/staging/iio/adc/max1363_ring.c | 2 +- drivers/staging/iio/industrialio-ring.c | 48 +++++++--------------------- drivers/staging/iio/ring_generic.h | 2 +- 5 files changed, 16 insertions(+), 40 deletions(-) diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 11/19] staging:iio: Directory name changes to mat ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/chrdev.h | 2 +- drivers/staging/iio/industrialio-core.c | 5 +++-- drivers/staging/iio/industrialio-ring.c | 13 +++++++++---- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/staging/iio/chrdev.h b/drivers/staging/iio/chrdev.h index f42bafb..3f96f86 100644 --- a/drivers/staging/iio/chrdev.h +++ b/drivers/staging/iio/chrdev.h @@ -94,7 +94,7 @@ struct iio_event_interface { ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 09/19] staging:iio: Documentation, update iio_uti ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/Documentation/iio_utils.h | 31 ++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index 74d3124..d24006a 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -47,7 +47,7 @@ inline char *find_ring_subelement(const char ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 07/19] staging:iio: Clean out unused IIO_SCAN_EL ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/ring_generic.h | 36 +++++++++++++++--------------------- 1 files changed, 15 insertions(+), 21 deletions(-) diff --git a/drivers/staging/iio/ring_generic.h b/drivers/staging/iio/ring_generic.h index efd385f..c649b6d 100644 --- a/drivers/staging/iio/ring_generic.h +++ b/drivers/staging/iio/ring_generic.h @@ -198,25 +198,6 @@ ssize_t iio_scan_el_store(struct device *dev, struct device_attribute *attr, **/ ssize_t ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 06/19] staging:iio: Move event attributes into th ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/industrialio-core.c | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c index c19a080..3df23be 100644 --- a/drivers/staging/iio/industrialio-core.c +++ b/drivers/staging/iio/industrialio-core.c @@ -676,16 +676,14 @@ static int iio_device_register_eventset(struct iio_dev *dev_info) ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 05/19] staging: iio: Move from class to bus
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/iio.h | 2 +- drivers/staging/iio/industrialio-core.c | 28 +++++++++++----------------- drivers/staging/iio/industrialio-ring.c | 2 +- drivers/staging/iio/industrialio-trigger.c | 2 +- drivers/staging/iio/ring_sw.c | 2 +- 5 files changed, 15 insertions(+), 21 deletions(-) diff --git a/drivers/staging/iio/iio.h b/drivers/staging/iio/iio.h index a12072a..fcee47c ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 03/19] iio:staging:accelerometers move towards th ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/accel/accel.h | 8 +- drivers/staging/iio/accel/kxsd9.c | 88 ++++++++------ drivers/staging/iio/accel/lis3l02dq.h | 4 - drivers/staging/iio/accel/lis3l02dq_core.c | 175 ++++++++++++++------------- drivers/staging/iio/accel/lis3l02dq_ring.c | 8 +- drivers/staging/iio/accel/sca3000.h | 2 + drivers/staging/iio/accel/sca3000_core.c | 172 +++++++++++++-------------- ...
Apr 26, 12:31 pm 2010
Jonathan Cameron
[PATCH 04/19] staging:iio: Support functions for scan ma ...
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> --- drivers/staging/iio/iio.h | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 41 insertions(+), 4 deletions(-) diff --git a/drivers/staging/iio/iio.h b/drivers/staging/iio/iio.h index 71dbfe1..a12072a 100644 --- a/drivers/staging/iio/iio.h +++ b/drivers/staging/iio/iio.h @@ -96,6 +96,7 @@ void iio_remove_event_from_list(struct iio_event_handler_list *el, * control method is used * @scan_count: [INTERN] the number ...
Apr 26, 12:31 pm 2010
Daniel Glöckner
Re: [patch] gpio: potential null dereference
idr_find() doesn't allocate, idr_get_new_above() does. Assuming idr_find() never fails for an id if idr_get_new_above() successfully allocated that id, I don't think we can reach that line with pdesc being NULL: - There are two gotos leading to free_sd - #2 is after a block that allocates pdesc - #1 is in an if (!gpio_flags) block - We exit early if ((desc->flags & GPIO_TRIGGER_MASK) == gpio_flags) - Therefore (desc->flags & GPIO_TRIGGER_MASK) must be != 0 to reach #1 - Trigger flags are ...
Apr 26, 4:05 pm 2010
Dan Carpenter
[patch] gpio: potential null dereference
Smatch found a potential null dereference in gpio_setup_irq(). The "pdesc" variable is allocated with idr_find() that can return NULL. If gpio_setup_irq() is called with 0 as gpio_flags and "pdesc" is null, it would OOPs here. Signed-off-by: Dan Carpenter <error27@gmail.com> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 76be229..eb0c3fe 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -416,7 +416,8 @@ static int gpio_setup_irq(struct gpio_desc ...
Apr 26, 12:25 pm 2010
Andrew Morton
Re: [patch] gpio: potential null dereference
On Tue, 27 Apr 2010 01:05:15 +0200 heh, thanks. I figured that something like that might be going on but couldn't be bothered picking through it all. That being said, the above sequence of steps is awfully (and unusually) intricate and is hence hard to preserve and could get broken at some future time. --
Apr 26, 4:14 pm 2010
Alan Stern
Re: [linux-pm] [PATCH 2/9] PM: suspend_block: Add driver ...
Or you could say that it uses ioctls to send commands and read/write to pass data. That's pretty much what you would be doing. Let's put it another way: You find it excessively strange to do init using write and to send commands via ioctl, but you don't find it strange to abuse the ioctl number code for passing the string length? The old saying about motes and beams applies here... If you insist on using ioctl for init, you should use the standard convention for passing variable-length ...
Apr 26, 12:25 pm 2010
Alan Stern
Re: [linux-pm] Invalid opcode on resume from STR on Asus ...
I had exactly the same problem (on an HP computer with an Intel chipset). As far as anyone could figure out, it is caused by a bug in the BIOS. It's not entirely clear that this is the complete answer, but nothing else turned up. See http://bugzilla.kernel.org/show_bug.cgi?id=15385 for the complete record. The best solution I could find was to boot with "idle=halt" on the command line. You might check to see if any BIOS updates are available. Alan Stern --
Apr 26, 12:17 pm 2010
Ondrej Zary
Re: [linux-pm] Invalid opcode on resume from STR on Asus ...
Thanks, it does not crash with "idle=halt" or "idle=poll". According to this: http://siyobik.info/index.php?module=x86&id=215 the MWAIT instruction can be enabled/disabled in IA32_MISC_ENABLES MSR. Kernel probably should enable it at boot and also on resume. Here's some more info: http://software.intel.com/en-us/forums/showthread.php?t=63654 -- Ondrej Zary --
Apr 26, 12:55 pm 2010
Arnaldo Carvalho de Melo
[GIT PULL] perf probe fixes
Hi Ingo, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 perf - Arnaldo Masami Hiramatsu (4): perf tools: Initialize dso->node member in dso__new perf probe: Fix to use symtab only if no debuginfo perf probe: Fix to exit callback soon after finding too many probe points perf probe: Add --max-probes option Stefan Hajnoczi (1): perf tools: Fix libdw-dev package name in error message tools/perf/Documentation/perf-probe.txt | 3 ++ ...
Apr 26, 12:06 pm 2010
Tony Lindgren
[GIT PULL] omap fixes for v2.6.34-rc5
Hi Linus, Please pull omap fixes from: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git omap-fixes-for-linus Regards, Tony The following changes since commit b91ce4d14a21fc04d165be30319541e0f9204f15: Linus Torvalds (1): Merge git://git.kernel.org/.../davem/net-2.6 are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git omap-fixes-for-linus Aaro Koskinen (2): omap: fix ...
Apr 26, 12:00 pm 2010
Ondrej Zary
Invalid opcode on resume from STR on Asus P4P800-VM
Hello, I'm trying to debug oops on resume from suspend-to-RAM on Asus P4P800-VM mainboard. It crashes with invalid opcode (see below). The kernel is 2.6.32-trunk from Debian but the same problem is present with vanilla kernels - both newer and older (but screen remains blank most of the time, only keyboard LEDs blink indicating an oops). What can cause this problem? 8.000339 invalid opcode: 0000 [#1] SMP 8.003529 last sysfs file: /sys/power/state 8.004265 Modules linked ...
Apr 26, 11:43 am 2010
SOLID FINANCE CORPOR ...
(No subject)
This is Solid Finance Corporation located in United Kingdom.We are currently offering loan for just 3% interest rate.Contact us now with Contact us now with the following information.Names,Address,Age,Country,Phone Number,Amount Needed As Loan and Duration Of Loan. --
Apr 26, 5:04 am 2010
Chase Douglas
[PATCH] ftrace: print sample std dev when function profiling
When combined with function graph tracing the ftrace function profiler also prints the average run time of functions. While this gives us some good information, it doesn't tell us anything about the variance of the run times of the function. This change prints out the s^2 sample standard deviation alongside the average. This change adds one entry to the profile record structure. This increases the memory footprint of the function profiler by 1/3 on a 32-bit system, and by 1/5 on a 64-bit system ...
Apr 26, 11:02 am 2010
Florian Tobias Schan ...
viafb suspend & resume
This little patch series tries to implement suspend and resume in a sane way that should work on all IGPs supported. It's not yet error free but should be a good start. It is based on the second version of Jon's first patch series. Thanks, Florian Tobias Schandinat Deepak Saxena (1): Minimal support for viafb suspend/resume Florian Tobias Schandinat (3): viafb: restore display on resume viafb: make suspend and resume work (on all machines?) viafb: fix ...
Apr 26, 11:09 am 2010
Florian Tobias Schan ...
[PATCH 1/4] Minimal support for viafb suspend/resume
From: Deepak Saxena <dsaxena@laptop.org> This patch adds minimal support for suspend/resume of the VIA framebuffer device. It requires a version of OFW that restores the video mode. This patch is OLPC-specific as the proper upstream solution is to move the VIA video path to using the kernel modesetting infrastructure and doing a proper save/restore in the kernel. [jc: extensive changes for 2.6.34 merge] Signed-off-by: Deepak Saxena <dsaxena@laptop.org> --- drivers/video/via/viafbdev.c | ...
Apr 26, 11:09 am 2010
Florian Tobias Schan ...
[PATCH 2/4] viafb: restore display on resume
viafb: restore display on resume This patch makes viafb restore the display on resume by calling viafb_set_par. Resumeing has still its issues: - will probably freeze most machines (for me on VX800 reliable on the second resume) - under some configurations the screen appears on the wrong output device (reason unknown) Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> --- drivers/video/via/viafbdev.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff ...
Apr 26, 11:09 am 2010
Florian Tobias Schan ...
[PATCH 4/4] viafb: fix hardware acceleration for suspend ...
viafb: fix hardware acceleration for suspend & resume This patch splits the acceleration initialization in two parts: The first is only called during probe and is used to allocate resources. The second part is also called on resume to reinitalize the 2D engine. This should fix all acceleration issues after resume most notable an "invisible" cursor and as we do nothing special it is reasonable to assume that it works on all supported IGPs. Signed-off-by: Florian Tobias Schandinat ...
Apr 26, 11:09 am 2010
Florian Tobias Schan ...
[PATCH 3/4] viafb: make suspend and resume work (on all ...
viafb: make suspend and resume work (on all machines?) This patch removes the dangerous suspend and resume code that was developed for VX855 only. After this the framebuffer is expected to cause no longer serious (freezing) issues on any machines. However the hardware acceleration is broken now so only doing resume with unaccelerated framebuffers is save. This did not work previously as the 2D engine is not mapped if the framebuffer is not accelerated. The acceleration issue will be addressed ...
Apr 26, 11:09 am 2010
Glauber Costa
[PATCH 0/6] pvclock fixes
Hi, This is the last series I've sent, with comments from you merged. The first 5 patches are the same, only with the suggested fixes. I am leaving documentation out, since the basics won't change, and we're still discussing the details. Patch 6 is new, and is the guest side of the skipping updates avi asked for. I haven't yet done any HV work on this (specially because I am not convinced exactly where it is safe to do). Let me know what you think. Thanks Glauber Costa (6): ...
Apr 26, 10:46 am 2010
Glauber Costa
[PATCH 2/6] Add a global synchronization point for pvclock
In recent stress tests, it was found that pvclock-based systems could seriously warp in smp systems. Using ingo's time-warp-test.c, I could trigger a scenario as bad as 1.5mi warps a minute in some systems. (to be fair, it wasn't that bad in most of them). Investigating further, I found out that such warps were caused by the very offset-based calculation pvclock is based on. This happens even on some machines that report constant_tsc in its tsc flags, specially on multi-socket ones. Two ...
Apr 26, 10:46 am 2010
Glauber Costa
[PATCH 1/6] Enable pvclock flags in vcpu_time_info structure
This patch removes one padding byte and transform it into a flags field. New versions of guests using pvclock will query these flags upon each read. Flags, however, will only be interpreted when the guest decides to. It uses the pvclock_valid_flags function to signal that a specific set of flags should be taken into consideration. Which flags are valid are usually devised via HV negotiation. Signed-off-by: Glauber Costa <glommer@redhat.com> CC: Jeremy Fitzhardinge <jeremy@goop.org> --- ...
Apr 26, 10:46 am 2010
Glauber Costa
[PATCH 6/6] don't compute pvclock adjustments if we trus ...
If the HV told us we can fully trust the TSC, skip any correction Signed-off-by: Glauber Costa <glommer@redhat.com> --- arch/x86/include/asm/kvm_para.h | 5 +++++ arch/x86/include/asm/pvclock-abi.h | 1 + arch/x86/kernel/kvmclock.c | 3 +++ arch/x86/kernel/pvclock.c | 4 ++++ 4 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index f019f8c..615ebb1 100644 --- ...
Apr 26, 10:46 am 2010
Glauber Costa
[PATCH 5/6] Try using new kvm clock msrs
We now added a new set of clock-related msrs in replacement of the old ones. In theory, we could just try to use them and get a return value indicating they do not exist, due to our use of kvm_write_msr_save. However, kvm clock registration happens very early, and if we ever try to write to a non-existant MSR, we raise a lethal #GP, since our idt handlers are not in place yet. So this patch tests for a cpuid feature exported by the host to decide which set of msrs are ...
Apr 26, 10:46 am 2010
Glauber Costa
[PATCH 4/6] export new cpuid KVM_CAP
Since we're changing the msrs kvmclock uses, we have to communicate that to the guest, through cpuid. We can add a new KVM_CAP to the hypervisor, and then patch userspace to recognize it. And if we ever add a new cpuid bit in the future, we have to do that again, which create some complexity and delay in feature adoption. Instead, what I'm proposing in this patch is a new capability, called KVM_CAP_X86_CPUID_FEATURE_LIST, that returns the current feature list currently supported by the ...
Apr 26, 10:46 am 2010
Glauber Costa
[PATCH 3/6] change msr numbers for kvmclock
Avi pointed out a while ago that those MSRs falls into the pentium PMU range. So the idea here is to add new ones, and after a while, deprecate the old ones. Signed-off-by: Glauber Costa <glommer@redhat.com> --- arch/x86/include/asm/kvm_para.h | 4 ++++ arch/x86/kvm/x86.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index ffae142..9734808 100644 --- ...
Apr 26, 10:46 am 2010
Jeremy Fitzhardinge
Re: [PATCH 1/6] Enable pvclock flags in vcpu_time_info s ...
Is this necessary? Why not just make the pvclock driver maintain a local flag set, and have the HV backend call into it to update it. Why does it need to be part of the pvclock structure? --
Apr 26, 11:11 am 2010
Toralf =?iso-8859-1? ...
should the resoltion of a closed lid of a docked ThinkPa ...
Hello, there's a different behaviour between 2.6.33.3 and 2.6.34-rc5 observed at a ThinkPad T400 with intel graphic GM45 . If it is docked and the lid is closed (1440x900) and an external DVI monitor (1650x1080) is connected at the docking station - the dmesg of 2.6.33.3 gives: Console: switching to colour frame buffer device 210x65 whereas 2.6.34 gives: Console: switching to colour frame buffer device 180x56 Furthermore X differs in the fact, that 2.6.33.3 sets the external monitor to ...
Apr 26, 10:06 am 2010
Rik van Riel
[PATCH] mmap: check ->vm_ops before dereferencing
Check whether the VMA has a vm_ops before calling close, just like we check vm_ops before calling open a few dozen lines higher up in the function. Signed-off-by: Rik van Riel <riel@redhat.com> Reported-by: Dan Carpenter <error27@gmail.com> diff --git a/mm/mmap.c b/mm/mmap.c index f90ea92..456ec6f 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1977,7 +1977,8 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma, return 0; /* Clean everything up if vma_adjust ...
Apr 26, 9:33 am 2010
Andrew Morton
Re: [PATCH] KEYS: The request_key() syscall should link ...
On Mon, 26 Apr 2010 16:44:41 +0100 I don't think I understand that description. Are you saying that the patch switches things from the first example output into the second case? Is the fix needed in -stable? --
Apr 26, 4:09 pm 2010
David Howells
[PATCH] KEYS: The request_key() syscall should link an e ...
The request_key() system call and request_key_and_link() should make a link from an existing key to the destination keyring (if supplied), not just from a new key to the destination keyring. This can be tested by: ring=`keyctl newring fred @s` keyctl request2 user debug:a a keyctl request user debug:a $ring keyctl list $ring If it says: keyring is empty then it didn't work. If it shows something like: 1 key in keyring: 1070462727: --alswrv 0 0 user: ...
Apr 26, 8:44 am 2010
David Howells
[PATCH] KEYS: The request_key() syscall should link an e ...
The request_key() system call and request_key_and_link() should make a link from an existing key to the destination keyring (if supplied), not just from a new key to the destination keyring. This can be tested by: ring=`keyctl newring fred @s` keyctl request2 user debug:a a keyctl request user debug:a $ring keyctl list $ring If it says: keyring is empty then it didn't work. If it shows something like: 1 key in keyring: 1070462727: --alswrv 0 0 user: ...
Apr 26, 7:59 am 2010
Greg KH
Linux 2.6.33.3
I'm announcing the release of the 2.6.33.3 kernel. All users of the 2.6.33 kernel series should upgrade. Many thanks to maximilian attems for all of his work in submitting patches for this release, it is much appreciated. The updated 2.6.33.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.33.y.git and can be browsed at the normal kernel.org git web browser: ...
Apr 26, 7:58 am 2010
Greg KH
Re: Linux 2.6.33.3
diff --git a/Documentation/i2c/busses/i2c-i801 b/Documentation/i2c/busses/i2c-i801 index 81c0c59..e1bb5b2 100644 --- a/Documentation/i2c/busses/i2c-i801 +++ b/Documentation/i2c/busses/i2c-i801 @@ -15,7 +15,8 @@ Supported adapters: * Intel 82801I (ICH9) * Intel EP80579 (Tolapai) * Intel 82801JI (ICH10) - * Intel PCH + * Intel 3400/5 Series (PCH) + * Intel Cougar Point (PCH) Datasheets: Publicly available at the Intel website Authors: diff --git a/Makefile ...
Apr 26, 7:58 am 2010
Uwaysi Bin Kareem
Re: Linux 2.6.33.3
Congratulations. I experienced one minor issue when compiling it, and that was that update-initramfs didn't not work, when specifying a local version, leading it to a non-boot on my minimal Lucid install. However, glxgears performance is now on par with my older BFS patched kernel, and shows less jitter! This is with a commandline install of Lucid Lynx (ubuntu) + x + openbox wm (which is the one I found with the least jitter). Framerate is 83300 +- 100 with +- 10 being more common. ...
Apr 26, 10:31 am 2010
Greg KH
Linux 2.6.32.12
I'm announcing the release of the 2.6.32.12 kernel. All users of the 2.6.32 kernel series should upgrade. Many thanks to maximilian attems for all of his hard work in digging out patches from the various vendor kernel trees for this release. It is much appreciated. The updated 2.6.32.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.32.y.git and can be browsed at the normal kernel.org git web browser: ...
Apr 26, 7:57 am 2010
Greg KH
Re: Linux 2.6.32.12
diff --git a/Documentation/i2c/busses/i2c-i801 b/Documentation/i2c/busses/i2c-i801 index 81c0c59..e1bb5b2 100644 --- a/Documentation/i2c/busses/i2c-i801 +++ b/Documentation/i2c/busses/i2c-i801 @@ -15,7 +15,8 @@ Supported adapters: * Intel 82801I (ICH9) * Intel EP80579 (Tolapai) * Intel 82801JI (ICH10) - * Intel PCH + * Intel 3400/5 Series (PCH) + * Intel Cougar Point (PCH) Datasheets: Publicly available at the Intel website Authors: diff --git ...
Apr 26, 7:57 am 2010
David Howells
[PATCH] Remove redundant check for CONFIG_MMU
From: Christoph Egger <siccegge@cs.fau.de> The checks for CONFIG_MMU at this location are duplicated as all the code is located inside a #ifndef CONFIG_MMU block. So the first conditional block will always be included while the second never will. Signed-off-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de> Signed-off-by: David Howells <dhowells@redhat.com> --- fs/binfmt_elf_fdpic.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git ...
Apr 26, 7:56 am 2010
Dmitry Eremin-Solenikov
[PATCH] ieee802154: Fix oops during ieee802154_sock_ioctl
From: Stefan Schmidt <stefan@datenfreihafen.org> Trying to run izlisten (from lowpan-tools tests) on a device that does not exists I got the oops below. The problem is that we are using get_dev_by_name without checking if we really get a device back. We don't in this case and writing to dev->type generates this oops. [Oops code removed by Dmitry Eremin-Solenikov] If possible this patch should be applied to the current -rc fixes branch. Signed-off-by: Stefan Schmidt ...
Apr 26, 7:46 am 2010
David Miller
Re: [PATCH] ieee802154: Fix oops during ieee802154_sock_ioctl
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Applied, and queued up for -stable too, thanks guys. --
Apr 26, 11:20 am 2010
Stefan Richter
Re: [PATCH 2/2] firewire: ohci: add MSI support
OK, an online encyclopedia informs me that MSI or MSI-X is required by PCIe. -- Stefan Richter -=====-==-=- -=-- ==-=- http://arcgraph.de/sr/ --
Apr 26, 7:55 am 2010
Stefan Richter
Re: [PATCH 2/2] firewire: ohci: add MSI support
(adding Cc: lkml, quoting in full) I got a FW643 card a few days ago and can test that one. Also, I have a JMicron JMB381 native PCIe 1394a controller. The latter is a less ideal test specimen since it is buggy already without MSI (soon stops to operate if one dares to mix isochronous and asynchronous I/O; sometimes also if there is a bus reset at an inconvenient time). From lspci: 04:00.0 FireWire (IEEE 1394): Agere Systems FW643 PCI Express1394b Controller (PHY/Link) (rev 07) ...
Apr 26, 7:44 am 2010
Clemens Ladisch
Re: [PATCH 2/2] firewire: ohci: add MSI support
Problematic MSI implementations usually deliver no interrupt or forget to disable the INTx interrupt (so that the interrupt never gets The "MSI: Enable-" means that it's supported but not enabled at the That requirement doesn't help us if there is an old PCI chip behind a PCIe/PCI bridge (even if only virtually inside one chip, such as the TI Interrupt messages should be passed through like just any other messages (such as memory or I/O reads or writes), so it shouldn't be able ...
Apr 26, 8:56 am 2010
Valdis.Kletnieks
Re: [PATCH] perf: Fix libdw-dev package name in error message
elfutils-dev is wrong, elfutils-devel is right, at least for Fedora. % repoquery -ql elfutils-devel.x86_64 /usr/include/dwarf.h /usr/include/elfutils /usr/include/elfutils/elf-knowledge.h /usr/include/elfutils/libasm.h /usr/include/elfutils/libdw.h /usr/include/elfutils/libdwfl.h /usr/include/elfutils/libebl.h /usr/include/elfutils/version.h /usr/lib64/libasm.so /usr/lib64/libdw.so /usr/lib64/libebl.a
Apr 26, 9:32 am 2010
Stefan Hajnoczi
[PATCH] perf: Fix libdw-dev package name in error message
The headers required for DWARF support are provided by the libdw-dev package in Debian-based distros. This patch corrects the elfutils-dev package name to libdw-dev in the Makefile error message when libdw.h is not found. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> --- I don't think any distro has an elfutils-dev package but the name was chosen because of the usual RedHat/Debian -devel/-dev convention. tools/perf/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 ...
Apr 26, 7:27 am 2010
Arnaldo Carvalho de Melo Apr 26, 9:13 am 2010
Liam Girdwood
Re: [PATCH] regulator: Allow regulator-regulator supplie ...
Applied. Thanks Liam -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk --
Apr 26, 7:50 am 2010
Mark Brown
[PATCH] regulator: Allow regulator-regulator supplies to ...
When one regulator supplies another allow the relationship to be specified using names rather than struct regulators, in a similar manner to that allowed for consumer supplies. This allows static configuration at compile time, reducing the need for dynamic init code. Also change the references to LINE supply to be system supply since line is sometimes used for actual supplies and therefore potentially confusing. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> --- ...
Apr 26, 7:18 am 2010
Christoph Egger
[PATCH] Missmatch between source and Kconfig for ACPI && !PM
Hi all! As part of the VAMOS[0] research project at the University of Erlangen we are looking at multiple integrity errors in linux' configuration system. There's a check for CONFIG_PM inside a block that is only compiled if CONFIG_ACPI is set. As CONFIG_ACPI depends on CONFIG_PM the check is currently redundant, the Code always active and it's else branch always dead. The attached patch takes the naive solution and only makes it clearer how this source is handled currently. However if ...
Apr 26, 7:12 am 2010
Christoph Egger
[PATCH] Doublecheck for CONFIG_64
Hi all! As part of the VAMOS[0] research project at the University of Erlangen we are looking at multiple integrity errors in linux' configuration system. The following patch removes a unnecessary conditional. Inside a block making sure CONFIG_64 isn't set the option is checked again and based on that some parts are (not) included. As the outer check already makes sure CONFIG_64 isn't set here both checks are unnecessary so this patch removes them. Please keep me informed of this patch ...
Apr 26, 7:06 am 2010
Phillip Lougher
[GIT PULL] Squashfs bug fixes for 2.6.34-rc6
Hi Linus, Please pull the following Squashfs bug fixes. The locking bug was added in the 2.6.34 merge window and it is rather nasty as it breaks liveCDs. The other bugs are much less important but have all come to light since the merge window. Thanks Phillip -------------------------------- The following changes since commit 0d0fb0f9c5fddef4a10242fe3337f00f528a3099: Linus Torvalds (1): Linux 2.6.34-rc4 are available in the git repository at: ...
Apr 26, 6:57 am 2010
Christoph Egger
[PATCH] Doublecheck for CONFIG_MMU
Hi all! As part of the VAMOS[0] research project at the University of Erlangen we are looking at multiple integrity errors in linux' configuration system. The following patch removes a unnecessary conditional. Inside a block making sure CONFIG_MMU isn't set the option is checked again and based on that some parts are (not) included. As the outer check already makes sure CONFIG_MMU isn't set here both checks are unnecessary so this patch removes them. Please keep me informed of this ...
Apr 26, 6:44 am 2010
Xose Vazquez Perez
deadline ALWAYS default for dasd devices(s390) ?
hi, why is it FORCED ? bypassing a GLOBAL setting and also the kernel command line !!! drivers/s390/block/dasd.c /* * Allocate and initialize request queue and default I/O scheduler. */ static int dasd_alloc_queue(struct dasd_block *block) { int rc; block->request_queue = blk_init_queue(do_dasd_request, &block->request_queue_lock); if (block->request_queue == NULL) return -ENOMEM; block->request_queue->queuedata = ...
Apr 26, 5:34 am 2010
Ted Baker
Re: [Fwd: Re: RFC for a new Scheduling policy/class in t ...
I have not seen any more e-mail on this. How is it going? Is there any chance of rolling in some corrections for the SCHED_SPORADIC treatment? In particular, could we have a DO_NOT_RUN priority, that is guaranteed to prevent a task from running at all? For more detail, see http://ww2.cs.fsu.edu/~stanovic/papers/rtas10.pdf . Ted --
Apr 26, 4:56 am 2010
Joerg Roedel
Re: [Fwd: Re: RFC for a new Scheduling policy/class in t ...
Sorry for asking a maybe stupid question, but what is this good for and what is the benefit over SIGSTOP? Joerg --
Apr 26, 11:29 am 2010
Doug Niehaus
Re: [Fwd: Re: RFC for a new Scheduling policy/class in t ...
One limitation of SIGSTOP is that the last time I instrumented it in detail, which admittedly was several years ago, every process you send the message to has to run long enough to receive the message. We were in the the position of sending it to fairly large groups of processes, partly through laziness in code structure, but when I looked at the time lines I was appalled to see a large number of context switches for *very* short execution intervals. All were associated with receiving the ...
Apr 26, 11:37 am 2010
Michał Nazarewicz
Re: USB gadget with drivers "on board"
Ideally, I would like to use two configurations on its own just like g_ether that is one configuration with RNDIS and some other functionality and another with CDC ECM and some other functionality. It seems however that such gadgets are not properly detected by Windows as composite devices and thus require a driver (I imagined a single INF should be enough but now I'm not even sure of that) and so I tried adding another configuration with just the mass storage function and this seems to be ...
Apr 26, 7:42 am 2010
Daniel Mack
Re: USB gadget with drivers "on board"
Why are you using two configurations on this device instead of one configuration with two interfaces? Interfaces are not allowed to share endpoints within one configuration, so they can be used simultaniously. Daniel --
Apr 26, 7:16 am 2010
Michał Nazarewicz
USB gadget with drivers "on board"
Hello everyone, I need to create an USB gadget with drivers for Windows included "on board". In particular, when the gadget is connected to Windows host it is detected as mass storage and mounted drive include the drivers. However, when the drivers are installed, it is detected as some other device. Now, it seems that a simple composite device with two configurations is enough -- the first containing mass storage and the second other functions. My tests show that Windows manages to set ...
Apr 26, 1:29 am 2010
Daniel Mack
Re: USB gadget with drivers "on board"
If you do that, the configuration which is chosen eventually purely Maybe Windows just selects the interface it has a driver for already? On the other hand, that would be giving a hint of some sort of intelligence, which I can't believe either as their USB stack is totally screwed. Not a single detail in its implementation seems to make any Yeah, great technology. Even if you install the driver (which you have to do even for USB sticks), you'll be prompted for the same action again once you ...
Apr 26, 7:57 am 2010
Michał Nazarewicz
Re: USB gadget with drivers "on board"
Granted, but since RDNIS needs an INF anyway there should be little or no problems in specifying which configuration we are interested in. And Linux No. Windows has a driver for composite gadget which acts as a bus for other USB drivers connected to interfaces. However, in order for Windows to treat a gadget as composite several rules need to be adhered to. Those include specific class, subclass and protocol as well as requirement that the gadget can have only one configuration. The ...
Apr 26, 8:45 am 2010
Josua Dietze
Re: USB gadget with drivers "on board"
These are the notorious mode switching devices. In Windows, they obviously install a special storage driver doing one specific action on each following plugging. This action - some storage or control command - will "flip" the device, making it "disconnect" and returning as a completely different composite device. Storage commands used for this procedure range from "SCSI rezero" over "passthrough" to "SCSI eject", or involve vendor specific stuff. Josua Dietze --
Apr 26, 10:37 am 2010
Zachary R
[PATCH] Staging: comedi: fixed coding style issues in dr ...
--- drivers/staging/comedi/drivers.c | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c index 44d6b62..3c92be1 100644 --- a/drivers/staging/comedi/drivers.c +++ b/drivers/staging/comedi/drivers.c @@ -102,7 +102,7 @@ static void __comedi_device_detach(struct comedi_device *dev) if (dev->driver) dev->driver->detach(dev); else - printk("BUG: dev->driver=NULL in ...
Apr 26, 5:02 am 2010
Mike Rapoport
[PATCH v3] ds2782_battery: add support for ds2786 batter ...
From: Yulia Vilensky <vilensky@compulab.co.il> v2 changes: * add ds278x_platform_data * address Anton comments v3 changes: * use ds278x_get_temp for both ds2782 and ds2786 * update math as per Ryan comments Signed-off-by: Yulia Vilensky <vilensky@compulab.co.il> Signed-off-by: Mike Rapoport <mike@compulab.co.il> --- drivers/power/Kconfig | 4 +- drivers/power/ds2782_battery.c | 184 +++++++++++++++++++++++++++++----------- include/linux/ds2782_battery.h | 8 ++ 3 ...
Apr 26, 4:05 am 2010
Anton Vorontsov
Re: [PATCH v3] ds2782_battery: add support for ds2786 ba ...
Thanks, applied to battery-2.6 with the following change (we shouldn't compare pointers and integers): diff --git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c index 6b3cee0..c665e80 100644 --- a/drivers/power/ds2782_battery.c +++ b/drivers/power/ds2782_battery.c @@ -325,7 +325,7 @@ static int ds278x_battery_probe(struct i2c_client *client, * ds2786 should have the sense resistor value set * in the platform data */ - if (id->driver_data == 1 && pdata == 0) ...
Apr 26, 11:22 am 2010
Mike Rapoport Apr 26, 12:39 pm 2010
James Morris
Re: [PATCH] CRED: Holding a spinlock does not imply the ...
Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next -- James Morris <jmorris@namei.org> --
Apr 26, 3:50 pm 2010
David Howells
[PATCH] CRED: Holding a spinlock does not imply the hold ...
From: Serge E. Hallyn <serue@us.ibm.com> Change the credentials documentation to make it clear that the RCU read lock must be explicitly held when accessing credentials pointers in some other task than current. Holding a spinlock does not implicitly hold the RCU read lock. Signed-off-by: Serge Hallyn <serue@us.ibm.com> Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: David Howells <dhowells@redhat.com> --- Documentation/credentials.txt | 14 +++++--------- 1 ...
Apr 26, 3:58 am 2010
Tomohiro Kusumi
[PATCH] raid/multipath error handling for faulty drives
Hi, I've been looking for ways to minimize the impact of faulty drive in a multipath and raid array environment. Our major problem is that it takes long time before upper layer (dm-mpath, dm-raid or maybe other middleware kernel module by users) can handle timed out i/o because of huge recovery operation by scsi driver's error handler. Let me explain some details. The scsi error recovery can be regarded as something that essentialy conflicts with multipath or raid array environment, because ...
Apr 26, 3:58 am 2010
B.Vinai Kumar
zero copy in usbip send and recieve path
Hi All, I'am trying to implement zero copy in USBIP while sending / receiving usbip packets. I started it with send path. The device which I used is mass storage. I'am using linux kernel 2.6.15. After virtualization, once the file copy starts from device to pc each usbip packet carries payload of 64K. I'am allocating this 64K buffer through __get_free_pages() (with order 4) and assigning the buffer pointer to urb. After completion of URB i'am trying to send this buffer page by page by ...
Apr 26, 3:57 am 2010
Greg KH
Re: zero copy in usbip send and recieve path
2.6.15 is _very_ old, and not supported by anyone. You might try this After you are done with the memory, you need to explicitly free it, why Are you sure? The bandwith issue should be on the usb device side, not the network from what I have seen. What type of device are you testing this with? thanks, greg k-h --
Apr 26, 11:11 am 2010
fabien.chouteau
[PATCH RE-RESEND] Mass storage gadget: Handle eject request
From: Fabien Chouteau <fabien.chouteau@barco.com> This patch adds handling of the "Start/Stop Unit" SCSI request to simulate media ejection. Signed-off-by: Fabien Chouteau <fabien.chouteau@barco.com> --- drivers/usb/gadget/f_mass_storage.c | 48 ++++++++++++++++++++++++++++++++-- 1 files changed, 45 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index f4911c0..c3e5dbb 100644 --- ...
Apr 26, 3:34 am 2010
David Howells
[PATCH] From: Serge E. Hallyn <serue@us.ibm.com>
CRED: Holding a spinlock does not imply the holding of RCU read lock Change the credentials documentation to make it clear that the RCU read lock must be explicitly held when accessing credentials pointers in some other task than current. Holding a spinlock does not implicitly hold the RCU read lock. Signed-off-by: Serge Hallyn &lt;serue@us.ibm.com&gt; Reviewed-by: Paul E. McKenney &lt;paulmck@linux.vnet.ibm.com&gt; Signed-off-by: David Howells &lt;dhowells@redhat.com&gt; --- Documentation/credentials.txt ...
Apr 26, 2:58 am 2010
David Howells
Re: [PATCH] From: Serge E. Hallyn <serue@us.ibm.com>
Let me try sending this patcha again... David --
Apr 26, 3:59 am 2010
David Miller
[PATCH] drm/radeon: Fix sparc regression in r300_scratch()
Commit b4fe945405e477cded91772b4fec854705443dd5 (&quot;drm/radeon: Fix memory allocation failures in the preKMS command stream checking.&quot;) added a regression in that it completely tossed the get_unaligned() done by r300_scratch() which we added in commit 958a6f8ccb1964adc3eec84cf401c5baeb4fbca0 (&quot;drm: radeon: Fix unaligned access in r300_scratch().&quot;). Put it back. Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt; diff --git a/drivers/gpu/drm/radeon/r300_cmdbuf.c ...
Apr 26, 2:55 am 2010
Matt Turner
Re: [PATCH] drm/radeon: Fix sparc regression in r300_scratch()
Should help Alpha as well. Acked-by: Matt Turner &lt;mattst88@gmail.com&gt; --
Apr 26, 7:36 am 2010
Sven Eckelmann
Range of 24/32 bit for atomic_t since 2.6.3
Hi, currently arch/mn10300/include/asm/atomic.h and include/asm-generic/atomic.h warns right before atomic_read/atomic_set/atomic_add_return/ atomic_sub_return that atomic_t only guarantees a useful range of 24 bits. Documentation/atomic_ops.txt informs about the historical reason why this was true for 32-bit Sparc - something that was changes in linux 2.6.3 using a hash array with spinlocks [1]. Is it save to assume that atomic_t provides us the full range of 32 bit after 2.6.3 and ...
Apr 26, 2:31 am 2010
Jan Beulich
intel_i830_chipset_flush(): local clflush() vs. global ...
Eric, Brice, what is the point of issuing wbinvd() on all CPUs here if clflush isn't available, but using clflush() (if available) only on the current CPU? Thanks, Jan --
Apr 26, 2:26 am 2010
michael.hennerich
[PATCH] iio_trigger_find_by_name: Skip trailing newline ...
Skip trailing newline if available. Signed-off-by: Michael Hennerich &lt;Michael.Hennerich@analog.com&gt; Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt; drivers/staging/iio/industrialio-trigger.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/industrialio-trigger.c b/drivers/staging/iio/industrialio-trigger.c index 693ebc4..5f76fc1 100644 --- a/drivers/staging/iio/industrialio-trigger.c +++ b/drivers/staging/iio/industrialio-trigger.c @@ -155,6 ...
Apr 26, 1:49 am 2010
michael.hennerich
[PATCH] iio-trig-gpio:Remove redundant gpio_request
Remove redundant gpio_request: The GPIO used as trigger IRQ, is also requested as gpio, but actually never read. Use platform resource facility to get IRQs numbers and flags. Make sure this driver can be used with any system IRQ, not necessarily limited to GPIO-IRQs. Use dev_err(dev...) and friends instead of printk(KERN_ERR...) Signed-off-by: Michael Hennerich &lt;Michael.Hennerich@analog.com&gt; Acked-by: Jonathan Cameron &lt;jic23@cam.ac.uk&gt; drivers/staging/iio/trigger/iio-trig-gpio.c | 127 ...
Apr 26, 1:36 am 2010
Paul Mundt
[GIT PULL] sh updates for 2.6.34-rc6
Please pull from: master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6.git sh/for-2.6.34 Which contains: Guennadi Liakhovetski (2): SH: fix TS field shift calculation for DMA drivers SH: fix error paths in DMA driver Magnus Damm (2): sh: Fix maximum number of SCIF ports in R2D defconfigs sh: sh7751 pci controller io port fix arch/sh/configs/rts7751r2d1_defconfig | 2 +- arch/sh/configs/rts7751r2dplus_defconfig | 2 +- ...
Apr 26, 12:48 am 2010
Oza Oza
NMI callback &amp; register handling infrastructure in linux ...
Hi, This is my first post to the group, please excuse me, If I unknowingly miss to follow writing ethics. Proposal/Need: I was working on providing accurate process usage support, and writing a kernel module, I configured cpu-core-unhalted-event and configured LVT (local vector table) with NMI (non-maskable interrupt), and surprisingly Oprofile stopped working, Then I realized, that set_nmi_call back just overwrites nmi_callback function pointer. My proposal/idea/thinking is; have a ...
Apr 26, 12:04 am 2010
Justin P. Mattock
[PATCH]trivial:Fix some comments.
Fix some comments. Signed-off-by: Justin P. Mattock &lt;justinmattock@gmail.com&gt; --- drivers/gpu/drm/nouveau/nv50_display.c | 2 +- drivers/s390/block/dasd_eckd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 649db4c..452ed31 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -239,7 +239,7 @@ nv50_display_init(struct ...
Apr 25, 10:47 pm 2010
Justin P. Mattock
[PATCH] security:whitespace coding style fixes(part2)
Here is the rest of the security branch with minor whitespace fixes with using (L)indent. Signed-off-by: Justin P. Mattock &lt;justinmattock@gmail.com&gt; --- security/keys/process_keys.c | 12 ++++++------ security/keys/request_key.c | 4 ++-- security/keys/request_key_auth.c | 5 ++--- security/lsm_audit.c | 1 - security/security.c | 6 +++--- security/selinux/hooks.c | 4 ++-- security/selinux/selinuxfs.c | 10 +++++----- ...
Apr 25, 10:03 pm 2010
Barry Song
[PATCH] iio: fix typo in userspace example codes and document
Signed-off-by: Barry Song &lt;21cnbao@gmail.com&gt; --- .../iio/Documentation/lis3l02dqbuffersimple.c | 2 +- drivers/staging/iio/Documentation/userspace.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c b/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c index 2b5cfc5..811dd14 100644 --- a/drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c +++ ...
Apr 25, 9:19 pm 2010
Jonathan Cameron
Re: [PATCH] iio: fix typo in userspace example codes and ...
Thanks Barry. Ironically I rewrote this example yesterday to match the new abi (though I hadn't noticed the documentation error!). Still worth merging this as it may be a little while before everyone is happy with that patch set. Will hopefully post a new revision of that later today. --
Apr 26, 1:46 am 2010
Alan Stern
Re: [linux-pm] [PATCH 5/9] PM: suspend_block: Add debugfs file
Are you sure about that? At the moment, Arve may feel that you're Alan Stern --
Apr 25, 6:39 pm 2010
Paul E. McKenney
Re: 2.6.34-rc5-git6 (plus all patches) -- new INFO: susp ...
This appears to be another symptom of the bug you located in your earlier testing, so either Eric Biederman sends a patch or I improvise. And thank you again for all your testing, Miles!!! Thanx, Paul --
Apr 26, 9:10 am 2010
Jiri Kosina
Re: [PATCH] hid: fix picolcd's version parsing
Applied, thanks Bruno. -- Jiri Kosina SUSE Labs, Novell Inc. --
Apr 26, 2:44 am 2010
Maciej Rutecki
Re: 2.6.34-rc5+: oops in IPv6
I created a Bugzilla entry at https://bugzilla.kernel.org/show_bug.cgi?id=15857 for your bug report, please add your address to the CC list in there, thanks! -- Maciej Rutecki http://www.maciek.unixy.pl --
Apr 26, 11:58 am 2010
David Miller
Re: 2.6.34-rc5+: oops in IPv6
From: Maciej Rutecki &lt;maciej.rutecki@gmail.com&gt; It's fixed in Linus's tree like an hour after he reported this. --
Apr 26, 12:02 pm 2010
Joe Perches
Re: [PATCH] Staging: comedi: fixed coding style issues i ...
Using line continuations like this is incorrect. There are many uses like this in your proposed patch. It adds the initial whitespace on the continued line to the string constant. Except for macro definitions, linux doesn't generally use line continuations. There's no attempt to keep line numbers consistent across multiple versions. cheers, Joe --
Apr 25, 10:01 pm 2010
Oliver Neukum
Re: [PATCH] USB: sisusbvga: Remove the BKL from open
Have you checked the fb layer doesn't need it? Regards Oliver --
Apr 26, 5:06 am 2010
Alessio Igor Bogani
Re: [PATCH] USB: sisusbvga: Remove the BKL from open
Dear Mr. Neukum, The _open and _release functions are already serialized with mutex in fb layer. So that mutex could be removed but in my opinion this job should be done in a separate patch (like I have done some time ago for nvidiafb driver). Now I would want suggest to remove BKL here only. Ciao, Alessio --
Apr 26, 5:30 am 2010
Arnd Bergmann
Re: [PATCH] USB: sisusbvga: Remove the BKL from open
What about the BKL in the sisusb_ioctl()? It seems to follow the same logic, so I would think that you can simply remove the BKL from the module entirely, rather than only half of it. Arnd --
Apr 26, 6:15 am 2010
Alessio Igor Bogani
Re: [PATCH] USB: sisusbvga: Remove the BKL from open
Dear Mr. Bergmann, It is what effectively I'm trying to do! The first part of this work is already present in USB subsystem maintainer tree (aka greg) at: http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/usb/usb-sisusb... Ciao, Alessio --
Apr 26, 6:30 am 2010
Arnd Bergmann
Re: [PATCH] USB: sisusbvga: Remove the BKL from open
Ok, looks good then. I just wouldn't bother splitting the work into two patches if you want to do this for more drivers. Arnd --
Apr 26, 6:50 am 2010
Alessio Igor Bogani
Re: [PATCH] USB: sisusbvga: Remove the BKL from open
Dear Mr. Bergmann, You are right. Simply I made the above-mentioned patch when BKL pushdown not yet reach _open function. :-) Ciao, Alessio --
Apr 26, 7:09 am 2010
Avi Kivity
Re: [PATCH v2 6/10] KVM MMU: don't write-protect if have ...
I meant, we can write protect all pages, then use one IPI to drop the Of course, this is more than enough to chew on. Just suggesting an idea... -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. --
Apr 25, 11:07 pm 2010
Xiao Guangrong
Re: [PATCH v2 6/10] KVM MMU: don't write-protect if have ...
IPI is needed when rmap_write_protect() changes mappings form writable to read-only, so while we sync all gfn's unsync page, only one IPI is needed. And, another problem is we call ramp_write_protect()/flush-local-tlb many times when sync gfn's unsync page, the same problem is in mmu_sync_children() function, could you allow me to improve it after this patchset? :-) --
Apr 25, 8:58 pm 2010
Xiao Guangrong
Re: [PATCH v2 9/10] KVM MMU: separate invlpg code form k ...
Ah, i forgot those, will fix in v3, thanks for you point out. --
Apr 25, 8:13 pm 2010
Xiao Guangrong Apr 25, 8:11 pm 2010
Xiao Guangrong
Re: [PATCH v2 1/10] KVM MMU: fix for calculating gpa in ...
So, the offset is q &lt;&lt; (PAGE_SHIFT - (PT32_LEVEL_BITS - PT64_LEVEL_BITS) * level - 2)? As my origin thinking, for level = 2, one gfn has 4 shadow pages, so every shadow page occupies PAGE_SIZE / 4, and sizeof(pt_element_t) is 4 in 32-bit guest, so the offset is: q * (PAGE_SIZE/4/4) = q &lt;&lt; (PAGE_SHIFT - 2 -2) Obviously, my code is really ugly than your :-) --
Apr 25, 8:10 pm 2010
Avi Kivity
Re: [PATCH v2 1/10] KVM MMU: fix for calculating gpa in ...
Ugh, what I meant was shift = PAGE_SHIFT - (PT_LEVEL_BITS - PT64_LEVEL_BITS) * level; offset = q &lt;&lt; shift so, pte_gpa = (sp-&gt;gfn &lt;&lt; PAGE_SHIFT) + offset + (spte - sp-&gt;spt) * sizeof(pt_element_t) No magic numbers please. Note it could work without the 'if (PTTYPE == 32)'. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. --
Apr 26, 12:39 am 2010
Jiri Kosina
Re: HID: expand hid-topseed driver to support BTC &quot;Empre ...
The separate config option for this is just overhead, I think. I'd suggest just to update the Kconfig help text for CONFIG_TOPSPEED to mention that it supports also this particular device. Thanks, -- Jiri Kosina SUSE Labs, Novell Inc. --
Apr 26, 2:48 am 2010
Dave Chinner
Re: Direct aio_write/truncate question
The filesystem is supposed to serialise truncate vs write races. i.e. the truncate will occur either before the write is executed or after it has completed, not while it is running. Cheers, Dave. -- Dave Chinner david@fromorbit.com --
Apr 26, 4:55 pm 2010
Erwan Velu
Re: [PATCH] e100: expose broadcast_disabled as a module option
Agreed that will be a better implementation. Changes of IFF_BROADCAST could play with this &quot;broadcast_disabled&quot; configuration switch to increase the cpu efficiency. I'm not a kernel expert and I don't really figure how the changes of the IFF_BROADCAST should be forwarded to the interfaces and how it can be manipulated. I saw that ifconfig have a '-broadcast' option but looks like none of my drivers are compatible with that. Does any one you could help me understanding what should be the good ...
Apr 26, 1:49 am 2010
Erwan Velu
Re: [PATCH] e100: expose broadcast_disabled as a module option
2010/4/26 Erwan Velu &lt;erwanaliasr1@gmail.com&gt;: Looks like the current code isn't taking care of a possible changing of IFF_BROADCAST. I can find some code in net/core/dev.c to handle MULTICAST or PROMISC but nothing for BROADCAST. Looks like I need then to add a .ndo_change_rx_flags function to manage this changes. Does someone confirm this is the way to go ? --
Apr 26, 7:45 am 2010
Suresh Jayaraman
Re: cifs: Filesystem unmounts automatically after some time
I remember seeing a similar bug which was due to buggy version of dhcpcd and I could never manage to reproduce this with dhclient. Could you try reproducing the problem with a static IP or using dhclient? Thanks, -- Suresh Jayaraman --
Apr 26, 3:50 am 2010
Alan Cox
Re: parport_pc.c and parport_serial.c need improvements
I think the superIO code is more 'evolved' than 'designed'. It's something people nailed bits onto in passing rather than structured elegantly. Do what you think is right IMHO. Alan --
Apr 26, 3:10 pm 2010
Miklos Szeredi
Re: [PATCH] procfs: fix tid fdinfo
Yes, apparently &quot;lsof&quot; doesn't care about contents of /proc/$PID/task. Well, tasks with separate file descriptor tables are rare, POSIX threads share their descriptor tables. But it would be nice if this were fixed. Thanks, Miklos --
Apr 26, 3:26 am 2010
Jerome Marchand
Re: [PATCH] procfs: fix tid fdinfo
AFAIK there is still nobody using it, but lsof should use it, and /proc/&lt;pid&gt;/task/&lt;tid&gt;/fd/ too. I haven't checked the code, but as it is now, it doesn't spot files open by a thread which does share its father's --
Apr 26, 12:49 am 2010
Chouteau Fabien
Re: [PATCH RESEND 2/2] Mass storage gadget: Handle eject ...
You're right, I can do the same thing for both ejection. I'm going to resend the patch without the &quot;eject&quot; sysfs entry. -- Fabien Chouteau EPITA GISTR 2010 --
Apr 26, 2:48 am 2010
Carlos Chinea
RE: [RFC PATCH 0/5] HSI framework and drivers
Yep you got it right. Sébastien and I have been also in contact about the new API and he has already given some feedback on an initial version of the framework. Br, Carlos --
Apr 26, 2:32 am 2010
Daniel Walker
Re: Q: sched_clock() vs. clocksource, how to implement c ...
Are you sure about this? I'm pretty sure I've seen Ingo say multiple times that sched_clock can wrap, and can be unstable. For instance sched_clock is (was?) directly connected to the TSC on x86 .. If it really can't wrap there must bunches of architectures that would need to be fixed up. Daniel --
Apr 26, 4:48 pm 2010
Johannes Stezenbach
Re: Q: sched_clock() vs. clocksource, how to implement c ...
I found the following discussion of the sched_clock() implementation trade-offs very informative: http://lkml.org/lkml/2010/4/15/299 It mentions clocksource_calc_mult_shift() which was added in 2.6.33, however I had some difficulties understanding the meaning of the minsec parameter, especially since all existing callers use a value of 4. But when using minsec = 365*24*60*60 (1 year) it results in the shift value of 8. It seems clocksource_cyc2ns() is used in ...
Apr 26, 6:18 am 2010
Daniel Mack
Re: [PATCHv8 2.6.34-rc5 4/5] mxc: Add generic USB HW ini ...
On Thu, Apr 22, 2010 at 11:51:16PM -0500, Dinh.Nguyen@freescale.com wrote: I think there's still one concern left for the move of this function block, right? Dinh, is this actually necessary? Could you try calling mxc_initialize_usb_hw() from the location where mxc_set_usbcontrol() was used to be called? Or is there anything I overlook? This might look like nit-picking to you, but as Sascha explained, there is a certain risk of breaking functionality for existing boards, and if we can avoid ...
Apr 26, 2:02 pm 2010
Minchan Kim
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, Apr 26, 2010 at 6:49 PM, KAMEZAWA Hiroyuki Yes. Andrea pointed it out. I didn't followed the thread whole yet but It seems Mel and Andrea want to restore anon_vma's atomicity like old than one by one healing. -- Kind regards, Minchan Kim --
Apr 26, 3:07 am 2010
Minchan Kim
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, Apr 26, 2010 at 11:53 AM, KAMEZAWA Hiroyuki Yes. It was due to my wrong explanation. Sorry for that, Kame. -- Kind regards, Minchan Kim --
Apr 25, 9:31 pm 2010
KAMEZAWA Hiroyuki
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, 26 Apr 2010 08:49:01 +0900 Ok, reproduced. Here is status in my test + printk(). * A race doesn't seem to happen if swap=off. I need to swapon to cause the bug. * Before unmap, mapcount=1, SwapCache for anonymous memory. old page's flag was SWAPCACHE, Active, Uptodate, Referenced, Locked. * After remap, mapcount=0, return code=0. new page's flag after remap was SwapCache, Active, Dirty, Uptodate, Referenced. (Hmm, dirty bit can be added by ...
Apr 26, 2:28 am 2010
KAMEZAWA Hiroyuki
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, 26 Apr 2010 08:49:01 +0900 Forget this. Sorry for noise. == This is a memo for myself. *) at fork, when copying a vma for file, vma_prio_tree_add() is called before copying page tables. There are several patterns. Assume tasks named as t1,t2,t3,t4,t5 and their own vmas v1,v2,v3,v4,v5 which map a range in address spaces. (a) t1 forks t2. v1 is in prio_tree, v2 for t2 will be pointed by -&gt;head pointer. \ v1 --(head)---&gt; v2 / \ ? ? ...
Apr 25, 7:53 pm 2010
Minchan Kim
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
Hi, Mel. Actually, I can't understand why we need to hold lock of vma-&gt;anon_vma-&gt;lock? I think seqcounter is enough. I looked at your scenarion. More exactly, your scenario about unmap is following as. 1. VMA A-Lower - VMA A-Upper (include hole) 2. VMA A-Lower - VMA hole - VMA A-Upper(except hole) 3. VMA A-Lower - hole is remove at last - VMA A-Upper. I mean VMA A-upper is already linkeded at vma list through __insert_vm_struct atomically(by seqcounter). So rmap can find proper ...
Apr 25, 9:00 pm 2010
Minchan Kim
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, Apr 26, 2010 at 8:49 AM, KAMEZAWA Hiroyuki I thought it's possible. Mel's test would take a long time to trigger BUG. So I think we could solve one of problems. Remained one is about fork race, I think. Mel. Could you retry your test with below Kame's patch? http://lkml.org/lkml/2010/4/23/58 -- Kind regards, Minchan Kim --
Apr 25, 9:06 pm 2010
Minchan Kim
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, Apr 26, 2010 at 6:28 PM, KAMEZAWA Hiroyuki FYI, Do you have a swapon/off bomb test? When I saw your mail, I feel it might be culprit. http://lkml.org/lkml/2010/4/22/762. It is just guessing. I don't have a time to look into, now. -- Kind regards, Minchan Kim --
Apr 26, 2:48 am 2010
KAMEZAWA Hiroyuki
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
On Mon, 26 Apr 2010 18:48:42 +0900 Hmm. BTW. == static int expand_downwards(struct vm_area_struct *vma, unsigned long address) { .... /* Somebody else might have raced and expanded it already */ if (address &lt; vma-&gt;vm_start) { unsigned long size, grow; size = vma-&gt;vm_end - address; grow = (vma-&gt;vm_start - address) &gt;&gt; PAGE_SHIFT; error = acct_stack_growth(vma, size, ...
Apr 26, 2:49 am 2010
Mel Gorman
Re: [BUGFIX][mm][PATCH] fix migration race in rmap_walk
I haven't tried a swapon/off test but that patch is certainly important and closes an important race. A fork-heavy test will routinely hit the problem and applying the patch makes it very difficult to reproduce the problem. I've added it to my stack while I continue trying to pin down when the VMA-changes make a difference. I'm relooking at the seq counter approach. It appears to very rare the logic is actually triggered so reproducing is a problem. I'm still not convinced that just locking ...
Apr 26, 4:36 am 2010
tytso
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
That's reasonable (I think the whole /proc is evil crusade is really dumb) --- but at the same time, remember how frustrating it is for the poor embedded developer who doesn't know who to ignore and what &quot;rules&quot; to ignore. They were told months ago /proc is evil, and so they moved it to /debugfs, precisely because it was billed as &quot;it has no rules&quot;. For all I know some helpful community developer may have even suggested that to them. It is extremely frustrating to embedded developers when ...
Apr 25, 5:45 pm 2010
Randy Dunlap
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
Agreed, we could/should do much better. Agreed, I'm sure that it is frustrating to the contributors. Agreed about Linus taking it either way. :) -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** --
Apr 25, 5:50 pm 2010
tytso
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
Well, I'll note right now we have a somewhat annoying gap. If you need to export multiple values such that they are consistent with each other, what's the choice? /proc, where some (but not all) kernel developers will say, &quot;eeeeeeviilllll&quot;. /sys is explicitly for single value per files only. And then we have /debugfs, where some pendants are kvetching about whether something is &quot;really&quot; debug information. One of the things that we sometimes have to tell people who are trying to navigate ...
Apr 25, 5:00 pm 2010
Randy Dunlap
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
Yeah, I think that it should be in procfs. It's not strictly closed to new files. (IOW, I'm sure that we can find a bunch of recent files I don't think that we want to make debugfs required to get decent tuning info/stats from the kernel. That's all. -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** --
Apr 25, 5:23 pm 2010
Brian Swetland
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
Our most common use of this information is to capture it in bugreports (along with process lists, system/radio logs, memory stats, etc) as one additional piece of data used to diagnose a misbehaving device (most commonly to answer the &quot;why does the battery seem to be draining too quickly?&quot; question). Brian --
Apr 25, 11:24 pm 2010
Randy Dunlap
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
OK, thanks for the info. Sounds good (i.e., it is debug info). -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** --
Apr 26, 6:28 am 2010
Oleg Nesterov
Re: [PATCH 7/9] PM: Add suspend blocking work.
It can be queued on the same or different workqueue on another CPU, right before run_workqueue() does unblock. But I guess this doesn't matter. You already discussed this all with Tejun while I was sleeping ;) And I agree very much, the new plan looks much better imho. Oleg. --
Apr 26, 7:06 am 2010
Lee Schermerhorn
Re: mmotm 2010-04-22-16-38 uploaded
Thanks, Valdis. I encountered this error and thought I fixed it before submitting the series. Apparently I submitted a stale patch. Attached patch fixes the problem. Lee ======================================== Fix to numa-introduce-numa_mem_id-effective-local-memory-node-id.patch in mmotm 100422-1638 Add missing parenthesis to !NUMA stub cpu_to_mem() definition Signed-off-by: Lee Schermerhorn &lt;lee.schermerhorn@hp.com&gt; include/asm-generic/topology.h | 2 +- 1 file ...
Apr 26, 2:41 pm 2010
Vivek Goyal
Re: [PATCH] blk-cgroup: config options re-arrangement
Hi Jens, Do you have any concerns with this patch? If not, can you please include it. Thanks --
Apr 26, 10:18 am 2010
Jens Axboe
Re: [PATCH] blk-cgroup: config options re-arrangement
It's queued up, thanks. -- Jens Axboe --
Apr 26, 10:27 am 2010
Wolfram Sang
Re: [PATCH V2] i2c-algo-pca: fix coding style issues in ...
Geez, that will teach me to review whitespace-fixes while working somewhere else :( Thanks for the catch! -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Apr 26, 12:41 am 2010
Jiri Kosina
Re: [049/197] x86, amd: Get multi-node CPU info from Nod ...
This patch is causing kernel panic on boot on Magny Cours CPU here (cpu family 16, model 9, stepping 1). Please see screenshot from the paniced kernel on http://www.jikos.cz/jikos/junk/screenshot.jpg (sorry for bad quality of this screenshot, it was captured only from the IPMI/HTTP console so far, I will try to grab something better tomorrow) Also this screenshot probably doesn't show the complete picture -- see the &quot;end trace&quot; marker on the very first line. I will try to have ...
Apr 26, 10:10 am 2010
Yong Zhang
Re: [PATCH] lockdep: reduce stack_trace usage
lock-classes: 564 [max: 8191] direct dependencies: 2626 [max: 16384] indirect dependencies: 5951 all direct dependencies: 48226 dependency chains: 2576 [max: 32768] dependency chain hlocks: 6740 [max: 163840] in-hardirq chains: 18 in-softirq chains: 163 in-process chains: 2395 stack-trace entries: 63076 [max: ...
Apr 25, 11:24 pm 2010
Li Zefan
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in c ...
blkiocg_add_blkio_group() also calls cgroup_path(), which also needs to be called within rcu_read_lock, so I think Vivek's patch is better than the one you posted in another mail thread. --
Apr 25, 6:33 pm 2010
Paul E. McKenney
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in c ...
My apologies, Vivek! I lost track of your patch. I have now replaced my patch with yours. Thanx, Paul --
Apr 25, 7:06 pm 2010
Vivek Goyal
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in c ...
Thanks Paul. I sent this patch to Jens also, thinking he will apply to his tree. Looks like he has not applied it yet though. Jens, is it ok if this patch gets merged through paul's tree or should it go through blk tree? Thanks Vivek --
Apr 26, 6:39 am 2010
Paul E. McKenney
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in c ...
I am happy for it to go either way, so just let me know! Thanx, Paul --
Apr 26, 7:45 am 2010
Vivek Goyal
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in c ...
I am also happy to go either way. I guess you can go ahead with pulling it in. Thanks Vivek --
Apr 26, 1:42 pm 2010
Paul E. McKenney Apr 26, 1:47 pm 2010
Vivek Goyal
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in c ...
Thanks Paul. Where can I get your tree to clone from? I can test the changes. I can't find it on kernel.org. Thanks Vivek --
Apr 26, 1:52 pm 2010
Avi Kivity
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
Why do you say this? Servers have them and AFAIK networking uses them. There are other uses of the API in the code, but I don't know how much Copies take a small percentage of cpu because a lot of care goes into avoiding them, or placing them near the place where the copy is used. They certainly show up in high speed networking. A page-sized copy is small, but many of them will be expensive. -- error compiling committee.c: too many arguments to function --
Apr 26, 6:48 am 2010
Dan Magenheimer
RE: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
They don't seem to have gained much ground in the FIVE YEARS since the patch was first posted to Linux, have they? Maybe it's because memory-to-memory copy using a CPU is so fast (especially for page-ish quantities of data) and is a small percentage of CPU utilization these days? --
Apr 26, 5:45 am 2010
Roland Dreier
Re: [PATCH 3rd_time] scsi: fix operator precedence warning
&gt; - *tcp_source_port_num = (uint16_t) mbox_sts[6] &gt;&gt; 16; &gt; + *tcp_source_port_num = (uint16_t) (mbox_sts[6] &gt;&gt; 16); I wonder why we need that cast at all? The fact that tcp_source_port_num is a uint16_t* should cause the value to get truncated properly anyway. But I agree that this patch is a minimal fix for a real bug. -- Roland Dreier &lt;rolandd@cisco.com&gt; || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html --
Apr 26, 9:56 am 2010
Avi Kivity
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
Ok. I agree it is silly to go through the block layer and end up Incremental development is fine, especially for ramzswap where the APIs are all internal. I'm more worried about external interfaces, these stick around a lot longer and if not done right they're a pain forever. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. --
Apr 25, 11:06 pm 2010
Avi Kivity
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
Of course, you have to use a batching API, like virtio or Xen's rings, dma engines are present on commodity hardware now: http://en.wikipedia.org/wiki/I/O_Acceleration_Technology I don't know if consumer machines have them, but servers certainly do. modprobe ioatdma. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. --
Apr 25, 11:01 pm 2010
Dan Magenheimer
RE: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
Well if you are saying that your primary objection to the frontswap synchronous API is that it is exposed to modules via some EXPORT_SYMBOLs, we can certainly fix that, at least unless/until there are other pseudo-RAM devices that can use it. Would that resolve your concerns? --
Apr 26, 5:50 am 2010
Avi Kivity
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
By external interfaces I mean the guest/hypervisor interface. EXPORT_SYMBOL is an internal interface as far as I'm concerned. Now, the frontswap interface is also an internal interface, but it's close to the external one. I'd feel much better if it was asynchronous. -- error compiling committee.c: too many arguments to function --
Apr 26, 6:43 am 2010
Nitin Gupta
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
No, we cannot issue discard bio at this place since swap_lock spinlock is held. Thanks, Nitin --
Apr 26, 6:47 am 2010
Robert Wimmer
Re: [Bugme-new] [Bug 15709] New: swapper page allocation ...
I've uploaded the stack trace. It was generated directly after mounting. Here are the stacks: After mounting: https://bugzilla.kernel.org/attachment.cgi?id=26153 After the soft lockup: https://bugzilla.kernel.org/attachment.cgi?id=26154 The dmesg output of the soft lockup: The server has the following settings: rw,nohide,insecure,async,no_subtree_check,no_root_squash Thanks! Robert --
Apr 26, 3:18 pm 2010
Trond Myklebust
Re: [Bugme-new] [Bug 15709] New: swapper page allocation ...
That last trace is just saying that the NFSv4 reboot recovery code is crashing (which is hardly surprising if the memory management is hosed). The initial bisection makes little sense to me: it is basically blaming a page allocation problem on a change to the NFSv4 mount code. The only way I can see that possibly happen is if you are hitting a stack overflow. So 2 questions: - Are you able to reproduce the bug when using NFSv3 instead? - Have you tried running with stack tracing ...
Apr 26, 5:15 am 2010
Robert Wimmer
Re: [Bugme-new] [Bug 15709] New: swapper page allocation ...
I've tried with NFSv3 now. With v4 the error normally occur within 5 minutes. The VM is now running for one hour and no soft lockup so far. So I would say it can't be reproduced with Can you explain this a little bit more please? CONFIG_STACKTRACE=y was already enabled. I've now ...
Apr 26, 1:25 pm 2010
Trond Myklebust
Re: [Bugme-new] [Bug 15709] New: swapper page allocation ...
Sure. In addition to what you did above, please do mount -t debugfs none /sys/kernel/debug and then cat the contents of the pseudofile at /sys/kernel/debug/tracing/stack_trace Please do this more or less immediately after you've finished mounting the NFSv4 client. Does your server have the 'crossmnt' or 'nohide' flags set, or does it use the 'refer' export option anywhere? If so, then we might have to test further, since those may trigger the NFSv4 submount feature. Cheers ...
Apr 26, 2:04 pm 2010
Trond Myklebust
Re: [Bugme-new] [Bug 15709] New: swapper page allocation ...
That second trace is more than 5.5K deep, more than half of which is socket overhead :-(((. The process stack does not appear to have overflowed, however that trace doesn't include any IRQ stack overhead. OK... So what happens if we get rid of half of that trace by forcing asynchronous tasks such as this to run entirely in rpciod instead of first trying to run in the process context? See the attachment...
Apr 26, 4:28 pm 2010
David Howells
Re: [PATCH 1/1][BUG][TAKE2] KEYRINGS: find_keyring_by_na ...
The spacing is all over the place, I'm afraid. Can you send it again? For example, the vertical bars in the right-hand column don't align: | [spin_lock(&amp;key_serial_lock)] |[mutex_lock(&amp;key_user_keyr..mutex)] | | || | atomic_read() == 0 || | |{ rb_ease(&amp;key-&gt;serial_node,) } || | | || | [spin_unlock(&amp;key_serial_lock)] |find_keyring_by_name() | | ...
Apr 26, 3:57 am 2010
Toshiyuki Okajima
Re: [PATCH 1/1][BUG][TAKE2] KEYRINGS: find_keyring_by_na ...
Hi, David. # Sorry, I sent a mail which included local codes (Japanese) on Saturday. OK. I understand. So, your patch looks fine to me. --- Once find_keyring_by_name() returns -ENOKEY, the new user creates a new key. So, both the deleting key and the new key may exist. Therefore at next find_keyring_by_name() call, we should find the new key and ignore the deleting key. --- Today, I tested your patch and any problem didn't happen. So, I rewrote your patch. Here you are: --- From: ...
Apr 26, 7:22 am 2010
Toshiyuki Okajima
Re: [PATCH 1/1][BUG][TAKE2] KEYRINGS: find_keyring_by_na ...
Hi, David. Sorry, I missed your last mail. On Mon, 26 Apr 2010 11:57:36 +0100 So, I applied your commets and rewrite your patch. Here you are: --- From: Toshiyuki Okajima &lt;toshi.okajima@jp.fujitsu.com&gt; Subject: [PATCH] KEYS: find_keyring_by_name() can gain access to a freed keyring find_keyring_by_name() can gain access to a keyring that has had its reference count reduced to zero, and is thus ready to be freed. This then allows the dead keyring to be brought back into use whilst it ...
Apr 26, 7:42 am 2010
David Howells
Re: [PATCH 1/1][BUG][TAKE2] KEYRINGS: find_keyring_by_na ...
Thanks. Note that the vertical lines in the right-hand column of your timeline don't seem to line up correctly. Are you editing it in an editor with a proportional font? David --
Apr 26, 7:47 am 2010
Anton Vorontsov
Re: [PATCH] ds2782_battery: add support for ds2786 batte ...
On Mon, Apr 26, 2010 at 08:44:36AM +1200, Ryan Mallon wrote: Please don't, this is an unneeded churn. I'd won't bother with renaming Kconfig symbol as well (and btw, that renaming will break oldconfig, so I strongly suggest not to do it). So, your current approch of changing the description and help text is OK. Thanks, -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2 --
Apr 26, 3:09 am 2010
Andrew Morton
Re: swapping when there's a free memory
On Sun, 25 Apr 2010 09:13:49 +0200 Yeah, could be. I wonder which slab/slub/slob implementation you're using, and what page sizes it uses for dentries, inodes, etc. Can you --
Apr 26, 3:33 pm 2010
Andrew Morton
Re: swapping when there's a free memory
On Thu, 22 Apr 2010 02:55:58 +0200 (CEST) You had the wrong address for linux-mm. Perhaps that explains the lack That's nuts - we shouldn't have entered page reclaim at all with 20% of memory on the freelist. --
Apr 26, 3:31 pm 2010
Vivek Goyal
Re: [PATCH] blkio: Fix another BUG_ON() crash due to cfq ...
Hi Jens, Do you have any concerns with this patch? If not, can you please include it. Thanks --
Apr 26, 10:18 am 2010
Jens Axboe
Re: [PATCH] blkio: Fix another BUG_ON() crash due to cfq ...
No it's fine, I have added it. Thanks! -- Jens Axboe --
Apr 26, 10:25 am 2010
Serge E. Hallyn
Re: [PATCH 03/14] xattr: define vfs_getxattr_alloc and v ...
(Heh, *thought* I had a hole to point to, but nope, looks good) Acked-by: Serge Hallyn &lt;serue@us.ibm.com&gt; thanks, --
Apr 26, 11:50 am 2010
Serge E. Hallyn
Re: [PATCH 04/14] evm: re-release
Acked-by: Serge Hallyn &lt;serue@us.ibm.com&gt; thanks, -serge --
Apr 26, 2:03 pm 2010
Arnaldo Carvalho de Melo
Re: [PATCH -tip 1/4] [BUGFIX] perf tools: Initialize dso ...
Trying to understand how this would be a problem, as: static inline void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) { next-&gt;prev = new; new-&gt;next = next; new-&gt;prev = prev; prev-&gt;next = new; } This is not a list head, just a node. Looking at other messages where you described the problem to try to understand why this would help. - Arnaldo --
Apr 26, 7:01 am 2010
Masami Hiramatsu Apr 26, 12:10 pm 2010
Arnaldo Carvalho de Melo
Re: [PATCH -tip 2/4] perf probe: Fix to use symtab only ...
I applied the patch, just replaced &quot;more precise information&quot; with &quot;more information&quot;. - Arnaldo --
Apr 26, 12:08 pm 2010
Arnaldo Carvalho de Melo
Re: [PATCH -tip 2/4] perf probe: Fix to use symtab only ...
&quot;more precise&quot;? Wouldn't it be &quot;more expressive&quot;, i.e. with more information (parameter list with types, return type, location of parameters, etc), because what is common to both have the same value, --
Apr 26, 5:48 am 2010
Masami Hiramatsu
Re: [PATCH -tip 2/4] perf probe: Fix to use symtab only ...
Indeed. debuginfo has just more information than symtab, but symtab certainly provides precise information for symbol-address. Thank you, -- Masami Hiramatsu e-mail: mhiramat@redhat.com --
Apr 26, 11:59 am 2010
Mike Travis
[Patch 1/1] init: Provide a kernel start parameter to in ...
Subject: [Patch 1/1] init: Provide a kernel start parameter to increase pid_max v3 From: Hedi Berriche &lt;hedi@sgi.com&gt; On a system with a substantial number of processors, the early default pid_max of 32k will not be enough. A system with 1664 CPU's, there are 25163 processes started before the login prompt. It's estimated that with 2048 CPU's we will pass the 32k limit. With 4096, we'll reach that limit very early during the boot cycle, and processes would stall waiting for an available ...
Apr 26, 12:48 pm 2010
Greg KH
Re: [Patch 1/1] init: Provide a kernel start parameter t ...
Your subject is now incorrect, based on the patch. You should also adjust the body of the changelog to reflect the code change. thanks, greg k-h --
Apr 26, 1:46 pm 2010
Rik van Riel
Re: [PATCH 04/14] mm,migration: Allow the migration of P ...
The locking for the anon_vma_chain-&gt;same_vma list is essentially the same as what was used before in mmap and anon_vma_prepare. Either the mmap_sem is held for write, or the mmap_sem is held for reading and the page_table_lock is held. What exactly is the problem that migration is seeing? -- All rights reversed --
Apr 26, 2:54 pm 2010
Mel Gorman
Re: [PATCH 04/14] mm,migration: Allow the migration of P ...
There are two problems. Migration isn't holding the mmap_sem for write, for read or the pagetable lock. It locks the page, unmaps it, puts a migration PTE in place that looks like a swap entry, copies it and remaps it under the pagetable lock. At no point does it hold the mmap_sem, but it needs to be sure it finds all the migration pte it created. Because there are multiple anon_vma's, the locking is tricky and unclear. I have one patch that locks the anon_vmas as it finds them but is ...
Apr 26, 3:11 pm 2010
Andrea Arcangeli
Re: [PATCH 04/14] mm,migration: Allow the migration of P ...
split_huge_page has the exact same requirements, except it is more strict and it will stop zap_page_range and count that the same number of pmds it marked as splitting are found again later. Also note migration has the same &quot;ordering&quot; requirements for anon_vma_link during fork, new vmas have to be appended at the end or migration will choke (not going into the details of why, but I can if you want). This should be safe in new anon-vma code as I already pointed out this requirement to Rik ...
Apr 26, 3:26 pm 2010
Guenter Roeck
Re: [PATCH v3] x86: Do not write into VGA memory space i ...
This would be another possibility. However, since the serial console was not explicitly selected, it would possibly not be initialized. My understanding is that Peter had a problem with that. One can argue that it would still be better to select the serial console in that case, even though it might not be initialized. Actually, most likely it is (if it exists), since the system must presumably have some means to communicate with the world. I am pretty much open to either option, if that ...
Apr 26, 7:05 am 2010
H. Peter Anvin
Re: [PATCH v3] x86: Do not write into VGA memory space i ...
Yes, I really don't want to issue bytes to a serial port that isn't known to be initialized; it could take a *very* long time even if the port is actually present, and if the port *isn't* present it could hang the kernel. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. --
Apr 26, 7:52 am 2010
Pekka Enberg
Re: [PATCH v3] x86: Do not write into VGA memory space i ...
Wouldn't it be better to switch to, say, serial console here to avoid --
Apr 26, 2:36 am 2010
Pekka Enberg
Re: [PATCH v3] x86: Do not write into VGA memory space i ...
On Mon, Apr 26, 2010 at 5:05 PM, Guenter Roeck Peter? --
Apr 26, 7:35 am 2010
Bastien ROUCARIES
Re: [PATCH v3] x86: Do not write into VGA memory space i ...
On Tue, Apr 20, 2010 at 6:16 PM, Guenter Roeck Instead to this ugly if why not creating a null early_console (write And assign null console as the last console as a fallback ? Regards Bastien --
Apr 26, 8:43 am 2010
Guenter Roeck
Re: [PATCH v3] x86: Do not write into VGA memory space i ...
Sounds good to me. Peter, would that get your approval ? Guenter --
Apr 26, 9:11 am 2010
Tejun Heo
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
Hello, My wild speculation is that previously the cpu_slub structures of two neighboring threads ended up on the same cacheline by accident thanks to the back to back allocation. W/ the percpu allocator, this no longer would happen as the allocator groups percpu data together per-cpu. Thanks. -- tejun --
Apr 26, 3:02 am 2010
Zhang, Yanmin
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
Mostly, the regression exists on Nehalem machines. I suspect it's related to A quick testing doesn't show any help. I did a new testing. After the machine boots, I hot remove 8 hyper-threading cpu which means last 8 are just cores. The regression between 2.6.33 and 2.6.34-rc becomes small. My opinion is we needn't revert the patch, but still keep an eye on it when testing other new RC kernel releases. One reason is volanoMark and netperf have no such regression. Is it ok? Yanmin --
Apr 25, 11:59 pm 2010
Pekka Enberg
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
Hi Yanmin, On Mon, Apr 26, 2010 at 9:59 AM, Zhang, Yanmin OK, so does anyone know why hyper-threading would change things for We need to get this fixed. In my experience, it's pretty common that slab regressions pop up only in one or few benchmarks. The problem is likely to pop up in some real-world workload where it's even more difficult to track down because basic CPU profiles don't pin-point the problem. Do we have some Intel CPU expert hanging around here that could enlighten me ...
Apr 26, 12:22 am 2010
Pekka Enberg
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
Hi, On Mon, Apr 26, 2010 at 9:59 AM, Zhang, Yanmin Yanmin, do we see a lot of remote frees for your hackbench run? IIRC, it's the &quot;deactivate_remote_frees&quot; stat when CONFIG_SLAB_STATS is enabled. Pekka --
Apr 26, 3:09 am 2010
Tejun Heo
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
I'm not familiar with the details or scales here so please take whatever I say with a grain of salt. For hyperthreading configuration I think operations don't have to be remote to be affected. If the data for cpu0 and cpu1 were on the same cache line, and cpu0 and cpu1 are occupying the same physical core thus sharing all the resources it would benefit from the sharing whether any operation was remote or not as it saves the physical processor one cache line. Thanks. -- tejun --
Apr 26, 3:53 am 2010
Sergey Senozhatsky
Re: [Bug #15704] [r8169] WARNING: at net/sched/sch_generic.c
Hello, .34-rc5-git7 kernel: [12887.906682] pktgen 2.72: Packet Generator for packet performance testing. kernel: [12938.998730] ------------[ cut here ]------------ kernel: [12938.998741] WARNING: at net/sched/sch_generic.c:256 dev_watchdog+0xc1/0x129() kernel: [12938.998745] Hardware name: F3JC kernel: [12938.998748] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out kernel: [12938.998751] Modules linked in: pktgen usb_storage ipv6 snd_hwdep snd_hda_codec_si3054 ...
Apr 26, 5:51 am 2010
Pekka J Enberg
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
Even if the cacheline is dirtied like in the struct kmem_cache_cpu case? If that's the case, don't we want the per-CPU allocator to support back to back allocation for cores that are in the same package? Btw, I focused on remote frees initially before I understood what you actually meant and scetched the following untested patch to take advantage of the fact that struct kmem_cache_cpu doesn't fill a whole cache line. It tries amortize remote free costs by &quot;queuing&quot; objects. It would be ...
Apr 26, 7:17 am 2010
Tejun Heo
Re: [Bug #15713] hackbench regression due to commit 9dfc ...
Hello, Pekka. If my hypothesis is the case, I don't think dirtying or not would matter. It's about two cpus sharing a cache line which usually is a bad idea but in this case happens to be a good idea because the two I think it's probably gonna be an over-engineering effort. W/ percpu allocator the rest of the cacheline would likely be occupied by another percpu item for the cpu, so it's not really wasted. It's just used differently. It would be good if we have a way to better ...
Apr 26, 7:33 am 2010
Rafael J. Wysocki Apr 26, 12:24 pm 2010
Dave Chinner
Re: [PATCH 3/4] writeback: pay attention to wbc-&gt;nr_to_w ...
Yes, but that does not require a negative value to get right. None of the code relies on negative nr_to_write values to do anything correctly, and all the termination checks are for wbc-&gt;nr_to-write &lt;= 0. And the tracing shows it behaves correctly when wbc-&gt;nr_to_write = 0 on return. Requiring a negative number is not documented in any of the comments, write_cache_pages() does not return a negative number, etc, so I can't see why you think this is ext4 added a &quot;bump&quot; to wbc-&gt;nr_to_write, ...
Apr 25, 6:49 pm 2010
tytso
Re: [PATCH 3/4] writeback: pay attention to wbc-&gt;nr_to_w ...
In fs/fs-writeback.c, wb_writeback(), around line 774: wrote += MAX_WRITEBACK_PAGES - wbc.nr_to_write; If we want &quot;wrote&quot; to be reflect accurately the number of pages that the filesystem actually wrote, then if you write more pages than what That's why I put in ext4 at least initially, yes. I'm working on rewriting the ext4_writepages() code to make this unnecessary.... Have you tested with multiple files that are subject to writeout at the same time? After all, if your ...
Apr 25, 7:43 pm 2010
Dave Chinner
Re: [PATCH 4/4] xfs: remove nr_to_write writeback windup.
About 500MB/s sure. ;) Seriously though, the problem that lead to us adding this multiplication was that writeback was not feeding XFS 1024 pages at a time - we were getting much less than this (somewhere in the order of 32-64 pages at a time. With the fixes I posted, in every circumstance I can see we are the correct number of pages (1024 pages or what is left over from the last inode) being passed into -&gt;writepages, and writeback is back to full speed without needing this crutch. Indeed, ...
Apr 25, 5:46 pm 2010
Kay Sievers
Re: request_firmware API exhaust memory
Nah, that memory would be freed, if you kill all udev processes, which it doesn't. The many udev worker processes you see for a few seconds was caused by udevd handling events with TIMEOUT= set special. We need to make sure, that firmware events run immediately and don't wait for other processes to finish. The logic who does that was always creating a new worker. I changed this now, but this will not affect the underlying problem you are seeing, it will just make the udev workers not grow ...
Apr 26, 3:38 am 2010
Kay Sievers
Re: request_firmware API exhaust memory
I guess, the assumption that vfree() will free pages which are allocated by custom code, and not by vmalloc(), is not true. The attached changes seem to fix the issue for me. The custom page array mangling was introduced by David as an optimization with commit 6e03a201bbe8137487f340d26aa662110e324b20 and this should be checked, and if needed be fixed. Cheers, Kay diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 985da11..fe4e872 100644 --- ...
Apr 26, 8:19 am 2010
Tomas Winkler
Re: request_firmware API exhaust memory
Thanks for your effort I will test it tomorrow Tomas --
Apr 26, 9:59 am 2010
Zhang, Yanmin
Re: [PATCH V5 1/3] perf &amp; kvm: Enhance perf to collect K ...
I downloaded the latest kvm.git tree and compilation is ok, including both enabling FTRACE and disabling FTRACE. Yanmin --
Apr 25, 11:11 pm 2010
Dominik Brodowski
Re: [PATCH 0/7] Fix performance issue with ondemand governor
... only if combined with sane default values. Best, Dominik --
Apr 26, 3:05 pm 2010
Dave Jones
Re: [PATCH 0/7] Fix performance issue with ondemand governor
On Sun, Apr 18, 2010 at 11:59:49AM -0700, Arjan van de Ven wrote: &gt; There have been various reports of the ondemand governor causing some &gt; serious performance issues, one of the latest ones from Andrew. &gt; There are several fundamental issues with ondemand (being worked on), &gt; but the report from Andrew can be fixed relatively easily. &gt; &gt; The fundamental issue is that ondemand will go to a (too) low CPU &gt; frequency for workloads that alternatingly disk and CPU bound... given the ...
Apr 26, 2:41 pm 2010
Rik van Riel
Re: [PATCH 2/7] sched: introduce a function to update th ...
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 1:11 pm 2010
Rik van Riel
Re: [PATCH 1/7] sched: add a comment to get_cpu_idle_time_us()
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 12:25 pm 2010
Rik van Riel
Re: [PATCH 3/7] sched: update the idle statistics in get ...
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 1:36 pm 2010
Rik van Riel
Re: [PATCH 4/7] sched: fold updating of the last update ...
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 1:58 pm 2010
Rik van Riel
Re: [PATCH 5/7] sched: eliminate the ts->idle_lastupdate field
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 2:00 pm 2010
Rik van Riel
Re: [PATCH 6/7] sched: introduce get_cpu_iowait_time_us()
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 2:05 pm 2010
Rik van Riel
Re: [PATCH 7/7] ondemand: Solve the big performance issu ...
Reviewed-by: Rik van Riel &lt;riel@redhat.com&gt; -- All rights reversed --
Apr 26, 2:30 pm 2010
Dominik Brodowski
Re: [PATCH 0/7] Fix performance issue with ondemand governor
What about the issue Pavel reported and Willy confirmed (regression on older hardware)? Best, Dominik --
Apr 26, 2:45 pm 2010
Rik van Riel
Re: [PATCH 0/7] Fix performance issue with ondemand governor
Having a /sys tunable makes sense, especially when running on battery power. I guess that can be introduced as a patch 8/7 :) -- All rights reversed --
Apr 26, 2:59 pm 2010
Jonathan Corbet
Re: [PATCH 10/11] viafb: rework the I2C support in the V ...
On Sun, 25 Apr 2010 17:56:09 +0200 Two bugs, actually...I wouldn't expect things to work with the wrong port, but neither should it crash. The crash is fixed in the second series (where I added checks to ensure that the adapter was active) so I'll probably leave it as-is in between. The port number needs to be fixed, though, thanks for catching that. jon --
Apr 26, 12:40 pm 2010
Jörn Engel
Re: [PATCH 1/2] [MTD] Move mtd_bdi_*mappable to mtdcore.c
Yes. Can you just remove that hunk or should I resend? Jörn -- &quot;Error protection by error detection and correction.&quot; -- from a university class --
Apr 26, 10:08 am 2010
Jörn Engel
[PATCH 2/2] [MTD] Call bdi_init() and bdi_register()
Otherwise we hit a BUG_ON in bdi_queue_work(). Signed-off-by: Joern Engel &lt;joern@logfs.org&gt; --- drivers/mtd/mtdcore.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index cb4858b..8dd3e46 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -299,7 +299,7 @@ static struct device_type mtd_devtype = { int add_mtd_device(struct mtd_info *mtd) { - int i; + int i, err; if ...
Apr 26, 9:31 am 2010
Jens Axboe Apr 26, 10:01 am 2010
Jens Axboe
Re: [PATCH 2/2] [MTD] Call bdi_init() and bdi_register()
Do the bdi_register() here as well. -- Jens Axboe --
Apr 26, 10:02 am 2010
Jens Axboe
Re: [Patch] Catch filesystems lacking s_bdi
It's there, I put it in yesterday. It's definitely 2.6.34-rc material, I Yeah, it's a bad situation to be in. I changed that BUG_ON() to a WARN_ON(). I'm not too worried about that part, I'm more worried about the file system changed. OTOH, they do lack proper flushing now, so it's likely not a huge risk from that perspective. -- Jens Axboe --
Apr 26, 2:48 am 2010
Jörn Engel
Re: [Patch] Catch filesystems lacking s_bdi
It is worse still. Using mtd-&gt;backing_dev_info results in kernel BUG at fs/fs-writeback.c:157 which is BUG_ON(!work-&gt;seen); in bdi_queue_work(). Logfs is affected and I bet jffs2 is as well. So much for dwmw2 or me actually testing the fix. :( I did a hexdump to see what sb-&gt;s_bdi actually contained and the result was this: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 ...
Apr 26, 7:32 am 2010
Jens Axboe
Re: [Patch] Catch filesystems lacking s_bdi
The important bit is that each bdi must be initialized and registered if it's going to be handling dirty data, it can't just be a static placeholder. See the bdi_setup_and_register() helper I added. -- Jens Axboe --
Apr 26, 7:38 am 2010
Jens Axboe
Re: [Patch] Catch filesystems lacking s_bdi
Took a quick look, and you want bdi_setup_and_register() for the three bdis listed in mtdbdi.c in mtdcore.c:init_mtd(). Or manual bdi_init() and bdi_register(). I'll take a look post-dinner. Either is workable, but since the flags are already setup, the latter may be cleaner. -- Jens Axboe --
Apr 26, 7:45 am 2010
Jörn Engel
[PATCH 1/2] [MTD] Move mtd_bdi_*mappable to mtdcore.c
Ok, here are two patches that appear to solve the problem for me. Jörn -- Courage is not the absence of fear, but rather the judgement that something else is more important than fear. -- Ambrose Redmoon Removes one .h and one .c file that are never used outside of mtdcore.c. Signed-off-by: Joern Engel &lt;joern@logfs.org&gt; --- drivers/mtd/Makefile | 2 +- drivers/mtd/devices/drais.c | 2 +- drivers/mtd/internal.h | 17 ----------------- drivers/mtd/mtdbdi.c ...
Apr 26, 9:30 am 2010
Jens Axboe
Re: [PATCH 1/2] [MTD] Move mtd_bdi_*mappable to mtdcore.c
I can kill that hunk, no problem. -- Jens Axboe --
Apr 26, 10:10 am 2010
Jörn Engel
Re: [PATCH 2/2] [MTD] Call bdi_init() and bdi_register()
-ENOBRAIN Initially I wanted to do just than. Then I looked at the block layer and thought we could create one backing_dev_info per mtd as well. Not necessarily a bad if I would actually _create_ them and not just reuse the same ones over and over again. Jörn -- Linux [...] existed just for discussion between people who wanted to show off how geeky they were. -- Rob Enderle --
Apr 26, 10:12 am 2010
Vivek Goyal
Re: CFQ read performance regression
On Sat, Apr 24, 2010 at 10:36:48PM +0200, Corrado Zoccolo wrote: Hi Corrado, I ran these patches and I did not see any improvement. I think the reason being that no cooperative queue merging took place and we did not have any data for throughput with coop flag on. #cat /sys/block/dm-3/queue/iosched/bandwidth 230 753 0 I think we need to implement something similiar to hw_tag detection logic where we allow dispatches from multiple sync-idle queues at a time and try to observe the BW. ...
Apr 26, 12:14 pm 2010
Vivek Goyal
Re: CFQ read performance regression
On Sat, Apr 24, 2010 at 10:36:48PM +0200, Corrado Zoccolo wrote: Thanks corrado. Using split queue sounds like the right place to do it. I will also test 2.6.16. I am anyway curious, how come 2.6.16 performed better and we were dispatching requests from multiple cfqq and driving deeper queue depths. To me this is fundamental cfq design that at one time one queue gets to use the disk (at least for sync-idle tree). So something must have been different in 2.6.16. Thanks Vivek --
Apr 26, 6:50 am 2010
Linus Torvalds
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
Btw, I hope you took the second version, that had the two additional fixes from Arnd (and my expansion of his fix to au1550_ac97.c). Looking at the arch code, I doubt there are any big architecture-specific things. But there could easily be some other drivers like au1550_ac97.c that only get enabled on certain architectures and missed the grepping for some reason. That said, because of Arnd's fix, I did end up grepping for 'file_operations' and old-style gcc initializers (ie ...
Apr 26, 3:32 pm 2010
Arnd Bergmann
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
We could also stop playing games with with this and just kill the locked variant of ioctl right away. No rename to bkl_ioctl, no helper functions. It's served it's purpose and we now have the list of 157 files that still use fops-&gt;ioctl, so if we just push the BKL into those files and make them use unlocked_ioctl, we will be able to remove -&gt;ioctl for good. We can do the rename of -&gt;unlocked_ioctl to -&gt;ioctl right after that if you like, or in a year from now, I don't care. Arnd --
Apr 26, 1:30 am 2010
Ingo Molnar
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
The scheduler will be helped most by getting rid of the BKL altogether. We are in reaching distance of that now ... Once that state is achived we can just get rid of the BKL and mass-push per-driver mutexes into those remaining drivers - in a possibly scripted way. Something like: foo-driver.c DEFINE_MUTEX(foo_mutex); foo_ioctl() { mutex_lock(&amp;foo_mutex); ... mutex_unlock(&amp;foo_mutex); } foo_open() ...
Apr 26, 12:25 am 2010
Arnd Bergmann
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
I don't think it can be fully automated. For the majority of the modules, your approach would work fine, but there are still the well-known pitfalls in corner cases: - recursive uses in functions outside of ioctl (possibly none left after the TTY layer is done, but who knows) - lock-order problems with other mutexes (see DRM) - code that depends on autorelease to allow one ioctl while another is sleeping. (a small number of drivers) Semi-automated should be fine though. These rules are ...
Apr 26, 4:29 am 2010
Linus Torvalds
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
I wouldn't mind that. But we've not found people to do it so far, so... Anyway, I spent some time automating the ioctl -&gt; bkl_ioctl conversion. The following is the end result. Comments? Regardless of _what_ we do, renaming 'ioctl' to 'bkl_ioctl' is a good thing. It means that we can reliably grep for these usages, whether it is then to later introduce a CONFIG_BKL or if it is to get rid of the bkl_ioctl entirely. NOTE! This has gone through a &quot;allmodconfig&quot; (with staging ...
Apr 26, 11:08 am 2010
Arnd Bergmann
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
I'll have another go at this tonight, see how far I get doing it Yes, looks good. I've compared it to a previous series of mine that changed all the files in a different way. A number of those changes have found their way into your tree by now, and there were only two left that you didn't catch (see below), and one false positive The v4l2_file_operations is actually another can of worms, I count 77 more files with a locked ioctl function in there. I'll put that on the list of things to do ...
Apr 26, 12:12 pm 2010
Linus Torvalds
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
Yeah, those v4l2_file_operations were annoying. I didn't notice at first, so my first automated script renamed all of them too (because I had just Yes, but that - along with the sound drivers, that also have their own ioctl interface that gets driven under the BKL - are independent patches. Your patch did one of the au1550_ac97 'struct file_operations', but missed another one. I had missed both, because they had that crazy old-style initializer, and didn't trigger a compile on ...
Apr 26, 1:36 pm 2010
David Miller
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
From: Linus Torvalds &lt;torvalds@linux-foundation.org&gt; &quot;allmodconfig&quot; on sparc64 passes with this patch too, just FYI... --
Apr 26, 1:42 pm 2010
Frederic Weisbecker
Re: [GIT PULL v2] Preparation for BKL'ed ioctl removal
Thanks! I've queued it for the next merge window in git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing.git bkl/ioctl --
Apr 26, 3:09 pm 2010
Arnd Bergmann
[PATCH 4/6] staging: push down BKL into ioctl functions
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt; --- drivers/staging/crystalhd/crystalhd_lnx.c | 13 +++++++++---- drivers/staging/dt3155/dt3155_drv.c | 24 ++++++++++++++++++------ drivers/staging/poch/poch.c | 17 +++++++++++++++-- drivers/staging/vme/devices/vme_user.c | 18 +++++++++++++++--- 4 files changed, 57 insertions(+), 15 deletions(-) diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c index 54bad65..3291e14 ...
Apr 26, 3:24 pm 2010
Arnd Bergmann
[PATCH 2/6] scsi: push down BKL into ioctl functions
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt; --- drivers/scsi/3w-9xxx.c | 10 +++++++--- drivers/scsi/3w-sas.c | 7 +++++-- drivers/scsi/3w-xxxx.c | 10 +++++++--- drivers/scsi/aacraid/linit.c | 11 ++++++++--- drivers/scsi/dpt_i2o.c | 20 +++++++++++++++++--- drivers/scsi/gdth.c | 20 +++++++++++++++----- drivers/scsi/megaraid.c | 20 +++++++++++++++++--- drivers/scsi/megaraid/megaraid_mm.c ...
Apr 26, 3:24 pm 2010
Arnd Bergmann
[PATCH 3/6] isdn: push down BKL into ioctl functions
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt; --- drivers/isdn/capi/capi.c | 17 ++++++++++++++--- drivers/isdn/divert/divert_procfs.c | 19 ++++++++++++++++--- drivers/isdn/i4l/isdn_common.c | 18 +++++++++++++++--- drivers/isdn/mISDN/timerdev.c | 10 ++++++---- 4 files changed, 51 insertions(+), 13 deletions(-) diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index ee58375..0cabe31 100644 --- a/drivers/isdn/capi/capi.c +++ ...
Apr 26, 3:24 pm 2010
Arnd Bergmann
[PATCH 0/6] Push down BKL into device drivers
This is half the work of getting rid of the BKL in the ioctl file operation, the rest in arch/ and fs/ still needs to be done, maybe two more hours of work (for someone else than me ;-)). Pushdown is straightforward. In many cases, it's rather obvious that the BKL is not needed at all, but let's not mix the removal with the pushdown. Arnd Bergmann (6): dvb: push down BKL into ioctl functions scsi: push down BKL into ioctl functions isdn: push down BKL into ioctl functions staging: ...
Apr 26, 3:23 pm 2010
Arnd Bergmann
[PATCH 1/6] dvb: push down BKL into ioctl functions
This requires changing all users of dvb_usercopy to omit the inode argument. Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt; --- drivers/media/dvb/dvb-core/dmxdev.c | 31 +++++++++++++++++++------- drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 17 ++++++++++---- drivers/media/dvb/dvb-core/dvb_frontend.c | 30 +++++++++++++------------- drivers/media/dvb/dvb-core/dvb_net.c | 15 +++++++++--- drivers/media/dvb/dvb-core/dvbdev.c | 17 +++++++++----- ...
Apr 26, 3:24 pm 2010
Arnd Bergmann
[PATCH 5/6] v4l: always use unlocked_ioctl
v4l drivers may still use a locked ioctl method, but we now always export an unlocked_ioctl and lock ourselves, so that the -&gt;ioctl file operation can get removed. Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt; --- drivers/media/video/v4l2-dev.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/v4l2-dev.c b/drivers/media/video/v4l2-dev.c index 7090699..3606694 100644 --- a/drivers/media/video/v4l2-dev.c +++ ...
Apr 26, 3:24 pm 2010
Arnd Bergmann
[PATCH 6/6] drivers: push down BKL into various drivers
These are the last remaining device drivers using the -&gt;ioctl file operation in the drivers directory. Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt; --- drivers/block/pktcdvd.c | 13 ++++++++-- drivers/char/apm-emulation.c | 8 ++++-- drivers/char/applicom.c | 13 ++++++---- drivers/char/ds1620.c | 16 +++++++++++- drivers/char/dtlk.c | 15 ++++++------ drivers/char/generic_nvram.c | 17 +++++++++++-- drivers/char/genrtc.c ...
Apr 26, 3:24 pm 2010
Frederic Weisbecker Apr 26, 4:04 pm 2010
Jonathan Cameron
Re: isl29020: ALS driver as misc device
Hi Alan, I was hoping some others would jump in here with suggestions. Failing that, I'd go with illuminance0_input (in milli lux?) (if this requires a float calculation, could go with the iio approach of having illuminance0_raw and illuminance0_scale, where gain can be a float as it's just a text string anyway). illuminance0_range illuminance0_range_available For these range, I'd personally prefer to do it via scaling, but we can probably be flexible here. Things will get complex ...
Apr 26, 3:59 am 2010
Michal Simek
Re: [microblaze-uclinux] Re: [PATCH 1/2] microblaze: add ...
I finally looked at it and here is what I found. # ./reboot Restarting system. Machine restart... Machine shutdown... Stack: 4f3ffdc8: 48004aec 00000008 4f3ffdd0: 00000000 00000001 4f3e0150 00000001 4f3ffdec 48004b14 481dc68c 48241318 4f3ffdf0: ffffffff 00001099 00003fff 482f49cc 4801f518 481dc6a4 48241318 ffffffff 4f3ffe10: 00001083 00003fff 482f49cc 48020150 481e3048 00000000 000001a2 00000000 4f3ffe30: 00000000 00000000 28121969 48006b38 48240dc0 481d549c 481d53a8 ...
Apr 26, 8:34 am 2010
Roland McGrath
Re: [PATCH -mm v6] tracepoint: Add signal coredump tracepoint
Having a proper -ERR* code for the cases that have one in your patch is certainly good. What I meant was using the 0/1 values to distinguish success vs failure from the binfmt dumper. If there were separate tracepoints for success vs failure, then the failure one should certainly get an error code, which would be 0 when the error (or refusal to dump) was Whatever is handy, I suppose. i.e. of the things you pass into the tracepoint now, give each tracepoint the subset that makes sense for ...
Apr 26, 10:59 am 2010
Jens Axboe Apr 26, 10:26 am 2010
Christoph Hellwig
Re: [PATCH 0/4] blkdev: blkdev_issue_fn cleanups v2
Jens, are you planning on picking up a version of this? ---end quoted text--- --
Apr 26, 8:01 am 2010
Dmitry Monakhov
Re: [PATCH 0/4] blkdev: blkdev_issue_fn cleanups v2
Ok, will appear in several hours. I have to repeat full testing --
Apr 26, 10:32 am 2010
Jens Axboe
Re: [PATCH 0/4] blkdev: blkdev_issue_fn cleanups v2
Take your time, I would appreciate it if lvm didn't get broken again :-) -- Jens Axboe --
Apr 26, 10:47 am 2010
Alan Cox
Re: [PATCH] serial: TTY: new ldiscs for staging
Cool (I'm looking at -next) Alan --
Apr 26, 3:06 pm 2010
Savoy, Pavan
RE: [PATCH] serial: TTY: new ldiscs for staging
It has I believe, Greg has modified it to 30, and pulled in his tree. --
Apr 26, 2:56 pm 2010
Alan Cox
Re: [PATCH] drivers:staging: sources for ST core
You still need a context of some kind as I said before to avoid thse globals and single device limits. And all the other issues - no explanation of the locking etc don't seem to have been touched either. I don't really see how I am supposed to review this stuff when the locking and flow control assumptions are completely opaque Alan --
Apr 26, 3:03 pm 2010
Alan Cox
Re: [PATCH] serial: TTY: new ldiscs for staging
On Thu, 8 Apr 2010 13:16:52 -0500 Doesn't directly apply as NR_LDISCS is now 21 but this should definitely go in. --
Apr 26, 2:59 pm 2010
Jesse Barnes
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
On Mon, 26 Apr 2010 14:44:50 -0700 I was thinking if we made it a special resource type we'd have to change any platform drivers to use it; i.e. it wouldn't be IORESOURCE_MEM or IORESOURCE_IO but IORESOURCE_DRAGONS. That way it wouldn't be part of the normal resource space. But that's definitely overkill. I think Bjorn's fix is sufficient. -- Jesse Barnes, Intel Open Source Technology Center --
Apr 26, 2:53 pm 2010
R. Andrew Bailey
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Good news- that solved it. I tried Yinghai's patches saturday to no avail (sorry it took me so long to get back to you, I was about 5 bios revisions behind on this machine and wanted to update it before I tried any more tests). .andy --
Apr 26, 5:50 am 2010
Jesse Barnes
Re: [PATCH -v3 1/3] x86: Reserve [0xa0000, 0x100000] in ...
On Fri, 23 Apr 2010 16:30:33 -0700 I was going to congratulate Yinghai on writing good changelogs, but then I saw Bjorn actually wrote these ones for him. :) At any rate they looks good: Acked-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt; -- Jesse Barnes, Intel Open Source Technology Center --
Apr 26, 8:35 am 2010
Bjorn Helgaas
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Great, thanks for testing this! The only problem here is that we changed two things at once -- the BIOS and the patch, and we need to figure out which change fixed the problem. I want Linux to work correctly even on the old BIOS, on the theory that &quot;if Windows works, Linux should work, too.&quot; Changing a BIOS is relatively risky, and it's not something I want users to have to diagnose and deal with. If we're lucky, the kernel without the patch will still fail on the updated BIOS. If the ...
Apr 26, 8:40 am 2010
Andy Isaacson Apr 26, 11:34 am 2010
Jesse Barnes
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
On Mon, 26 Apr 2010 11:34:36 -0700 Great, thanks for testing. Applied this one to my for-linus tree. I still thing Yinghai's patches should go in as well (marking regions as busy seems like good housekeeping), but with this fixed they're a better fit for -next. Thanks, -- Jesse Barnes, Intel Open Source Technology Center --
Apr 26, 12:31 pm 2010
Bjorn Helgaas
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
I'm a little concerned that those patches are a sledgehammer approach. Previously, IORESOURCE_BUSY has basically been used for mutual exclusion between drivers that would otherwise claim the same resource. It hasn't been used to guide resource assignment in the PCI/PNP/etc core. Maybe it's a good idea to also use IORESOURCE_BUSY there, but I'm not sure. Right now it feels like undesirable overloading to me. I think it also leads to at least one problem: Guenter's machine has no VGA but ...
Apr 26, 1:27 pm 2010
Jesse Barnes
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
On Mon, 26 Apr 2010 14:27:56 -0600 I guess that's true, removing those regions from the pool entirely might be better? Or some other, clear way of expressing that the regions aren't available to drivers. Maybe we need a new IO resource Ah good point, so we'll want another approach at any rate. Yinghai? -- Jesse Barnes, Intel Open Source Technology Center --
Apr 26, 1:37 pm 2010
Yinghai
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
With current linus's tree, there is some difference between mmio &gt; 1M and MMIO &lt; 1M. Actually it does not care about E820_RESERVED for &gt; 1M range, because it doesn't have _BUSY. For &lt; 1M range, a. MMIO is not with E820_RESERVED, the device driver will work. b. MMIO is with E820_RESERVED, the device driver can not reserve it's mmio later. because that MMIO could have parent resource with &quot;reserved&quot; name and _BUSY flag My patch -v3 will break a. but my patch -v4 patch will make it ...
Apr 26, 2:07 pm 2010
H. Peter Anvin
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
What we need is to keep track of the areas available for address space allocation by dynamically addressed devices, as distinct from address space that is in use by a kernel-known device. There is an in-between, which one can call &quot;here there be dragons&quot; space, which should never be used for dynamic device allocation, but if a platform device or pre-assigned device uses that space then it should be allowed to be allocated. In the case of x86, anything that is E820_RESERVED, *or* in the ...
Apr 26, 2:12 pm 2010
H. Peter Anvin
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Let's distinguish between what we need for .34 -- we need something minimal and as soon as possible at this stage -- and concentrate on getting the right thing to happen going forward. -hpa --
Apr 26, 2:19 pm 2010
Jesse Barnes
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
On Mon, 26 Apr 2010 14:12:35 -0700 Agreed. The trickier part is handling any platform devices that request_resource against that space. But maybe we don't need to do anything special; just making sure we avoid it in the PCI &quot;BIOS&quot; code as Bjorn did may be sufficient. -- Jesse Barnes, Intel Open Source Technology Center --
Apr 26, 2:25 pm 2010
jacob pan
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Moorestown has a similar situation where one of the PCI devices have a BAR below 1MB. Moorestown also has the option not to have VGA. --
Apr 26, 2:44 pm 2010
H. Peter Anvin
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
Why is that hard? If a platform device does a request_resource against that space, it's a request for specific address space and it should be granted. -hpa --
Apr 26, 2:44 pm 2010
Yinghai Lu
Re: [PATCH] x86/PCI: never allocate PCI MMIO resources b ...
the two regressions from the reporters: BIOS put 0xa0000-0xb0000, 0xc0000- 0xd0000 with E820_RESERVED. BIOS ACPI _CRS keep 0xa0000-0xb0000, 0xc0000-0xd0000 as part resources for peer root bus: BUS 0. kernel insert 0xa0000-0xb0000 into resource tree with _BUSY in e820_reserve_resources() at first. last pci bus scan code, will insert 0xa0000-0xb0000, and it is under previous reserved entry. later pci_assign_unassign code, will use bus 0 resources directly, and don't care if the parent's ...
Apr 26, 2:59 pm 2010
Yinghai
[PATCH -v5 3/3] x86, resource: Add reserve_region_with_s ...
It will cover the whole region to BUSY, except that some regions that have children under them. those children normally is PCI bar but it is falling into E820_RESERVED. We can not put BUSY on them, otherwise driver can not use pci_request_region() later /proc/iomem will have 00010000-00094fff : System RAM 00095000-0009ffff : reserved 000a0000-000bffff : PCI Bus 0000:00 000a0000-000bffff : reserved 000c0000-000cffff : reserved 000d0000-000dffff : PCI Bus 0000:00 000d0000-000dffff : ...
Apr 26, 3:04 pm 2010
Yinghai
[PATCH -v5] reserve a0000 - 0x10000
for memo, sending out -v5 --
Apr 26, 3:04 pm 2010
Yinghai
[PATCH -v5 2/3] x86: Remove probe_roms for 32bit
That is not needed, because whole range is reserved already Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt; --- arch/x86/include/asm/setup.h | 2 arch/x86/include/asm/x86_init.h | 4 arch/x86/kernel/Makefile | 1 arch/x86/kernel/head32.c | 1 arch/x86/kernel/mrst.c | 2 arch/x86/kernel/probe_roms_32.c | 166 ---------------------------------------- arch/x86/kernel/setup.c | 6 - arch/x86/kernel/x86_init.c | 2 8 files ...
Apr 26, 3:04 pm 2010
Yinghai
[PATCH -v5 1/3] x86: Reserve [0xa0000, 0x100000] in e820 map
Update e820 at first, and later put them resource tree. Reserved that early, will not be allocated to unassigned PCI BAR -v5: same as -v3 Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt; Cc: Guenter Roeck &lt;guenter.roeck@ericsson.com&gt; Cc: Andy Isaacson &lt;adi@hexapodia.org&gt; Tested-by: Andy Isaacson &lt;adi@hexapodia.org&gt; Cc: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt; Acked-by: H. Peter Anvin &lt;hpa@zytor.com&gt; --- arch/x86/include/asm/setup.h | 1 - arch/x86/kernel/head32.c | 1 - ...
Apr 26, 3:04 pm 2010
Dave Chinner
Re: 2.6.34-rc3: simple du (on a big xfs tree) triggers o ...
The fix is not in Linus' kernel yet, Greg. So once that is done, I'll have to backport the fix back to those stable kernels as well. It's not a trivial fix, so it will miss this round of stable releases.... Cheers, Dave. -- Dave Chinner david@fromorbit.com --
Apr 25, 5:36 pm 2010
Dave Chinner
Re: 2.6.34-rc3: simple du (on a big xfs tree) triggers o ...
The problem is that the fix I did has been rejected by the upstream VM guys, and the stable rules are that fixes have to be in mainline before they can be put in a stable release. So, until we get a fix Yet there's only been one report of the problem. While that doesn't make it any less serious, I don't think the problem you're reporting is as widespread as you are making it out to be. We'll get the fix done and upstream, and then it will go back to the stable kernel. You could always ...
Apr 25, 5:32 pm 2010
Steven Rostedt
Re: [PATCHv6 0/4] tracing: function graph output for pre ...
Hi Jiri, I haven't forgotten about you. I came back from the Linux Collaboration Summit with a bunch of TODO's and one of them took me all week. I spent the entire week hacking the ftrace.h file which takes up 100% of my concentration, so I never got to look at your patches. Your patch set is next on my todo list, so expect feedback from me either later today or tomorrow. Thanks for you patience, -- Steve --
Apr 26, 1:22 pm 2010
Michal Hocko
Re: commit 9630bdd9 changes behavior of the poweroff - bug?
Again, no success. Just to make sure that I didn't screw anything. I have used just the following patch on top of the clean rc5 (your patch has failed with some rejects but I guess that the following should do the same): commit 65eafe4a504e3bb2c13b4feb8590dc52e7439baa Author: Rafael J. Wysocki &lt;rjw@sisk.pl&gt; Date: Sun Apr 25 04:35:42 2010 +0200 diff --git a/drivers/acpi/acpica/evgpeblk.c b/drivers/acpi/acpica/evgpeblk.c index fef7219..b6e1e0c 100644 --- ...
Apr 26, 8:05 am 2010
Len Brown
Re: commit 9630bdd9 changes behavior of the poweroff - bug?
Perhaps you can review this description and help me better understand the symptoms? Michal, Re: poweroff Before the regression you could hear the HDD park as a result of the &quot;poweroff&quot; command without touching the lid, and after the regression you don't hear that sound until after you close the lid -- no matter how long you wait to close the lid? During this period after poweroff and LCD goes out, but before lid close, are there any other signs of life? eg. does caps lock button ...
Apr 26, 9:22 am 2010
Rafael J. Wysocki
Re: commit 9630bdd9 changes behavior of the poweroff - bug?
Thanks for testing. Did you try the second thing, ie. try to comment out the acpi_enable_gpe() in drivers/acpi/wakeup.c:acpi_wakeup_device_init() and retest (if you haven't done that already)? Rafael --
Apr 26, 11:51 am 2010
Zhang, Yanmin
Re: [PATCH] perf: limit memory allocation to number cpus ...
Acked. Sorry for replying late. There will be a much more valuable patch if it fixes the cpu hotplug issue. For example, if my machine starts 16 cpu and I hot unplug some of them by software method (i.e. echo 0 &gt;/sys/devices/system/cpu/cpuXXX/online) after kernel boots, perf will fail when collecting a system-wide statistics. That's --
Apr 25, 11:51 pm 2010
KOSAKI Motohiro
Re: Subject: [PATCH][RFC] mm: make working set portion t ...
Hi I've quick reviewed your patch. but unfortunately I can't write my We certainly need no knob. because typical desktop users use various application, various workload. then, the knob doesn't help them. Probably, I've missed previous discussion. I'm going to find your previous mail. --
Apr 26, 4:59 am 2010
Christian Ehrhardt
Subject: [PATCH][RFC] mm: make working set portion that ...
Subject: [PATCH][RFC] mm: make working set portion that is protected tunable v2 From: Christian Ehrhardt &lt;ehrhardt@linux.vnet.ibm.com&gt; *updates in v2* - use do_div This patch creates a knob to help users that have workloads suffering from the fix 1:1 active inactive ratio brought into the kernel by &quot;56e49d21 vmscan: evict use-once pages first&quot;. It also provides the tuning mechanisms for other users that want an even bigger working set to be protected. To be honest the best solution ...
Apr 26, 3:59 am 2010
Christian Ehrhardt
Re: Subject: [PATCH][RFC] mm: make working set portion t ...
Briefly - We had discussed non desktop scenarios where like a day load that builds up the working set to 50% and a nightly backup job which then is unable to use that protected 50% when sequentially reading a lot of disks and due to that doesn't finish before morning. The knob should help those people that know their system would suffer from this or similar cases to e.g. set the protected ratio smaller or even to zero if wanted. As mentioned before, being able to gain back those ...
Apr 26, 5:43 am 2010
Rik van Riel
Re: Subject: [PATCH][RFC] mm: make working set portion t ...
This is a red herring. A backup touches all of the data once, so it does not need a lot of page cache and will not &quot;not finish before morning&quot; due to the working set being protected. You're going to have to come up with a more realistic So far we have seen exactly one workload where it helps to reduce the size of the active file list, and that is not due to any need for caching more inactive pages. On the contrary, it is because ALL OF THE INACTIVE PAGES are in flight to disk, all ...
Apr 26, 7:20 am 2010
Eric W. Biederman Apr 26, 11:35 am 2010
Paul E. McKenney
Re: [PATCH] RCU: don't turn off lockdep when find suspic ...
Thank you both, Dave and Johannes! Thanx, Paul --
Apr 25, 7:07 pm 2010
Paul E. McKenney
Re: [PATCH] RCU: don't turn off lockdep when find suspic ...
Eric Dumazet traced these down to a commit from Eric Biederman. If I don't hear from Eric Biederman in a few days, I will attempt a patch, but it would be more likely to be correct coming from someone with a better understanding of the code. ;-) Thanx, Paul --
Apr 26, 9:09 am 2010
previous daytodaynext day
April 25, 2010April 26, 2010April 27, 2010