linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Martin Costabel <costabel@wanadoo.fr>
To: mlan@cpu.lu
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: per-fb mmap for platinumfb and valkyriefb in 2.4 (and 2.2)
Date: Fri, 15 Sep 2000 00:48:31 +0200	[thread overview]
Message-ID: <39C155BF.1A150162@wanadoo.fr> (raw)
In-Reply-To: 200009140546.HAA00808@piglet.grunz.lu


Michel Lanners wrote:

> > Tried it for valkyriefb: Doesn't work. It works in console mode, where
> > it actually feels like it is scrolling fast, but starting X gives an
> > immediate system freeze. I tried it twice, but now I'll go to bed.

> Can you have a look and see what might be wrong? Ill do the same,
> hopefully tonight, but no guarantee...

I don't really understand these things (as usual), but from staring at
your code it seemed to me that inserting the following line might be a
good idea (this is for the 2.4.0 case; I haven't tried the 2.2.x patch,
but there a corresponding line is present):

--- drivers/video/valkyriefb.c~ Wed Sep 13 23:18:59 2000
+++ drivers/video/valkyriefb.c  Thu Sep 14 23:58:12 2000
@@ -308,6 +308,7 @@
                pgprot_val(vma->vm_page_prot) |= _PAGE_WRITETHRU;
        }
        start &= PAGE_MASK;
+       off += start;
        vma->vm_pgoff = off >> PAGE_SHIFT;
        if (io_remap_page_range(vma->vm_start, off,
            vma->vm_end - vma->vm_start, vma->vm_page_prot))

In any case, it is working now. In fact, I don't see any difference
between the situation before and after the patch. For x11perf
--scroll500, I get exactly as before 36.2/sec for 1024x768 at 8bit. This
is with XFree68-4.0.1; used to be 13/sec with older X servers.

One funny thing: In X, my Alt keys don't work correctly ("ModeShift")
any more, they give "Alt_R" now. In the console, this is still OK. I
suppose this cannot come from the mmap stuff, so this must come from
some of the other changes in the bitkeeper tree in the last 2 days. I
didn't change anything else in my config.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-09-14 22:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-13 20:36 per-fb mmap for platinumfb and valkyriefb in 2.4 Michel Lanners
2000-09-13 21:10 ` per-fb mmap for platinumfb and valkyriefb in 2.4 (and 2.2) Michel Lanners
2000-09-13 22:24   ` Martin Costabel
2000-09-14  5:46     ` Michel Lanners
2000-09-14 22:48       ` Martin Costabel [this message]
2000-09-14 23:07         ` Martin Costabel
2000-09-15  8:57         ` Michel Dänzer
2000-11-19 11:04 ` per-fb mmap for platinumfb and valkyriefb in 2.4 Michel Lanners

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39C155BF.1A150162@wanadoo.fr \
    --to=costabel@wanadoo.fr \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=mlan@cpu.lu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).