Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2613542lqt; Mon, 22 Apr 2024 16:45:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlCDyKraccTXIUnG5DwmMKrYL36AFvYQghbRHeOlkUS5dCYyKFXp0/0Kb1slQyIIRnWcFRmpyfMSJ5/N7MbSJuXd4lsQXVtV7AcNnGWQ== X-Google-Smtp-Source: AGHT+IG5yXvwqm7W2ssKXug/zspG4buSWXDgXloUKHJg3379xLNSX2KfUYc3OUWpDO5vobtG/bTP X-Received: by 2002:a05:6e02:219d:b0:36b:fa00:7171 with SMTP id j29-20020a056e02219d00b0036bfa007171mr16373102ila.15.1713829546833; Mon, 22 Apr 2024 16:45:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713829546; cv=pass; d=google.com; s=arc-20160816; b=0iSQtc4TQRnZqteaXw9eD7DHCYImSFYdZWaKqIjYdIaYxbq6E9FTyiUQ1BSBQdf7+r Ov58wqfSU3u2b1vFC30kHYlrs8xVl4/j1Ah9GmmL4sZ5QbB/AX1AI3DDJTZBvoAa/Om6 ikrRm2r1vqQPgEwY5epE2W2rvUbT6t/OvIPXgsCANNwG2BHUKBH0oLVAFuA5e8S3WWdg iIcX8pYrG4zLn2dTH0VnbJ8yYtabG11cP1ErZZTq6ZbOdSn7xO0sThmXoi7ceIv70gc9 zbAq0ddbvSj3Q0tZX3FxIAGMsilZrroEp99ZVo/o2BJKDyePXJKfxB8dPlWiuSVyDz03 W6tg== 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=Z3iuol9n0ncMFMx3ZU/0KzyHn3TSc5ypZiXe1W2A5oM=; fh=pqNehANESN2RILowIiD8fFi5oD+vchY27Fu/AGz8sLU=; b=J31ATkk/xTIwQULmbf7T8+n4CqhZNVs3qpsYXs3aZ8QCgFrI0iY3Icv9B7Ztl0gLeu QtqbrNDUBQgVlf1RzbBeHPcnVLuZivb9RyZU+FCbWfLL9HdUJ88lkdOFnkYBM3OLRvPb TCcG6lQ9WEzIw+X8HtsdUGiIL8RJWDKsnAw2vonuV88apfBjJ7ImHVLIf0piE4NLDdsl wWBX11admLt3ddFAoCYK4wqXSBhIu3JcGgbM/15T2CpupWsiLOcAG6F8Jx8FoAH1wZMs 9V68Mu9+ymPkR8N5dHdD3GNwwbLTh/U9UcUspeX6azLJCzOw0YvHsNJa3bSAyku/NaL6 Titw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SNo8ScRn; 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-154206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h18-20020a63df52000000b005f751d3f4a6si8456664pgj.775.2024.04.22.16.45.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 16:45:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154206-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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SNo8ScRn; 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-154206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154206-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E8978282D90 for ; Mon, 22 Apr 2024 23:45:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE4E045C0B; Mon, 22 Apr 2024 23:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SNo8ScRn"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8WX9ZE1N" 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 55AE244C9C; Mon, 22 Apr 2024 23:45:32 +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=1713829534; cv=none; b=b5N9UHdvtLTtkFCZlOLX13MAbkYB/0sJ/S6nM3o19MP+6TqKzRH+YyHosu2Dx3hFNoplbmyaT5MunzsclCnXUv9ue8JhWAayeYBELxl2r7LhI7XR7jzZeNItA8xfNSnjGxAeAiIK/JfrPv3qtMr6yMTaWP8hUxl02wD+FQ4Vuuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713829534; c=relaxed/simple; bh=z3h+VKrcZCpunIZDiKn9M9NtXfM5z6L0iGF/2eYIpDg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=LLtO6L4XR9PFHpTrM2jxzdzHthWDwE0qF+iReF4yZYu91Ea7mkeyXcicrHSPiEGf7rR0wQrSVS5sFsOa0qIBVL60senPA4B6OGTLQpiOdQzkltW1xRPfFlf81BpPYW/RFVVmQ/pKOTkl/pWgwnvuVZwP7fEk37pZ4C3R+lkmWyY= 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=SNo8ScRn; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8WX9ZE1N; 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=1713829531; 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=Z3iuol9n0ncMFMx3ZU/0KzyHn3TSc5ypZiXe1W2A5oM=; b=SNo8ScRn/1GkRdN2RdGq8C0spZlkhHnRirTAe1ms3kV9ohl07WzEzX6H3DoNspRUYM0Ppt KfaVYeZA7x29ikRk9pTWR1oE56fQEveBnqlngTBAzDYMo5kk9T5jH2DPgwXMzxc5ZeQFTP g7Ld4hXuPNtVSzsC4dg0tnRQ49tgrPE5mCLXjrqQev4D9CJrKrtCXuabH+oYFYV0VVfVOf 58ClO2hQYBGlfsKDDrpXYndvqWshr7bfyfdbr/tda5zoxwySbSY3Rz1x/a+QheZPGGRkUg R7V7UNaOqaQj7+6ZIef0Mme5uGSmAEae7IktutF9gpN7nRcOJra0k7JpgDu85A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713829531; 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=Z3iuol9n0ncMFMx3ZU/0KzyHn3TSc5ypZiXe1W2A5oM=; b=8WX9ZE1N45eKmwx2FOtbDg26c+wW39hf9Ig69BrWHfZpNpLCaNB3vI0A2+vt5SPjIFekcq G1TB3/M3SVk0OyCA== To: Florian Fainelli , Florian Fainelli , linux-kernel@vger.kernel.org Cc: opendmb@gmail.com, Tim Ross , Broadcom internal kernel review list , "open list:BROADCOM BMIPS MIPS ARCHITECTURE" , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" Subject: Re: [PATCH] irqchip/irq-brcmstb-l2: Avoid saving mask on shutdown In-Reply-To: <958c27b1-26d7-4927-976b-4502f33f31f7@gmail.com> References: <20240416194343.469318-1-florian.fainelli@broadcom.com> <87le55ulw5.ffs@tglx> <958c27b1-26d7-4927-976b-4502f33f31f7@gmail.com> Date: Tue, 23 Apr 2024 01:45:27 +0200 Message-ID: <87il09ufl4.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 Mon, Apr 22 2024 at 15:26, Florian Fainelli wrote: > On 4/22/24 14:29, Thomas Gleixner wrote: >>> + if (save) >>> + b->saved_mask = irq_reg_readl(gc, ct->regs.mask); >> >> what's the conditional actually buying you except more complex code? > > Not much this is an optimization that is simple to carry out. There can > be dozens of such L2 interrupt controllers in a given system and the > MMIO accesses start adding up eventually. I'm impressed by saving ~12 microseconds per one dozen of interrupt controllers on system shutdown :)