Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1666870rwb; Fri, 19 Aug 2022 07:29:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Oo6JDXWbmuIqi6GEts16n/9C74Rryk1IaZ00GCDSY6znxZtXtG+XVXXKQZSul2q6K2xij X-Received: by 2002:a17:907:75ee:b0:730:b801:614 with SMTP id jz14-20020a17090775ee00b00730b8010614mr5045350ejc.698.1660919389754; Fri, 19 Aug 2022 07:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660919389; cv=none; d=google.com; s=arc-20160816; b=K4r1usHeoQsD8bRo9cpn57i+p7Dzegzo8SLmM7j/N8iW4lbOfpGwABKj12VhVN8KDx Dlsf2K5glNbltCN+QoGLIrACzmihBAy0Zv/65D0lkEgqo5LPK1A5tF0nyIzmVrexC0mP jCpeW4N5+ojPjfmGUqgUh/fWOuBKnIkNk8SZ8aTRBfE3BJxchyWBehnTHYqVPORr2m9p UoFGiCtUPt36serBOIMgsin3pk6krVUNAzYZx9DSMGqbDIt56djY51aPLToWy4bJ0pTk k+cCb0YCIxM6NS4nlqY1WgqgkV4NWVj58JquG3/UXbWKaO8oiDqJgDm7V32Pr0P4awg2 JL4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=yogfXWnDTHCJwJQ4cTLHdc53Yw7qXT226M6lsLdNs3Y=; b=rKtXC03BMlrbFSZ6uapZTqeiYg0KiXVhSmvLTts2s03qdiggxeY0BZ7LgySdsWB7TE oh5iieh5TNFblh+DOhRvtctfRIzHweS0KRrzkFczrhmUUhmXi0K6rc9LCfirqAW45Hdt klp1aZzE500SH7SuN0dUtFnMo/RDY4uj4HezJYETvFhBcdRVUhREoTho6c3g0+bmPuXG IO6JCkzYDWCnN/c4ICI4ZfnUcOG55SOMR1UofKx8dI9qbNm6jJuGkpp4js++j6BhYIRG c7zrAwoogZB3BBYBIcaokon73k7uEAu5j4qTeh6vWXajO9j7ZCyRLixdqkwSAmRY27Xz UHgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mOBkmKTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a056402068b00b0043d15f43ab2si2946865edy.580.2022.08.19.07.29.24; Fri, 19 Aug 2022 07:29:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mOBkmKTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1349568AbiHSO0H (ORCPT + 99 others); Fri, 19 Aug 2022 10:26:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349401AbiHSOZu (ORCPT ); Fri, 19 Aug 2022 10:25:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C62E97E3 for ; Fri, 19 Aug 2022 07:25:48 -0700 (PDT) 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 C69756140B for ; Fri, 19 Aug 2022 14:25:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C84BC433C1; Fri, 19 Aug 2022 14:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660919147; bh=wVDuKRUcKIT+J+zHm3pjGF+KsciSAfq/7YwwDDEViJA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mOBkmKTYodAez4EWZsTIFLmiX3gXBxBMArR1k5Xn/ZBDBmzFewDGnGTWKFhBBTfxr g+tqNewEeiOjN4bVSgGzIuyvCHajul+2QYP6sTDWtstMagwV8HoTteghCEIOW9FDUP pfIzSdAIOzcLgw+FDf2Kg1AFRwGFyBobvRd7l4X9m/BRN/iVhcgWtHM0rH5IkZCvPW PenCR3XyJHM6cflQ4+BEe+004oHfzcSo28gMjsHXlxGu4asLvUg6IpldC7ZuIV6oEd 8BMOOeqq0h6N0pTZRCRQHipY4gm89aaKttie5w+4tap+SXQneGWlqGUgGwCscGXKz/ nTMJJJlh0i99A== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oP2wS-004ISX-RJ; Fri, 19 Aug 2022 15:25:44 +0100 MIME-Version: 1.0 Date: Fri, 19 Aug 2022 15:25:44 +0100 From: Marc Zyngier To: Mark Brown Cc: Dmitry Rokosov , gregkh@linuxfoundation.org, rafael@kernel.org, jic23@kernel.org, "linux@rasmusvillemoes.dk>" , tglx@linutronix.de, andy.shevchenko@gmail.com, kernel , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] regmap: introduce value tracing for regmap bulk operations In-Reply-To: References: <20220816181451.5628-1-ddrokosov@sberdevices.ru> <20220818121515.6azkxyqetnunwsc6@CAB-WSD-L081021.sigma.sbrf.ru> <87mtc1wtjz.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <5793e1a9ef6d5a8fafd3f22cda0bb5e4@kernel.org> X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: broonie@kernel.org, DDRokosov@sberdevices.ru, gregkh@linuxfoundation.org, rafael@kernel.org, jic23@kernel.org, linux@rasmusvillemoes.dk, tglx@linutronix.de, andy.shevchenko@gmail.com, kernel@sberdevices.ru, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 2022-08-18 16:43, Mark Brown wrote: > On Thu, Aug 18, 2022 at 02:49:20PM +0100, Marc Zyngier wrote: > >> I don't care much about regmap as a MMIO backend, but it strikes me as >> odd that you end up with multiple ways of logging the same stuff (with >> a memcpy in the middle of it). > >> Why can't this be done with a small amount of trace post-processing? > > At the minute we don't put the actual data for the bulk transfers into > the trace so the information simply isn't there. But isn't that what this patch should do? We also have recently merged the CONFIG_TRACE_MMIO_ACCESS which already dumps all sort of MMIO crap^Winformation. Surely there should be a more common approach to this. M. -- Jazz is not dead. It just smells funny...