Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2240729rwr; Fri, 21 Apr 2023 06:25:57 -0700 (PDT) X-Google-Smtp-Source: AKy350YG+CS2QpCsuFGwvY1T4V16ptqsLbpW4tpaZLzncixwMXDVqwRQyKW5mR9k8+oE9diGv2Mw X-Received: by 2002:a05:6a20:54a2:b0:f0:8707:2bc5 with SMTP id i34-20020a056a2054a200b000f087072bc5mr7305912pzk.5.1682083557099; Fri, 21 Apr 2023 06:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083557; cv=none; d=google.com; s=arc-20160816; b=jBqON5IVbSzpse6HPcpvf4XE5Ctl+Q2LJCVYlklvlEdXVUrM2MqWPGxPS9ip2rnwDB QG9baqD7nCYerXvOii+54hHwSyweyo+xn2FM89zYo8UjjLRZvfOrnZoVxZxiA0mbWPSf kI6NxODDawLqTOYTs7Lzc1fYHZxacG+zxhmiSAl5QTbO6fxiBD31dhKiRp9UMgJgAATd hwo1EILPParPOATZ6ldkiVyZhfZLLJQ8E7bDHxj4L+Mj23jzF6IXHzrNK8fLMaijqNDS JUHkN60zDeY6yjRoX4Ts14rSGPGckNxDQSnvzW0IWXHDJ00utGB+D41b644hRhkebShq KA0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6bVzQh8TjLgLelhLRUBtIaJv1zQzBJteGafjjPWUUio=; b=TpQ6EMG0EJW95ptO/B+thwUJTTKSrH3ESn9IlPwqsKQEh6hHxYo+xARbIgt0/YJelM PpGZS4wipkILxhXW6HRBcUacreuu05xiLIydgiV3Xwn6A/rEaXL6KR3UV534TAAZu+uL HKQ71cUWurZrXNPrL5lcXUm+5UMfLW2f4z9OQYBzgBblLKqKhiYtw3/Nd893EtuZ1EmE ZOXQXUp4noHtLAhf31SLKt4QNNvaZJEUIfs+M4td38sUlzGKdZE8db//SkAbjzzTvgg7 XEY3lOKOgzyfN/6FaQRWVJQsXwoqnFLl3KqysflZ3SOoAYwmuX9AUhHp0oYoNfEP6BQT t1GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f7zZwuR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b005135d3abc6asi4601888pgk.90.2023.04.21.06.25.42; Fri, 21 Apr 2023 06:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f7zZwuR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbjDUNVN (ORCPT + 99 others); Fri, 21 Apr 2023 09:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbjDUNVL (ORCPT ); Fri, 21 Apr 2023 09:21:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75133CC16; Fri, 21 Apr 2023 06:21:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 147E964FE3; Fri, 21 Apr 2023 13:21:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A393C4339B; Fri, 21 Apr 2023 13:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682083269; bh=Acp6hoi+JH4Tq+ReNU90Jlb9X+21PiBtI6Sq2/TYMFk=; h=From:To:Cc:Subject:Date:From; b=f7zZwuR6KutBIqqlPuTheatBGJajz+aN4IZ5683/3J/IYjkFNmLKJ3czrWcTaY2wM lOX1z2RH3CmhyKXS09+KQsw0DHsoKwhKFPHKWNm8TPQvlTa/h6nJzOCVwYe3d8iju3 M23LANU6+HxEBwo0xXRIw7LqkJJbHMVa4Esqv8LbJpIfESyTDcD5eEh3h693z7q51U imUQESICeo9k6H+WXLpGAVRauaPiZmuRCaUNu1ijrP+8gwTEMOKQIlJFBlss3uEv81 3+q+J2fdMB0U64G9XBXA1Q3Ae/GMyyt65ZyGuif/U5Ok8Ir3UJIGKgtbnELJJzZ2xK pgq9tdtHwZKIQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ppqhH-00ABDY-3N; Fri, 21 Apr 2023 14:21:07 +0100 From: Marc Zyngier To: Thomas Gleixner Cc: Alain Volmat , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , AngeloGioacchino Del Regno , Anup Patel , Atish Patra , Bin Meng , Dan Carpenter , Florian Fainelli , Guo Ren , Jianmin Lv , Kever Yang , Ley Foon Tan , Lucas Tanure , Mason Huo , Palmer Dabbelt , Patrice Chotard , Rob Herring , Sebastian Reichel , Shanker Donthineni , Sia Jee Heng , stable@vger.kernel.org, Sudeep Holla , Vikram Sethi , XiaoDong Huang , linux-kernel@vger.kernel.org Subject: [GIT PULL] irqchip updates for 6.4 Date: Fri, 21 Apr 2023 14:21:04 +0100 Message-Id: <20230421132104.3021536-1-maz@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: tglx@linutronix.de, avolmat@me.com, noltari@gmail.com, angelogioacchino.delregno@collabora.com, apatel@ventanamicro.com, atishp@rivosinc.com, bmeng.cn@gmail.com, error27@gmail.com, f.fainelli@gmail.com, guoren@kernel.org, lvjianmin@loongson.cn, kever.yang@rock-chips.com, leyfoon.tan@starfivetech.com, lucas.tanure@collabora.com, mason.huo@starfivetech.com, palmer@rivosinc.com, patrice.chotard@foss.st.com, robh@kernel.org, sebastian.reichel@collabora.com, sdonthineni@nvidia.com, jeeheng.sia@starfivetech.com, stable@vger.kernel.org, sudeep.holla@arm.com, vsethi@nvidia.com, derrick.huang@rock-chips.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas, Here's a small collection of irqchip patches for 6.4. The only significant thing is the RISC-V IPI rework, which spans both the irqchip subsystem and the arch code (and is Acked by Palmer). The rest is a bunch of errata workarounds, fixes and cleanups. Please pull, M. The following changes since commit 197b6b60ae7bc51dd0814953c562833143b292aa: Linux 6.3-rc4 (2023-03-26 14:40:20 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git tags/irqchip-6.4 for you to fetch changes up to 2ff1b0839ddd514be4752c64c1c6facf91ff3a56: Merge branch irq/misc-6.4 into irq/irqchip-next (2023-04-21 14:05:31 +0100) ---------------------------------------------------------------- irqchip changes for 6.4 - Large RISC-V IPI rework to make way for a new interrupt architecture - More Loongarch fixes from Lianmin Lv, fixing issues in the so called "dual-bridge" systems. - Workaround for the nvidia T241 chip that gets confused in 3 and 4 socket configurations, leading to the GIC malfunctionning in some contexts - Drop support for non-firmware driven GIC configurarations now that the old ARM11MP Cavium board is gone - Workaround for the Rockchip 3588 chip that doesn't correctly deal with the shareability attributes. - Replace uses of of_find_property() with the more appropriate of_property_read_bool() - Make bcm-6345-l1 request its MMIO region - Add suspend support to the SiFive PLIC - Drop support for stih415, stih416 and stid127 platforms ---------------------------------------------------------------- Alain Volmat (1): irqchip/st: Remove stih415/stih416 and stid127 platforms support Anup Patel (7): RISC-V: Clear SIP bit only when using SBI IPI operations irqchip/riscv-intc: Allow drivers to directly discover INTC hwnode RISC-V: Treat IPIs as normal Linux IRQs RISC-V: Allow marking IPIs as suitable for remote FENCEs RISC-V: Use IPIs for remote TLB flush when possible RISC-V: Use IPIs for remote icache flush when possible irqchip/riscv-intc: Add empty irq_eoi() for chained irq handlers Jianmin Lv (5): irqchip/loongson-eiointc: Fix returned value on parsing MADT irqchip/loongson-eiointc: Fix incorrect use of acpi_get_vec_parent irqchip/loongson-eiointc: Fix registration of syscore_ops irqchip/loongson-pch-pic: Fix registration of syscore_ops irqchip/loongson-pch-pic: Fix pch_pic_acpi_init calling Marc Zyngier (5): irqchip/gic: Drop support for board files Merge branch irq/gic-6.4 into irq/irqchip-next Merge branch irq/riscv-ipi into irq/irqchip-next Merge branch irq/loongarch-fixes-6.4 into irq/irqchip-next Merge branch irq/misc-6.4 into irq/irqchip-next Mason Huo (1): irqchip/irq-sifive-plic: Add syscore callbacks for hibernation Rob Herring (1): irqchip: Use of_property_read_bool() for boolean properties Sebastian Reichel (1): irqchip/gic-v3: Add Rockchip 3588001 erratum workaround Shanker Donthineni (1): irqchip/gicv3: Workaround for NVIDIA erratum T241-FABRIC-4 Álvaro Fernández Rojas (1): irqchip/bcm-6345-l1: Request memory region Documentation/arm64/silicon-errata.rst | 5 + arch/arm64/Kconfig | 10 ++ arch/riscv/Kconfig | 2 + arch/riscv/include/asm/irq.h | 4 + arch/riscv/include/asm/sbi.h | 9 +- arch/riscv/include/asm/smp.h | 49 +++++++--- arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/cpu-hotplug.c | 3 +- arch/riscv/kernel/irq.c | 21 +++- arch/riscv/kernel/sbi-ipi.c | 77 +++++++++++++++ arch/riscv/kernel/sbi.c | 100 +++---------------- arch/riscv/kernel/smp.c | 171 +++++++++++++++++---------------- arch/riscv/kernel/smpboot.c | 5 +- arch/riscv/mm/cacheflush.c | 5 +- arch/riscv/mm/tlbflush.c | 93 +++++++++++++++--- drivers/clocksource/timer-clint.c | 65 ++++++++++--- drivers/firmware/smccc/smccc.c | 26 +++++ drivers/firmware/smccc/soc_id.c | 28 +----- drivers/irqchip/Kconfig | 3 + drivers/irqchip/irq-bcm6345-l1.c | 6 +- drivers/irqchip/irq-csky-apb-intc.c | 2 +- drivers/irqchip/irq-gic-v2m.c | 2 +- drivers/irqchip/irq-gic-v3-its.c | 35 +++++++ drivers/irqchip/irq-gic-v3.c | 115 +++++++++++++++++++--- drivers/irqchip/irq-gic.c | 60 +----------- drivers/irqchip/irq-loongson-eiointc.c | 32 ++++-- drivers/irqchip/irq-loongson-pch-pic.c | 6 +- drivers/irqchip/irq-riscv-intc.c | 71 ++++++++------ drivers/irqchip/irq-sifive-plic.c | 93 +++++++++++++++++- drivers/irqchip/irq-st.c | 15 --- include/linux/arm-smccc.h | 18 ++++ include/linux/irqchip/arm-gic.h | 6 -- 32 files changed, 761 insertions(+), 377 deletions(-) create mode 100644 arch/riscv/kernel/sbi-ipi.c