Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2541062lqp; Mon, 25 Mar 2024 01:48:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC9YhXNmXxY3/bpPnF3mGY57sBGon7OtIbRDX1y5lUBPMRaPlaZX+c77o9W75HwiCSK7Oe3CrPKGbA6FlHzHmEBV/O03r+cH4LmLjMYA== X-Google-Smtp-Source: AGHT+IFpaBABRTkyxU1ECsjPP1OPxsldTGqZzGQYN/AjLFIWZhQykASSLfId3II+GOdmc0mBLQhE X-Received: by 2002:a05:6214:c6d:b0:696:2b92:3e7a with SMTP id t13-20020a0562140c6d00b006962b923e7amr7780288qvj.2.1711356524005; Mon, 25 Mar 2024 01:48:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711356523; cv=pass; d=google.com; s=arc-20160816; b=xzN/ueIzd4JBsfr7akxgc21s8qNOlQfgepX92gSZ3RCFhOHVLYzKBn3WllgomFp8Pa XRAlg0sp12x9qzlyXpq1y5VRve8A/le07TbuunyurDlgQXy/xX1F8IebHcBo0TxOuu9e ZepeQC/q+JFpkycJA2DTfpvZXla5/hZ08U9VFSPQ1+riYJf5JfHgqmH8Vu/pV4a1abOe +EwbHVMdX7hFpRMB/ZxKPAdV2XZrtdklu/OUHvyVpQgBy+fr/Uc1XC5vuP/nuQyNy3E1 lUR0HyHwAfS7R3vg8kXtxZ7EBn+0hBWmPoM475KX2UEltBjSm9zq5xD3NY055krnaGIi bJzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=mbQ4Le5hA1Dlc6bUd7zM1yO78wvdGjB8CGhYycNAlRw=; fh=6BLiHjKPvAL+zTMcFyDRoDuOMcUQLfS0MVKNqFnlBSw=; b=oKCxfN18c2gyHLSs2mC8x5NJQCPBtxjsz+0IVOgucjX3nsD41+DZSoiJiG4APb6WdH nU37thTb4GMMely4SI/Y9Y3x1SlMhaqJx0xElab2wF+sBYNEIpnaNmL7R/3PTfpys9oN I+Ox/VluxKHwtGFjLFm431gLIIjkoSZK2dawZlUtkiOaNuXT05HpcqGMj2go0SRtMJOi vlcBD06DZ/XTZkrfFNQvWekLOn/QZjKrkBDZNSv5C1XeMSPrpzznj5joXAfqLEA39EZl Eu5oy2vRGaXxIppy1SR4G4hEEvI++vi8CPajQpl4HLyowM/G11Q5lsSbos1RpfqB95SC K3ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-116388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116388-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id qj24-20020a056214321800b00690b7c35fc8si7116484qvb.293.2024.03.25.01.48.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116388-linux.lists.archive=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=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-116388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116388-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B45031C3002E for ; Mon, 25 Mar 2024 08:48:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B1AC132471; Mon, 25 Mar 2024 05:31:31 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AB2F13A876; Mon, 25 Mar 2024 01:54:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711331690; cv=none; b=RvsZZ8E7mAyk7FKX1S1x0t7h7Zoy6vt5UciTJJctc/WESmayMRUd9Zr/RjTqMOShYlGB2Z0Ip/E64gwQrGTY8y29vvtSPJeA4TsjpX9vNrfJDwA3Ch0XnyOfXkqvB2aoIRfIdcQsNE46spIQMJnZjnCnGOaCkAfIwSgNgckniLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711331690; c=relaxed/simple; bh=XiiSClFiZHKRTyOnVAxVECc0GJmJXRzHs1zn5XKzvWU=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=HGoGdtJBGLoCBNxYGz/QgCz+DFAWKv0oWDD/GKp1wdulnQ+vTnmbu0VBtCqDTl/zyXGbdtfcP72LpgqZiaiSvocPSmRjIWu4m/bLzKaJGBWyqZv7NxnNxtbsdKuHzNkISKp5MVhJU9YJHCnzjLFUTnpaoD6rg6tZjNn5JD5yUFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.42.24]) by gateway (Coremail) with SMTP id _____8Cxmehe2QBm4YEdAA--.49942S3; Mon, 25 Mar 2024 09:54:38 +0800 (CST) Received: from [10.20.42.24] (unknown [10.20.42.24]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxXs1c2QBmRWZmAA--.599S3; Mon, 25 Mar 2024 09:54:36 +0800 (CST) Subject: Re: [PATCH V3] irqchip/loongson-pch-pic: Update interrupt registration policy To: Thomas Gleixner , chenhuacai@kernel.org, jiaxun.yang@flygoat.com Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Baoqi Zhang , Biao Dong References: <20240319124629.23925-1-zhangtianyang@loongson.cn> <878r2di3ak.ffs@tglx> <648e7f23-a2e0-ce8f-7c52-3bcda262de86@loongson.cn> <8734sghfya.ffs@tglx> From: Tianyang Zhang Message-ID: <7418ece8-111a-cb29-0320-e8bc08e2d7f8@loongson.cn> Date: Mon, 25 Mar 2024 09:54:36 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <8734sghfya.ffs@tglx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8BxXs1c2QBmRWZmAA--.599S3 X-CM-SenderInfo: x2kd0wxwld05hdqjqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoW7GrWDZF4xAw1rGr13Cw1kXrc_yoW8JF1Up3 ykKa17Grn7GryfKw10qrs7tFWSvr93A3WrJ3s5Gw1DC3y5WFyFqF42qF4Y9as5XrZYy3Wj qa1Y9ry5u34DZFXCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUv0b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzV AYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E 14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIx kGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAF wI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8zwZ7UU UUU== Hi, Thomas 在 2024/3/24 上午4:05, Thomas Gleixner 写道: > 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 Sorry, I will carefully read the document >> 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? Thank you for your demonstration. I will make the modifications according to the requirements > > Thanks, > > tglx Thanks again             Tianyang