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

2009-06-17 Thread Paul Mundt
On Tue, Jun 16, 2009 at 07:35:24PM -0700, Jared Hulbert wrote: +/* init_mm.page_table_lock must be held before calling! */ +static void pram_page_writeable(unsigned long addr, int rw) +{ + ? ? ? pgd_t *pgdp; + ? ? ? pud_t *pudp; + ? ? ? pmd_t *pmdp; + ? ? ? pte_t *ptep; + + ? ? ?

usb gadget serial changes since 2.6.14

2009-06-17 Thread Daniel Ng
Hi, I'm having trouble porting our in-house UDC driver to 2.6.27. It originally worked on 2.6.14 as an CDC-ACM driver. I notice a lot of changes since 2.6.14. For starters, instead of the single serial.c file, there is now f_serial.c, u_serial.c and f_acm.c. Currently, the UDC driver in

Re: [Ksummit-2009-discuss] Representing Embedded Architectures at the Kernel Summit

2009-06-17 Thread Ralf Baechle
On Tue, Jun 16, 2009 at 09:26:02PM -0700, H. Peter Anvin wrote: I2C or similar busses can be a particularly annoying if they contain essential configuration information such as memory size which is needed long before anything else. So for far a common solution is that platforms are

Re: Representing Embedded Architectures at the Kernel Summit

2009-06-17 Thread Kumar Gala
One topic that was partially touched on was dealing with various memories on embedded systems. We have several sram based allocators in the kernel for various different arch's: - Blackfin sram allocator arch/blackfin/mm/sram-alloc.c - Lite5200(b) sram allocator

Re: Re: [PATCH 14/14] Pramfs: XIP Operations

2009-06-17 Thread Marco
Jared Hulbert wrote: I know. It wasn't my intention to introduce it but as I said in my first patch I've done a porting of this code from 2.6.10 and to remove it I need time to analyze well the code to avoid deadlock and so on. If someone would like to help me I'd really appreciate it.

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

2009-06-17 Thread Marco
Jared Hulbert wrote: +/* init_mm.page_table_lock must be held before calling! */ +static void pram_page_writeable(unsigned long addr, int rw) +{ + ? ? ? pgd_t *pgdp; + ? ? ? pud_t *pudp; + ? ? ? pmd_t *pmdp; + ? ? ? pte_t *ptep; + + ? ? ? pgdp = pgd_offset_k(addr); +

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

2009-06-17 Thread Mike Frysinger
On Wed, Jun 17, 2009 at 12:58, Marco wrote: Jared Hulbert wrote: +#if defined(CONFIG_ARM) || defined(CONFIG_M68K) || defined(CONFIG_H8300) || \ + ? ? ? defined(CONFIG_BLACKFIN) + ? ? ? /* + ? ? ? ?* FIXME: so far only these archs have flush_tlb_kernel_page(), + ? ? ? ?* for the

Re: [Ksummit-2009-discuss] Representing Embedded Architectures at the Kernel Summit

2009-06-17 Thread H. Peter Anvin
Ralf Baechle wrote: However, on most systems, even embedded, bringing up memory falls on firmware (sometimes in the form of a boot loader) so Linux rarely sees it. There are embedded systems were the firmware does not provide a usuable memory map or where that is plain broken. Or Linux

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

2009-06-17 Thread Chris Friesen
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 kernel version. After that I added the XIP support.

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

2009-06-17 Thread Paul Mundt
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 minimal effort, no?

Re: Representing Embedded Architectures at the Kernel Summit

2009-06-17 Thread Paul Mundt
On Tue, Jun 16, 2009 at 09:42:46AM +0300, Mike Rapoport wrote: James Bottomley wrote: We've got to the point where there are simply too many embedded architectures to invite all the arch maintainers to the kernel summit. So, this year, we thought we'd do embedded via topic driven

Re: CDC ACM composite gadget serial not working between Linux and Windows?

2009-06-17 Thread Hans-Christian Egtvedt
On Thu, 18 Jun 2009 12:09:24 +1000 Daniel Ng daniel.ng1...@gmail.com wrote: snipp Please suggest an alternate list if this message is inappropriate for this list. I would guess there is a lot more response to this on the linux-usb mailing list: