From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758094AbcH3Kf4 (ORCPT ); Tue, 30 Aug 2016 06:35:56 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:57597 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757849AbcH3Kfy (ORCPT ); Tue, 30 Aug 2016 06:35:54 -0400 Subject: Re: [PATCH] generic: Add the exception case checking routine for ppi interrupt To: Marc Zyngier , , , , , References: <1472530639-21616-1-git-send-email-majun258@huawei.com> <57C548D0.3090700@arm.com> CC: From: "majun (F)" Message-ID: <57C5617B.6080801@huawei.com> Date: Tue, 30 Aug 2016 18:35:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <57C548D0.3090700@arm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.177.235.245] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.57C56186.0054,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f03481f8ad3d52aa70d270cc074d98cf Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2016/8/30 16:50, Marc Zyngier 写道: > On 30/08/16 05:17, MaJun wrote: >> From: Ma Jun >> >> During system booting, if the interrupt which has no action registered >> is triggered, it would cause system panic when try to access the >> action member. > > And why would that interrupt be enabled? If you enable a PPI before > registering a handler, you're doing something wrong. > Actually,the problem described above happened during the capture kernel booting. In my system, sometimes there is a pending physical timer interrupt(30) when the first kernel panic and the status is kept until the capture kernel booting. So, this interrupt will be handled during capture kernel booting. Becasue we use virt timer interrupt but not physical timer interrupt in capture kernel, the interrupt 30 has no action handler. Besides, I think we need to do exception check in this function just like "handle_fasteoi_irq" does. Thanks MaJun > Thanks, > > M. >