Re: [PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Benjamin Herrenschmidt wrote: On Wed, 2007-12-05 at 22:39 -0800, Greg KH wrote: that is it can be either unsigned int, unsigned long or unsigned long long... and we have no way to reliably printk that. We do this already just fine. Take a look in the kernel, I

Re: [PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

2007-12-06 Thread Matthew Wilcox
On Thu, Dec 06, 2007 at 06:58:54PM +1100, Benjamin Herrenschmidt wrote: I was just hoping somebody had a better idea, like a way to add a new format specifier to printk without losing gcc type checking :-) It's been discussed before. Some of the solutions discussed: - Add something like

proc/bus.usb regression in : [NETNS]: Fix /proc/net breakage

2007-12-06 Thread Giacomo Catenazzi
Andrew Morton wrote: On Mon, 3 Dec 2007 19:00:25 GMT Linux Kernel Mailing List linux-kernel@vger.kernel.org wrote: Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2b1e300a9dfc3196ccddf6f1d74b91b7af55e416 Commit:

Re: proc/bus.usb regression in : [NETNS]: Fix /proc/net breakage

2007-12-06 Thread Andrew Morton
On Thu, 06 Dec 2007 09:21:53 +0100 Giacomo Catenazzi [EMAIL PROTECTED] wrote: Andrew Morton wrote: On Mon, 3 Dec 2007 19:00:25 GMT Linux Kernel Mailing List linux-kernel@vger.kernel.org wrote: Gitweb:

Re: [PATCH] capabilities: introduce per-process capability bounding set (v10)

2007-12-06 Thread KaiGai Kohei
Andrew Morgan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 KaiGai Kohei wrote: BTW, could you tell me your intention about pam_cap.c is implemented with pam_sm_authenticate() and pam_sm_setcred()? I think it can be done with pam_sm_open_session(), and this approach enables to reduce

Re: proc/bus.usb regression in : [NETNS]: Fix /proc/net breakage

2007-12-06 Thread Eric W. Biederman
Giacomo Catenazzi [EMAIL PROTECTED] writes: Andrew Morton wrote: On Mon, 3 Dec 2007 19:00:25 GMT Linux Kernel Mailing List linux-kernel@vger.kernel.org wrote: Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2b1e300a9dfc3196ccddf6f1d74b91b7af55e416

Re: [patch] ext2: xip check fix

2007-12-06 Thread Carsten Otte
Nick Piggin wrote: Xip does only work, if both do match PAGE_SIZE because it does'nt support multiple calls to direct_access in the get_xip_page address space operation. Thus we check both here, actually this was changed from how it looks after your patch as a bugfix where our tester tried a

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread Stefan Rompf
Am Donnerstag, 6. Dezember 2007 03:25 schrieb David Miller: POSIX says nothing about the semantics of route resolution. Of course not. Applications must not care about what happens at the transport layer. Non-blocking doesn't mean cannot sleep no matter what. ... and as O_CREAT on open()

Re: [patch] ext2: xip check fix

2007-12-06 Thread Nick Piggin
On Thu, Dec 06, 2007 at 09:43:27AM +0100, Carsten Otte wrote: Nick Piggin wrote: Xip does only work, if both do match PAGE_SIZE because it does'nt support multiple calls to direct_access in the get_xip_page address space operation. Thus we check both here, actually this was changed from

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread David Miller
From: Stefan Rompf [EMAIL PROTECTED] Date: Thu, 6 Dec 2007 09:49:01 +0100 If the connection cannot be established immediately and O_NONBLOCK is set for the file descriptor for the socket, connect() shall fail and set errno to [EINPROGRESS], but the connection request shall not be aborted,

man-pages-2.70 is released

2007-12-06 Thread Michael Kerrisk
Gidday, Some news: * man-pages now has an (irregularly updated) blog: http://linux-man-pages.blogspot.com/ * Since man-pages-2.69, each man page now includes a COLOPHON section at the end of the page which indicates the version of man-pages in which this page is released, and also

Re: [PATCH 27/28] blk_end_request: changing scsi mid-layer for bidi (take 3)

2007-12-06 Thread Boaz Harrosh
On Thu, Dec 06 2007 at 2:26 +0200, Kiyoshi Ueda [EMAIL PROTECTED] wrote: Hi Boaz, On Tue, 04 Dec 2007 15:39:12 +0200, Boaz Harrosh [EMAIL PROTECTED] wrote: On Sat, Dec 01 2007 at 1:35 +0200, Kiyoshi Ueda [EMAIL PROTECTED] wrote: This patch converts bidi of scsi mid-layer to use

Re: Reproducible data corruption with sendfile+vsftp - splice regression?

2007-12-06 Thread Holger Hoffstaette
On Wed, 05 Dec 2007 23:54:29 +0100, Francois Romieu wrote: Holger Hoffstaette [EMAIL PROTECTED] : [...] Should I file this in bugzilla? Yes. Thanks for responding - will do. I verified with 2.6.24-rc4 (same bug) and have some new information about this. Despite my previous posting the

[PATCH 1/3] POWERPC: don't cast a pointer to pointer of list_head

2007-12-06 Thread Li Zefan
The casting is safe only when the list_head member is the first member of the structure. Signed-off-by: Li Zefan [EMAIL PROTECTED] --- arch/ppc/syslib/ocp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/ppc/syslib/ocp.c b/arch/ppc/syslib/ocp.c index

[PATCH 2/3] DRM: don't cast a pointer to pointer of list_head

2007-12-06 Thread Li Zefan
The casting is safe only when the list_head member is the first member of the structure. Signed-off-by: Li Zefan [EMAIL PROTECTED] --- drivers/char/drm/i915_irq.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c

[PATCH] iwlwifi3945/4965 - fix rate control algo reference leak

2007-12-06 Thread Cyrill Gorcunov
Hi Thomas, could you test this one please. --- From: Cyrill Gorcunov [EMAIL PROTECTED] Subject: [PATCH] iwlwifi3945/4965 - fix rate control algo reference leak This patch does fix rate control algo reference leak in case if network device has been failed to register. In this case special flag

Re: [PATCH] zfcp: add some internal zfcp adapter statistics

2007-12-06 Thread Swen Schillig
On Monday 26 November 2007 11:23, Swen Schillig wrote: On Sunday 25 November 2007 12:16, James Bottomley wrote: On Wed, 2007-10-31 at 11:33 +0100, Swen Schillig wrote: From: Swen Schillig [EMAIL PROTECTED] add some statistics provided by the zFCP adapter to the sysfs The new

2.6.23.9: x86_64: floppy not working: p35 chipset

2007-12-06 Thread Justin Piszcz
Trying to format a floppy (2-3 of them) on a GA-P35-DS4 2.0 with a regular Sony floppy on Debian x86_64 with kernel 2.6.23.9: # fdformat /dev/fd0 Could not determine current format type: No such device # mformat a: mformat: Could not get geometry of device (No such device) # # cat

Re: [patch 00/11] Text Edit Lock for 2.6.24-rc4-git3

2007-12-06 Thread Heiko Carstens
On Wed, Dec 05, 2007 at 09:02:46PM -0500, Mathieu Desnoyers wrote: Hi, Here is a repost of the text edit lock for 2.6.24-rc4-mm3. It is useful to coordinate modification of live kernel code patching. It includes a modification to kprobes (its first user) and is useful for the Immediate

Re: [RFC] [PATCH] A clean approach to writeout throttling

2007-12-06 Thread Daniel Phillips
On Wednesday 05 December 2007 23:31, Andrew Morton wrote: Rather than asking the stack how much memory will this request consume you could instead ask how much memory are you currently using. ie: on entry to the stack, do current-account_block_allocations = 1;

Re: [patch] ext2: xip check fix

2007-12-06 Thread Carsten Otte
Nick Piggin wrote: After my patch, we can do XIP in a hardsect size PAGE_SIZE block device -- this seems to be a fine thing to do at least for the ramdisk code. Would this situation be problematic for existing drivers, and if so, in what way? I have done some archeology, and our ancient CVS

[PATCH 3/3] wireless/libertas: don't cast a pointer to pointer of list_head

2007-12-06 Thread Li Zefan
Don't cast struct foo * to struct list_head *, it's safe only when the list member is the first member of struct foo. Also don't cast struct list_head * to struct foo *. BTW: I'm not so sure where this patch should go to. Signed-off-by: Li Zefan [EMAIL PROTECTED] ---

Re: [RFC PATCH 0/5] Union Mount: A Directory listing approach with lseek support

2007-12-06 Thread Jan Blunck
On Wed, Dec 05, Dave Hansen wrote: I think the key here is what kind of consistency we're trying to provide. If a directory is being changed underneath a reader, what kinds of guarantees do they get about the contents of their directory read? When do those guarantees start? Are there any

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello. Geoff-san. Sorry for

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello. Geoff-san. Sorry for late response. Could you tell me the value of the

Re: [patch-early-RFC 00/10] LTTng architecture dependent instrumentation

2007-12-06 Thread Ingo Molnar
hi Mathieu, * Mathieu Desnoyers [EMAIL PROTECTED] wrote: Hi, Here is the architecture dependent instrumentation for LTTng. [...] A fundamental observation about markers, and i raised this point many many months ago already, so it might sound repetitive, but i'm unsure wether it's

Re: bonding sysfs output

2007-12-06 Thread Ferenc Wagner
Jean Delvare [EMAIL PROTECTED] writes: On Mon, 26 Nov 2007 09:29:40 +0100, Wagner Ferenc wrote: On the policy side: some files are not applicable to some types of bonds, and return a single linefeed in that case. Except for one single case, which returns 'NA\n'. The patch changes these

Re: [PATCH] lost content of /proc/sys/fs/binfmt_misc

2007-12-06 Thread Eric W. Biederman
Denis V. Lunev [EMAIL PROTECTED] writes: /proc/sys/fs/binfmt_misc dentry disappeared during d_revalidate. d_revalidate only dentries from shadowed one and below. http://bugzilla.kernel.org/show_bug.cgi?id=9504 Denis this is decent except it doesn't completely close the possibility of leaking

Re: [patch] ext2: xip check fix

2007-12-06 Thread Nick Piggin
On Thu, Dec 06, 2007 at 10:59:02AM +0100, Carsten Otte wrote: Nick Piggin wrote: After my patch, we can do XIP in a hardsect size PAGE_SIZE block device -- this seems to be a fine thing to do at least for the ramdisk code. Would this situation be problematic for existing drivers, and if so,

Re: [PATCH 1/3] stopmachine semaphore to mutex

2007-12-06 Thread Ingo Molnar
* Daniel Walker [EMAIL PROTECTED] wrote: It's called stopmachine_mutex now, but it's a semaphore. So make it a struct mutex . Signed-off-by: Daniel Walker [EMAIL PROTECTED] Acked-by: Ingo Molnar [EMAIL PROTECTED] Ingo -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 3/3] printer port driver: semaphore to mutex

