mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Amit Shah" <amitshah@gmx.net>
To: "Jens Axboe" <jens.axboe@oracle.com>, linux-kernel@vger.kernel.org
Subject: Panic in gart_map_sg
Date: Thu, 25 Oct 2007 12:42:04 +0530	[thread overview]
Message-ID: <877aabc40710250012se0afe99s819207e72726d333@mail.gmail.com> (raw)

I get a kernel panic at gart_map_sg+0x201/0x470, which is around here:

	out++;
	flush_gart();
	if (out < nents) {
		sgmap = sg_next(sgmap);
		sgmap->dma_length = 0;
	}
	return out;

8e5:   e8 d6 fc ff ff          callq  5c0 <flush_gart>
 8ea:   ff c3                   inc    %ebx
 8ec:   41 39 df                cmp    %ebx,%r15d
 8ef:   0f 8e 9d 00 00 00       jle    992 <gart_map_sg+0x292>
 8f5:   31 c9                   xor    %ecx,%ecx
 8f7:   f6 45 00 02             testb  $0x2,0x0(%rbp)
 8fb:   0f 84 1f 02 00 00       je     b20 <gart_map_sg+0x420>
 901:   c7 41 18 00 00 00 00    movl   $0x0,0x18(%rcx)
 908:   e9 85 00 00 00          jmpq   992 <gart_map_sg+0x292>
 90d:   0f 1f 00                nopl   (%rax)
 910:   44 89 e0                mov    %r12d,%eax
 913:   29 f0                   sub    %esi,%eax
 915:   45 85 d2                test   %r10d,%r10d
 918:   89 c6                   mov    %eax,%esi
 91a:   0f 85 02 ff ff ff       jne    822 <gart_map_sg+0x122>
 920:   ff ce                   dec    %esi
 922:   75 65                   jne    989 <gart_map_sg+0x289>


My system is an AMD Opteron 1216. I'm not sure if only adding a check
for sgmap != NULL after sg_next is the right fix.

-- 
Amit Shah
http://www.amitshah.net/

             reply	other threads:[~2007-10-25  7:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25  7:12 Amit Shah [this message]
2007-10-25  7:12 ` Jens Axboe
2007-10-25  8:02   ` Amit Shah
2007-10-25  8:13     ` Jens Axboe

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=877aabc40710250012se0afe99s819207e72726d333@mail.gmail.com \
    --to=amitshah@gmx.net \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®