Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2943936rdb; Tue, 13 Feb 2024 01:54:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWE3IJJMIE+WSmfdOTRx0JsyNNeWz4OVnZNUdpEG26tdbLoXNHKxfWxjAQ8gOF0/93RpOwB6qRx2lWl+9C7i4OioPlNulA/KjXUiLwgeg== X-Google-Smtp-Source: AGHT+IEqgZJ7WXZ3BgZw87vkbh8oWl8Oc+CciuEtlrlX4HrnSIcoTRW9l+mhav0w0Vt5pgCWZY4u X-Received: by 2002:a17:906:6b8e:b0:a3c:ecce:27c7 with SMTP id l14-20020a1709066b8e00b00a3cecce27c7mr1415394ejr.42.1707818074218; Tue, 13 Feb 2024 01:54:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707818074; cv=pass; d=google.com; s=arc-20160816; b=tdl7BS0XO/TAVX2xAe2nApXyv8aY20cqeobwIBcdXgBEkFMJ4yH19eICsvtqDGsMIK eCnDC2wCjOMW+qMN0qlWuZYwXpQBtqxlYqPX5PciQWX/1HkIixpZNYVb7h5knwybfQOZ 9XsSHy1q6Uo8ZHaDAuhK2m6/sEj9lylr26OKeZNnf4dDcDkfv5RwKJ7PZjd07wVwi0mb ZPqmLPfn5EoVAkbglHCt2ISR1lA3O7fJcgSH99WsDfeEhrX1izUQf/dvhKSZVkMkWA7Q +wLhzfqsVJ/jM+Rmmf+U/xAjpNbFAMN0kpyWaYaNT8WVk3xEAHbFJBPsAE0z1YmhkuVy UesQ== 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=mfaHbcvnNJcXr43nudKodXIwxm8SgK0GLMoUzSXL0L8=; fh=roMopVI47pG6JKzL6Cz6nuNx/PFn+j1BtxJFiEoI9Bs=; b=K/i4CauvjbqfM1C/5xrhNZIgEhJ4mg9w+HXx444AQ26UD5Q4L1nRv9l/BhH7BieHOj YaVZr9db/3ey7OHuQpcpK/TqElgBFqr7qi6kEv+pq5vRdsvGL2J5dkTKfxhaKERqeSTg gC/Utyz7TifqIsoMFTc8EYtC8h5m6azB4TD9yoO/UMKR8NT1Fr2SDamyagAfs/z25EYT sUOuMGD321I751lUV6p/8ML7CMrVfMSKeiFZiSn4yec0lPuqlW2xd/5r+cSSPgewSTru ScvDVSFrRmDngS6lhLdJ14sepZwNNHALhcl8ybsCKo0zRq5FTwW7ZPmwbEonATSMc1Lm sNPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0Nz8nFGK; 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-63265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCXrLI2V2lI/VHoNlgs3cSbhTYfalSkc4Mp231QqsTk7VJxh/rWdLlCi6snIf1ajtUMyvZXy76/K5v5bJ1JOc4za3Q/OMu8/z5e/yTXx3w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i15-20020a1709061ccf00b00a3cf224c06fsi706042ejh.284.2024.02.13.01.54.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 01:54:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0Nz8nFGK; 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-63265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63265-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9C8AB1F28AB4 for ; Tue, 13 Feb 2024 09:53:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA5F236AEB; Tue, 13 Feb 2024 09:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0Nz8nFGK"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cgXmH3Pk" 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 7DC63364B6; Tue, 13 Feb 2024 09:49:25 +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=1707817767; cv=none; b=rQOq/ev0ynoij+3xu7mD9YfwAXVYaVHEe76bwwOcsvG+zbF6M3KUfCx9eWbyoJE5cg4GiRP/pwp1TQa0am+7Kjo62TmT6gLHkZPo6JQakKpz4bkiREyf2GDRJwPQH4ti+sRLA48hmpEGjEWu1bNAl6HLnL3G0pJvmUSiPbEiHSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707817767; c=relaxed/simple; bh=mfaHbcvnNJcXr43nudKodXIwxm8SgK0GLMoUzSXL0L8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=A/VDkuL3IjYVdKDhL2obvcH9cVZbIO7EAa1j1Md2QXoe4Uhu05IbNy7n2RNim6PG/4F4NnZYX/fFBomn9ashMxZiPoIpvY5MEDHB3XJAWaSGPGGj/Tj1kj5oB5WXchXGxAFodrw/BWqGafiy4cUC49vVgiiz7h0ngK56Ib0w8CQ= 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=0Nz8nFGK; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cgXmH3Pk; 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=1707817763; 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=mfaHbcvnNJcXr43nudKodXIwxm8SgK0GLMoUzSXL0L8=; b=0Nz8nFGKEfobSe0raaN2CaulvkaWmnnba1RyMNH0Kum2TULqRyMIwk8hnwifPY1KMu/CEs UkYyh52pSf2ToVWFAw8ufV01Z+rmK6uEQ3noPh5y9jlvr0GrzN9TOWjrFT5QWxCEysV31g xk5O5nA0Qfib3Kj7nkGKPZNPJ1z8qm4PqN49YjJgHK5S+fHrfOwqb4r/wVrJwNJhyVfcR+ HM4crbbg7ysmW5sboIOIeD0a/YPHtjQYT/IOhN7w1clIiq+KSHg58p6h8ZtiGaW9sCLw0c an2SDP9QY1wu2TI1jOK/xPrFOUwJPxoPEGso/iVsGc7z7CJjXdVPU/ULnBEDpA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707817763; 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=mfaHbcvnNJcXr43nudKodXIwxm8SgK0GLMoUzSXL0L8=; b=cgXmH3PkuHEaJhfEjT1zsn++EIYQ1vzaKNKcu56EY8U1y/t/yg4Kmy8RVJOJ3FR1ZOfNRt A1q8P0aVDxs+9DBg== To: Bibo Mao , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Shtylyov , lvjianmin@loongson.cn Subject: Re: [PATCH v5 3/3] irqchip/loongson-eiointc: Refine irq affinity setting during resume In-Reply-To: <20240130082722.2912576-4-maobibo@loongson.cn> References: <20240130082722.2912576-1-maobibo@loongson.cn> <20240130082722.2912576-4-maobibo@loongson.cn> Date: Tue, 13 Feb 2024 10:49:23 +0100 Message-ID: <87a5o4iti4.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 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? > 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?