Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp311567rdb; Tue, 16 Jan 2024 00:26:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IECpLF8yQaPaONCfgl7gdg5gpPWr0gdEiqGplPr6Ko4hJwsgo/rtUtgm1KRND53l6uKjWEQ X-Received: by 2002:a9d:6854:0:b0:6dd:e3c3:65bf with SMTP id c20-20020a9d6854000000b006dde3c365bfmr9666358oto.63.1705393610210; Tue, 16 Jan 2024 00:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705393610; cv=none; d=google.com; s=arc-20160816; b=TulChO+2sXvavi2ksNEU3Dp0+u23puQnMKLMEkTCE+zhyYGCu6kiyRp6At6VhUett6 KXAStBKZ799iOfxy0wJIzPiCwf1q5bLMOHxs97MStf84ZFY7DMkUbXxP/ZnG8PRN3F9z BUICXd6ABKJfw8/D0m6fns/UtUz1tk7446Px3ghbis6cX8L5fIxE9LSvGAkeRONHUSCs uP/td3+g/ZN4TCl7miZVioqMcdKdnLqz1mGdZBXENpNOEMg5soUhcqm6DXNzxzbEXcGe kMANDJm5AGP6p+BfIMhgK3l1mtqVE353iDzIkes07BFuNy8wj+7AUAxRFJ/KjU0Pioii m+qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=Oy/wjRiZVpWFoCPaBe9n0dhUo3Q9AXghl/ICvkBy5xw=; fh=NFJBi2OZU96XZVQe7XbjCSwI/dL4IdNYNedqLBHu9ms=; b=e1qqVdcNjg+47Tq3ndTXfZg4w9KbpplOKJrK6ahv+JQX3gozrZSisMX1B4mWkmicep 4K2L3DeEVpWj/UCtUk0Qz7C8wFlT+av8xAv/nKUWoC2WeK+pTnvXLT75kYbdeCm5WEmw GJtFm7UC6aODWCaI5sKcgg4MW5JLtt2XaPOb0Zyja3gcAmZ9KNPvuFOUp9PSsXGr7MxE VtEl2amz3RshcK4tELQ5KbBtzOorUPcoSJDvk0xcV21UD8mPd7ULxlJPZz1uawswUIIh chzAddD/Z2nr8M1NtN2IEHz8d3kEzhuhWbSiElk4YxrduT94S1WbJr9BxKw4X0pLrLK7 TLqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-27125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27125-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a5-20020a056a000c8500b006d9a571a59fsi11211667pfv.145.2024.01.16.00.26.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 00:26:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27125-linux.lists.archive=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; spf=pass (google.com: domain of linux-kernel+bounces-27125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27125-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D4F3F28526A for ; Tue, 16 Jan 2024 08:26:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0913E11C84; Tue, 16 Jan 2024 08:26:42 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 226FE11713; Tue, 16 Jan 2024 08:26:38 +0000 (UTC) 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.173]) by gateway (Coremail) with SMTP id _____8Dxfeu9PaZlw6AAAA--.2862S3; Tue, 16 Jan 2024 16:26:37 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxHs+6PaZlNKQDAA--.19022S3; Tue, 16 Jan 2024 16:26:36 +0800 (CST) Subject: Re: [PATCH v2] irqchip/loongson-eiointc: Refine irq affinity setting during resume To: Sergey Shtylyov , Huacai Chen , Jiaxun Yang , Thomas Gleixner Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, lvjianmin@loongson.cn References: <20240116080555.409215-1-maobibo@loongson.cn> <58b05897-8d06-52fa-8cde-ca7caa591200@omp.ru> From: maobibo Message-ID: <236c62f1-29b9-bbd2-1391-bb713d9cd3c8@loongson.cn> Date: Tue, 16 Jan 2024 16:26:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; 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: <58b05897-8d06-52fa-8cde-ca7caa591200@omp.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8AxHs+6PaZlNKQDAA--.19022S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Gw1UKw47Ar48Zw1xGF47WrX_yoWkGrb_WF Z2k34xuw1UXF13tFWktw4UtFZIg3yru348W34UXF1jq345Z34kWrZYkrnrK3Wxta47CFn8 ury3Ar4Sk347uosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y 6r17McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr4 1lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jepB-UUUUU= Sergey, Thanks for reviewing my patch. I reply inline. On 2024/1/16 下午4:17, Sergey Shtylyov wrote: > On 1/16/24 11:05 AM, Bibo Mao wrote: > >> During suspend and resume, other CPUs are hot-unpluged and IRQs are >> migrated to CPU0. So it is not necessary to restore irq affinity for >> eiointc irq controller. >> >> Also there is some optimization for the interrupt dispatch function >> eiointc_irq_dispatch. There are 256 IRQs supported for eiointc, eiointc >> irq handler reads the bitmap and find pending irqs when irq happens. >> So there are four times of consecutive iocsr_read64 operations for the >> total 256 bits to find all pending irqs. If the pending bitmap is zero, >> it means that there is no pending irq for the this irq bitmap range, >> we can skip handling to avoid some useless operations sush as clearing > > s/sush/such/? will fix. > >> hw ISR. > > This sounds like you need 2 patches to deal with 2 separate issues... Sure, I will separate it into 2 patches in next version. Regards Bibo Mao > >> Signed-off-by: Bibo Mao > [...] > > MBR, Sergey >