Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1167595

Re: Panic when cpu hot-remove

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Jiang Liu <jiang.liu@linux.intel.com>
Newsgroups linux.kernel
Subject Re: Panic when cpu hot-remove
Date Thu, 18 Jun 2015 07:50:02 +0200
Message-ID <pCAS6-7Kt-3@gated-at.bofh.it> (permalink)
References <pCj4R-7np-17@gated-at.bofh.it> <pCkaD-tn-31@gated-at.bofh.it> <pCmFs-48q-27@gated-at.bofh.it>
X-Original-To Alex Williamson <alex.williamson@redhat.com>, Joerg Roedeljoro <joro@8bytes.org>
X-Extloop1 1
X-Ironport-Av E=Sophos;i="5.13,637,1427785200"; d="scan'208";a="748791726"
Organization Intel
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 52
X-Original-Cc 范冬冬 <fandd@inspur.com>, 刘长生 <liuchangsheng@inspur.com>, iommu <iommu@lists.linux-foundation.org>, "jiang.liu@intel.com" <jiang.liu@intel.com>, linux-kernel <linux-kernel@vger.kernel.org>, 闫晓峰 <yanxiaofeng@inspur.com>, Roland Dreier <roland@kernel.org>
X-Original-Date Thu, 18 Jun 2015 13:40:13 +0800
X-Original-Message-ID <558259BD.7080402@linux.intel.com>
X-Original-References <42BB8332972FC149B81C55A0D41E3A79C07469@jtjnmailbox06.home.langchao.com> <20150617115238.GC27750@8bytes.org> <1434551800.5628.5.camel@redhat.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1167595

Show key headers only | View raw


On 2015/6/17 22:36, Alex Williamson wrote:
> On Wed, 2015-06-17 at 13:52 +0200, Joerg Roedeljoro wrote:
>> On Wed, Jun 17, 2015 at 10:42:49AM +0000, 范冬冬 wrote:
>>> Hi maintainer,
>>>
>>> We found a problem that a panic happen when cpu was hot-removed. We also trace the problem according to the calltrace information.
>>> An endless loop happen because value head is not equal to value tail forever in the function qi_check_fault( ).
>>> The location code is as follows:
>>>
>>>
>>> do {
>>>         if (qi->desc_status[head] == QI_IN_USE)
>>>         qi->desc_status[head] = QI_ABORT;
>>>         head = (head - 2 + QI_LENGTH) % QI_LENGTH;
>>>     } while (head != tail);
>>
>> Hmm, this code interates only over every second QI descriptor, and tail
>> probably points to a descriptor that is not iterated over.
>>
>> Jiang, can you please have a look?
> 
> I think that part is normal, the way we use the queue is to always
> submit a work operation followed by a wait operation so that we can
> determine the work operation is complete.  That's done via
> qi_submit_sync().  We have had spurious reports of the queue getting
> impossibly out of sync though.  I saw one that was somehow linked to the
> I/O AT DMA engine.  Roland Dreier saw something similar[1].  I'm not
> sure if they're related to this, but maybe worth comparing.  Thanks,
Thanks, Alex and Joerg!

Hi Dongdong,
	Could you please help to give some instructions about how to
reproduce this issue? I will try to reproduce it if possible.
Thanks!
Gerry

> 
> Alex
> 
> [1] http://lists.linuxfoundation.org/pipermail/iommu/2015-January/011502.html
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Panic when cpu hot-remove Jiang Liu <jiang.liu@linux.intel.com> - 2015-06-18 07:50 +0200
  Re: Panic when cpu hot-remove fandongdong <fandd@inspur.com> - 2015-06-18 10:00 +0200

csiph-web