Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp572321lqd; Wed, 24 Apr 2024 10:19:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1Tx4K/cnvJrOu1AfQaDR+VodPIlT3UH0OpEl3G4dQ5VtDPSbURhlNCCMqqUdzgYb4cAtRbpy0QvrFub+xhi24eBOuQCDXMT7wbntU+w== X-Google-Smtp-Source: AGHT+IF66Itu/0OE+Mr01U7+5kbQU+qzsPf7v7Jnn4iM3d7F4lp+kUnxiX5Hl23usiYP4jXsOa1Y X-Received: by 2002:a05:620a:1a23:b0:790:97a3:fc3c with SMTP id bk35-20020a05620a1a2300b0079097a3fc3cmr315660qkb.3.1713979198100; Wed, 24 Apr 2024 10:19:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713979198; cv=pass; d=google.com; s=arc-20160816; b=B9Zo/1kEjZGOk5JdlIzJxYXAGvXO7mOYvkrgWfTDPc+CwFN8tjgI31dN4+HONvDkOX o7w24effpY5Xt5qYQaGch//J87YPn56xrFdxQE4qGMv/YfuE1WIopekrLVVrePTxEbMe EgcTpm/QjqLCsCMkK0Pxtm+4msAtXNNkLYHGiXqMZHl1vF0gkK4PZeVxkVpxcv9uv8ST D/eY5PJEI0L2IAuZQXuFFOZuyD+7hTH3YySeXBCEbzi6dON8VYOCiAfgnzN1uG6hw7D2 1TviMrFf0BubjGnmV8Vn8DHRF0NNYRcaciKrHpVZILpMROIHTgVcgZ73ypkGVW+M0fjQ riqA== 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=OIgX8hYJKedlWpKZHCISbN03B7+KCkzESKI9X941yRc=; fh=pqNehANESN2RILowIiD8fFi5oD+vchY27Fu/AGz8sLU=; b=lYp3PI3CFAIMYmOAokPibB47jY/XqgFx4k/LRhqgX9mO7MY9F0cNrSPpxOkSoFc5x8 aSPu25EMdvsfwvQ6XAdFNQevNbmBqPBMNClrdMnyl7xoO66euYkRYSAgcAAZNLUEvGHf EOZbN3Jslup3mJn6osXAbIPPH2vwSDgaV8sDQTB/V4gXBW4IXSv7gky2MuGvn31SsJYJ EEdRCRrZZ78J9BFQROyQy24exNDeBePIOPUR4zNSn50RClavVyB0Soq6KXYfPl5QQMRD YWArpRC3ePMpQcttdYRxewOXiPqDJFCcmIjgObYMHT3PPNptxs8HwCUCPizg4aHj/+bA Js/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hUc+bY7X; 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-157378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vw26-20020a05620a565a00b007907bd49cafsi6171890qkn.670.2024.04.24.10.19.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 10:19:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157378-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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hUc+bY7X; 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-157378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157378-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A01EA1C2324E for ; Wed, 24 Apr 2024 17:19:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECC7816D33A; Wed, 24 Apr 2024 17:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hUc+bY7X"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cq0zlA4j" 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 9700616C86A; Wed, 24 Apr 2024 17:19:44 +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=1713979186; cv=none; b=hUxkrzs7LdyeZTsPKNJydPXf//5Tfvca1FydAZvQNobnsNVQI4P0G6Nbnxnua2S8HnnemHI2lO+kSy+CSSJwzyGj286g9DOF8cqXebTWvBcNFVD4+z53MqchorYUZlaKLOmQ1XLQ16MK66Cz8G27ORXHjEkdt2357/GHqn3eHt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713979186; c=relaxed/simple; bh=x7Ce+dUogthNuO8t6VNBi8u+MSlVwOVR1CCnQ/MIrsg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=EWU0rlmMgtvKRfTd1dpYd5ZF0/bXuPTrFbD0n2eZ57m8IJ1RM70Tt/sXUHXCckySUVHBdQXLMd1s55UYNIIpuP86dKlkGfuaC/GeZZh1sAmsl5B0jbaseYA9gd62QklvAvjXDIGUo79+F/pA57HHvqomsEcpm2DYfu1TP8tVdTQ= 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=hUc+bY7X; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cq0zlA4j; 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=1713979182; 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=OIgX8hYJKedlWpKZHCISbN03B7+KCkzESKI9X941yRc=; b=hUc+bY7XdaUe4i2b4TqKGtx9lDylLSmzldzEvAn8mQPtvdDYs0v5kWtB3Nm+Vu8JpW93Vg gGUat+XkI/WTRN1zIU/3ouPh047NwBu6a8uufa1eNllk7BZumEazzM5tJEfP08+VOaHHk0 b2pSU387zODGqcMMv+7Dzzsy9CkqGTdg/QXNNJZ0r0tSUv6IdVSQgc3oN4/3hciLoDZi0C Tjl1UwBQWMlIEHh4VniIZaHY/kzWdUoQUHfQMoPpnK8rB7LOemzTxp5tYcpR4cqsvg3387 6OY2gH33HcmtgCgw4jQZYeYWASq0HYq41H11rgELbVTmshv6Wz04FMkdsyZcng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713979182; 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=OIgX8hYJKedlWpKZHCISbN03B7+KCkzESKI9X941yRc=; b=cq0zlA4jo7geFavqDooN7ZB8M5yDubfi1Jxg4xvuyaqXGVTXw2TP9zlz2YlfTN80nG7xIi w1fmOJpSR2WXIxDg== 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: References: <20240416194343.469318-1-florian.fainelli@broadcom.com> <87le55ulw5.ffs@tglx> <958c27b1-26d7-4927-976b-4502f33f31f7@gmail.com> <87il09ufl4.ffs@tglx> Date: Wed, 24 Apr 2024 19:19:18 +0200 Message-ID: <87mspiu19l.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 Wed, Apr 24 2024 at 09:50, Florian Fainelli wrote: > On 4/22/24 16:45, Thomas Gleixner wrote: >> 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 :) > > I know, right? More seriously are you willing to take that patch, should > I write a better justification? I don't have real objections other than rolling my eyes, but a better justification would be useful.