Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4300453ybg; Mon, 8 Jun 2020 04:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSI5I6lLVbl3Xrk8Djd7IzGDeTsyVZV9z/XDq4Ftrw9OWF0jobspglcbg1mZfBpuxoKODU X-Received: by 2002:a50:afc2:: with SMTP id h60mr20715693edd.110.1591615849777; Mon, 08 Jun 2020 04:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591615849; cv=none; d=google.com; s=arc-20160816; b=w9NdjhljXC6bK+YBrDsmFCQ7AKzzza0tU8v5eJsiViZfOd9WvsdYmZjC/6w7U9hnQN kl/Z22zx+cFEzkbCZ6mxx/KDyBX6FC3ibVZGAxvhU3sYPKQx+ZvqUtEs0T1JXaqOjJ8l d/kW/zqaFumRE1Y29X6dEGoHPPGLb4XGjrraXLr57xBJ593byDxXOLdgHjGKqXylrHst KHuCE/PAVQ0RxpTkunMT5Qx9/LrTDkcJAwTAZnTRn31r1szUlUYHxATRVASg+YbZm3Vu p1+KrRApjV4K7IkFSDF4TdIyU2C5ouj8ANLfflbxBqxsaBExBEjU6bwaQY8zNX5m7fN8 zAug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bMvj8hq4gTwJRV7RlgYrGnwqpX0ihwgTKePwijmx2y4=; b=S9VVzGYwiA/kt7ceSbhdxc2oI8D27g8dJB+UxTY1rojBnYbuafH2Kqg4ffYBMGX7+0 TQe1hQECWE5xHLBVVaCuaUqC7nxPfN0lzt32HCtI1vrdex0WVpqjns9wu311cNpz0WM6 MqByM4soiI5nz7pg1wXrEDAB3lpdehhpu2CP1rGHDIt9DgLxEhucC79WrpNhtERz4fYU ELz8TTNW1jLiPNhqt0N/1y7bvtq/qwp2FemXoRE0COxmHHZcO9awwyDTI3A8rNXRy3wx H80PXvCf1ljRrQSyoIHOWNlpWzsm/NyfGDZKcnhAiO6kCXkU0793dU1xSxcvF5ApGj7n tJNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PSssz0ft; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id se4si9061827ejb.636.2020.06.08.04.30.26; Mon, 08 Jun 2020 04:30:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PSssz0ft; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729598AbgFHL2n (ORCPT + 99 others); Mon, 8 Jun 2020 07:28:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:38976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729310AbgFHL2n (ORCPT ); Mon, 8 Jun 2020 07:28:43 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 06725206C3; Mon, 8 Jun 2020 11:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591615722; bh=YYeYKTubuK8uMi7Ksz+Evqk5yKQweEpTz0M3eAYB77A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PSssz0ftDvak2V1jNm/rzjE+e3b8E5DOT4ArB6KH14YgxL9PCjBbkPYWE8eSyESxe HepGmVKPZIJj9kL9YwUIaPoveXgvhY9UdwnMctjrGkzYwv/Tu1YFc+cPW2+jw9jniL oEXhLw2diniklq+QavDjLkejFy7X/SGrDRlF51yI= Date: Mon, 8 Jun 2020 12:28:40 +0100 From: Mark Brown To: Robin Murphy Cc: Florian Fainelli , lukas@wunner.de, "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, "open list:SPI SUBSYSTEM" , Rob Herring , "maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE..." , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , Martin Sperl , Nicolas Saenz Julienne Subject: Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support Message-ID: <20200608112840.GC4593@sirena.org.uk> References: <20200604212819.715-1-f.fainelli@gmail.com> <142d48ae-2725-1368-3e11-658449662371@arm.com> <20200605132037.GF5413@sirena.org.uk> <2e371a32-fb52-03a2-82e4-5733d9f139cc@arm.com> <06342e88-e130-ad7a-9f97-94f09156f868@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hYooF8G/hrfVAmum" Content-Disposition: inline In-Reply-To: X-Cookie: I'm rated PG-34!! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hYooF8G/hrfVAmum Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 08, 2020 at 12:11:11PM +0100, Robin Murphy wrote: > Again, 2 cycles. The overhead of a static key alone is at least 50% of that. > And that's not even considering whether the change in code layout caused by > doubling up the IRQ handler might affect I-cache or branch predictor > behaviour, where a single miss stands to more than wipe out any perceived > saving. And all in code that has at least one obvious inefficiency left on > the table either way. > This thread truly epitomises Knuth's "premature optimisation" quote... ;) In fairness the main reason this driver is so heavily tuned already (and has lead to some really nice improvements in the core) is that there are a number of users hitting 100% CPU utilization driving SPI devices on some of the older RPi hardware, IIRC around IIO type applications mostly. I do tend to agree that this particular optimization is a bit marginal but there has been a lot of effort put into this. --hYooF8G/hrfVAmum Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7eIOcACgkQJNaLcl1U h9De6wf9HKTAjmkja1i1t3bz0jmsUYY8xaAjvc0kqwlkowJdSjfUHX/0ahbBtdkn 2/kzIAPvx4B0oTHNyL3hNwMWo8hEGNhRQXwZeJjeR2MJREW6qqOXooWyFCDMJq/z R1W/rcSbLvGORXBiiFFhpBLEiY5rRRTZXNqw4An12tduk05ZOmpqVdKvCal0i48B UZ0u1AIdNOmauU8JnlhygidT3ErLH4EIFirK04AhVs8ZFVmKOvfTWzHR/zUXHzdD MWXKAFJcfcywFnWlqq4yeRpPFbu+c7/Ko4MJZNSpEViAzDUo7wy5SyDP4mXmC+tI BB0LR91M/J64eJtjSEN8MMW3rGEzwQ== =CMzm -----END PGP SIGNATURE----- --hYooF8G/hrfVAmum--