Dump Management

2008-07-01 Thread Marco Stornelli
to customize the dump information. What do you think about it? Regards, -- Marco Stornelli Embedded Software Engineer CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni http://www.coritel.it [EMAIL PROTECTED] +39 06 72582838 -- To unsubscribe from this list: send the line unsubscribe linux

Re: prevalence of C++ in embedded linux?

2008-07-29 Thread Marco Stornelli
Bernd Petrovitsch ha scritto: On Tue, 2008-07-29 at 09:51 +0200, Alexander Neundorf wrote: On Tuesday 29 July 2008 09:40:20 Marco Stornelli wrote: Robert P. J. Day ha scritto: just curious -- how many folks are working in C++ in their embedded linux work? Not if it's in anyway avoidable

Re: embedded rootfs utility

2008-07-30 Thread Marco Stornelli
debian package and/or to do native development. This is (not yet) meant as a tool to make your final rootfs fit on a small flash partition. Very interesting, where can I found it? Can you give me a site to download it? -- Marco Stornelli Embedded Software Engineer CoRiTeL - Consorzio di Ricerca

PRAMFS with XIP support

2008-10-07 Thread Marco Stornelli
, -- Marco Stornelli Embedded Software Engineer CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni http://www.coritel.it [EMAIL PROTECTED] +39 06 72582838 -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: PRAMFS with XIP support

2008-10-08 Thread Marco Stornelli
scritto: On Tue, Oct 7, 2008 at 05:14, Marco Stornelli wrote: I enjoyed to make a porting of pramfs to the kernel 2.6.26.5. In addition, I made a patch to add execute-in-place support. You can download the patches from the project site under tracker/patches. If you have comments

Re: UIO - interrupt performance

2008-10-20 Thread Marco Stornelli
/majordomo-info.html -- Marco Stornelli Embedded Software Engineer CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni http://www.coritel.it [EMAIL PROTECTED] +39 06 72582838 -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED

Re: UIO - interrupt performance

2008-10-21 Thread Marco Stornelli
No I don't think you can decide kernel or user space, indeed you can read my previous posts, I quite agree with you, I meant the same to Bill Gatliff. Ben Nizette ha scritto: On Tue, 2008-10-21 at 11:30 +0200, Marco Stornelli wrote: I could agree, but the facto due to UIO license condition

Re: [PATCH] uio: add ioctl callback

2008-11-12 Thread Marco Stornelli
Read the file SubmittingPatches in your kernel documentation folder before sending a patch. In addition, check the patch with checkpatch script. You can find the script in the script kernel folder. Send the patch with the right destination. You can know the names (and emails) of the maintainers in

Re: Linux SBC recommendations

2008-12-01 Thread Marco Stornelli
Hi Greg, I suggest you this board: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4102 It's very cheaper, sometimes ago I bought it for 65 Euro. However it hasn't got an host USB port, but only a device one. Regards, Marco Greg Lee ha scritto: I'm in the process of selecting a

Re: [PATCH 13/14] Pramfs: Write Protection

2009-06-18 Thread Marco Stornelli
2009/6/18 Paul Mundt let...@linux-sh.org: On Wed, Jun 17, 2009 at 06:58:00PM +0200, Marco wrote: Jared Hulbert wrote: Why not just fix flush_tlb_range()? If an arch has a flush_tlb_kernel_page() that works then it stands to reason that the flush_tlb_kernel_range() shouldn't work with

Re: [PATCH 00/14] Pramfs: Persistent and protected ram filesystem

2009-06-18 Thread Marco Stornelli
2009/6/17 Chris Friesen cfrie...@nortel.com: Marco wrote: This is a second attempt at mainlining Pramfs. The first attempt was back in early 2004 by MontaVista. Since then the kernel code has almost been completely rewritten. So my first item on the list was porting the code on a recent

Re: [PATCH 06/14] Pramfs: Include files

2009-06-22 Thread Marco Stornelli
2009/6/21 Arnd Bergmann a...@arndb.de: On Sunday 21 June 2009, Marco wrote: I was thinking about your comment and I think I'll use __kernel_off_t for the exported headers. I know that it will differ between 32 and 64 bit architectures, but for this kind of fs there isn't any compatibility

