Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp33363rdb; Fri, 16 Feb 2024 19:32:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVB1IVeRb5fhW0u4Do9dyCIHFGY+kiJEQTMz/g77G0dS6UeXB72lnw3aj8B0gJOHoSvBGhc6bkgctQbTJkLI5njtTn67TSeJrZuH4yhYw== X-Google-Smtp-Source: AGHT+IEZGh8zGYpGn2dQjCLjT8RebJ9NUIJ62t2ulP+6dm2p32EStDGhz2+KTa3MTIVzWA0T7ZVq X-Received: by 2002:a05:6808:3a0f:b0:3bf:d840:6c0b with SMTP id gr15-20020a0568083a0f00b003bfd8406c0bmr9755724oib.36.1708140745074; Fri, 16 Feb 2024 19:32:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708140745; cv=pass; d=google.com; s=arc-20160816; b=DaU2fLxuAjpdSJjH2jLyvMR+zqJVQlR6Tta7CrHnm+kWRrETyuO+EsqtSPj+qaA8IY 1nHIs0JO83dg83V1MU+M/Oyu6r9KkuteW90lOIkgxpVH66O+IpCRkgcv1Zj4vKJrKG5a acOdyOZizWM6346XitZp8gAl3KU/F/PFS7PJf6HJk+6D81V/iiEUJgtAb7PffQ5HhZIh oZ1cBWScgsOtu/5hqBZkhhGlGnV2eIEEq3OnNAWVJqzwArjnctzQ1hOhR9+AeKd4quzB Pvcg8YJwA0wHfrXWV7gbSbghexUkC53JkrnHGxLWBGSrbW1miMxAn2PqGEcUCFEn/RqV sHdw== ARC-Message-Signature: i=2; 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=I0te5aIXCu1O0TfBkV9dITVT0pG8FnVY4YTpGmX0hRU=; fh=HyiQsgdMV1dhf60IilYm2NO/er7TFKVbwO8iGXx12iY=; b=ICgeTeevcnS7qLdrv0GWu92oT26Imho6rfBRxMQN+nvl/uFTckAr6J7ylKdwGJBFry 8bje00vCxgp0LKPSVOqlSdch38WqWDI4BapsIG9TeLh4f8FrbPhWrLugAu4KaUCE1zyD /4b6ZoxYy6dnAOKj/TgKir+xnIMrqnsBvCSq9RgNyMIvxdb4hjy2BOzTFkjdaMtCOyKq Bms/1wNT8QNDczRod9498ryKCzkKCUGi35YzJz2ZfwySup+SGnQFJH8HCLF6g0wwfWyo aFdByI9/kDsOgSGfbr+MOfFjyhgnSt11AExupyJOS5Z2DHhtcPlqTKcfXEAxJj1VLmrb 0QSA==; 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-69669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69669-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s28-20020a63925c000000b005cee9118a7asi844340pgn.600.2024.02.16.19.32.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 19:32:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-69669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69669-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B8C4EB22BC8 for ; Sat, 17 Feb 2024 03:32:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B3DF1BDCD; Sat, 17 Feb 2024 03:32:13 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 150152CA7; Sat, 17 Feb 2024 03:32:09 +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=1708140733; cv=none; b=I29uvbvbzyjrxFFPycRkfUgng6kyhSHj1YEUCEx9hbs+4K5h+t27ZRPadPHlHJUXblEecCTU66iZANJt7dSXyeOWU7roybDnOD/++PuGAnw7X5dwIgQAVriDhF7d0A7mqN1vV9XiNRWd+5Y6yAZDD4BhEAhdiuKvXtmGTQqbY9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708140733; c=relaxed/simple; bh=UtB/ej0jid9HOz3F/jDN5xNw9C2RqBXueFstNFMDHto=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=cubaRxI+gg60wIAV9u+yU2TE1yiAsPWvfUoi207+A36TuaKpUawkPQ1ncPDZiZuq8WlL+wuynVTSqzJ+sOThtP7FVI7xDAVxN8XOT82SPlCdGNHP+feTN9xQOLnvXnhgJkrxkX4fixa6YNNqAoajdND2vZsyLdkIM+xxIaeeT78= 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.173]) by gateway (Coremail) with SMTP id _____8Ax++i4KNBlsPENAA--.17842S3; Sat, 17 Feb 2024 11:32:08 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxXs23KNBlPeI4AA--.10369S3; Sat, 17 Feb 2024 11:32:07 +0800 (CST) Subject: Re: [PATCH v5 3/3] irqchip/loongson-eiointc: Refine irq affinity setting during resume To: Thomas Gleixner , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Shtylyov , lvjianmin@loongson.cn References: <20240130082722.2912576-1-maobibo@loongson.cn> <20240130082722.2912576-4-maobibo@loongson.cn> <87a5o4iti4.ffs@tglx> From: maobibo Message-ID: <00dcf10a-6703-c2fc-f92e-e2cce3c12019@loongson.cn> Date: Sat, 17 Feb 2024 11:32:13 +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: <87a5o4iti4.ffs@tglx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8BxXs23KNBlPeI4AA--.10369S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoWrtF1ftF4fGFyrGr13XFWkAFc_yoWDWrc_Wr Z2y39rJwnFqF1Uua1vyF4qyFW3Ga95GFyUt3yv9FW29345uF4DZ3yqkryfuw1xWFnrAwsx Crs8tr4avasI9osvyTuYvTs0mTUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbxkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8 JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v2 6r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67 vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAF wI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc4 0Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AK xVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr 1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8yrW7UU UUU== Hi Thomas, On 2024/2/13 下午5:49, Thomas Gleixner wrote: > On Tue, Jan 30 2024 at 16:27, Bibo Mao wrote: >> During suspend and resume, CPUs except CPU0 can be hot-unpluged and IRQs >> will be migrated to CPU0. So it is not necessary to restore irq affinity >> for eiointc irq controller when system resumes. > > That's not the reason. The point is that eiointc_router_init() which is > invoked in the resume path affines all interrupts to CPU0, so the > restore operation is redundant, no? yes, it is. eiointc_router_init() will enable the irqs and affine all interrupts to CPU0. And it is redundant, the aim of deleted code wants to resume older interrupt affinity when executing "echo mem > /sys/power/state". > >> This patch removes this piece of code about irq affinity restoring in >> function eiointc_resume(). > > Again. 'This patch' is pointless because we already know that this is a > patch, no? Thanks for your kindly help, English is somewhat difficult for me :) Regards Bibo Mao