Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp338518ybh; Wed, 11 Mar 2020 02:04:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsx1mAOx34caFhOsg2kXv83jLQgv59+qgwTin+jchmvGhn0QurZ6d/2ORLJ85Rr6bbtA94b X-Received: by 2002:a05:6808:d7:: with SMTP id t23mr1210215oic.69.1583917459959; Wed, 11 Mar 2020 02:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583917459; cv=none; d=google.com; s=arc-20160816; b=F7Dtf3+mjMcfEJMfC/eBeinzFEQ1sntA02CaXCZltRh7lHTtJnsbgWYUGxZUXs4RK+ 2SIqnasiyVaCqwk4a/eOYy+Q46sCh4I4JJ3bwbkitC/htjgDCNaK+9A+KJYw9fm/xqsr iamnaoJ0JkvXGLgh2JFmmMdBmUm8VtP45yEdro7Pjb1uMiSLXncho0B1IkW7+pOXgXF8 4TSgO9RPSPMJ3Ro+SRgPFdwZrmQeFFemgXkoGFrbQo2rbjWvcEMdvouklhlG8JV53WFr 4SNkXM0fJzHtHXQ4jvNOsPOxTrP5EnCEaAg/3wv5u++hHfWowvu2E6z161evCvFf/YrI u97A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8bM/wCwSXrnJCqsSvi8wWOGSbVzcZwUzc890uChHZBM=; b=bA2lmbNvqHAUd1ZhYE56RsiCxNm31Ho6OaHUmXXjdPwSUF6D+EkkREY6yQRB7nBLJs tHycuCRUaL+uOntDL66i2Q1dhnw/7wLUqYxW6ZOW/gRX8I+IE5iEBi5LZEECphGxrPF2 EIM8stYKTOBqgB2ER+qVzcNp8jNP/VSSYAdTbjJEE4SbZwnhQYAwaVZ/waDs1dtnQAAY Q84djZHrPrD/xW3yEXmjSqg0CTfrxTdX8Fk7Z0JeTH+prf7NiBkomcyJZsNsDSuMXbm2 Wx4RDWc7WlX2M2GJBj0u/STtqok15jK3qn86f9ABxFjSF5FP24DQpIuODqzT7kRzRvS3 ksbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MREjE9QB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si797412oiv.55.2020.03.11.02.04.06; Wed, 11 Mar 2020 02:04:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MREjE9QB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728610AbgCKJDM (ORCPT + 99 others); Wed, 11 Mar 2020 05:03:12 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37064 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbgCKJDM (ORCPT ); Wed, 11 Mar 2020 05:03:12 -0400 Received: by mail-pl1-f193.google.com with SMTP id f16so784585plj.4; Wed, 11 Mar 2020 02:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8bM/wCwSXrnJCqsSvi8wWOGSbVzcZwUzc890uChHZBM=; b=MREjE9QBCCArLm3xVHXuKh2eNZCJvpe+U6eHgBpAqgXckRvOTJXvl4rYPKvUsIuZft jSJc8Y9dEKJhD5RYe2r0DsZpdV9SzwzZeRyMzui9EsDm72JpbYGCzLRSNFsJ+iBi6iI+ Rxhn6PWNk7akIN5WNAiF3YsIMwWOFHSnyBSVP64A2yUNuOD9jjCwCzq3Ze8QSEr7xZ0r CrX1ZjcHqj0shB7vUkzeN802e9xi7CVc2d1IV31kH5CEce+i3iNygy0t8ZUMlfSNop+1 4of2bEMFwEzqcuH/8QYIhAv5sbGJ2PThpb+CRC8AIhMywlqC1z0x95Vkt5bAki6IHgux dO0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8bM/wCwSXrnJCqsSvi8wWOGSbVzcZwUzc890uChHZBM=; b=qq6/SXNGBDAcZDZCr+HRyd2BRCkroeFUYDhSPtBybXoq4NPUGKpmEaqRHouUwGl1Aj OTR+cBoyTO3xZ512Iwyd0X/qIh4gFzrWNzC+F2OIWMVdR3up/8DLgVEmsxQfTyt+4B11 m2TvL3BgQQJiiYRhtSIYUqi3LWBc5dlAHkn+lgHgwehAN+BUU7hksIKJprm75csmjGuc B5XdDly8+goNV2mGsJsUc5lUfrlQIA79+DB8KuFGstV3iyYcEbWg7JUc0wuPGbs38SnZ I2GHwySakcWoc1t/LbjK3t2keKbVBPZ1sIUIbf6f4hjGxXRLjYRwvqvZ12pTu8BuBduL jC7A== X-Gm-Message-State: ANhLgQ2JqEb+6FLzZIMVeUUMufsd1wLdCK32rj04t6sgReJNwZS0xwml VHrYkN9MGFuQDoMP86w40aa5hKEm X-Received: by 2002:a17:902:7248:: with SMTP id c8mr2219680pll.282.1583917391010; Wed, 11 Mar 2020 02:03:11 -0700 (PDT) Received: from localhost ([106.51.232.35]) by smtp.gmail.com with ESMTPSA id i6sm10456074pfe.62.2020.03.11.02.03.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Mar 2020 02:03:10 -0700 (PDT) Date: Wed, 11 Mar 2020 14:33:08 +0530 From: afzal mohammed To: Nathan Chancellor Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Bogendoerfer , Ralf Baechle , Paul Burton , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, "Maciej W. Rozycki" , Jiaxun Yang , Keguang Zhang , Huacai Chen , John Crispin Subject: Re: [PATCH v4] MIPS: Replace setup_irq() by request_irq() Message-ID: <20200311090308.GA5060@afzalpc> References: <20200304203144.GA4323@alpha.franken.de> <20200305115759.3186-1-afzal.mohd.ma@gmail.com> <20200311053126.GA48442@ubuntu-m2-xlarge-x86> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200311053126.GA48442@ubuntu-m2-xlarge-x86> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Mar 10, 2020 at 10:31:26PM -0700, Nathan Chancellor wrote: > This patch regresses booting malta_defconfig with both GCC and clang > with this rootfs and QEMU 4.2.0: On a quick debug, Diff at the end seems to fix the issue. i realize that all the execution sequences that can alter the earlier statically defined struct irqaction fields needs to be taken care carefully,let me recheck the resolution here as well as other instances where this kind of issue can happen. i will sent a proper patch later. > > https://github.com/ClangBuiltLinux/continuous-integration/blob/a85e3e44c2570847e22ad8f92f317c2b007c4517/images/mipsel/rootfs.cpio > > $ timeout 2m qemu-system-mipsel -machine malta -cpu 24Kf -initrd rootfs.cpio -kernel vmlinux -m 512m -display none -serial mon:stdio > > just hangs. I have not done further debugging past the initial bisect. Thanks for the reproducer. Regards afzal diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c index 64e917dfe6b2..d24e4f2985c3 100644 --- a/arch/mips/kernel/cevt-r4k.c +++ b/arch/mips/kernel/cevt-r4k.c @@ -252,7 +252,7 @@ unsigned int __weak get_c0_compare_int(void) int r4k_clockevent_init(void) { - unsigned long flags = IRQF_PERCPU | IRQF_TIMER | IRQF_SHARED; + unsigned long flags = IRQF_PERCPU | IRQF_TIMER; unsigned int cpu = smp_processor_id(); struct clock_event_device *cd; unsigned int irq, min_delta;