From patchwork Thu Jan 18 11:27:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawei Li X-Patchwork-Id: 189168 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp274301dyb; Thu, 18 Jan 2024 03:30:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgJ5h+QtmPZmjLK3SP4Q5lMIZKyRk1rJ+qx3Im0A/+v+eA/c894qghKDMqitVcKdWYT5Qm X-Received: by 2002:ac8:58c8:0:b0:42a:1c6d:9dea with SMTP id u8-20020ac858c8000000b0042a1c6d9deamr486194qta.103.1705577418495; Thu, 18 Jan 2024 03:30:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705577418; cv=pass; d=google.com; s=arc-20160816; b=PySYVZPYVmFtLTabLym/uUCuymj54nz0k4Buz2/MwLgt+oa5xf1ojvMqC6fQBEq4h8 yMWaImcD4x2sFmn1BDX4AjUswZSgur9Es7ah0nmhZt8gnZmMm46f/7z0e4QXQq79dbVO UBvnSUf8QFscSOR0oLDDLeIitvQJCvpCbfHVUXpJNpe7tRjqDtwELzPGzIOiKuSvt81d KHWsXzf2yIdbwXMxUYTDzHKxY6IsoT7HQeDfSmn11I3wjnQ+pCK7TJ/2I/O3K8N+/0rO rCPHSBw30slzuycS6+ydHvkpPcwLsnMOnbnMRAIku1HMXIOM6b5P6vblh3JeA1nyfYjZ PHAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5v8SMtbN4Hey6E3EG79cWNy67FO04ey18KWowlZqpnE=; fh=fhl29VgcwdOsneTlbOdSMck1eQdlOQed/8OKKjpLkTo=; b=hyE7tThTFB0oqCzOzyeTVQI4LPtZbjRifn0c54aU1BfVe/Yh2Zkc67EInZZTYWAW4t RsMzAndiTASYHchIel8AmgsiU9JBuYvarPKfCk65LSUKfn53o2TKEm83xZ/dBEKVKHPS YOunqdVplByPlbAdTOz+AQVi5LaonktL/DhCX8QPUHE2+wUxsW8BKrpRLR81j/KXBCYp GgswQFWho7093vXMhjKlrE8Civ6yu5oIb++EiV34f/ZIgiQ7kXptC3L8pBcxEFjfVnin wokY0mt6pzQxWuDY2PVq+DS6u8j6bvOQuSuCP3nAW8Ng7ZeU/OSqwZQKssiMd3IdzqAS cOYQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30052-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30052-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z16-20020a05622a029000b0042a095629c7si4310105qtw.486.2024.01.18.03.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 03:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30052-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30052-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30052-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 482901C20385 for ; Thu, 18 Jan 2024 11:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1259424A16; Thu, 18 Jan 2024 11:30:02 +0000 (UTC) Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) (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 3F746241E6 for ; Thu, 18 Jan 2024 11:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.204.34.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577400; cv=none; b=rfN+v0reGB+9DCp6x+FDufiYyKfSvGCfbKGGvwPDrlxQVsExRA10PgBPCdYAF9MuX3onpTA7f7Wm89Mgb08y2hsWag7N9b+LqirspksjpxUUo/UsYJB3c7ZR6L5G5Jyg6eNuwoPttHKHMi/S4Zkwr26QocWeUiFtDybAy0QknMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577400; c=relaxed/simple; bh=mxbFnAWvYxONRJamr2rRROrpwNYKGzQx7a4/fqyrHh0=; h=X-QQ-mid:X-QQ-Originating-IP:Received:X-QQ-SSF:X-QQ-FEAT: X-QQ-GoodBg:X-BIZMAIL-ID:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID; b=Q6jQxx//thS5dm6Q54ev5JFl/tyR1puS3aVUoglB8v7PeL0ZEIvu5kIlrcBivFgejgitUJ3wgxxvPeWKJs/xkL7Ne72hxCRS+Q5/jDaebZZfHJ+3v5jxo+2tO8Wez9P2y2eQNzOtW/6tWGuN9Oot8P+MmBdId7UbN3+CMp1Bj1o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=54.204.34.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp83t1705577367t5i7m3uq X-QQ-Originating-IP: crRyA8ASh2OZBJ3ZtqXMJ8f2PolwNAW2z3CcI2liUJg= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 18 Jan 2024 19:29:26 +0800 (CST) X-QQ-SSF: 01400000000000504000000K0000000 X-QQ-FEAT: 96k0+YG2NiUznyX94RbUHJpQca5nJHiVw3v/7rb0ObtAxL1zT+7AZvIDS6qax CtGWYvYzEOpSw+2fV9y788JzdrVqR2hCdzRe05f4uvl6R8WRScmCN/qmJ0LQHEfBXzrO/MO Wd1W+YkNl0uDHNtCOyqgKdmrXzrT6fqhRnnu5a3Y73uL4KGjt67XVEu7eStsFF81HYqScWm UMecbrWl3WOr2aMS2K1RxOEGDJ1oMqujYrbWQpU++cPki6u25hQNsl61YBrJ2IplPlhQFmX ebU3AoVHY0l+vyIQGcsOQRjhCWS+pMHIIJY2LHQr4Cp/llgC2H16hrbLPk+vRP0XEpdVFUu IAN8M2pWunXibDeq1qzSvQI1zbV49eq6eK9YQjITwCY77dzLSJP4CeoudyeqkHSeDu0+viO koKhjmwrWAU= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 4984385950916111259 From: Dawei Li To: tglx@linutronix.de, maz@kernel.org Cc: sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dawei.li@shingroup.cn, set_pte_at@outlook.com Subject: [PATCH 1/4] irqchip/gic-v3: Implement read polling with dedicated API Date: Thu, 18 Jan 2024 19:27:36 +0800 Message-Id: <20240118112739.2000497-2-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240118112739.2000497-1-dawei.li@shingroup.cn> References: <20240118112739.2000497-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788427547159154404 X-GMAIL-MSGID: 1788427547159154404 Kernel provide read*_poll_* API family to support looping based polling code pattern like below: while (...) { val = op(addr); condition = cond(val); if (condition) break; /* Maybe some timeout handling stuff */ cpu_relax(); udelay(); } As such, use readl_relaxed_poll_timeout_atomic() to implement atomic register polling logic in gic-v3. Signed-off-by: Dawei Li --- drivers/irqchip/irq-gic-v3.c | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 98b0329b7154..b9d9375a3434 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -251,17 +252,11 @@ static inline void __iomem *gic_dist_base(struct irq_data *d) static void gic_do_wait_for_rwp(void __iomem *base, u32 bit) { - u32 count = 1000000; /* 1s! */ + u32 val; - while (readl_relaxed(base + GICD_CTLR) & bit) { - count--; - if (!count) { - pr_err_ratelimited("RWP timeout, gone fishing\n"); - return; - } - cpu_relax(); - udelay(1); - } + if (readl_relaxed_poll_timeout_atomic(base + GICD_CTLR, + val, !(val & bit), 1, 1000000) == -ETIMEDOUT) + pr_err_ratelimited("RWP timeout, gone fishing\n"); } /* Wait for completion of a distributor change */ @@ -279,7 +274,6 @@ static void gic_redist_wait_for_rwp(void) static void gic_enable_redist(bool enable) { void __iomem *rbase; - u32 count = 1000000; /* 1s! */ u32 val; if (gic_data.flags & FLAGS_WORKAROUND_GICR_WAKER_MSM8996) @@ -301,14 +295,9 @@ static void gic_enable_redist(bool enable) return; /* No PM support in this redistributor */ } - while (--count) { - val = readl_relaxed(rbase + GICR_WAKER); - if (enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep)) - break; - cpu_relax(); - udelay(1); - } - if (!count) + if (readl_relaxed_poll_timeout_atomic(rbase + GICR_WAKER, + val, enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep), + 1, 1000000) == -ETIMEDOUT) pr_err_ratelimited("redistributor failed to %s...\n", enable ? "wakeup" : "sleep"); } From patchwork Thu Jan 18 11:27:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawei Li X-Patchwork-Id: 189171 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp277475dyb; Thu, 18 Jan 2024 03:37:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmJrYzp23NRxA30+LYDM5QgrezBGz2lQ0ANSJOipg3fcBAlmKmBnLZdcmaAnSaByg3GkDM X-Received: by 2002:a17:903:2286:b0:1d6:f1c5:517e with SMTP id b6-20020a170903228600b001d6f1c5517emr872299plh.62.1705577821064; Thu, 18 Jan 2024 03:37:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705577821; cv=pass; d=google.com; s=arc-20160816; b=thyJoixRHVDG1pKG2LLTDcB+QLxQkfXcKtVT6xg2j/HJ1Z/WU8F2JGDDnC3BAloVH5 9CgOom0W5jvjHs1edQnBg0zIrXOH0rTBWwMJel2/Nibyh++tK07s/FjJGHFezJnvpGw6 1voYmR68g6RJtC0TaNLu9qfBgb4fQh144vOQJsJn8GiQI//F9VenYLBlxE++xn316D6i UZhgUljKhR7hEwCZ+BQwxvcJSdiag2NGl2fCwD4sJTn69SRBr5lSRvxHNAOlh7ioyAz9 DgNMDmjF7c1VP8PUMhrohwLxhgIn3bHWod6tu1Yya9ZoVbxZoZyzbQ1Xp8RRdmruoGTW i7Tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=RnqXMCYyLDNhaYuY5nzJ2icCjq4NyU0x3TFruSPXCRA=; fh=fhl29VgcwdOsneTlbOdSMck1eQdlOQed/8OKKjpLkTo=; b=ZkmyasJAlwDa997zfQEoAq2f5dOcLnZKV43ACEyTgVqSrsYNrA3srcKWw+WM/+7caD 5HkFv7edDVDquqtCilAGCs1KwReaRvT5D/JV4Wjlw6QihSeLZyTrjSvHGpODaupAnqlz wreqpOEukz/AIXoBqZeykpeuvk312+/kf4RucA/+y/SJpEHeo/A74tyc2B538VoNqaKt A5O9+1yDlMlqHczTOX5NyrJ48lPgMYb8GdXqBSMhTcDNo8teu3CW0hNisS38GmeOCVkU h/rOfMTeOTHnlsEUTGDgR1CULDYICTtPRRYO0lMGbnyESchx72AMrw1fGo5j2xVCv7Ai Ijjg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30053-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30053-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b1-20020a170902d50100b001d7080998d5si684204plg.637.2024.01.18.03.37.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 03:37:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30053-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30053-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30053-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 09DA3289198 for ; Thu, 18 Jan 2024 11:30:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D29CD24B51; Thu, 18 Jan 2024 11:30:11 +0000 (UTC) Received: from smtpbg154.qq.com (smtpbg154.qq.com [15.184.224.54]) (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 D0E5924B37 for ; Thu, 18 Jan 2024 11:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=15.184.224.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577410; cv=none; b=X3IHwm0mPAvEN8fhHZVHdSCwyI7K7Hyj+wkxafPj2fYUSrHPqvCEDVuUDPL+1fKl2De8XKtwnks9h7wXDCo+8FBeNKmOF+LujPdLZdEOnGndN/7Si/YIeGENGmitpy7HY+50s1vHBz8MfPBA873D1Yzk3p3TAzAetUgiTUGu5cU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577410; c=relaxed/simple; bh=sZRxiKPZbRZd+nZlIZp3YhXFKhPnZo9TfDEOQiXJZmg=; h=X-QQ-mid:X-QQ-Originating-IP:Received:X-QQ-SSF:X-QQ-FEAT: X-QQ-GoodBg:X-BIZMAIL-ID:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID; b=bb5sK71/BXM9d0QwgfRrr8s9u6+N/VXLvGgCuP7+ioIkgkvXeAMNln5a0GwER1Xqha+lMF+yHRici8kBafLMWqfN8+Cl5Yn02jH86aW3lGdG2jlR9nfj4NlA/Hp0+XTAXMWJM4uUL29r0PAVaxdffExoUmRz78/hoB7a8/ukmDQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=15.184.224.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp64t1705577375tqna5agw X-QQ-Originating-IP: b06gOG+G3Lt6KugAxVb03XfVjcun9/KJ61laat0Gq3c= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 18 Jan 2024 19:29:33 +0800 (CST) X-QQ-SSF: 01400000000000504000000A0000000 X-QQ-FEAT: LE7C6P2vL8RlqSltv7bKQonFxSrBkzY45rkHE2qduRISj3gifYQW1NYxZmPvm jHGnf7gO9u3FjRdCcBL0zlG8ieH1YMhRfmqHS2tnadsqgbBg8VnfcyID4sbmW0oH9RtE7+n yIRx53YSXX/pLkKIGZ0Y/5eJy1dRzUbFy7N2/rqZKJbTE8LQqTCp+g/xyDDBKM4/TqWwFCV XUeAnS9rFCMSBbNjDCg64oPEhzMXL9PPVS6mVxFl4Aemhe+mvcJPFEK6ucRYxI6ddfpsr5F JA2i5LfP/9bw5M8Z/djr/oh3MdS2FhOX4mQGwKNl83LEDY/ftM0F5+0NHHwPLmhrUO+RhVR PFDVLSdG1EZHm+K+YMNj2iISep7xUzqOebY2U/mBtz9E0b7hmlC79WQhWW5rZr4DrtWb0K1 7dFuZyjWMA4= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 10466252816895752989 From: Dawei Li To: tglx@linutronix.de, maz@kernel.org Cc: sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dawei.li@shingroup.cn, set_pte_at@outlook.com Subject: [PATCH 2/4] irqchip/gic: Implement generic gic_irq() API for GIC & GIC-v3 Date: Thu, 18 Jan 2024 19:27:37 +0800 Message-Id: <20240118112739.2000497-3-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240118112739.2000497-1-dawei.li@shingroup.cn> References: <20240118112739.2000497-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788427969295403008 X-GMAIL-MSGID: 1788427969295403008 GIC & GIC-v3 share same gic_irq() implementations, unify them into a generic API. Signed-off-by: Dawei Li --- drivers/irqchip/irq-gic-common.h | 5 +++++ drivers/irqchip/irq-gic-v3.c | 5 ----- drivers/irqchip/irq-gic.c | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/irqchip/irq-gic-common.h b/drivers/irqchip/irq-gic-common.h index f407cce9ecaa..ed18db4ab2c5 100644 --- a/drivers/irqchip/irq-gic-common.h +++ b/drivers/irqchip/irq-gic-common.h @@ -19,6 +19,11 @@ struct gic_quirk { u32 mask; }; +static inline unsigned int gic_irq(struct irq_data *d) +{ + return d->hwirq; +} + int gic_configure_irq(unsigned int irq, unsigned int type, void __iomem *base, void (*sync_access)(void)); void gic_dist_config(void __iomem *base, int gic_irqs, diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index b9d9375a3434..474a498a521e 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -181,11 +181,6 @@ static enum gic_intid_range get_intid_range(struct irq_data *d) return __get_intid_range(d->hwirq); } -static inline unsigned int gic_irq(struct irq_data *d) -{ - return d->hwirq; -} - static inline bool gic_irq_in_rdist(struct irq_data *d) { switch (get_intid_range(d)) { diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 412196a7dad5..0d559effa172 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -162,11 +162,6 @@ static inline void __iomem *gic_cpu_base(struct irq_data *d) return gic_data_cpu_base(gic_data); } -static inline unsigned int gic_irq(struct irq_data *d) -{ - return d->hwirq; -} - static inline bool cascading_gic_irq(struct irq_data *d) { void *data = irq_data_get_irq_handler_data(d); From patchwork Thu Jan 18 11:27:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawei Li X-Patchwork-Id: 189169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp274541dyb; Thu, 18 Jan 2024 03:30:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkhwPzGqGrC6HfaD7SPsyKnJaFWT10gOL7nTtxkrCfjvN/vb6fwYhFUsVwTZPwPq3qRxFF X-Received: by 2002:ae9:e216:0:b0:783:67d9:ae2d with SMTP id c22-20020ae9e216000000b0078367d9ae2dmr536813qkc.83.1705577446214; Thu, 18 Jan 2024 03:30:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705577446; cv=pass; d=google.com; s=arc-20160816; b=Nl8F0MCbaGQueZXv0+2fLt7uVl5SXAnsUti4YOLAHWR5Ty5dIm5nx4hFjj3hJ2Ddh6 DWZmh4s4fr5hwkOSStdTmYv/BRrxz+/0rLrFeLNOx2Q6Tl0wDB7AblQxrhupUx9tYYge n6SbM0fYISAeQnmapizUS/9v2236tyLeEgUAElk6X4awpsTpqN1wL8M4+uV5UIPKoPSV 8VGkltcSyE0QMeWycWykBuPtotjsXD2ZoaTpJVMq3VcCiPcvedWawG+HTJ+xaESU4gI3 EwnotSfvrQkbdFMKdy4QRCQxhz0j4BrUzRKa74qo+R3uiOPZLyB5sN2UcHgDQhffT4Dd SGpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ezZPc80iAxJdo5xbUP+/K5eYQ1I4aslmzEvcnilz9jI=; fh=fhl29VgcwdOsneTlbOdSMck1eQdlOQed/8OKKjpLkTo=; b=Rd9bfEFd7X18P019Z8URA8DSzHxkUzT9lPvmXn/s+W9oppFCAv3mBgMCF/e/h+31Jg Osvms5vldKxsB2SntVGILuA0PjuS8SOV2ryKHFgZeY/j/HlsYdx2goT7gu/BbigHWP0j 1BtEFxr+Gqed+rHhF6C7SnS/IepOgx9fJ34QW7J1zZjOJtvzqo9JfaQ8F6+nQH22Q1ty Q+Cf/jJdGavLkyF0+4FZ+T3nSTrgRcI2WILMaRrrqEEXOIItTbmhxBita5s26Icq0LDl Nbajc1qaWIn0M34YuhIQReRSZrqCRT5CxQf7WOj2ignWGDvWKSF/hN9qH9/kBfu2JiXW a/aQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30054-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30054-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cz30-20020a05620a36de00b00783527016d8si9591398qkb.503.2024.01.18.03.30.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 03:30:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30054-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30054-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30054-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 05F021C20C58 for ; Thu, 18 Jan 2024 11:30:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 782E22420A; Thu, 18 Jan 2024 11:30:17 +0000 (UTC) Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (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 66EA91E530 for ; Thu, 18 Jan 2024 11:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577416; cv=none; b=rchgiHgI+V9gElRJ6jbgd4U9VzGpopB8+F/6A0/NIGEj/E7Ies/Eg9l7ZUoFWCnG/y5EJWD1zPl2FkMQhgz36F3vcq2UHrRKSgTaBWxnZK2+2fwE92pCTe6EAx7cbFqGzYKEwpGwCTKjeeMR2G8MZy9u04LND4FSCcvCRmfMrO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577416; c=relaxed/simple; bh=CQEbSv1ygZpxNu29WM/7aTyIQjnAU4JUdrf0Z7hNaJk=; h=X-QQ-mid:X-QQ-Originating-IP:Received:X-QQ-SSF:X-QQ-FEAT: X-QQ-GoodBg:X-BIZMAIL-ID:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID; b=JD/B49XYSDP768emGiEnMo9PZo4C/ngCO0uhIpp3R40B+yGN9SCQZNz1gG/Oml82729O+yjBBP9LV3gj0Xc/AblqrUTlK5sSjr3MMf7RfrsS6MoVwUEVe/TDaeVajOZynJBLdf5Gpc+y8LVeQrZumZ0UUjBWq/TvreH/lvXAR2A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=54.92.39.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp72t1705577381tiai0ryj X-QQ-Originating-IP: TaQ28MjSP3N2N+fKggTDtskVFYbnKkJs6U8Q642YBLY= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 18 Jan 2024 19:29:40 +0800 (CST) X-QQ-SSF: 01400000000000504000000A0000000 X-QQ-FEAT: 3M0okmaRx3iOREFUUdBFwoewzAHI2Yvwl7ilE395CssjLzFHMoBu2TOyZ0B2h a+VDymui4zsvfa0eqS3czqmFOwfp+1ys6kWlUc7nP0lwTPCoArAQ4WcX0br4Yob+d+rZOLS zVFrGRpWubl/5dgms51PqjJdWJsDsmxeYri52Jmg3r0PJj6tOm6xyL8l3A9MFepc0OXtGwb DDAm0YLDya/Nor91MCyRUscj9Jfav0ZMmeWMB5nO+mvyDUas/AoVkjbRmeQPH+DbF7Z1daV M46vEwIxWCM1Njxa410PF5OTN8DF6maySMm8vD0u85kJdMqqYFlZ5TBAe5bAgZrKmCrKpbb c1b7Gx3j7ks7UosbTbHC+NgCyE7a2MGro8PZREc46WTC/RQ5XhlfeNVv4ysKAYTEG6Ddqdw seBWIvBc07c= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 1086565048452587055 From: Dawei Li To: tglx@linutronix.de, maz@kernel.org Cc: sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dawei.li@shingroup.cn, set_pte_at@outlook.com Subject: [PATCH 3/4] genirq: Remove unneeded forward declaration Date: Thu, 18 Jan 2024 19:27:38 +0800 Message-Id: <20240118112739.2000497-4-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240118112739.2000497-1-dawei.li@shingroup.cn> References: <20240118112739.2000497-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788427575930018645 X-GMAIL-MSGID: 1788427575930018645 Protoype of irq_flow_handler_t is independent of irq_data, so remove unneeded forward declaration. Signed-off-by: Dawei Li --- include/linux/irqhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irqhandler.h b/include/linux/irqhandler.h index c30f454a9518..72dd1eb3a0e7 100644 --- a/include/linux/irqhandler.h +++ b/include/linux/irqhandler.h @@ -8,7 +8,7 @@ */ struct irq_desc; -struct irq_data; + typedef void (*irq_flow_handler_t)(struct irq_desc *desc); #endif From patchwork Thu Jan 18 11:27:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawei Li X-Patchwork-Id: 189170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp274718dyb; Thu, 18 Jan 2024 03:31:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsMIwEpEAMSD5cbt8BiM8i4DEGbDbkoy2bDIdsRBBXXoX6ZntsWBOpb3GcirVyXhYIFR4E X-Received: by 2002:ac8:5784:0:b0:42a:152d:32b4 with SMTP id v4-20020ac85784000000b0042a152d32b4mr1053985qta.57.1705577465262; Thu, 18 Jan 2024 03:31:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705577465; cv=pass; d=google.com; s=arc-20160816; b=QgzF4H2jd6gfHWt9WSgI9Itbcg8CLVZJBzJVi7ohwLx5o4qeMVRHitTMgGTCmeOrra 7YdaHRvh4EzGCNrBqN/7qYY+kuxYknq6UDT9PouKOY/qAvo7aJTeVGD5ruWe6wDOMAgq 6NeRlJT6XdYafP7Scc0ZHseygbm3QrFaZJT5RXEt1K50EK8yZtzSnGpubLGpy5OzRJmk C7K2gbny494fQPmp0sx7m4mTzbdqTDE9KHTa/qdzkGoWINSySMcUOYrb8hmVCoeZ5FU+ Mk2YmS0zsW3Hl48uF9ioDRvQiOLJKFJQjjed51DGsSlagVTkcXNJ2+y6vimU4F3qd/Wg H/PA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=/i9++jJshe+sDoiVqvm/CVmoBc8UNogRzeSDC68CLb8=; fh=l3FxwiTedJz4hQcg2kIXXrNaVnHh0XI7M0g9OXzfSqY=; b=rBD3ap10aAGLlY8Dp/OVuQALBHQH+wZmJz/szW4k8a60CIKM4uwwsiVE7bb1mJlius vrMrE2soRHHvtjWCm9yWhcK1QeFTSEy/w6PomxYfPsg7XkuMBqGOYgZ402xMXjhmuPAd VQ59UNFoNQsMoS30gUMgp+l1PAM0iQo46im1qwutJrOONOFgrqnBqTZLayAMUrZnp1Ot jKIzCzu2anIKGPDZ3dBh2HuLYjzuvcwMMilq1PDdj3r0IfsEPIbv0+2QLyMDQhrucE1A 5G1ymbkLO7B/6WExU5CdOnRbJ93DsA7KkjQ+n4cYJWjwB/db+uODMUVPxY1criedz6PA oXvg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30055-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30055-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z16-20020a05622a029000b0042a095629c7si4310105qtw.486.2024.01.18.03.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 03:31:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30055-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-30055-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30055-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 135A31C20B2C for ; Thu, 18 Jan 2024 11:31:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0BFE24B49; Thu, 18 Jan 2024 11:30:40 +0000 (UTC) Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.124.171]) (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 045B624A0C; Thu, 18 Jan 2024 11:30:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.124.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577439; cv=none; b=E9ISZHOV1jHEXcylzFVd5ujefgbNqg3bt/0wAqxitmHi2IybqHCxWfCFY6Mvd1eQ+t+CwyfmtpasOaJNrAeW7n6mMIfNccoqJi7pi1WmUyIVqHTeEp34GxrkRn9/PwNrZxc2jKf50Zi47X6TE3ny9Xq74S/fWYfI4tp3nxSAogU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705577439; c=relaxed/simple; bh=MTfDNh/H4RzACudbIKWTS9CwPWm85VD13SywdtsfirI=; h=X-QQ-mid:X-QQ-Originating-IP:Received:X-QQ-SSF:X-QQ-FEAT: X-QQ-GoodBg:X-BIZMAIL-ID:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID; b=JdO2N9p86UrwqBO9VfkSpnPE4Rd7oLkKMr5IA1T4ADc8NpuCGP7UZXXfKd+SwHVlfAt3uHtrdMD50y+oAMY7kenTlgbPyxqd3Q++I1Gzi59NN6VV6FiyZn1XU0H3UXXKfXybFxl8xDbSD5PmA1DAIzcqDHTnumEkQR3HspfFFCc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=114.132.124.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp73t1705577390tkg4v9vl X-QQ-Originating-IP: aAaUCGoHCcdq2hp9fxQg6peErxbrvoXx7bAu/R6yqng= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 18 Jan 2024 19:29:48 +0800 (CST) X-QQ-SSF: 01400000000000504000000A0000000 X-QQ-FEAT: 3M0okmaRx3ibVvpE3700jKK10kv893khAgTcIyG6+NPJ+eepQqQ0gVty3jdFg K/uKj5OqV0RO6mEgw4TclQmACO/shCVYvH3En/+KEyKkKNsBQXnJ/oMH3C4yO8QeB1wDS9c 0CYh3pAxHXHVBf5jgWwgZsBWmD9zWufKb9BVmr4aw2M3cwEkVQyzjXZe5blV/GHmA4OnvOP P9VKVgfiG9Q16PbOuV0DONspkzna8UdleWXn3Xn+5ua/fJLimjm4WK/h5gHxnKjSZfokqkV 3NguAy1Bp3sH/Vj4RZ+ZLO171tDHaCGOz9zBRe7o7J47vVqLyVoQoKPnL+IYuO9LsOE0FGq UtaSRbsNBh0CSxfxB5ioAZAsTHMYrx37Ol5zzgjr6/jclqYngv2VrLRS4eFM3Cy7ScRxMa6 24UsMzyQaZw= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 10002877068990544694 From: Dawei Li To: tglx@linutronix.de, maz@kernel.org Cc: sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dawei.li@shingroup.cn, set_pte_at@outlook.com, stable@vger.kernel.org Subject: [PATCH 4/4] genirq: Initialize resend_node hlist for all irq_desc Date: Thu, 18 Jan 2024 19:27:39 +0800 Message-Id: <20240118112739.2000497-5-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240118112739.2000497-1-dawei.li@shingroup.cn> References: <20240118112739.2000497-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788427595903885879 X-GMAIL-MSGID: 1788427595903885879 For !CONFIG_SPARSE_IRQ kernel, early_irq_init() is supposed to initialize all the desc entries in system, desc->resend_node included. Thus, initialize desc->resend_node for all irq_desc entries, rather than irq_desc[0] only, which is the current implementation is about. Fixes: bc06a9e08742 ("genirq: Use hlist for managing resend handlers") Cc: stable@vger.kernel.org Signed-off-by: Dawei Li Acked-by: Marc Zyngier --- kernel/irq/irqdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 27ca1c866f29..371eb1711d34 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -600,7 +600,7 @@ int __init early_irq_init(void) mutex_init(&desc[i].request_mutex); init_waitqueue_head(&desc[i].wait_for_threads); desc_set_defaults(i, &desc[i], node, NULL, NULL); - irq_resend_init(desc); + irq_resend_init(&desc[i]); } return arch_early_irq_init(); }