linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Trying to vfree() nonexistent vm area
       [not found] <mailman.1.1223341202.18311.linuxppc-embedded@ozlabs.org>
@ 2008-10-07  6:14 ` Duy-Ky Nguyen
  2008-10-07 14:51   ` selvamuthukumar v
  0 siblings, 1 reply; 2+ messages in thread
From: Duy-Ky Nguyen @ 2008-10-07  6:14 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Scott Wood

Hello,

My driver uses ioremap() the IMMR_BASE @ 0xE0000000 to access registers.
A user-space app opens and close the deive file on every access to register.

There's no problem with FreeScale Linuc BSP 2..6.20 for eva board 
MPC83813E-RDB.

For the latest FreeScale Linuc BSP 2..6.24 , I have NO problem for the very 
FIRST run.
But after the 1st run, I have problem with the new FreeScale Linuc BSP 
2..6.24 with the following error message

        Trying to vfree() nonexistent vm area (c98a0000)

where c98a0000 is the mapped address of IMMR_BASE 0xE0000000.

So, it appears to me that the device file could be closed improperly as it's 
closed after the 1st run.

I really appreciate your time and help

Best Regards,

Duy-Ky

///////////////////////
Below is outline of the driver

init:
     ppc_base = (unsigned long) ioremap_nocache(PPC_BASE, PPC_SIZE);

//     ppc_base = (unsigned long) ioremap(PPC_BASE, PPC_SIZE);    // failure 
with this way too


close:
    iounmap((void __iomem *)ppc_base);
//    iounmap(PPC_BASE);        // failure with this way too !

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Trying to vfree() nonexistent vm area
  2008-10-07  6:14 ` Trying to vfree() nonexistent vm area Duy-Ky Nguyen
@ 2008-10-07 14:51   ` selvamuthukumar v
  0 siblings, 0 replies; 2+ messages in thread
From: selvamuthukumar v @ 2008-10-07 14:51 UTC (permalink / raw)
  To: Duy-Ky Nguyen; +Cc: Scott Wood, linuxppc-embedded

> ///////////////////////
> Below is outline of the driver
>
> init:
>    ppc_base = (unsigned long) ioremap_nocache(PPC_BASE, PPC_SIZE);
>
> //     ppc_base = (unsigned long) ioremap(PPC_BASE, PPC_SIZE);    // failure
> with this way too
>
>
> close:
>   iounmap((void __iomem *)ppc_base);
> //    iounmap(PPC_BASE);        // failure with this way too !
>
>
init and close seems to be wrong combinations. You can try,

open - ioremap
close - iounmap

or

init - ioremap
exit - iounmap

-- 
Selva

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-07 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1.1223341202.18311.linuxppc-embedded@ozlabs.org>
2008-10-07  6:14 ` Trying to vfree() nonexistent vm area Duy-Ky Nguyen
2008-10-07 14:51   ` selvamuthukumar v

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).