Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1883483lqp; Sat, 23 Mar 2024 13:05:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5Ut20JCwGbfjvGN6YNiKT/mEYResSYlgC/AARpoQYsH8+UGTJe07QLFPGoZz6iSPrLQJQIur4x7xHVYPRooa14LhX2tQvGnuPLz9roQ== X-Google-Smtp-Source: AGHT+IG4Oyru+Ddgy7PGRJMg5eiwAVqtuPwWuD6c962RZDzoWKrYqhepUilmnjz6TXlFv2GmEHpw X-Received: by 2002:a81:4988:0:b0:60c:c608:5b42 with SMTP id w130-20020a814988000000b0060cc6085b42mr2648248ywa.46.1711224329220; Sat, 23 Mar 2024 13:05:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711224329; cv=pass; d=google.com; s=arc-20160816; b=xQfYpUhYZ74I45UuGBbF1/3/nv1Nm+yfiNiMauOqEsmz7+TgSe6f58QVqPAJ7D9cYK +TohzJomwTASmYaphQupGJJyf9+OWDITIJOR9bDEBgzGS7RkeLjjZCKhx/1Ws1xtzScc Wi/tLTQdNmK8mBjEPIwYZNbmsKab6h22udeXC1aTPzm+hhUjZqCZpknIvnatrcJfZYsg VMYNwz7ez/0iU/5pQ7pvvRpQex1Yz9OQW5/M8AEZQ9vAzr7NMqOl/25MtW9KjEZec0ka LIF6z9gKT8GyAyw/kQVeU7o9MevQCQn5svgHZSw+yQzC/AtCJ3f4kwvH3KRDwigDh9xJ Sf8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=NdDet6KtuaahptjfgPKR+KD91ftph6T4F5W1EFsslQs=; fh=O8DV8FYyCflj2om0suzu8kyirr8p5m0YjyKG0oi8AaE=; b=lWW+eBNRjP0eA1Gdl1oGMnxFcJjeDbKxvpAjh3JCPWueTxxz/uCRQaCq1UuFPtfuCf Faapp9uxUWqTy1voAGQjXyaZbAb5heS3PhN0Yx6DXP4lCYCsFPotGsdCFk3GTuy6RuiG iMW4GJec4XAbLjwok0+QXSTTucxqBbbCk/T1DhGsetM7VeisRO038/L1JbFsxlQc5O8t NvYECFuxTdnVHHJ0oOoH/RMTgzG7oGobgawRbPiewlqIea1D91Q4CGUC0DWJtjYH8yIl l/ZXGH3aVwEecLeFdl0AEohEblvwkbmkjLUzn8jhVEiw5HI1EPxSYGFBNyr5uQc7ydpj E2Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yddHpm+x; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-112470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gg14-20020a056214252e00b0069078004e85si4689008qvb.246.2024.03.23.13.05.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 13:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yddHpm+x; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-112470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 EE3781C20C48 for ; Sat, 23 Mar 2024 20:05:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1C659168; Sat, 23 Mar 2024 20:05:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="yddHpm+x"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xqvzGfGy" 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 6033318E20; Sat, 23 Mar 2024 20:05:20 +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=1711224321; cv=none; b=BY9twsYMToBMsrer52V6ydywEVQzknDNIBcqwddwglTkbsIhP1oU+Voo8+u+f/v3qilfaJAoCDBhlz+To17Xs3cqOkdY7SnykdlvRZTcwWLwy4F8OqU6rZjvrBR5GQmfyDuhhFe9H4Y9OOk6wyxWetGaIHYDZFC5hUq7ZHAkYfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711224321; c=relaxed/simple; bh=upuZnzT8aOWZK734xhR2B21P63h5U9ql/DJ8dcXmRSQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=IqP9Rq6ZlHcqU8r9bqhSvtcw+ZuCmSsv+qD32tyLpcibBzl6kwcRcyQKQCHY4zRGCfFNFmTB1uiiKd8hslbwC7b5qSUobguA8fr91ciDFVXHoetxb1obU8BdsQCUbeEpQIZuXOsKDdhEXKf+aBLiPbHMtjxEvE414iimpEbSlDQ= 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=yddHpm+x; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xqvzGfGy; 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 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1711224318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NdDet6KtuaahptjfgPKR+KD91ftph6T4F5W1EFsslQs=; b=yddHpm+xaMoArpJAtlEjYhCNOjY7vHgDQWQjQnGPu2Aygfx/hYk9+2S7y6g0BZL4ZMaN4w Ld11vbnxj5UDr2C5rmJw2noemwGxX2ryP1nKMy9gQjg4mIuJdIl2Kv1m/V7yaFUEyYRNtS jIZkW643UnyFsvB4VDKL6/N69/Z31o/uWud6CIgBloc/NLDES23J6WTCv+0blXVnM4HWV+ W98/jrrnXIvlK9kDHjnnjb27WDNxERTlqhtth4D5Oq19uLiPI9mBdwqoaOWLbkr1qDmfo/ ESvHOckaUruYoguBKg7kul63VRE6V5u9LhUkLztC/Es42AR0uHu0ljqx2UPSbw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711224318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NdDet6KtuaahptjfgPKR+KD91ftph6T4F5W1EFsslQs=; b=xqvzGfGyd9lVzjpQcBopqx0CW5LwkyhUVtMg7uLOgQJig7Vfth87AI5Ew6gIin6vfe7Sxl eMhC/u+0vIfGatAw== To: Tianyang Zhang , chenhuacai@kernel.org, jiaxun.yang@flygoat.com Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Baoqi Zhang , Biao Dong Subject: Re: [PATCH V3] irqchip/loongson-pch-pic: Update interrupt registration policy In-Reply-To: <648e7f23-a2e0-ce8f-7c52-3bcda262de86@loongson.cn> References: <20240319124629.23925-1-zhangtianyang@loongson.cn> <878r2di3ak.ffs@tglx> <648e7f23-a2e0-ce8f-7c52-3bcda262de86@loongson.cn> Date: Sat, 23 Mar 2024 21:05:17 +0100 Message-ID: <8734sghfya.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Tianyang! On Fri, Mar 22 2024 at 18:14, Tianyang Zhang wrote: Please do not top-post. See the 'Top-posting' chapter in: https://people.kernel.org/tglx/notes-about-netiquette > Regarding "WHY", my understanding is that a convincing reason is needed > to explain the necessity of this patch. Yes. > If so, can the last paragraph "This will be more conducive to fully > utilizing existing vectors to support more devices." > > be considered a simple explanation? Kinda, but ideally you describe it in a way that there is context for the reader. Like this: The fixed mapping between the LS7A interrupt source and the HT interrupt vector prevents the utilization of the full interrupt vector space which limits the number of devices in a system Replace the fixed mapping with a dynamic mapping which allocates a vector when an interrupt source is set up. This avoids that unused sources prevent vectors from being used for other devices. See? Thanks, tglx