Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4003073rdh; Fri, 29 Sep 2023 08:28:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYy9PN1RC8UMkFstlnjBPYZkw/7KAy6wbwdtMQssI6L/29qsCiMCN4ICsrDG0bXpQjz0J0 X-Received: by 2002:a05:6a00:847:b0:692:7527:c2d0 with SMTP id q7-20020a056a00084700b006927527c2d0mr4831625pfk.32.1696001284758; Fri, 29 Sep 2023 08:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696001284; cv=none; d=google.com; s=arc-20160816; b=AHe0+KASlmtM7/6yAw8Bql7+FerD27ACY0LPPDjHwpWvu3AXpduF3j8k0d+KjquuU+ 1/kR7JR7ivKxMfzFGltpn4/iyvRedQZRsbqcvwDvyRFr/Ww7eUjrB0RU3gc4OJDBNYqA 39xLbCNjtM0OYAlYHnSshWUXpyBHAaAJrLkR72FPAOfL60rJfs24ipcJXVHevD1hoOQX lnfu0RbqFQBqshf337r2diIBsbfyLSsWA8UnhGRuOOrDjDrOZuVPh1dYW77sZbSutmIq FpmmliE7WMSdSWizCdQxWYj3jAYY2swoHLRZLRyU52lMpATXfEX+4RdLoklKaUJ8cBrN wB7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=/v84HoNvUGwxv8RV9yxEbc50YSClWwT4ri6+H6Q3LD0=; fh=QW2kgLOLqwUg8ehOKpDFmjWt9ovs2pSJXM6sgn44CFM=; b=uFMeYOWsjAyXHAQqxiM+XF0A8seOgkepNGVt/giH2/DgM59kx1aQQ2UeKJzrqyLcE1 QNfv4u4IV6kzGzQLK+gLo8xxuCc57OvojO4s3SS/wU93cYbH0fYtdCWJgjD7EryQjTSJ XMl6EUUV4NcydCLxqp+3cbqsRxbHvVyf9LQk7DTpQ2E1I1DXquXUL4poke+ElGM8ny92 SZMK5Q+/OnQekfQOm97O1B0Uf58wiz+f7mrsLAyQl/3AnbgruJF3QA7td0IyWHg+3WgR JDyEh+0wLjm4mgDvwaUa0R47MHaHgO2FLX2Ea5ADGzMMkcocKX/BzpqTc6UNs/XAaIxP k+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D49Fy1gG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s13-20020a056a0008cd00b0068bf4e83dd8si23100208pfu.313.2023.09.29.08.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 08:28:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D49Fy1gG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5EDB380A1A7B; Fri, 29 Sep 2023 07:26:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233487AbjI2O0f (ORCPT + 99 others); Fri, 29 Sep 2023 10:26:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbjI2O01 (ORCPT ); Fri, 29 Sep 2023 10:26:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35A01B6; Fri, 29 Sep 2023 07:26:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8F64C433CA; Fri, 29 Sep 2023 14:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695997585; bh=sejfCcVQti2Hi8yDe3f20hbpcbYbp6CNahq98VEjTTs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=D49Fy1gG40zXkfUkXiYPjOBhKb97foft4tMjLSqdeuevmDCDLa7D2Ld1lYNtaEGm0 36MnJ4mi0480zSIXrgJQJWmVUT3zfBfuDOoYOIKLC1Pxr1fq01gkc1CzN3p4F2Jqu9 M7ql95SbM2mi+lj4nWAQwL1trmZKC47Sg/4UXZONpPiUSVdq9QQ/MhcrUBf5xkxIxx mUrM03QVnF1jKzW28v3WZqUGVmVSQgJ8r4ZIFWqZYDrYZ9lrJzwpnyTYtbBJzYEl8j +ibijrMpNCzjWqMtS4o3MU4uAjsRVf8S929e+D1Hke8cOq82QnJRteVPKBC5QAtCOW LCNd5GrPShT6w== From: Mark Brown Date: Fri, 29 Sep 2023 16:26:08 +0200 Subject: [PATCH 4/4] clk: versaclock7: Convert to use maple tree register cache MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230929-clk-maple-versaclk-v1-4-24dd5b3d8689@kernel.org> References: <20230929-clk-maple-versaclk-v1-0-24dd5b3d8689@kernel.org> In-Reply-To: <20230929-clk-maple-versaclk-v1-0-24dd5b3d8689@kernel.org> To: Michael Turquette , Stephen Boyd , Luca Ceresoli , Alex Helms Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=949; i=broonie@kernel.org; h=from:subject:message-id; bh=sejfCcVQti2Hi8yDe3f20hbpcbYbp6CNahq98VEjTTs=; b=owEBbAGT/pANAwAKASTWi3JdVIfQAcsmYgBlFt6HIXHja+8p20IPJvS0bbuD7/si4p9bG1/Wt xioKS4KFzeJATIEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRbehwAKCRAk1otyXVSH 0FnhB/iiR9k4uSZN3HpWNB22ExzRN6CZnZk+i0JKce4/yfdm+6uiDrLQXWhDBeXiHOdT8n0ax6l J+FLIkEsUf1qFzM1qS+ndCVYCRgjTsaNQtOyhSwKnQN7hGIf/60FcK9B3Y8WxwxpHU4pWYysDFG BL0PQQ2I4S3NnyMxAYNMDXmelbXqYemwwJi5XoXTCJ7y0a7vLh/WRxO7bzht3Hu9NPf39G4Df76 r9lg3jsdlKk0978s6N98kaquQISn388TCqsDeXuzaIlQid3GkM4lDMEYplYtk3aoVlhWO5pnRwZ t/FPmTkusYWorqWBFeL1aixT9LhihrD0Tjg8mBtAgZZFU1E= X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 29 Sep 2023 07:26:47 -0700 (PDT) The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Mark Brown --- drivers/clk/clk-versaclock7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-versaclock7.c b/drivers/clk/clk-versaclock7.c index 9ab35c1af0ff..f323263e32c3 100644 --- a/drivers/clk/clk-versaclock7.c +++ b/drivers/clk/clk-versaclock7.c @@ -1275,7 +1275,7 @@ static const struct regmap_config vc7_regmap_config = { .ranges = vc7_range_cfg, .num_ranges = ARRAY_SIZE(vc7_range_cfg), .volatile_reg = vc7_volatile_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .can_multi_write = true, .reg_format_endian = REGMAP_ENDIAN_LITTLE, .val_format_endian = REGMAP_ENDIAN_LITTLE, -- 2.39.2