All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Airlie <airlied@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	Jani Nikula <jani.nikula@linux.intel.com>,
	Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Pavel Machek <pavel@ucw.cz>,
	Chris Wilson <chris@chris-wilson.co.uk>,
	Matthew Auld <matthew.auld@intel.com>,
	intel-gfx <intel-gfx@lists.freedesktop.org>,
	kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [Intel-gfx] 5.9-rc1: graphics regression moved from -next to mainline
Date: Wed, 19 Aug 2020 11:12:50 +1000	[thread overview]
Message-ID: <CAPM=9tw8LVWsuA6m_nkUDgm00iz2txYRNZY0b0WWZbyiUVzLEw@mail.gmail.com> (raw)
In-Reply-To: <CAHk-=wh6_eWwvpL=AhOeY0btf_dkpu+0joNzPZWfbBWgAeAhMA@mail.gmail.com>

On Wed, 19 Aug 2020 at 10:38, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> Ping on this?
>
> The code disassembles to
>
>   24: 8b 85 d0 fd ff ff    mov    -0x230(%ebp),%eax
>   2a:* c7 03 01 00 40 10    movl   $0x10400001,(%ebx) <-- trapping instruction
>   30: 89 43 04              mov    %eax,0x4(%ebx)
>   33: 8b 85 b4 fd ff ff    mov    -0x24c(%ebp),%eax
>   39: 89 43 08              mov    %eax,0x8(%ebx)
>   3c: e9                    jmp ...
>
> which looks like is one of the cases in __reloc_entry_gpu(). I *think*
> it's this one:
>
>         } else if (gen >= 3 &&
>                    !(IS_I915G(eb->i915) || IS_I915GM(eb->i915))) {
>                 *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
>                 *batch++ = addr;
>                 *batch++ = target_addr;
>
> where that "batch" pointer is 0xf8601000, so it looks like it just
> overflowed into the next page that isn't there.
>
> The cleaned-up call trace is
>
>   drm_ioctl+0x1f4/0x38b ->
>     drm_ioctl_kernel+0x87/0xd0 ->
>       i915_gem_execbuffer2_ioctl+0xdd/0x360 ->
>         i915_gem_do_execbuffer+0xaab/0x2780 ->
>           eb_relocate_vma
>
> but there's a lot of inling going on, so..
>
> The obvious suspect is commit 9e0f9464e2ab ("drm/i915/gem: Async GPU
> relocations only") but that's going purely by "that seems to be the
> main relocation change this mmrge window".

I think there's been some discussion about reverting that change for
other reasons, but it's quite likely the culprit.

Maybe we can push for a revert sooner, (cc'ing more of i915 team).

Dave.

WARNING: multiple messages have this Message-ID (diff)
From: Dave Airlie <airlied@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	 Jani Nikula <jani.nikula@linux.intel.com>,
	 Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	 Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: kernel list <linux-kernel@vger.kernel.org>,
	intel-gfx <intel-gfx@lists.freedesktop.org>,
	Matthew Auld <matthew.auld@intel.com>,
	Pavel Machek <pavel@ucw.cz>,
	Chris Wilson <chris@chris-wilson.co.uk>
Subject: Re: [Intel-gfx] 5.9-rc1: graphics regression moved from -next to mainline
Date: Wed, 19 Aug 2020 11:12:50 +1000	[thread overview]
Message-ID: <CAPM=9tw8LVWsuA6m_nkUDgm00iz2txYRNZY0b0WWZbyiUVzLEw@mail.gmail.com> (raw)
In-Reply-To: <CAHk-=wh6_eWwvpL=AhOeY0btf_dkpu+0joNzPZWfbBWgAeAhMA@mail.gmail.com>

On Wed, 19 Aug 2020 at 10:38, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> Ping on this?
>
> The code disassembles to
>
>   24: 8b 85 d0 fd ff ff    mov    -0x230(%ebp),%eax
>   2a:* c7 03 01 00 40 10    movl   $0x10400001,(%ebx) <-- trapping instruction
>   30: 89 43 04              mov    %eax,0x4(%ebx)
>   33: 8b 85 b4 fd ff ff    mov    -0x24c(%ebp),%eax
>   39: 89 43 08              mov    %eax,0x8(%ebx)
>   3c: e9                    jmp ...
>
> which looks like is one of the cases in __reloc_entry_gpu(). I *think*
> it's this one:
>
>         } else if (gen >= 3 &&
>                    !(IS_I915G(eb->i915) || IS_I915GM(eb->i915))) {
>                 *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
>                 *batch++ = addr;
>                 *batch++ = target_addr;
>
> where that "batch" pointer is 0xf8601000, so it looks like it just
> overflowed into the next page that isn't there.
>
> The cleaned-up call trace is
>
>   drm_ioctl+0x1f4/0x38b ->
>     drm_ioctl_kernel+0x87/0xd0 ->
>       i915_gem_execbuffer2_ioctl+0xdd/0x360 ->
>         i915_gem_do_execbuffer+0xaab/0x2780 ->
>           eb_relocate_vma
>
> but there's a lot of inling going on, so..
>
> The obvious suspect is commit 9e0f9464e2ab ("drm/i915/gem: Async GPU
> relocations only") but that's going purely by "that seems to be the
> main relocation change this mmrge window".

I think there's been some discussion about reverting that change for
other reasons, but it's quite likely the culprit.

Maybe we can push for a revert sooner, (cc'ing more of i915 team).

Dave.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2020-08-19  1:13 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17 16:11 5.9-rc1: graphics regression moved from -next to mainline Pavel Machek
2020-08-17 16:11 ` [Intel-gfx] " Pavel Machek
2020-08-19  0:38 ` Linus Torvalds
2020-08-19  0:38   ` [Intel-gfx] " Linus Torvalds
2020-08-19  1:12   ` Dave Airlie [this message]
2020-08-19  1:12     ` Dave Airlie
2020-08-19  1:59     ` Linus Torvalds
2020-08-19  1:59       ` Linus Torvalds
2020-08-19 16:57       ` Pavel Machek
2020-08-19 16:57         ` Pavel Machek
2020-08-19 20:19       ` Pavel Machek
2020-08-19 20:19         ` Pavel Machek
2020-08-20  9:23       ` Pavel Machek
2020-08-20  9:23         ` Pavel Machek
2020-08-20 16:16         ` Linus Torvalds
2020-08-20 16:16           ` Linus Torvalds
2020-08-21  9:19           ` Pavel Machek
2020-08-21  9:19             ` Pavel Machek
2020-08-25  9:55             ` Jani Nikula
2020-08-25  9:55               ` Jani Nikula
2020-08-25 16:31               ` Harald Arnesen
2020-08-25 16:31                 ` Harald Arnesen
2020-08-25 18:19                 ` Linus Torvalds
2020-08-25 18:19                   ` Linus Torvalds
2020-08-25 21:38                   ` Harald Arnesen
2020-08-25 21:38                     ` Harald Arnesen
2020-08-26  8:36                   ` Harald Arnesen
2020-08-26  8:36                     ` Harald Arnesen
2020-08-26  9:30                     ` Harald Arnesen
2020-08-26  9:30                       ` Harald Arnesen
2020-08-26 18:04                       ` Linus Torvalds
2020-08-26 18:04                         ` Linus Torvalds
2020-08-26 20:44                         ` Harald Arnesen
2020-08-26 20:44                           ` Harald Arnesen
2020-08-26 20:47                           ` Dave Airlie
2020-08-26 20:47                             ` Dave Airlie
2020-08-26 20:53                             ` Harald Arnesen
2020-08-26 20:53                               ` Harald Arnesen
2020-08-26 20:59                               ` Linus Torvalds
2020-08-26 20:59                                 ` Linus Torvalds
2020-08-27  7:14                                 ` Harald Arnesen
2020-08-27  7:14                                   ` Harald Arnesen
2020-08-27  7:28                                   ` Pavel Machek
2020-08-27  7:28                                     ` Pavel Machek
2020-09-01 11:57                                 ` Harald Arnesen
2020-09-01 11:57                                   ` Harald Arnesen
2020-09-09  9:15                                   ` Pavel Machek
2020-09-09  9:15                                     ` Pavel Machek

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='CAPM=9tw8LVWsuA6m_nkUDgm00iz2txYRNZY0b0WWZbyiUVzLEw@mail.gmail.com' \
    --to=airlied@gmail.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew.auld@intel.com \
    --cc=pavel@ucw.cz \
    --cc=rodrigo.vivi@intel.com \
    --cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.