Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3715289ybv; Mon, 10 Feb 2020 05:12:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwYlvi2wGMK8QKigITrCgpYgX1DZk73l6PiOZzauQdUYHTs6Fa4SEAuI7IzOoYHpnHYTXdS X-Received: by 2002:a9d:24c8:: with SMTP id z66mr1043821ota.52.1581340340151; Mon, 10 Feb 2020 05:12:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581340340; cv=none; d=google.com; s=arc-20160816; b=FdMXfrPxLZifLmQX2AEBYXhH57cXv+55udUcoIWbg9D3M4rXk3y+4p47O2iTxhUBaU b1XLLZOUBXo8JilP2dx7qlDR6nVpghivZmOoE+pP1LP53ldsBIF4rMhHnbQPam3620N4 9TAJWWJRZkKCJZcruOwnNpmtyv5h3SSH3QInwQzltbW/A1ttkDcqC5XRBuVcQhiCQ4ex /ZdA0Zeh0R70gojUxwTw5Bd8qTfo68356aVjVfsJBdYNEgKdbUBPNwlJWUv0bpZP+GlD Y170o0j+3JBft6CYWZfMm9tp8xNKxd5P6qJXSlxK5+TwhI1t/zKk26f2nRqKGVFYhYX1 kRAg== 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; bh=pBAEbAcPqGFrnj8nhGibaTfeRIck+1c9ppdJsJDT4cQ=; b=I1Yab1zBErwcTd2sj5I1M2YeW0eQVxuX/yEzAs8St3TVC/mLI2M0BATjVI/LxjnGaZ KWkaVJ3+s4TQ4Bky/cBPSR9EetrWvYBDLoZyPJNG+QR7y2aQzVCWTfrVJ9RaWuCzRx40 sNqyQmrqkXdl0m65x+k+HyIRuseOoYMk+rEa/8ULSljz5mXQpa6PfoDCxHURGEEIZh3E 0Zk+lSeBRNuDF3cWiboIFyhbB066IYwDFI6igzmA2mK9FKC0bY06JUoCcp2KpPwAGMEw uUylpuSWqjtEq0RUjJOB+GDMaQ9iQI3gezt2/WL9Sk7OoRm8dKC3uFRe5XKvV/B0dunM 7Scg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d199si146399oib.135.2020.02.10.05.12.08; Mon, 10 Feb 2020 05:12:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729511AbgBJNMB (ORCPT + 99 others); Mon, 10 Feb 2020 08:12:01 -0500 Received: from foss.arm.com ([217.140.110.172]:32958 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbgBJNL7 (ORCPT ); Mon, 10 Feb 2020 08:11:59 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 498531FB; Mon, 10 Feb 2020 05:11:59 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C11273F68E; Mon, 10 Feb 2020 05:11:58 -0800 (PST) Date: Mon, 10 Feb 2020 13:11:57 +0000 From: Mark Brown To: Davidlohr Bueso Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org, alex.williamson@redhat.com, Davidlohr Bueso Subject: Re: [PATCH 3/5] regmap: optimize sync() and drop() regcache callbacks Message-ID: <20200210131157.GE7685@sirena.org.uk> References: <20200207180305.11092-1-dave@stgolabs.net> <20200207180305.11092-4-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FEz7ebHBGB6b2e8X" Content-Disposition: inline In-Reply-To: <20200207180305.11092-4-dave@stgolabs.net> X-Cookie: Avoid gunfire in the bathroom tonight. 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 --FEz7ebHBGB6b2e8X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 07, 2020 at 10:03:03AM -0800, Davidlohr Bueso wrote: > At a higher memory footprint (two additional pointers per node) we > can get branchless O(1) tree iterators which can optimize in-order > tree walks/traversals. For example, on my laptop looking at the rbtree > debugfs entries: It's not clear that this is a good optimization - we're increasing the memory footprint for a bit of performance but our performance is all relative to the I2C or SPI I/O we're most likely all in the noise here whereas for larger maps the size cost looks like it could be quite bad (but equally your case looks to have a lot of 2 register blocks which is almost the worst case for overhead so...). That said the code is fine so from that point of view: Acked-by: Mark Brown --FEz7ebHBGB6b2e8X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5BVpwACgkQJNaLcl1U h9D9nQf/UDELw4nM+mVlqjci3E7CLgv2DvqtZdkaYcs/g8i10jrF2mZBquvaUwUX DpgA8imJ1niA81szUWxxUjbMXLT/FRbVZBHAGDK47n1b6E0j1k1K35eq9nvsgchW Lg6NaXfqNFgmm4TCwKbS+eQZANklImbERJkdELSFasEwi2I2WETW1T2/TmHxGO3j orStHxYCiSIobLd+kXwzC/gcFg5H17s9zRpDDNqr+qIK/XMkEzoXckoVCE4bDIS7 k9NX3PD64PKfTSjgsfCbJmhQUCvSqo02zgUkFfHOzBSE4YCTf0CijLV4wwlnaNuM 7SiD49YTlzecyrzgmFA2iQEgp/Jbww== =utDt -----END PGP SIGNATURE----- --FEz7ebHBGB6b2e8X--