Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp102354lqt; Mon, 18 Mar 2024 02:41:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrevlD3UF+MkHJy/FDqrI7qdNB//EckN0Dm+HADSa8U85vXxoXPGswCF5e1Is1B30PXFTJQfaGG/a0M+SS9wCCRy+djPV116NtwtpRww== X-Google-Smtp-Source: AGHT+IFTA9iVyiV+Sr4TVhd9MhBT4th3ufITEhI0O4Sq0UlRVRUvhbjyqdoQsDdjCd2m2yjtfEVp X-Received: by 2002:a17:907:7294:b0:a46:b5fc:c13 with SMTP id dt20-20020a170907729400b00a46b5fc0c13mr4152467ejc.18.1710754862366; Mon, 18 Mar 2024 02:41:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710754862; cv=pass; d=google.com; s=arc-20160816; b=UZ60EK/0Zh3UROrELk/MA0uH4duQCFCS8CHF8nmfLvF4M3F6nB4IdeAt2jBxpc8wyY Rl6luKljpuziSg0ZRurot9K+COSWCibm5u/H3A4c3YAzOs6IHD1HSRpWrA4pRl6DwJJC vuPJ3yCD2TelSDwRregdhcv9mzTJb3LGrOgDEYn4/j8+kv3NtNpH4u/Ek4fSYhDWBQRE VtFyLl0LlDOH9hDH8DzZ4TqvAWG0mf9C6dPQcpu1Sx1EYqbUrISjS6QxYXqexm0e9oBt eeLySPp2jTL1uNp4cQNj9xcDRW9b29Ge5lCmQ/Ie9niWOYQFxlAsZNuKHYXJLfLeyC7A OEKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=IlTtOZqwQBQp58gzcbNXtnMX5UBC9Jqt776QgB9ni+4=; fh=JClCK/Q/yzjNoAqmYrWykcsllitzJLXVt8HVkVl05ZA=; b=hI9rWkV3VqgB73WXp9cMAOH1e5siiZOAeMiiTS0BBW7Y1gCnbXh36M5fR8Zxgtl8bS 6UKIZkc8bM7f1+8H6XHvYkZN5cthSMC3tgEXDwMg906O2xUzimyEjztTuP19Sjy6zRH5 eRCWl80o3nhT3FqvBrCP8ZG3Tovlq7Q056MWO+Y9Jh5LMJuczntl3FmE/oz+LXKoarAc C3CmdxTk+l3s4ltIhtvRfB6wlrCCaSmc39DFYx17lAzTD+0T+YAnixduSlwCp+eBtNEF jG2XLlozZd4H/cnXe9JDVkq2Z7X2Rk8uelsayiPTrcR5+91HgO12BOXjKH2fH4AGCQXq qYVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUota3MG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-105892-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105892-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a23-20020a1709064a5700b00a466230977bsi4122085ejv.658.2024.03.18.02.41.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 02:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105892-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUota3MG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-105892-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105892-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0CC311F22618 for ; Mon, 18 Mar 2024 09:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DF362C84C; Mon, 18 Mar 2024 09:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gUota3MG" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 866B22C6B6 for ; Mon, 18 Mar 2024 09:40:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710754836; cv=none; b=pBXueWzND3QTrQWCWjUlZyp2sfW4O080JoasJx6Uac9LvR1pYMnfc+RQUbuKSfYoO4zzGuYqAIUtSV3REg1z2EXSbb2mUbZ4k79/h4IvmkEHUOkbMutedzxW1LdY54+2z/xiAMT3vcZRNDzRqvuFKS7Enzzb6J8A0S/moswcGs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710754836; c=relaxed/simple; bh=9ZcDOwOqW2gF0C2lI0a37n8cgKWGS5eMMytStmdvdAU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=QWgoACZKUZF709QCAfvuP7CSM817RZdPs1dNiUqIyAjXIieFi3ST6GvX+B8U1YK2cHZVe7GTfJ5hcR6TkoUfA2kj5nrZqraJQ6PSMZ8uk9Nxpv9mcZa9tMgzt42o7fdgHdEN35d76LcESlnfUp7/VP+W/+8kNcWrgFxWc1+LVUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gUota3MG; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-33ed6078884so1305266f8f.1 for ; Mon, 18 Mar 2024 02:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710754833; x=1711359633; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=IlTtOZqwQBQp58gzcbNXtnMX5UBC9Jqt776QgB9ni+4=; b=gUota3MG6QQ0HzJp/su8LipP0gi1BIepomEjDDXo2r254aDjZJA15p35lgQs8mvS6m SSaZR3CoSLPAwi9v6es4+LiJEljXz3mhuJUM1NMPimyGncXu3+ozr+ghO3B/+Pf3dTh/ xRaL0VsLmN7FprAhoPpYL4uewtd1BiTEmLuSp0x9/lVpccxkYrvYGKncRZTDmOHEFwlW h02esXyYwvi9zsi5KDq8iyX3QOALDNVqksnS7PgW7Ue4baro/kYPbnG5RdThVGuxsdm4 d0hx4sor1ma4KCbfzE6I87aQVwEbKb/bqdWzW+cVEPy7HziX5zCe5mq0fIjdgdUyY/7p EsNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710754833; x=1711359633; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IlTtOZqwQBQp58gzcbNXtnMX5UBC9Jqt776QgB9ni+4=; b=KawhMl8t72jC/CA2nqKFJG1XA/Bc0d+MNR2osKIeSRhGlHplUAH3lU9J6+ejjX9+0D aRK23X+V/CVafO1No0ujqD9S9xborKU9Yutpzt1NTbaWs4qI/hwHUDOz2+m525WsPGPR 3tviv4DD8BTgMOLFJuUPUeSyx/omg9JpODuCIxJCJWuHfs5WNcw3nuWdWME6eq2cAlU/ LkiunP/QHUcbGG/v4Ay2sBFp0XGkRMIO7+mKDTYt0GFhZeXMkYxGxvK/dIGP6y6CepNn xdnA8woW5rBOXBGqIUtU86eDRVuwao63IBXRjpT+RirjMe1uQ3Vyg4st3QEM9Z8oF6Bl kwVA== X-Gm-Message-State: AOJu0YzC8/Z9uSUHSsqn/XvvFVuHuab/Ilsml5fDmENIidOmcCeigY6G DDwvQ/TfakW/GBTZ715L/cZuATWtlRdFhpuhaV64OWuaaS0RKHTK X-Received: by 2002:adf:db4d:0:b0:33e:621e:35b2 with SMTP id f13-20020adfdb4d000000b0033e621e35b2mr11230086wrj.6.1710754832450; Mon, 18 Mar 2024 02:40:32 -0700 (PDT) Received: from gmail.com (195-38-112-2.pool.digikabel.hu. [195.38.112.2]) by smtp.gmail.com with ESMTPSA id u6-20020a5d5146000000b0034171f3aeedsm2662419wrt.19.2024.03.18.02.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 02:40:31 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 18 Mar 2024 10:40:29 +0100 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Andrew Morton , Borislav Petkov Subject: [GIT PULL] IRQ fix Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Linus, Please pull the latest irq/urgent git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-2024-03-17 # HEAD: ca5b0b717b75d0f86f7f5dfe18369781bec742ad irqchip/riscv-intc: Fix use of AIA interrupts 32-63 on riscv32 A RISC-V irqchip driver fix. Thanks, Ingo ------------------> Samuel Holland (1): irqchip/riscv-intc: Fix use of AIA interrupts 32-63 on riscv32 drivers/irqchip/irq-riscv-intc.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-riscv-intc.c b/drivers/irqchip/irq-riscv-intc.c index f87aeab460eb..9e71c4428814 100644 --- a/drivers/irqchip/irq-riscv-intc.c +++ b/drivers/irqchip/irq-riscv-intc.c @@ -149,8 +149,9 @@ static int riscv_intc_domain_alloc(struct irq_domain *domain, * Only allow hwirq for which we have corresponding standard or * custom interrupt enable register. */ - if ((hwirq >= riscv_intc_nr_irqs && hwirq < riscv_intc_custom_base) || - (hwirq >= riscv_intc_custom_base + riscv_intc_custom_nr_irqs)) + if (hwirq >= riscv_intc_nr_irqs && + (hwirq < riscv_intc_custom_base || + hwirq >= riscv_intc_custom_base + riscv_intc_custom_nr_irqs)) return -EINVAL; for (i = 0; i < nr_irqs; i++) { @@ -183,10 +184,12 @@ static int __init riscv_intc_init_common(struct fwnode_handle *fn, struct irq_ch return -ENXIO; } - if (riscv_isa_extension_available(NULL, SxAIA)) + if (riscv_isa_extension_available(NULL, SxAIA)) { + riscv_intc_nr_irqs = 64; rc = set_handle_irq(&riscv_intc_aia_irq); - else + } else { rc = set_handle_irq(&riscv_intc_irq); + } if (rc) { pr_err("failed to set irq handler\n"); return rc; @@ -195,7 +198,7 @@ static int __init riscv_intc_init_common(struct fwnode_handle *fn, struct irq_ch riscv_set_intc_hwnode_fn(riscv_intc_hwnode); pr_info("%d local interrupts mapped%s\n", - riscv_isa_extension_available(NULL, SxAIA) ? 64 : riscv_intc_nr_irqs, + riscv_intc_nr_irqs, riscv_isa_extension_available(NULL, SxAIA) ? " using AIA" : ""); if (riscv_intc_custom_nr_irqs) pr_info("%d custom local interrupts mapped\n", riscv_intc_custom_nr_irqs);