Re: I:Re: [PATCH 06/14] Pramfs: Include files

2009-06-24 Thread Marco Stornelli
On Tue, 23 June 2009 19:38:33 +0200, Marco wrote: dd? You haven't got any device file to have a dump. I think we're going a bit out of scope. I had some doubt to support rootfs in pram and after some feedback and the comments of this review I think I'll remove it from the next release (to

Re: [PATCH 06/14] Pramfs: Include files

2009-06-24 Thread Marco Stornelli
2009/6/23 Arnd Bergmann a...@arndb.de: On Tuesday 23 June 2009, David Woodhouse wrote: And dd on /dev/mem would work, surely? Actually, reading from /dev/mem is only valid on real RAM. If the nvram is part of an IO memory mapping, you have to do mmap()+memcpy() rather than read(). So dd

Re: [PATCH 00/14] Pramfs: Persistent and protected ram filesystem

2009-06-25 Thread Marco Stornelli
2009/6/24 Pavel Machek pa...@ucw.cz: On Wed 2009-06-24 19:38:37, Marco wrote: Pavel Machek wrote: On Mon 2009-06-22 14:50:01, Tim Bird wrote: Pavel Machek wrote: block of fast non-volatile RAM that need to access data on it using a standard filesytem interface. Turns a block of fast

Re: [PATCH 00/14] Pramfs: Persistent and protected ram filesystem

2009-06-28 Thread Marco Stornelli
Pavel Machek wrote: Ah now the write protection is a needed feature, in your previous comment you talked about why not use ext2/3... Marco Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM: Version 1.03e --Sequential Output--

Re: [PATCH 00/14] Pramfs: Persistent and protected ram filesystem

2009-06-28 Thread Marco Stornelli
Pavel Machek wrote: Ah now the write protection is a needed feature, in your previous comment you talked about why not use ext2/3... Marco Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM: Version 1.03e --Sequential Output--

Re: New fast(?)-boot results on ARM

2009-08-18 Thread Marco Stornelli
Dirk Behme wrote: Sascha Hauer wrote: On Fri, Aug 14, 2009 at 07:02:28PM +0200, Robert Schwebel wrote: Hi, On Thu, Aug 13, 2009 at 05:33:26PM +0200, Robert Schwebel wrote: On Thu, Aug 13, 2009 at 08:28:26AM -0700, Arjan van de Ven wrote: That's bad :-) So there is no room for improvement

Re: [PATCH 1/5] printk: introduce CONFIG_PRINTK_VERBOSITY

2009-09-02 Thread Marco Stornelli
Marc Andre Tanner ha scritto: Introduce a config option which allows to selectively compile out printk messages based on a specified verbosity level. Signed-off-by: Marc Andre Tanner m...@brain-dump.org --- init/Kconfig | 29 + 1 files changed, 29

Re: [PATCH 5/5] printk: provide a filtering macro for printk

2009-09-03 Thread Marco Stornelli
2009/9/2 Marc Andre Tanner m...@brain-dump.org: On Wed, Sep 02, 2009 at 06:44:19PM +0200, Marco Stornelli wrote: Marc Andre Tanner ha scritto: +#define printk(fmt, ...) (                                                         \ Shouldn't it be an and? Don't think so

Re: [PATCH, RFC] panic-note: Annotation from user space for panics

2009-11-12 Thread Marco Stornelli
Sincerely, I don't understand why we should involve the kernel to gather this kind of information when we can use other (user-space) tools, only to have all in a single report maybe? I think it's a bit weak reason to include this additional behavior in the kernel. David VomLehn ha scritto:

Re: [PATCH, RFC] panic-note: Annotation from user space for panics

2009-11-14 Thread Marco Stornelli
I think in general the procedure should be: at startup or event (for example acquired IP address from DHCP) user applications write in flash (better in persistent ram) a log with a tag or a timestamp or something like this, when there is a kernel panic, it is captured in a file stored together the

Re: [PATCH, RFC] panic-note: Annotation from user space for panics

2009-11-17 Thread Marco Stornelli
Artem Bityutskiy wrote: On Tue, 2009-11-17 at 13:45 +0100, Marco Stornelli wrote: 2009/11/17 Artem Bityutskiy dedeki...@gmail.com: We need to store this information of NAND flash. Implementing logs on NAND flash is about handling bad blocks, choosing format of records, and may be even

How to store kernel pranic/oops

2009-12-28 Thread Marco Stornelli
Hi, I know the open project proposal 2010 is closed, but it's just to start a discussion. It would be nice to save oops/panic automatically in a structure/file in ram. At the moment there are two way to save information: mtdoops (save the information in flash), with kdump/kexec (we can extract

Re: Re: How to store kernel panic/oops

2009-12-28 Thread Marco Stornelli
David Woodhouse wrote: Can't it be done with what's in the tree already? Just create an MTD device using phram or something else, then point mtdoops at it Yes of course, if possible we shouldn't reinvent the wheel but I wondered if there was something more specific. To add mtdoops (more or

Re: [PATCH V2 6/8] lzma: Make lzma ... thunderbird ok

2010-01-07 Thread Marco Stornelli
Il 07/01/2010 08:43, Hein_Tibosch ha scritto: On 7-1-2010 08:37, Phillip Lougher wrote: Sorry, I was worried it might do that - the curse of Thunderbird. I normally use a really dumb client like mailx to send patches, but I obviously didn't have the email thread under mailx to do that.

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Marco Stornelli
2010/1/20 Johnny Hung johnny.hack...@gmail.com: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: I consider to use ramdisk as rootfs because worry about wrong operation in rootfs (is use jffs2 rootfs) and it will cause system

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-20 Thread Marco Stornelli
2010/1/20 Matthias Kaehlcke matth...@kaehlcke.net: El Wed, Jan 20, 2010 at 08:57:44AM +0100 Marco Stornelli ha dit: 2010/1/20 Johnny Hung johnny.hack...@gmail.com: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: I

[PATCH]: Ram oops/panic logger

2010-03-06 Thread Marco Stornelli
1970-01-01 01:00:00.0 +0100 +++ linux-2.6.33/drivers/char/ramoops.c 2010-03-06 13:36:31.0 +0100 @@ -0,0 +1,163 @@ +/* + * RAM Oops/Panic logger + * + * Copyright (C) 2009 Marco Stornelli marco.storne...@gmail.com + * + * This program is free software; you can redistribute

Re: [PATCH v2] char drivers: Ram oops/panic logger

2010-03-10 Thread Marco Stornelli
2010/3/10 Yuasa Yoichi yu...@linux-mips.org: Hi, 2010/3/10 Marco Stornelli marco.storne...@gmail.com: Ramoops, like mtdoops, can log oops/panic information but in RAM. What is different from mtdoops + mtd-ram? Yoichi It can be used in a very easy way with persistent RAM for systems

Re: [PATCH v2] char drivers: Ram oops/panic logger

2010-03-13 Thread Marco Stornelli
Il 13/03/2010 00:31, Jamie Lokier ha scritto: That'd be fine if the kernel link scripts choose the address, as long as it's consistent between different compiles and similar configurations. That'd be a bit simpler than the admin having to know the memory map well enough to choose an address.

Re: [PATCH v2] char drivers: Ram oops/panic logger

2010-03-13 Thread Marco Stornelli
Il 12/03/2010 23:48, Andrew Morton ha scritto: On Wed, 10 Mar 2010 13:15:25 +0100 Marco Stornelli marco.storne...@gmail.com wrote: 2010/3/10 Yuasa Yoichi yu...@linux-mips.org: 2010/3/10 Marco Stornelli marco.storne...@gmail.com: 2010/3/10 Yuasa Yoichi yu...@linux-mips.org: I meant

Re: [PATCH v2] char drivers: Ram oops/panic logger

2010-03-15 Thread Marco Stornelli
2010/3/15 Jamie Lokier ja...@shareable.org: Marco Stornelli wrote: Il 13/03/2010 00:31, Jamie Lokier ha scritto: I agree, but the bootloader should be aware of it. I mean, usually bootloaders at boot, reset the RAM, so you have to tell to the bootloader that you are using a piece of RAM

[PATCH v3] char drivers: Ram oops/panic logger

2010-03-21 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Ramoops, like mtdoops, can log oops/panic information but in RAM. It can be used with persistent RAM for systems without flash support. In addition, for this systems, with this driver, it's no more needed add to the kernel the mtd subsystem

Re: [PATCH] Pseudo-console for capture and redirection of console output

2010-04-12 Thread Marco Stornelli
2010/4/12 David VomLehn dvoml...@cisco.com: Provide functions for capturing console output for storage. The primary user is likely to be embedded systems that don't have the storage for core dumps but do have a need to log kernel panic information for later evaluation. It offers two main areas

Re: Can I manage/modify console baud rates from userspace?

2010-05-02 Thread Marco Stornelli
02/05/2010 02:02, Paul Smith wrote: I've looked at setserial and it supports a baud_base parameter but that doesn't appear to be what I want (I tried it anyway: changing it didn't work, my console output was still screwed up). Trying to do something like creating customized PXE configs on

Re: [PATCH] console logging detour via printk

2010-05-02 Thread Marco Stornelli
01/05/2010 20:48, Samo Pogacnik wrote: Dne 01.05.2010 (sob) ob 12:04 +0100 je Alan Cox zapisal(a): while i was searching for effective logging of complete console output produced by the kernel and user phase of the boot process, it turned out that only kernel messages imho get systematically

Re: [PATCH] console logging detour via printk

2010-05-03 Thread Marco Stornelli
Il 02/05/2010 15:29, Samo Pogacnik ha scritto: Dne 02.05.2010 (ned) ob 11:58 +0200 je Marco Stornelli zapisal(a): 01/05/2010 20:48, Samo Pogacnik wrote: Mmm...It's an interesting problem. I see in my distro (openSuse) a script called boot.klog that it seems to perform that (even initrd part

omap udc driver problem with beagle board

2010-05-30 Thread Marco Stornelli
Hi, I'm using the kernel 2.6.34 with the beagle board rev. c4. I have got some problems with the ethernet gadget to use nfs over usb. The problem is with the usb. When the g_ether driver register itself, the omap udc driver returns ENODEV because the kernel didn't call the probe for this driver.

Re: omap udc driver problem with beagle board

2010-05-31 Thread Marco Stornelli
2010/5/30 Felipe Balbi m...@felipebalbi.com: On Sun, May 30, 2010 at 11:53:49AM +0200, Marco Stornelli wrote: beagle board uses musb. You shouldn't be relying on the udc controller. Your Kconfig is just wrong. -- balbi Oops, my fault. I see the error in the configuration. Thank you very

Re: [PATCH] detour TTY driver - now ttyprintk

2010-08-25 Thread Marco Stornelli
2010/8/25 Greg KH gre...@suse.de: On Wed, Aug 25, 2010 at 12:51:52AM +0100, Alan Cox wrote: Seriously, look at how Fedora 14 handles this, why can't you do the same for embedded systems all from userspace, no additional code needed anywhere. thanks, greg k-h -- Samo sometimes ago I gave

[PATCH] pramfs: Persistent and protected RAM filesystem

2010-10-05 Thread Marco Stornelli
Hi all, after a lot of improvement, test, bug fix and new features, it's the moment for third round with the kernel community to submit PRAMFS for mainline. First of all, I have to say thanks to Tim Bird and CELF to actively support the project. Since the last review (June 2009) a lot of things

[PATCH 00/16] pramfs: persistent and protected RAM Filesystem

2010-10-10 Thread Marco Stornelli
Hi all, after a lot of improvement, test, bug fix and new features, it's the moment for third round with the kernel community to submit PRAMFS for mainline. Since the last review (June 2009) a lot of things are changed: - removed any reference of BKL - fixed the endianess for the fs layout -

[PATCH 02/16] pramfs: super block operations

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Super block operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/super.c linux-2.6.36/fs/pramfs/super.c --- linux-2.6.36-orig/fs/pramfs/super.c 1970-01-01 01:00:00.0 +0100 +++ linux

[PATCH 06/16] pramfs: inode operations for dirs

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Inode operations for directories. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/namei.c linux-2.6.36/fs/pramfs/namei.c --- linux-2.6.36-orig/fs/pramfs/namei.c 1970-01-01 01:00:00.0 +0100

[PATCH 05/16] pramfs: block allocation

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Block allocation operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/balloc.c linux-2.6.36/fs/pramfs/balloc.c --- linux-2.6.36-orig/fs/pramfs/balloc.c1970-01-01 01:00:00.0

[PATCH 07/16] pramfs: symbolic links

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Symlink operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/symlink.c linux-2.6.36/fs/pramfs/symlink.c --- linux-2.6.36-orig/fs/pramfs/symlink.c 1970-01-01 01:00:00.0 +0100

[PATCH 09/16] pramfs: dir operations

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations for directories. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/dir.c linux-2.6.36/fs/pramfs/dir.c --- linux-2.6.36-orig/fs/pramfs/dir.c 1970-01-01 01:00:00.0 +0100

[PATCH 12/16] pramfs: extended attributes

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Extended attributes operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/xattr.c linux-2.6.36/fs/pramfs/xattr.c --- linux-2.6.36-orig/fs/pramfs/xattr.c 1970-01-01 01:00:00.0 +0100

[PATCH 14(16] pramfs: memory protection

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Memory write protection. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/wprotect.c linux-2.6.36/fs/pramfs/wprotect.c --- linux-2.6.36-orig/fs/pramfs/wprotect.c 1970-01-01 01:00:00.0

[PATCH 16/16] pramfs Makefile and Kconfig

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Makefile and Kconfig. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/Makefile linux-2.6.36/fs/Makefile --- linux-2.6.36-orig/fs/Makefile 2010-09-13 01:07:37.0 +0200 +++ linux-2.6.36/fs

[PATCH 13/16] pramfs: xattr block descriptors tree

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Extended attributes block descriptors tree. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/desctree.c linux-2.6.36/fs/pramfs/desctree.c --- linux-2.6.36-orig/fs/pramfs/desctree.c 1970-01-01

[PATCH 11/16] pramfs: ACL management

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com ACL operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/acl.c linux-2.6.36/fs/pramfs/acl.c --- linux-2.6.36-orig/fs/pramfs/acl.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36/fs

[PATCH 15/16] pramfs: test module

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Test module. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/pramfs_test.c linux-2.6.36/fs/pramfs/pramfs_test.c --- linux-2.6.36-orig/fs/pramfs/pramfs_test.c 1970-01-01 01:00:00.0

[PATCH 04/16] pramfs: file operations

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/file.c linux-2.6.36/fs/pramfs/file.c --- linux-2.6.36-orig/fs/pramfs/file.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36

[PATCH 10/16] pramfs: xip operations

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com XIP operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/xip.c linux-2.6.36/fs/pramfs/xip.c --- linux-2.6.36-orig/fs/pramfs/xip.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36/fs

Re: [PATCH 14(16] pramfs: memory protection

2010-10-11 Thread Marco Stornelli
2010/10/10 Andi Kleen a...@firstfloor.org: Marco Stornelli marco.storne...@gmail.com writes: + +     do { +             pgd = pgd_offset(init_mm, address); +             if (pgd_none(*pgd) || unlikely(pgd_bad(*pgd))) +                     goto out; + +             pud = pud_offset(pgd

Re: [PATCH 15/16] pramfs: test module

2010-10-11 Thread Marco Stornelli
2010/10/10 Randy Dunlap rdun...@xenotime.net: On Sun, 10 Oct 2010 18:37:49 +0200 Marco Stornelli wrote: Above 2 lines need to indented more. Ack. +             return 1; +     } + +     /* +      * Attempt an unprotected clear of checksum information in the +      * superblock

Re: [PATCH 16/16] pramfs Makefile and Kconfig

2010-10-11 Thread Marco Stornelli
2010/10/10 Randy Dunlap rdun...@xenotime.net: On Sun, 10 Oct 2010 18:39:11 +0200 Marco Stornelli wrote: From: Marco Stornelli marco.storne...@gmail.com Makefile and Kconfig. Signed-off-by: Marco Stornelli marco.storne...@gmail.com ---  diff -Nurp linux-2.6.36-orig/fs/pramfs/Kconfig

Re: [PATCH 11/16] pramfs: ACL management

2010-10-11 Thread Marco Stornelli
Il 11/10/2010 14:26, Kieran Bingham ha scritto: On 10/10/2010 17:33, Marco Stornelli wrote: From: Marco Stornellimarco.storne...@gmail.com ACL operations. Signed-off-by: Marco Stornellimarco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/acl.c linux-2.6.36/fs/pramfs/acl.c

Re: [PATCH 14(16] pramfs: memory protection

2010-10-11 Thread Marco Stornelli
Il 10/10/2010 18:46, Andi Kleen ha scritto: This won't work at all on x86 because you don't handle large pages. And it doesn't work on x86-64 because the first 2GB are double mapped (direct and kernel text mapping) Thirdly I expect it won't either on architectures that map the direct

Re: [PATCH 14(16] pramfs: memory protection

2010-10-12 Thread Marco Stornelli
2010/10/12 Andi Kleen a...@firstfloor.org: On Mon, Oct 11, 2010 at 07:32:10PM +0200, Marco Stornelli wrote: Il 10/10/2010 18:46, Andi Kleen ha scritto: This won't work at all on x86 because you don't handle large pages. And it doesn't work on x86-64 because the first 2GB are double

[PATCH 00/16 v2] pramfs: persistent and protected RAM Filesystem

2010-11-06 Thread Marco Stornelli
Hi all, I send the patch series again. I fix documentation problems reported by Randy Dunlap and Kieran Bingham. I reworked the memory protection functions according to the suggestions of Andi Kleen. I ask to Andrew to evaluate to insert this fs in mainline. Marco -- To unsubscribe from this

[PATCH 01/16 v2] pramfs: documentation

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Documentation for PRAMFS. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/Documentation/filesystems/pramfs.txt linux-2.6.36/Documentation/filesystems/pramfs.txt --- linux-2.6.36-orig/Documentation

[PATCH 02/16 v2] pramfs: super block operations

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Super block operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/super.c linux-2.6.36/fs/pramfs/super.c --- linux-2.6.36-orig/fs/pramfs/super.c 1970-01-01 01:00:00.0 +0100 +++ linux

[PATCH 03/16 v2] pramfs: inode operations

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Inode methods (allocate/free/read/write). Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/inode.c linux-2.6.36/fs/pramfs/inode.c --- linux-2.6.36-orig/fs/pramfs/inode.c 1970-01-01 01:00

[PATCH 04/16 v2] pramfs: file operations

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/file.c linux-2.6.36/fs/pramfs/file.c --- linux-2.6.36-orig/fs/pramfs/file.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36

[PATCH 05/16 v2] pramfs: block allocation

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Block allocation operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/balloc.c linux-2.6.36/fs/pramfs/balloc.c --- linux-2.6.36-orig/fs/pramfs/balloc.c1970-01-01 01:00:00.0

[PATCH 07/16 v2] pramfs: symbolic links

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Symlink operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/symlink.c linux-2.6.36/fs/pramfs/symlink.c --- linux-2.6.36-orig/fs/pramfs/symlink.c 1970-01-01 01:00:00.0 +0100

[PATCH 08/16 v2] pramfs: headers

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Definitions for the PRAMFS filesystem. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/pram.h linux-2.6.36/fs/pramfs/pram.h --- linux-2.6.36-orig/fs/pramfs/pram.h 1970-01-01 01:00:00.0

[PATCH 09/16 v2] pramfs: dir operations

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations for directories. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/dir.c linux-2.6.36/fs/pramfs/dir.c --- linux-2.6.36-orig/fs/pramfs/dir.c 1970-01-01 01:00:00.0 +0100

[PATCH 10/16 v2] pramfs: XIP operations

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com XIP operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/xip.c linux-2.6.36/fs/pramfs/xip.c --- linux-2.6.36-orig/fs/pramfs/xip.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36/fs

[PATCH 11/16 v2] pramfs: ACL management

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com ACL operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/acl.c linux-2.6.36/fs/pramfs/acl.c --- linux-2.6.36-orig/fs/pramfs/acl.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36/fs

[PATCH 12/16 v2] pramfs: extended attributes

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Extended attributes operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/xattr.c linux-2.6.36/fs/pramfs/xattr.c --- linux-2.6.36-orig/fs/pramfs/xattr.c 1970-01-01 01:00:00.0 +0100

[PATCH 13/16 v2] pramfs: xattr block descriptors tree

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Extended attributes block descriptors tree. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/desctree.c linux-2.6.36/fs/pramfs/desctree.c --- linux-2.6.36-orig/fs/pramfs/desctree.c 1970-01-01

[PATCH 15/16 v2] pramfs: test module

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Test module. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/pramfs_test.c linux-2.6.36/fs/pramfs/pramfs_test.c --- linux-2.6.36-orig/fs/pramfs/pramfs_test.c 1970-01-01 01:00:00.0

[PATCH 16/16 v2] pramfs: Makefile and Kconfig

2010-11-06 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Makefile and Kconfig. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/Makefile linux-2.6.36/fs/Makefile --- linux-2.6.36-orig/fs/Makefile 2010-09-13 01:07:37.0 +0200 +++ linux-2.6.36/fs

Re: [PATCH 01/16 v2] pramfs: documentation

2010-11-06 Thread Marco Stornelli
Il 06/11/2010 11:39, James Hogan ha scritto: Hi, On Sat, Nov 06, 2010 at 09:56:18AM +0100, Marco Stornelli wrote: From: Marco Stornelli marco.storne...@gmail.com +PRAMFS is write protected. The page table entries that map the backing-store +RAM are normally marked read-only. Write

Re: [PATCH 02/16 v2] pramfs: super block operations

2010-11-06 Thread Marco Stornelli
Il 06/11/2010 12:16, James Hogan ha scritto: Hi Marco, On Sat, Nov 06, 2010 at 09:56:39AM +0100, Marco Stornelli wrote: From: Marco Stornelli marco.storne...@gmail.com +static void pram_set_blocksize(struct super_block *sb, unsigned long size) +{ +int bits; + +/* +* We've

Re: [PATCH 10/16 v2] pramfs: XIP operations

2010-11-06 Thread Marco Stornelli
Il 06/11/2010 14:33, James Hogan ha scritto: Hi, On Sat, Nov 06, 2010 at 09:59:27AM +0100, Marco Stornelli wrote: diff -Nurp linux-2.6.36-orig/fs/pramfs/xip.c linux-2.6.36/fs/pramfs/xip.c --- linux-2.6.36-orig/fs/pramfs/xip.c1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36/fs

Re: [PATCH 08/16 v2] pramfs: headers

2010-11-07 Thread Marco Stornelli
2010/11/7 Ryan Mallon r...@bluewatersys.com: On 11/06/2010 09:58 PM, Marco Stornelli wrote: From: Marco Stornelli marco.storne...@gmail.com Definitions for the PRAMFS filesystem. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/pram.h

Re: [PATCH 08/16 v2] pramfs: headers

2010-11-09 Thread Marco Stornelli
2010/11/8 Ryan Mallon r...@bluewatersys.com: On 11/08/2010 08:49 PM, Marco Stornelli wrote: 2010/11/7 Ryan Mallon r...@bluewatersys.com: On 11/06/2010 09:58 PM, Marco Stornelli wrote: From: Marco Stornelli marco.storne...@gmail.com Definitions for the PRAMFS filesystem. Signed-off

[PATCH 00/16 v3] pramfs: persistent and protected RAM filesystem

2010-11-13 Thread Marco Stornelli
Hi all, third round for the patch series (I hope this is the last one :)). I summarize here the changes to improve the review: v3: - fix a possible memory leak in an error path reported by yidong zhang - fix a warning when using XIP about not used __pram_mmap symbol - fix test module header

[PATCH 01/16 v3] pramfs; documentation

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Documentation for PRAMFS. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/Documentation/filesystems/pramfs.txt linux-2.6.36/Documentation/filesystems/pramfs.txt --- linux-2.6.36-orig/Documentation

[PATCH 03/16 v3] pramfs: inode operations

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Inode methods (allocate/free/read/write). Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/inode.c linux-2.6.36/fs/pramfs/inode.c --- linux-2.6.36-orig/fs/pramfs/inode.c 1970-01-01 01:00

[PATCH 04/16 v3] pramfs: file operations

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/file.c linux-2.6.36/fs/pramfs/file.c --- linux-2.6.36-orig/fs/pramfs/file.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36

[PATCH 07/16 v3] pramfs: symbolic links

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Symlink operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/symlink.c linux-2.6.36/fs/pramfs/symlink.c --- linux-2.6.36-orig/fs/pramfs/symlink.c 1970-01-01 01:00:00.0 +0100

[PATCH 08/16 v3] pramfs: headers

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Definitions for the PRAMFS filesystem. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/pram.h linux-2.6.36/fs/pramfs/pram.h --- linux-2.6.36-orig/fs/pramfs/pram.h 1970-01-01 01:00:00.0

[PATCH 09/16 v3] pramfs: dir operations

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations for directories. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/dir.c linux-2.6.36/fs/pramfs/dir.c --- linux-2.6.36-orig/fs/pramfs/dir.c 1970-01-01 01:00:00.0 +0100

[PATCH 10/16 v3] pramfs: XIP operations

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com XIP operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/xip.c linux-2.6.36/fs/pramfs/xip.c --- linux-2.6.36-orig/fs/pramfs/xip.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36/fs

[PATCH 12/16 v3] pramfs: extended attributes

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Extended attributes operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/xattr.c linux-2.6.36/fs/pramfs/xattr.c --- linux-2.6.36-orig/fs/pramfs/xattr.c 1970-01-01 01:00:00.0 +0100

[PATCH 13/16 v3] pramfs: xattr attributes block descriptors tree

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Extended attributes block descriptors tree. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/desctree.c linux-2.6.36/fs/pramfs/desctree.c --- linux-2.6.36-orig/fs/pramfs/desctree.c 1970-01-01

[PATCH 14/16 v3] pramfs: memory protection

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Memory write protection. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/wprotect.c linux-2.6.36/fs/pramfs/wprotect.c --- linux-2.6.36-orig/fs/pramfs/wprotect.c 1970-01-01 01:00:00.0

[PATCH 16/16 v3] pramfs: makefile and Kconfig

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Makefile and Kconfig. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/Makefile linux-2.6.36/fs/Makefile --- linux-2.6.36-orig/fs/Makefile 2010-09-13 01:07:37.0 +0200 +++ linux-2.6.36/fs

[PATCH 15/16 v3] pramfs: test module

2010-11-13 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Test module. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/pramfs_test.c linux-2.6.36/fs/pramfs/pramfs_test.c --- linux-2.6.36-orig/fs/pramfs/pramfs_test.c 1970-01-01 01:00:00.0

Re: [PATCH 02/16 v3] pramfs: super operations

2010-11-14 Thread Marco Stornelli
2010/11/15 yidong zhang zhang...@gmail.com: hi Marco +       retval = 0; + out: +       if (retval sbi-virt_addr) { +               iounmap(sbi-virt_addr); +               release_mem_region(sbi-phys_addr, initsize); +               kfree(sbi); +       } + +       return retval; +} +

[PATCH 01/16 v4] pramfs: documentation

2010-11-20 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Documentation for PRAMFS. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/Documentation/filesystems/pramfs.txt linux-2.6.36/Documentation/filesystems/pramfs.txt --- linux-2.6.36-orig/Documentation

[PATCH 03/26 v4] pramfs: inode operations

2010-11-20 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Inode methods (allocate/free/read/write). Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/inode.c linux-2.6.36/fs/pramfs/inode.c --- linux-2.6.36-orig/fs/pramfs/inode.c 1970-01-01 01:00

[PATCH 04/16 v4] pramfs: file operations

2010-11-20 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com File operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/file.c linux-2.6.36/fs/pramfs/file.c --- linux-2.6.36-orig/fs/pramfs/file.c 1970-01-01 01:00:00.0 +0100 +++ linux-2.6.36

[PATCH 05/16 v4] pramfs: block allocation

2010-11-20 Thread Marco Stornelli
From: Marco Stornelli marco.storne...@gmail.com Block allocation operations. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -Nurp linux-2.6.36-orig/fs/pramfs/balloc.c linux-2.6.36/fs/pramfs/balloc.c --- linux-2.6.36-orig/fs/pramfs/balloc.c1970-01-01 01:00:00.0

  1   2   >