2007-12-06 Thread Ingo Molnar
* Daniel Walker [EMAIL PROTECTED] wrote: The port_mutex is actually a semaphore, so easily converted to a struct mutex. Signed-off-by: Daniel Walker [EMAIL PROTECTED] Acked-by: Ingo Molnar [EMAIL PROTECTED] cool. How far away are we from being able to remove all the semaphore code? :-)

Re: [patch] ext2: xip check fix

2007-12-06 Thread Carsten Otte
Nick Piggin wrote: OK, thanks for taking a look at that. It will be helpful for testing XIP with my new ramdisk driver (did you see the patch?). I have'nt looked at it yet. I do appreciate it, I think it might broaden the user-base of this feature which is up to now s390 only due to the fact

[PATCH] proc: Do not invalidate dentries with submounts

2007-12-06 Thread Eric W. Biederman
If the dcache path to a mount point is ever broken it becomes impossible to unmount it, and we leak a vfsmount. Therefore it is not valid to invalidate dentries with mount points at or below them. This patch uses the have_submounts test as the other network filesystem revalidate routines do.

Re: suspend-related lockdep warning

2007-12-06 Thread Peter Zijlstra
On Thu, 2007-12-06 at 01:21 +0100, Rafael J. Wysocki wrote: On Tuesday, 4 of December 2007, Andrew Morton wrote: [ 34.455096] ipw2200: Failed to send WEP_KEY: Command timed out. [ 34.911876] Syncing filesystems ... done. [ 34.934526] Freezing user space processes ... WARNING: at

