Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] Fwd:  Problems with raw interface.
@ 2003-09-25 10:38 Santosh Abraham
  2003-09-25 10:50 ` Randolph Chung
  0 siblings, 1 reply; 25+ messages in thread
From: Santosh Abraham @ 2003-09-25 10:38 UTC (permalink / raw)
  To: parisc-linux

The problem seems to be with the flush_dcache_page () routine in
asm-parisc/pgalloc.h.  The routine does not handle the case when
page->mapping == NULL.  It simply ends up calling __flush_dcache_page ()
which only flushes out the cache lines corresponding to the kernel VA.

The cache lines corresponding to the user VA remain unaffected.  In order
for
the user cache lines to be flushed a call to flush_cache_page () or
flush_user_dcache_range ()
must be made.

In order to do this the flush_dcache_page () interface may need to be
modified to take in a user VA as an argument.

If this is not feasible we could as a hack check for page->mapping == NULL
in flush_dcache_page () and call flush_data_cache().  This would be very
expensive.

Also, does'nt __flush_dcache_page () need to have a for loop for "i_mmap"
similar to the one for "i_mmap_shared" ?

thanks,
santosh.

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

end of thread, other threads:[~2003-09-26 14:46 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-25 10:38 [parisc-linux] Fwd: Problems with raw interface Santosh Abraham
2003-09-25 10:50 ` Randolph Chung
2003-09-25 11:19   ` Santosh Abraham
2003-09-25 14:26     ` Matthew Wilcox
2003-09-26  1:08       ` David S. Miller
2003-09-26 11:24         ` Matthew Wilcox
2003-09-26 11:20           ` David S. Miller
2003-09-26 11:57             ` Stephen C. Tweedie
2003-09-26 11:48               ` David S. Miller
2003-09-26 12:20                 ` Matthew Wilcox
2003-09-26 12:38                   ` David S. Miller
2003-09-26 13:11                     ` SANTOSH ABRAHAM
2003-09-26 12:56                       ` David S. Miller
2003-09-26 13:29                         ` Matthew Wilcox
2003-09-26 13:21                           ` David S. Miller
2003-09-26 14:09                             ` Matthew Wilcox
2003-09-26 14:04                               ` David S. Miller
2003-09-26 14:30                                 ` Matthew Wilcox
2003-09-26 14:20                                   ` David S. Miller
2003-09-26 14:42                                     ` Stephen C. Tweedie
2003-09-26 14:26                               ` Stephen C. Tweedie
2003-09-26 11:47           ` Santosh Abraham
2003-09-26 10:42       ` Santosh Abraham
2003-09-26 10:34         ` David S. Miller
2003-09-26 12:12           ` Santosh Abraham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox