From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31253C433EF for ; Thu, 2 Dec 2021 14:14:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=+uIERoivEtJvR7/QPZKVqkxZ7Flc0x6aFYGi1L8LfuA=; b=tisdLDIlfEyDIO3MHRDV4Nuim9 7i6Rmt/+KNFtMlXxyw5yBkPE7LY4WJ9Gy4XAUcnbhkdEuc9wwcutgnRKAqvL1V9ARgleU2N8DIOh4 8EiLbX8Kzv6Xsb/D9bu1IHoWxDzKv2mVDvXHcqhrkQHYpRxDUjjOGiFbEPMXRZAvl9HmSpyXOI58N Hso4orAhHsfi9fHxz+31XWD0wugCYej321h0I49y6FwvVtWVXCsW72Z56o2EcCcTkS0KZMfyLSJe0 fwXJTfAh0PWZVRBJjsLSvbXWZ7Rk8Y0nFedF3Gq2K2wG/Fm0RFG3QCBvGLxE0LZuAGZtk3oWsCOkB vKa/CNhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msmp7-00CVmJ-MQ; Thu, 02 Dec 2021 14:12:33 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msmp3-00CVlU-Q6 for linux-arm-kernel@lists.infradead.org; Thu, 02 Dec 2021 14:12:31 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EBAC011D4; Thu, 2 Dec 2021 06:12:22 -0800 (PST) Received: from [10.57.0.159] (unknown [10.57.0.159]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5B8953F766; Thu, 2 Dec 2021 06:12:20 -0800 (PST) Subject: Re: [PATCH 2/2] irqchip: nvic: Use GENERIC_IRQ_MULTI_HANDLER To: Ard Biesheuvel , Arnd Bergmann Cc: Linux ARM , Russell King - ARM Linux , Mark Rutland , Marc Zyngier , Jesse Taube References: <20211201110259.84857-1-vladimir.murzin@arm.com> <20211201110259.84857-2-vladimir.murzin@arm.com> From: Vladimir Murzin Message-ID: <9a05bba9-8491-77c2-5cb1-f2010f05c960@arm.com> Date: Thu, 2 Dec 2021 14:12:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211202_061229_994880_4DC83C3F X-CRM114-Status: GOOD ( 23.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12/2/21 11:05 AM, Ard Biesheuvel wrote: > On Thu, 2 Dec 2021 at 10:45, Arnd Bergmann wrote: >> >> On Thu, Dec 2, 2021 at 10:33 AM Vladimir Murzin wrote: >>> >>> On 12/2/21 9:23 AM, Arnd Bergmann wrote: >>>> On Thu, Dec 2, 2021 at 9:35 AM Ard Biesheuvel wrote: >>>>> >>>>> It seems trivial enough to add that for v7m as well, so I will include >>>>> a patch for it in my v3. But I won't be able to test it, though. >>>> >>>> Ok, perfect. Adding Jesse to Cc, they are in the process of adding another >>>> Cortex-M based platform and should be able to test this by merging in your >>>> changes from [1] after you have uploaded the latest version. >>> >>> I'm happy to test it as well. I'm wondering if there are specific scenarios >>> (or maybe some tests) to consider? >> >> If the IRQ stacks fail in some way, it most likely won't boot at all, so as long >> as you can get into user space, I'd be 99% confident that it's good. >> >> For the MMU based platforms, the series lets us detect stack overflows >> when either the per-thread stack or the IRQ stack runs into an unmapped >> vmalloc page, and there are some unit tests that exercise this. >> I don't think you can do this with the MPU though, and certainly not when >> the MPU is disabled. >> > > Latest version of the code is here, if anyone wants to test it: > https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=arm-up-ti-in-task-v3 > I'm afraid it is broken (even w/o last patch). I'm getting [ 0.071350] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.071747] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.084497] bad: scheduling from the idle thread! [ 0.084744] CPU: 0 PID: 0 Comm: kworker/0:0H Not tainted 5.16.0-rc1-0f57a2aad139 #2428 [ 0.085357] Hardware name: Generic DT based system $ git bisect log git bisect start # good: [fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf] Linux 5.16-rc1 git bisect good fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf # bad: [e42c59caa4d8f37444388cc388bfc55653bf00dc] ARM: v7m: enable support for IRQ stacks git bisect bad e42c59caa4d8f37444388cc388bfc55653bf00dc # good: [cbf7b30e70b7e2eacebd885674675746e93583f6] ARM: entry: rework stack realignment code in svc_entry git bisect good cbf7b30e70b7e2eacebd885674675746e93583f6 # good: [02c0315277721c4fc2082850da0714127594473d] irqchip: nvic: Use GENERIC_IRQ_MULTI_HANDLER git bisect good 02c0315277721c4fc2082850da0714127594473d # good: [9cc24032abc2847a8e61e55e2ec9bd34e1eff1c4] ARM: percpu: add SMP_ON_UP support git bisect good 9cc24032abc2847a8e61e55e2ec9bd34e1eff1c4 # good: [8adfea395669037ee79620b8b534e101d5ce65e6] ARM: smp: defer TPIDRURO update for SMP v6 configurations too git bisect good 8adfea395669037ee79620b8b534e101d5ce65e6 # bad: [0f57a2aad13912dde5746ffc5f43bd46aa3d8b2d] ARM: implement THREAD_INFO_IN_TASK for uniprocessor systems git bisect bad 0f57a2aad13912dde5746ffc5f43bd46aa3d8b2d # first bad commit: [0f57a2aad13912dde5746ffc5f43bd46aa3d8b2d] ARM: implement THREAD_INFO_IN_TASK for uniprocessor systems At the first glance it seems that __switch_to in entry-v7m.S missing set_current Cheers Vladimir > Once Mr. Robot confirms that nothing is broken, I'll send it out to the ML. > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel