Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp903409pxb; Tue, 1 Feb 2022 12:49:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+kN/ZRDJdQlG645obmhrrGnlB0dVUwxksJAlQVVdZooAKuv/LRNNMcB/6ZXkp86MmKCtN X-Received: by 2002:a17:902:8a91:: with SMTP id p17mr14365980plo.74.1643748599498; Tue, 01 Feb 2022 12:49:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748599; cv=none; d=google.com; s=arc-20160816; b=UU3U0ChCiKFNgGHMU15tZ7bVc+6o+ZcN8Q9pkUq4GisBhvExUmgxnNHulkN0Es/6LI IdfHEvIedmXZvBL7BfCx/pBLv+5hsMyf+5aYysA9ch5o9FzC6HOxW/XfbvmEP/qZSQ3d PgUUBQnCFyN3svbxMQy2MTojztkf7lXwWWuQsoRedaz891Oez9bvT08m8B+OEp4pve6d N3i5qdBFcw5huYjKBzaaEhfOZYb3pj+bnNq7dno5Iqb2ncTfDS77PF9Y+cJckzkh8Lm6 nx96q1fJ7BSZHlbKw5J3dcCHnraT4m7a/MS4YFDvTMOVKzAFVAfzxzIaKb+PPqAn6HlE 2yFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=24u53OWqnqcgksphfhEv+GX9VdmjMdteJOsSPT359g0=; b=kiruBrePzQ/AYDGjYakS/r1pPBha1RBqIwutsQOGWex1kyOWN3S6z4RNvCAImaQeOZ EPvn8iMeNTPVQzleAiZvk81Gv65NQ1YMFGvHeWmkHL/XJPWkolZ9LBb3gjoXazUZtcnP coK5QSCV6O4zrOhE38pHkfxXuEC2c2UxollWIk2uqsFix+CSPX9f1gv1YDHbfyJVtp52 u3L23/yli45gaz221XPMmUbdXBgYkrpMStRqgUIgeHttl8K1QwfRzOtGuT1LdD+8+w6H jirp3Ksr1TzIedFyqe7/ZyF5YWILgmB87T9LRjbfEOgx5GUtQdWRPn0dPj/yiWZYa9bq t0NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RxhqrfzY; 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 6si6701625pga.277.2022.02.01.12.49.47; Tue, 01 Feb 2022 12:49:59 -0800 (PST) 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=k20201202 header.b=RxhqrfzY; 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 S1377713AbiAaT41 (ORCPT + 99 others); Mon, 31 Jan 2022 14:56:27 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:42322 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbiAaT4Y (ORCPT ); Mon, 31 Jan 2022 14:56:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B9B8C61453; Mon, 31 Jan 2022 19:56:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7729C340E8; Mon, 31 Jan 2022 19:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643658983; bh=vU4Z/wxnuRJijqxNOIHjuu8s4/C9L0yvdnHKwgU/Lig=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RxhqrfzYfJwLsScPRrzN9VIqEgpbePmoKCxsIvS6Gmg4GtYq3chsMT3Jv3LZsnVDZ GvOS/fpXYqAF5cG1MLX/qy/Cl5ym4bsep7Btn+JMwUnUFL9VgalicU/KlgKMFRK15d hU8tMdAZ79IMXUVNDbT+JgYuQj/zit2yXQmA1hU74e+DBVhfIPoNLXseCiFntecTL7 HAZ+gEvcAACWRXmEZY3TL8UAFOCC74q6A6fStETnuGP1FvlmHvCX/OZtPiw01cpf2U x35AEY5F9Jh2qVhfCsnC2GFDXSZrULfpy3ynjKTqe94H0hxFcWBar88t3UfhGOhClL qf3CzaYlBV3LA== Date: Mon, 31 Jan 2022 11:56:21 -0800 From: Jakub Kicinski To: Colin Foster Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: Re: [PATCH v4 net-next 0/2] use bulk reads for ocelot statistics Message-ID: <20220131115621.50296adf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220128200549.1634446-1-colin.foster@in-advantage.com> References: <20220128200549.1634446-1-colin.foster@in-advantage.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Jan 2022 12:05:47 -0800 Colin Foster wrote: > Ocelot loops over memory regions to gather stats on different ports. > These regions are mostly continuous, and are ordered. This patch set > uses that information to break the stats reads into regions that can get > read in bulk. > > The motiviation is for general cleanup, but also for SPI. Performing two > back-to-back reads on a SPI bus require toggling the CS line, holding, > re-toggling the CS line, sending 3 address bytes, sending N padding > bytes, then actually performing the read. Bulk reads could reduce almost > all of that overhead, but require that the reads are performed via > regmap_bulk_read. This got into Changes Requested state in patchwork, I'm not sure why. I revived it and will apply it by the end of the day PST if nobody raises comments.