All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dheeraj CVR <cvr.dheeraj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: [BUGREPORT] Intel X58 Boards don't boot after "iommu/vt-d: Make root entry visible for hardware right after allocation"
Date: Thu, 16 Jun 2016 10:26:20 +0400	[thread overview]
Message-ID: <CAH-=PyRBZU95f0XPLZQXyaKLPx+K5iNsQs3ucQRj6BPfj9ERBA@mail.gmail.com> (raw)
In-Reply-To: <20160615161149.GJ13971-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1448 bytes --]

I have added some debugging code to see where exactly the hang
happens. The set_root_entry
call works fine without any issues as you have expected. However, the hang
happens when calling flush_context.

flush_context -> qi_flush_context -> qi_submit_sync

The loop "while (qi->desc_status[wait_index] != QI_DONE) {}" in
"qi_submit_sync" executes indefinitely and the control doesn't break.
Hence, "iommu->flush.flush_context()" never returns.

Tested on 2 X58 Motherboards and both hang at the same place with
intel_iommu=on.

Hope this helps.

On Wed, Jun 15, 2016 at 8:11 PM, Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org> wrote:

> On Fri, Apr 29, 2016 at 04:41:23PM +0400, Dheeraj CVR wrote:
> > Hi Joerg,
> >
> > Did you find time to have a look at the dmesg that I have sent to you in
> the
> > earlier email? Please let me know if you need any more debugging info to
> > diagnose this issue.
>
> Yes, I had a look at the dmesg and went through the code again. I have
> no clue yet why that commit causes the issue on your machine. Between
> the two places in the code where the set_root_entry calls are/were,
> there are no other things going on with the iommu hardware, so it
> shouldn't matter when setting the root entry happens earlier.
>
> Can you try to track down (with some debug code) exactly where it is
> hanging? That might bring some more light into the issue.
>
>
>
>         Joerg
>
>


-- 
Regards,
Dheeraj CVR.

[-- Attachment #1.2: Type: text/html, Size: 3445 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2016-06-16  6:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-22 20:35 [BUGREPORT] Intel X58 Boards don't boot after "iommu/vt-d: Make root entry visible for hardware right after allocation" Dheeraj CVR
     [not found] ` <CAH-=PyRpjuKf0XJNyzkVLpggaaYq163AfA84SZ5=DQH2Ys5Lkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-25  3:19   ` Dheeraj CVR
     [not found]     ` <CAH-=PyR-6sY1vuzQSfJyh35Q+WqZKD70Ev7vDns+02h8j=m18Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-25 11:01       ` Joerg Roedel
     [not found]         ` <20160425110151.GE17926-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2016-04-25 11:31           ` Dheeraj CVR
     [not found]             ` <CAH-=PyTGF76sq7LvQH0-28DoK1dXGUOdnCF6z9shF_CWosWYwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-29 12:41               ` Dheeraj CVR
     [not found]                 ` <CAH-=PyTaR-xH7D4eOnFkB-7gojdZW08yHEPP2Gw2-0GjWTA4dw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-15 16:11                   ` Joerg Roedel
     [not found]                     ` <20160615161149.GJ13971-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2016-06-16  6:26                       ` Dheeraj CVR [this message]
     [not found]                         ` <CAH-=PyRBZU95f0XPLZQXyaKLPx+K5iNsQs3ucQRj6BPfj9ERBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-16 10:29                           ` Joerg Roedel
     [not found]                             ` <20160616102914.GA11432-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2016-06-16 16:11                               ` Dheeraj CVR
     [not found]                                 ` <CAH-=PyREixkSp59v_ErYK6rn0X8KLS29XxVCd9u51Yy6+r2tKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-17  9:01                                   ` Joerg Roedel

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='CAH-=PyRBZU95f0XPLZQXyaKLPx+K5iNsQs3ucQRj6BPfj9ERBA@mail.gmail.com' \
    --to=cvr.dheeraj-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.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.