From nobody Mon Jun 8 08:30:46 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0EF23EA95C; Wed, 3 Jun 2026 16:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780504174; cv=none; b=G/uCbr9UaErVARkFkn/6q/Q5OONbukKOc02IgKG4tB5h+/X0y1JSi9m8urIicefeHZuxvpe27in2cT5owdUs5Zsma58km1qKKm9qRyakLj26KI1fbi7NvvrK0l6q3jPltsGZ3QOHr4KiS0NzUpDKgzVY6Ask8H3FmD+SVB4Ggbo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780504174; c=relaxed/simple; bh=MX2D6LPeWUarVsngKwu1i5rRT7g/yMPq4+kosjQTu48=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=shMVnFbcPAdbPKN4lyGiLp67/WjUb8I8IcNrLtuuNWSCU3OKGFGJ7ItQsZ0pSFXoSa8iaWRldWdYDaL+F3eg2qewyIOYH222PoG/VFFQRKoris4cUMt5L2dv3b2ZgcMb85X0KvKHzmcnEJxz9FOYf6jmimxzzRaCzOwiqiMPxKc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ewkcRQaP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=i26igNJy; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ewkcRQaP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i26igNJy" Date: Wed, 03 Jun 2026 16:29:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780504166; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BC3TRb/E58TRAOszqd1U4TvaDyivYmyzzDBJau7CXTM=; b=ewkcRQaPOZT0K0TnThy72U5XTUPYAvkzYbHi4cRLzYT0+d4zTPa0J0PB4o0J2hujVW2nSf tv4cAkUjrNOlskH12N7uoJMnQnuAV20fU5MVaxIFfcM4iUdcflVKNgwtVQNMyyly65O/fr /f9tFR2pejQtsLh4Qv70TJq97YE+u71XB5jPqA5Vwv7CPB5bcqb9Grp3BHtQ5FDkTtscVD pcMyafnDlkRpia8TvI8MUom1UkJtnNjdOS29uNHlDZPQWhKVFrPsJ+WEyH6LauuYsfFCd+ rys+PxT3lKyTLUGc0VEdJAsTGdzxMM/8Pi/Or1H4MiHN808HnQ5qLXcrC42zpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780504166; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BC3TRb/E58TRAOszqd1U4TvaDyivYmyzzDBJau7CXTM=; b=i26igNJy1iZV4uRf74/ExnX8ikmV2TjYCgOK40kqU4PFDjpg9K7D3efalEiYzDYnbkBHNo +6D3VkyQYmUzaZCA== From: "tip-bot2 for Mukesh Ojha" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/qcom-pdc: Tighten ioremap clamp to single DRV region size Cc: Mukesh Ojha , Thomas Gleixner , Dmitry Baryshkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260527095426.2324504-3-mukesh.ojha@oss.qualcomm.com> References: <20260527095426.2324504-3-mukesh.ojha@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178050416474.710.15285598135467041247.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/drivers branch of tip: Commit-ID: f1a5a0f4c0eab83299201129cffb7907d7dc99c6 Gitweb: https://git.kernel.org/tip/f1a5a0f4c0eab83299201129cffb7907d= 7dc99c6 Author: Mukesh Ojha AuthorDate: Wed, 27 May 2026 15:24:24 +05:30 Committer: Thomas Gleixner CommitterDate: Wed, 03 Jun 2026 18:27:05 +02:00 irqchip/qcom-pdc: Tighten ioremap clamp to single DRV region size The QCOM_PDC_SIZE constant (0x30000) was introduced to work around old sm8150 DTs that described a too-small PDC register region, causing the driver to silently expand the ioremap to cover three DRV regions. Now that the preceding DT fixes have corrected all platforms to describe only the APSS DRV region (0x10000), the oversized clamp is no longer needed. Replace QCOM_PDC_SIZE with PDC_DRV_SIZE (0x10000) in the clamp so the minimum mapped size matches a single DRV region. The clamp and warning are intentionally kept to preserve backward compatibility with any old DTs that may still describe a smaller region. While at it, rename PDC_DRV_OFFSET to PDC_DRV_SIZE since the constant represents the size of a DRV region and is used as both the ioremap minimum size and the offset to the previous DRV region. Signed-off-by: Mukesh Ojha Signed-off-by: Thomas Gleixner Reviewed-by: Dmitry Baryshkov Link: https://patch.msgid.link/20260527095426.2324504-3-mukesh.ojha@oss.qua= lcomm.com --- drivers/irqchip/qcom-pdc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c index 5f0da15..0b82306 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -21,7 +21,7 @@ #include =20 #define PDC_MAX_GPIO_IRQS 256 -#define PDC_DRV_OFFSET 0x10000 +#define PDC_DRV_SIZE 0x10000 =20 /* Valid only on HW version < 3.2 */ #define IRQ_ENABLE_BANK 0x10 @@ -357,7 +357,6 @@ static int pdc_setup_pin_mapping(struct device_node *np) return 0; } =20 -#define QCOM_PDC_SIZE 0x30000 =20 static int qcom_pdc_probe(struct platform_device *pdev, struct device_node= *parent) { @@ -371,7 +370,7 @@ static int qcom_pdc_probe(struct platform_device *pdev,= struct device_node *pare if (of_address_to_resource(node, 0, &res)) return -EINVAL; =20 - res_size =3D max_t(resource_size_t, resource_size(&res), QCOM_PDC_SIZE); + res_size =3D max_t(resource_size_t, resource_size(&res), PDC_DRV_SIZE); if (res_size > resource_size(&res)) pr_warn("%pOF: invalid reg size, please fix DT\n", node); =20 @@ -384,7 +383,7 @@ static int qcom_pdc_probe(struct platform_device *pdev,= struct device_node *pare * region with the expected offset to preserve support for old DTs. */ if (of_device_is_compatible(node, "qcom,x1e80100-pdc")) { - pdc_prev_base =3D ioremap(res.start - PDC_DRV_OFFSET, IRQ_ENABLE_BANK_MA= X); + pdc_prev_base =3D ioremap(res.start - PDC_DRV_SIZE, IRQ_ENABLE_BANK_MAX); if (!pdc_prev_base) { pr_err("%pOF: unable to map previous PDC DRV region\n", node); return -ENXIO;