public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Norbert Preining <preining@logic.at>
Cc: linux-kernel@vger.kernel.org, luc@saillard.org,
	Andrew Morton <akpm@osdl.org>
Subject: Re: rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic
Date: Sun, 17 Oct 2004 02:30:18 -0700	[thread overview]
Message-ID: <20041017093018.GY5607@holomorphy.com> (raw)
In-Reply-To: <20041017073614.GC7395@gamma.logic.tuwien.ac.at>

On Sun, Oct 17, 2004 at 09:36:14AM +0200, Norbert Preining wrote:
> @@ -1618,7 +1618,7 @@
>         pos = (unsigned long)pdev->image_data;
>         while (size > 0) {
>                 page = kvirt_to_pa(pos);
> -               if (remap_page_range(vma, start, page, PAGE_SIZE,
>                 PAGE_SHARED))
> +               if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
>                         return -EAGAIN;
>  
>                 start += PAGE_SIZE;
> the module compiled and loaded without problem, but when starting
> gnomemeeting I get the following kernel BUG and scheduling while atomic:

You need to right shift the argument by PAGE_SHIFT.


-- wli

  reply	other threads:[~2004-10-17  9:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-17  7:36 rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic Norbert Preining
2004-10-17  9:30 ` William Lee Irwin III [this message]
2004-10-17 18:22   ` William Lee Irwin III
2004-10-17 18:35   ` rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic [u] Martin Schlemmer [c]
2004-10-17 19:00     ` William Lee Irwin III
2004-10-17 19:57       ` Martin Schlemmer [c]
2004-10-17 20:13         ` William Lee Irwin III

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=20041017093018.GY5607@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luc@saillard.org \
    --cc=preining@logic.at \
    /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