Re: [PATCH] proc: Do not invalidate dentries with submounts

2007-12-06 Thread Denis V. Lunev
you have changed the behavior of revalidation by shadows. I think it will be better to restore it and keep new one for shadows (and below) only, which has been done by my yesterday patch. Regards, Den Eric W. Biederman wrote: If the dcache path to a mount point is ever broken it becomes

Re: Possible bug from kernel 2.6.22 and above, 2.6.24-rc4

2007-12-06 Thread Ingo Molnar
* Jie Chen [EMAIL PROTECTED] wrote: not BARRIER time. I've re-read the discussion and found no hint about how to build and run a barrier test. Either i missed it or it's so obvious to you that you didnt mention it :-) Ingo Hi, Ingo: Did you do configure --enable-public-release?

Re: [PATCH 3/3] wireless/libertas: don't cast a pointer to pointer of list_head

2007-12-06 Thread Holger Schurig
BTW: I'm not so sure where this patch should go to. To [EMAIL PROTECTED], as Dan Williams (libertas maintainer) monitors this list. The wireless development tree is wireless-2.6, branch everything. You patch doesn't apply to this tree currently, but it's easy to fix. I'll bring it in shape,

Re: PS3: trouble with SPARSEMEM_VMEMMAP and kexec

2007-12-06 Thread Yasunori Goto
On Thu, 6 Dec 2007, Geert Uytterhoeven wrote: On Thu, 6 Dec 2007, Yasunori Goto wrote: I'll try Milton's suggestion to pre-allocate the memory early. It seems that should work as long as nothing else before the hot-plug mem is added needs a large chunk. Hello.

Re: [PATCH Latency Tracer] don't panic on failed bootmem alloc

2007-12-06 Thread Ingo Molnar
* Steven Rostedt [EMAIL PROTECTED] wrote: Ingo, This patch prevents a panic on a failed bootmem alloc in the initialization of the tracer buffers. thanks, good catch! Ingo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread Stefan Rompf
Am Donnerstag, 6. Dezember 2007 09:53 schrieb David Miller: I think the words shall fail and immediately are quite clear. They are, but the context in which they apply is vague. socket is connection-mode = SOCK_STREAM I can equally generate examples where the non-blocking behavior you are

[Patch] net/xfrm/xfrm_policy.c: Some small improvements

2007-12-06 Thread WANG Cong
This patch contains the following changes. - Use 'bool' instead of 'int' for booleans. - Use 'size_t' instead of 'int' for 'sizeof' return value. - Some style fixes. Cc: Herbert Xu [EMAIL PROTECTED] Cc: David Miller [EMAIL PROTECTED] Signed-off-by: WANG Cong [EMAIL

[PATCH] usb: at91_udc: correct hanging while disconnecting usb cable

2007-12-06 Thread Nicolas Ferre
Correct hanging while disconnecting the USB device cable. Prevent a race between vbus and UDP interrupts. This bug was tracked on at91sam9260ek boards. Signed-off-by: Nicolas Ferre [EMAIL PROTECTED] --- A usb resume interrupt was firing after the vbus interrupt : the IP was then already

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread David Miller
From: Stefan Rompf [EMAIL PROTECTED] Date: Thu, 6 Dec 2007 11:56:48 +0100 Am Donnerstag, 6. Dezember 2007 09:53 schrieb David Miller: I think the words shall fail and immediately are quite clear. They are, but the context in which they apply is vague. socket is connection-mode =

Re: [Patch] net/xfrm/xfrm_policy.c: Some small improvements

2007-12-06 Thread David Miller
From: WANG Cong [EMAIL PROTECTED] Date: Thu, 6 Dec 2007 19:01:23 +0800 This patch contains the following changes. - Use 'bool' instead of 'int' for booleans. - Use 'size_t' instead of 'int' for 'sizeof' return value. - Some style fixes. Cc: Herbert Xu [EMAIL

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread Stefan Rompf
Am Donnerstag, 6. Dezember 2007 12:13 schrieb David Miller: And that's why this is a grey area. Why is waiting for memory allocation on a O_NONBLOCK socket OK but waiting for IPSEC route resolution is not? Because you just will put enough RAM modules into you server when setting up a

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread David Miller
From: Stefan Rompf [EMAIL PROTECTED] Date: Thu, 6 Dec 2007 12:35:05 +0100 Because you just will put enough RAM modules into you server when setting up a scalable system. This suggestion is avoiding the important semantic issue, and won't lead to a real discussion of the core problem. -- To

Re: REGRESSION: 2.6.24: false double-clicks from USB mouse

2007-12-06 Thread Diego Zuccato
Jiri Kosina ha scritto: My USB mouse recently started giving me phantom scrolls (movements of the mouse wheel, even I made sure the wheel was in a resting position) in recently kernels. It happened too infrequently for me to care. Did this also start in 2.6.24, as in Mark's case? It

Re: FW: Guidance on resources for User Space Device Drivers on 2.6 kernel

2007-12-06 Thread Adrian Bunk
On Wed, Dec 05, 2007 at 01:29:23AM -0500, Jaursch, Bill wrote: I have am in the process of writing a driver that is software only.  I would like to avoid the caveats of a kernel mode installable module. ... What is a driver that is software only (all kernel code is also software only...)? You

Re: 2.6.24-rc4-mm1

2007-12-06 Thread Valdis . Kletnieks
On Tue, 04 Dec 2007 21:17:01 PST, Andrew Morton said: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc4/2.6.24-rc4-mm1/ Something in here broke LVM support - an initrd that has worked fine for quite some time suddenly couldn't mount /dev/VolGroup00/root so we get the

Re: [RFC] [PATCH] A clean approach to writeout throttling

2007-12-06 Thread Andrew Morton
On Thu, 6 Dec 2007 01:48:52 -0800 Daniel Phillips [EMAIL PROTECTED] wrote: On Wednesday 05 December 2007 23:31, Andrew Morton wrote: Rather than asking the stack how much memory will this request consume you could instead ask how much memory are you currently using. ie: on entry

Re: suspend-related lockdep warning

2007-12-06 Thread Andrew Morton
On Thu, 06 Dec 2007 11:31:28 +0100 Peter Zijlstra [EMAIL PROTECTED] wrote: On Thu, 2007-12-06 at 01:21 +0100, Rafael J. Wysocki wrote: On Tuesday, 4 of December 2007, Andrew Morton wrote: [ 34.455096] ipw2200: Failed to send WEP_KEY: Command timed out. [ 34.911876] Syncing

Re: suspend-related lockdep warning

2007-12-06 Thread Peter Zijlstra
On Thu, 2007-12-06 at 04:01 -0800, Andrew Morton wrote: On Thu, 06 Dec 2007 11:31:28 +0100 Peter Zijlstra [EMAIL PROTECTED] wrote: On Thu, 2007-12-06 at 01:21 +0100, Rafael J. Wysocki wrote: On Tuesday, 4 of December 2007, Andrew Morton wrote: [ 34.455096] ipw2200: Failed to

Re: 2.6.24-rc4-mm1: hostbyte=0x01 driverbyte=0x00 (now bisected)

2007-12-06 Thread Jens Axboe
On Thu, Dec 06 2007, Hannes Reinecke wrote: Alexey Dobriyan wrote: git-scsi-misc.patch Apologies for not looking into the problem earlier. See http://marc.info/?t=11962802235r=1w=2 2.6.24-rc3-mm2: Result: hostbyte=0x01 driverbyte=0x00\nend_request: I/O error for previous

Re: suspend-related lockdep warning

2007-12-06 Thread Ingo Molnar
* Andrew Morton [EMAIL PROTECTED] wrote: It would be nice to make that warning tell us that - we've hit it a few times and I never knew this was the reason. i'm a mind-reader and a time-traveler as well, so i've got the patch below lined up in my sched.git queue already :-) Ingo

Re: 2.6.24-rc4-mm1

2007-12-06 Thread Andrew Morton
On Thu, 06 Dec 2007 06:49:24 -0500 [EMAIL PROTECTED] wrote: On Tue, 04 Dec 2007 21:17:01 PST, Andrew Morton said: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc4/2.6.24-rc4-mm1/ Something in here broke LVM support - an initrd that has worked fine for quite

Re: REGRESSION: 2.6.24: false double-clicks from USB mouse

2007-12-06 Thread Jiri Kosina
On Thu, 6 Dec 2007, Diego Zuccato wrote: It happens to me, too. Wireless mouse, gives some wheel up signals when going into powersave state. Kernel is 2.6.22-tmb-laptop-2mdv (Mandriva Cooker). Is this a regression for you? Are you able to say which kernel first exposed this behavior in

Re: FW: Guidance on resources for User Space Device Drivers on 2.6 kernel

2007-12-06 Thread Leon Woestenberg
If you have any other suggestions on projects, articles, etc. on Linux User Space Device Drivers, I would greatly appreciate the information. A suggestion: UIO: user-space drivers, since kernel version 2.6.21 http://lwn.net/Articles/232575/ Regards, -- Leon -- To unsubscribe from this

Re: sockets affected by IPsec always block (2.6.23)

2007-12-06 Thread Stefan Rompf
Am Donnerstag, 6. Dezember 2007 12:39 schrieb David Miller: Because you just will put enough RAM modules into you server when setting up a scalable system. This suggestion is avoiding the important semantic issue, and won't lead to a real discussion of the core problem. When writing

Re: Possibility to adjust the only-root-can-bind-to-port-under-1024 limit

2007-12-06 Thread Mikael Ståldal
Casey Schaufler skrev: How do you protect ports greater than 1024 from any user binding to them? E.g. port 1080. Should the OS manage port number allocations? I don't think so based on the notion of ports being names in an uncontrolled flat namespace. The whole problem is that people want to

Re: Please revert: PCI: fix IDE legacy mode resources

2007-12-06 Thread Ralf Baechle
On Thu, Dec 06, 2007 at 02:58:13PM +0900, Yoichi Yuasa wrote: What I don't understand is thus why you are calling resource_to_bus on 0x1f0 which is -not- a resource value, but is already a BAR value... 0x1f0 is resource value on MIPS Cobalt. All RAW BAR values contain the

Re: FW: Guidance on resources for User Space Device Drivers on 2.6 kernel

2007-12-06 Thread Stefan Richter
Adrian Bunk wrote: On Wed, Dec 05, 2007 at 01:29:23AM -0500, Jaursch, Bill wrote: I have am in the process of writing a driver that is software only. I would like to avoid the caveats of a kernel mode installable module. ... What is a driver that is software only (all kernel code is also

[PATCH 00/47] CRIS patches for CRISv32 EtraxFS and ARTPEC-3

2007-12-06 Thread Jesper Nilsson
Hi, This patchset contains the differences to add support for the EtraxFS and ARTPEC-3 CPUs, both of the CRISv32 family. Both chips can now be compiled with minimal configs. To compile you'll need the Axis gcc cross port for CRISv32, it is mentioned in

[PATCH 02/47] Add new driver files for Artpec-3.

2007-12-06 Thread Jesper Nilsson
Adds gpio and nandflash handling for Artpec-3. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/mach-a3/Makefile|6 + arch/cris/arch-v32/drivers/mach-a3/gpio.c | 984 arch/cris/arch-v32/drivers/mach-a3/nandflash.c | 178 +

[PATCH 03/47] Add new driver files for Etrax-FS

2007-12-06 Thread Jesper Nilsson
Adds gpio and nandflash handling for Etrax-FS Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/mach-fs/Makefile|6 + arch/cris/arch-v32/drivers/mach-fs/gpio.c | 971 arch/cris/arch-v32/drivers/mach-fs/nandflash.c | 172 +

[PATCH 07/47] Add L2 cache initialization code.

2007-12-06 Thread Jesper Nilsson
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/mm/l2cache.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 arch/cris/arch-v32/mm/l2cache.c diff --git a/arch/cris/arch-v32/mm/l2cache.c

[PATCH 08/47] Add SECOND_WORD_SYNC, used in CRISv32 version of sync_serial.

2007-12-06 Thread Jesper Nilsson
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/sync_serial.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/asm-cris/sync_serial.h b/include/asm-cris/sync_serial.h index f930b6e..d87c24d 100644 --- a/include/asm-cris/sync_serial.h +++

[PATCH 09/47] Update CRISv32 synchronous serial driver.

2007-12-06 Thread Jesper Nilsson
Now uses a DMA descriptor ring, which should avoid any unnecessary pauses in the streams. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/sync_serial.c | 940 +++--- 1 files changed, 599 insertions(+), 341 deletions(-) diff --git

[PATCH 10/47] Merge axisflashmap.h with Axis internal changes.

2007-12-06 Thread Jesper Nilsson
- Add partition table struct to be used to parse partition table in flash. - Add JFFS2 as a type, and add readoly flag. - Improve some comments. - Lindent has been run, fixing whitespace and formatting issues. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/axisflashmap.h |

[PATCH 11/47] Minor fixes to CRISv32 irq defines.

2007-12-06 Thread Jesper Nilsson
- Include files using - Change NR_REAL_IRQS to be calculated from the other defines. - Set MACH_IRQS depending on the value of NR_REAL_IRQS. - Remove unused mask parameter to BUILD_IRQ macro. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/arch-v32/irq.h | 15

[PATCH 12/47] Remove unnecessary CVS log from cris/mm/init.c

2007-12-06 Thread Jesper Nilsson
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/mm/init.c | 111 --- 1 files changed, 0 insertions(+), 111 deletions(-) diff --git a/arch/cris/mm/init.c b/arch/cris/mm/init.c index 0c833d1..4207a2b 100644 --- a/arch/cris/mm/init.c

[PATCH 13/47] Add prototypes for cache flushing on CRISv32

2007-12-06 Thread Jesper Nilsson
We need these to work around some cache bugs in CRISv32 chips. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/arch-v32/cache.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/asm-cris/arch-v32/cache.h

[PATCH 14/47] Add headers for CRISv32 chips EtraxFS and Artpec-3.

2007-12-06 Thread Jesper Nilsson
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/Kbuild |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/asm-cris/Kbuild b/include/asm-cris/Kbuild index 14498d5..7ce0692 100644 --- a/include/asm-cris/Kbuild +++ b/include/asm-cris/Kbuild @@

[PATCH 18/47] Remove define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY from CRIS.

2007-12-06 Thread Jesper Nilsson
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/dma-mapping.h | 11 --- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/include/asm-cris/dma-mapping.h b/include/asm-cris/dma-mapping.h index 662cea7..edc8d1b 100644 ---

[PATCH 15/47] Minor fixes to mm/fault.c for CRIS.

2007-12-06 Thread Jesper Nilsson
- Only disallow oops if we're in_interrupt context (was in_atomic before) - Use the generic oops_in_progress instead of the raw_printk hack. - Fix whitespace/formatting. - Remove CVS log entries. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/mm/fault.c | 169

[PATCH 16/47] Minor CRIS generic kernel/traps.c changes.

2007-12-06 Thread Jesper Nilsson
- Collect extern declarations at top of file. - Change raw_printk to printk, use oops_in_progress instead. - Fix formatting and whitespace. - Allow the watchdog to be disabled during oops. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/kernel/traps.c | 226

[PATCH 17/47] Add handling of PTRACE_DETATCH for CRISv32. Whitespace and formatting changes to avoid checkpatch errors.

2007-12-06 Thread Jesper Nilsson
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/kernel/ptrace.c | 13 + arch/cris/arch-v32/mm/Makefile |3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/cris/arch-v32/kernel/ptrace.c b/arch/cris/arch-v32/kernel/ptrace.c

[PATCH 19/47] Update CRISv32 entry.S to working order.

2007-12-06 Thread Jesper Nilsson
- Remove oldset parameter. - Utilise delay-slot for parameter moving. - Add kernel_execve as break 13. - Add new kernel syscalls. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/kernel/entry.S | 82 + 1 files changed, 64 insertions(+),

[PATCH 20/47] Fixup CRISv32 kernel Makefile.

2007-12-06 Thread Jesper Nilsson
- Remove CRISv32 common arbiter, dma, io and pinmux files, they are now defined in machine dependent directories. - Add cache and cacheflush files for working around cache problems in CRISv32 chips. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/kernel/Makefile |5

[PATCH 21/47] New version of CRISv32 I2C driver.

2007-12-06 Thread Jesper Nilsson
- Add i2c_write and i2c_read as functions. - Use spinlocks for critical regions. - Add config item to set I2C data and clock port. - Put unneeded testcode inside #if 0. - Remove CVS id tag. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/i2c.c | 199

[PATCH 22/47] Update and improve axisflashmap for CRISv32.

2007-12-06 Thread Jesper Nilsson
- Use default partition table when no partition is found (for initial tests) - Add config ETRAX_AXISFLASHMAP_MTD0WHOLE to allow whole flash as mtd0. - Add config for VCS simulator connection. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/axisflashmap.c | 488

[PATCH 23/47] Update CRIS main Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old and non-generic targets, use generic ones instead. - Add sub-arch as mach-fs or mach-a3 for EtraxFS and Artpec-3 respectively. - Add links to sub-arch directories, and erase before trying to create them. - Include from sub-arch specific include directory mach. - Add files to be

[PATCH 24/47] Update CRISv10 boot Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old specific targets, use more generic ones instead. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v10/boot/Makefile | 24 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/arch/cris/arch-v10/boot/Makefile

[PATCH 25/47] Update CRISv10 boot compressed Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use EXTRA_CFLAGS instead of CFLAGS. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v10/boot/compressed/Makefile | 48 ++ 1

[PATCH 26/47] Update CRISv10 rescue Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. Removes a lot of cruft. - Use EXTRA_CFLAGS instead of CFLAGS. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v10/boot/rescue/Makefile | 56

[PATCH 27/47] Update CRISv10 rescue head.s

2007-12-06 Thread Jesper Nilsson
- Correct whitespace problems. - Add ifdef for ETRAX_AXISFLASHMAP to avoid compile error when not set. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v10/boot/rescue/head.S | 117 + 1 files changed, 61 insertions(+), 56 deletions(-) diff

[PATCH 28/47] Update and improve CRISv10 axisflashmap.c

2007-12-06 Thread Jesper Nilsson
- Add config to use mtd0 as whole flash device. - Fix whitespace errors. - Remove braces around single statement ifs. - Break long lines. - Remove unnecessary CVS log. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v10/drivers/axisflashmap.c | 181

[PATCH 29/47] Update CRISv32 traps.c

2007-12-06 Thread Jesper Nilsson
- Remove raw_prink hack, use oops_in_progress instead. - When ETRAX_WATCHDOG_NICE_DOGGY is set, loop in trap after oops dump instead of rebooting. - Break long lines to less than 80 chars. - Fix whitespace errors. - Remove unnecessary comments. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED]

[PATCH 36/47] Update CRISv32 boot/rescue/head.S code.

2007-12-06 Thread Jesper Nilsson
- Add ifdef for ETRAX_AXISFLASHMAP to avoid compiling file unless it is set. - Use assembler macros for setting up clocks. - Don't copy image, just jump to it (only works for NOR flash) Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/boot/rescue/head.S | 42

[PATCH 37/47] Update CRISv32 debugport.

2007-12-06 Thread Jesper Nilsson
- Shorten include paths to machine dependent headers. - Add support for fifth serial port. - Remove CONFIG_ETRAXFS_SIM and CONFIG_ETRAX_DEBUG_PORT_NULL, no longer used. - Remove raw_printk and stupid_debug hack, no longer needed. - Remove dummy console stuff, no longer needed. - Correct some

[PATCH 39/47] Update and improve CRISv32 fasttimer.c

2007-12-06 Thread Jesper Nilsson
- Change include path to machine dependent header files. - Remove __INLINE__, it expands to inline anyway. - Don't initialize static variables. - Change timers to use fasttimer_t instead of timevals. - Change name of timeval_cmp to fasttime_cmp to highlight this. - Register name for first timer is

[PATCH 30/47] Update CRISv32 boot Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/boot/Makefile | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff

[PATCH 31/47] Update CRISv32 boot compressed Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use KBUILD_CFLAGS instead of CFLAGS. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/boot/compressed/Makefile | 47 ++ 1

[PATCH 34/47] Update CRISv32 compressed head.S

2007-12-06 Thread Jesper Nilsson
- Fixes for NAND and NOR flash booting. - Use assembler macros for common tasks (clocks, general io etc) - Use (EtraxFS or Artpec-3) machine specific include for dram and hardware init. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/boot/compressed/head.S | 137

[PATCH 33/47] Remove CRISv32 common gpio and nandflash, add mach-fs and mach-a3 as subdirs.

2007-12-06 Thread Jesper Nilsson
Also add board_mmcspi to build if ETRAX_SPI_MMC_BOARD is set. (Generic MMC SPI implementation) Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/Makefile |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/cris/arch-v32/drivers/Makefile

[PATCH 32/47] Update CRISv32 boot rescue Kbuild makefile.

2007-12-06 Thread Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use EXTRA_CFLAGS instead of CFLAGS. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/boot/rescue/Makefile | 41 --- 1

[PATCH 38/47] Include path fix for CRISv32 timex.h

2007-12-06 Thread Jesper Nilsson
- Shorten include path for machine dependent header files. - Correct some formatting issues. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- include/asm-cris/arch-v32/timex.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/asm-cris/arch-v32/timex.h

[PATCH 35/47] Update CRISv32 boot/compressed/misc.c

2007-12-06 Thread Jesper Nilsson
- Shorten include paths to machine specific headers. - Remove fill_inbuf, not defined here. - Return __dest as value from memcpy. - Enable serial port hardware transmitter and receiver in serial_setup. - Correct baudrate divisor calculation, changed from 4800 to 115200. - Add support for Artpec-3

[PATCH 40/47] Update CRISv32 kernel/head.S

2007-12-06 Thread Jesper Nilsson
- Shorten include paths for machine specific header files. - Add magic for booting NAND flash. - Change CONFIG_ETRAXFS_SIM to CONFIG_ETRAX_VCS_SIM. - Use assembler macros for initializing hardware (clocks) - Add stubs for SMP slave CPUs. - Search for cramfs or jffs2 if no romfs found. - Initialize

[PATCH 41/47] Update and simplify CRISv32 kernel/irq.c.

2007-12-06 Thread Jesper Nilsson
- First timer register has changed name to timer0. - Build IRQs with only IRQ number, mask bit will be calculated instead. - Add more IRQs, up to 64 supported. - Use arrays to hold which IRQs triggered instead of trying to do magic with two 32 bit values now that more than 32 IRQs are supported.

[PATCH 42/47] Minor updates to CRISv32 kernel/process.c

2007-12-06 Thread Jesper Nilsson
- Shorten include paths for machine dependent header files. - Remove unused extern declaration of etrax_gpio_wake_up_check. - Register name for first timer is now regi_timer0. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/kernel/process.c | 16 ++-- 1 files

  1   2   3   4   5   >