Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2215933pxk; Mon, 14 Sep 2020 07:36:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFFdfZiFTynWOiB/TSBNrpm9X19qtj8Bi1eLkvrXHLk+ZOHO2OVNzSaW7uNwpiEeNH9oen X-Received: by 2002:a50:f081:: with SMTP id v1mr18144588edl.161.1600094182534; Mon, 14 Sep 2020 07:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600094182; cv=none; d=google.com; s=arc-20160816; b=hx3M8J0JIP2T5M3DdD4/AC9AEYkIIqJBEJFbHrppW1OAEB+A8povUWiHccA/q1tWvU wySjpfFrx0kGRCcICPDw1xLz70myp5Cq2YQewPZoAt33hWYHxvdrRvGB8B809/PbnSPD nTbCp+JiGh7kQUSQ/4XUxvG9TXogk3g9UupYkcDIVik2v4X3dbckl9Qakpeyzy1lygAl U/g5cpUkMpHae1ip5jkOVnY7ohYQ5lLLBJT3Tem/gubrvq0hzfEcp/pp6iNqMbYNhwrN OqDdcBT/HJUj2SYk3f02/s/V1jOWn4oXlNDKvGtzRwwiAzeIhuG32tdjuLjxr67kNFuj 7zBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=cZ/X0pnwEDNop7KD1zyKUAqIDp6wLTFuzlElBsuE/G0=; b=EEIUFjueNuUlmPSmQy+tiiAixjR9H73tvw8fjkHBfmA8VbYA7z2GxDNZqLvQ/j6dFG 5mEP7VIhIPPMvPDzvIo84xUQut6Sr28UzmoLrIjXCjmr1TGVAugcoCgUeGafP3wQ+oeu U8GFCEOxt9EAJh4KG0bYAuoXHmu4aKk9KnlgKeiKf/APr5b8S20T7IMTh4NGdlHmZKaW Y2uYxQ4J5GzA2UZUzlpRbAZjbVsV1hgNYaJFQqos+rSC9cKC/61/ERMjt43eH56IJKbz Kxrj/Tl8KumhsiDdTIXERAUEyrVsWgu4zyH2dK44H0sMthxUr38TSbxVS8DjCKMBkG5y cCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ck4TzJMC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si7040967ejh.372.2020.09.14.07.35.59; Mon, 14 Sep 2020 07:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ck4TzJMC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726360AbgINOet (ORCPT + 99 others); Mon, 14 Sep 2020 10:34:49 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:41599 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726662AbgINOcm (ORCPT ); Mon, 14 Sep 2020 10:32:42 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200914143237euoutp014cdf814a295d54a319462584c468d0b1~0rPn8awqs0576605766euoutp01v for ; Mon, 14 Sep 2020 14:32:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200914143237euoutp014cdf814a295d54a319462584c468d0b1~0rPn8awqs0576605766euoutp01v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600093957; bh=cZ/X0pnwEDNop7KD1zyKUAqIDp6wLTFuzlElBsuE/G0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ck4TzJMCDsjuaDQnvrub4Hu7Jw7VI000ULIkZYpbeFmAx/KX/HTAuEYkf8cyOYbXH Vcpbu7qXVM++OiB8MUxTa6lmE1y+/ltiKc/8P3QEF19AjzMQCNwi5vQ+fI/Tsp/F4Y ZPQ3Nk5lVOTDpb/RFPfLQ88FaMWItKJhB0ziAlJU= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200914143236eucas1p2319c37a886287840d2e3cb9edac17604~0rPnbhDka0871208712eucas1p2-; Mon, 14 Sep 2020 14:32:36 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 52.03.05997.40F7F5F5; Mon, 14 Sep 2020 15:32:36 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200914143236eucas1p17e8849c67d01db2c5ebb3b6a126aebf4~0rPm3Knt51897018970eucas1p1Z; Mon, 14 Sep 2020 14:32:36 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200914143236eusmtrp1fbdd66f78d44a47ee04fc814c6815fd7~0rPm2Q9Bs1836018360eusmtrp1b; Mon, 14 Sep 2020 14:32:36 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-dc-5f5f7f04405f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0F.9B.06314.30F7F5F5; Mon, 14 Sep 2020 15:32:36 +0100 (BST) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200914143235eusmtip118a24575f4b6fe3314d94755aa930f1f~0rPl-f5i60253302533eusmtip1c; Mon, 14 Sep 2020 14:32:35 +0000 (GMT) Subject: Re: [PATCH v3 10/16] irqchip/bcm2836: Configure mailbox interrupts as standard interrupts To: Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sumit Garg , kernel-team@android.com, Florian Fainelli , Russell King , Jason Cooper , Saravana Kannan , Andrew Lunn , Catalin Marinas , Gregory Clement , Thomas Gleixner , Will Deacon , Valentin Schneider , linux-rpi-kernel From: Marek Szyprowski Message-ID: <3e52be78-1725-a3a2-c97c-625d46017a4b@samsung.com> Date: Mon, 14 Sep 2020 16:32:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200901144324.1071694-11-maz@kernel.org> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUhUYRTlm/fNm+fQk89J82YbTCXYollGHxRS0o8XQUUFlS3jlI/JcmOe S1agOdEyTJFJVK9h2izNrLGZGreImkpRc2toYRoJW8DCDFJaJKXG1+K/c849h3suXI7RDamj uLTMHNGcaUzXs1rsafzRMRcXGgzzur9E045uL0M/X7UhOtT/SEPtFQX0QJkP09qacOp6+1xN ffV2lpa8qtbQVz6e1tmb1dTqHWbpzXvHWep2nWJozfkfDD0YWLiUCJ4Gj1qoclQh4aDFxgqO qn1CndytES64cgVX5VFWKLrfgYXA87us0N/erhHcZYVCXe2AShhwTV3DJ2uXpIrpaXmiOS4x Rbuz5PoznF02cY/n/TFchK5FWFEIByQB5M7vjBVpOR2pQPAw4GYVMohAPuzHChlA0Fd8i/kb 8V+8q1IG5QjcvTf+RD7/Jm3BSAg3nqRCTaVFE8ThxASd9luaoIkhJRj6mkfY4IAl8WD9ZB3F PEm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R7MT I2QwRMAHJFp6dXPDkMDzyG5zb7RSkEG2hWBTCC2GavTj1wqwAZomYSx60h4dPMtgNhqp/LIV CUODNXMbaAhUIevvGhDUBExGTu9nYlPHoIqO2i0dgSbn6gVVQOLYhju2IY5tiGMb0gDIFiDl LLxBb+AZBa8z8JZCvSLHaPCA9SH4Xi97u8C756f8ANJAvlOsvazRSIS6Yr7U4AeIJuRS8eE3 w9kSca6utIwzGTUmSwHH+4Fy/Tc7ESnLMa7PqtCsYZSMCqcwqkRVYjKWR4hvw74sCdTrzNxF jiviTP85AR0SaQU21UfF6VX9h6yByEmj4AgTbY6rj1rt79RbXQ2Z2c4e2f5wL/N6+NalhUbR wbj5xvR67fHUpa9rx2SP3IHMKr4soUMNd9gX9OVsYMghja0ejE86atS1/QzE5Ozu1TZeGPKF Zaxprkr6eiIynHytUn1y9dazJe0ndQmkyvc2yUk+T8fsI0y87h8xuK2wHgMAAA== X-CMS-MailID: 20200914143236eucas1p17e8849c67d01db2c5ebb3b6a126aebf4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200914143236eucas1p17e8849c67d01db2c5ebb3b6a126aebf4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200914143236eucas1p17e8849c67d01db2c5ebb3b6a126aebf4 References: <20200901144324.1071694-1-maz@kernel.org> <20200901144324.1071694-11-maz@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 01.09.2020 16:43, Marc Zyngier wrote: > In order to switch the bcm2836 driver to privide standard interrupts > for IPIs, it first needs to stop lying about the way things work. > > The mailbox interrupt is actually a multiplexer, with enough > bits to store 32 pending interrupts per CPU. So let's turn it > into a chained irqchip. > > Once this is done, we can instanciate the corresponding IPIs, > and pass them to the architecture code. > > Signed-off-by: Marc Zyngier This one also fails. It breaks booting of Raspberry Pi 3b boards (both in ARM and ARM64 mode): NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 8<--- cut here --- Unable to handle kernel NULL pointer dereference at virtual address 00000000 pgd = (ptrval) [00000000] *pgd=80000000004003, *pmd=00000000 Internal error: Oops: 80000206 [#1] SMP ARM Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc4+ #9166 Hardware name: BCM2835 PC is at 0x0 LR is at irq_percpu_enable+0x40/0x50 pc : [<00000000>]    lr : []    psr: 600000d3 sp : c1201e00  ip : c1201e18  fp : c1201e14 r10: c0ef23dc  r9 : c120583c  r8 : 00000000 r7 : 00000011  r6 : eb032d00  r5 : 00000000  r4 : eb032d00 r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : eb032d18 Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment user Control: 30c5383d  Table: 00003000  DAC: fffffffd Process swapper/0 (pid: 0, stack limit = 0x(ptrval)) Stack: (0xc1201e00 to 0xc1202000) ... Backtrace: [] (irq_percpu_enable) from [] (enable_percpu_irq+0xa4/0xd8)  r5:c1204ec8 r4:00000000 [] (enable_percpu_irq) from [] (ipi_setup.part.0+0x3c/0x48)  r8:c107ba80 r7:00000018 r6:00000011 r5:c1204ee0 r4:00000001 [] (ipi_setup.part.0) from [] (set_smp_ipi_range+0xd8/0xf8)  r5:c1204ee0 r4:00000008 [] (set_smp_ipi_range) from [] (bcm2836_arm_irqchip_l1_intc_of_init+0x1c0/0x22c)  r8:c1366820 r7:c1204ec8 r6:00000010 r5:00000001 r4:00000000 [] (bcm2836_arm_irqchip_l1_intc_of_init) from [] (of_irq_init+0x18c/0x2dc)  r9:00000000 r8:c1201f34 r7:c1204ec8 r6:c1201f2c r5:c1201f2c r4:eb004880 [] (of_irq_init) from [] (irqchip_init+0x1c/0x24)  r10:0000006c r9:00000000 r8:00000000 r7:ffffffff r6:cccccccd r5:c0eb7abe  r4:c103ba30 [] (irqchip_init) from [] (init_IRQ+0x30/0x98) [] (init_IRQ) from [] (start_kernel+0x3b4/0x628)  r5:c0eb7abe r4:c12c1000 [] (start_kernel) from [<00000000>] (0x0)  r10:30c5387d r9:410fd034 r8:02600000 r7:00000000 r6:30c0387d r5:00000000  r4:c1000330 Code: bad PC value random: get_random_bytes called from init_oops_id+0x30/0x4c with crng_init=0 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Attempted to kill the idle task! ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]--- > --- > drivers/irqchip/irq-bcm2836.c | 151 ++++++++++++++++++++++++++++------ > 1 file changed, 125 insertions(+), 26 deletions(-) > > ... Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland