Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp240467iob; Thu, 28 Apr 2022 01:00:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN0SXWuzwKxH5s+58K8DM1FsYyGGW0Fm5DoOIGKg1GPEUwKCyG88pzm2ombuYVX/671oZ6 X-Received: by 2002:a17:902:f605:b0:14d:9e11:c864 with SMTP id n5-20020a170902f60500b0014d9e11c864mr32523245plg.54.1651132802317; Thu, 28 Apr 2022 01:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651132802; cv=none; d=google.com; s=arc-20160816; b=vOTMlhX7WPNuXw5FbxSAZVpoux7qhOZebsJcZnIQlI1onxcPf36tNvy3Z2XT6/DEC4 ZWjWAtG1T/Nd6x9if4cbBXGKTsQXj7enLioA+MToS8lGSjN4+gz41lCTtx0brn6p2yri g3sVR7I01nRCXwAbWSnLFTxlqFAHrbLyDsrZhQ2nlgQGRL3qRSdYYVtAGH54VmiqvFYB EhoT+QZMXSwsi3BBGkKo7kR7HSWJd3qdyvz2euhtvM8VD9Kc1C9rRT6fhYKb3PmkYfAw OhvhtlWKdqm6ycDDAnMZhnky/2GPv4D/NcrRy1c6kB4jXzJZQYF4eooNUmPx9eFgtwkQ v+FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3KG9fezc4uO7TVRVuBT2MdU3xUnJWKwHEe+4rkRJScU=; b=0i71SrxCtKJp3x+i+h3ieNEyWGXMXvWp6ygjxQsFtyXHciWSNay7pGSL326As377lR BdWs+XGjArqhk2YnTslt43fmUaM5UcPiOpZ/fVrK6zjt1dFm2jJQ7Y3i9/Y8sRHtNh2D rbsT4Wtlvw7ClVrS094pck9Hu09gByPQyuITHjVYTVKA9PNCaSo64dZ4aow1RjJkl76J dHJryRX1avIuYcPw6BHGm9AuV7CA7ImHKM1leNdOQXdQDFiv7MTAQAsD7hdkpHqv9WmW 3vfgJXuXn/hm3biiaVXjpB7ceGU4jcwZYQ1lXY3gIdaH+Wi3sp2yb6ujndKPX5r1Bj3v RmOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2rK9PWY7; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 205-20020a6304d6000000b0039da9a719ddsi3627154pge.18.2022.04.28.00.59.47; Thu, 28 Apr 2022 01:00:02 -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=@linuxfoundation.org header.s=korg header.b=2rK9PWY7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243183AbiD1FzD (ORCPT + 99 others); Thu, 28 Apr 2022 01:55:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233097AbiD1FzD (ORCPT ); Thu, 28 Apr 2022 01:55:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F347C250; Wed, 27 Apr 2022 22:51:49 -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 ams.source.kernel.org (Postfix) with ESMTPS id 37F12B818FC; Thu, 28 Apr 2022 05:51:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DB6BC385A9; Thu, 28 Apr 2022 05:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651125106; bh=BL/ztcIdTOHAttqORil3BUGJFYSYBXhS93ayc6l+nXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2rK9PWY7j41JX0nmeJkE6BBYRs1hKWOhGXMrtGRYSB8txFNFL3XlocI6+ubQ/O+8J t/DragmyB5XIeryU9mwNV9Fm0GJEA7fqErUp42mLVkCLZ8+SRzskjqgHOchg3WdaiK hLMSHBjS85b+PVwAFaAJJMJuu6PhU3Au1bOEGx5U= Date: Thu, 28 Apr 2022 07:51:39 +0200 From: Greg KH To: Sai Prakash Ranjan Cc: arnd@arndb.de, catalin.marinas@arm.com, rostedt@goodmis.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org, quic_psodagud@quicinc.com, quic_tsoni@quicinc.com, will@kernel.org Subject: Re: [PATCHv11 6/6] asm-generic/io: Add logging support for MMIO accessors Message-ID: References: <3de35c9f4a3a070d197bab499acefc709a6f5336.1645772606.git.quic_saipraka@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3de35c9f4a3a070d197bab499acefc709a6f5336.1645772606.git.quic_saipraka@quicinc.com> X-Spam-Status: No, score=-7.7 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 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 Thu, Apr 28, 2022 at 09:00:13AM +0530, Sai Prakash Ranjan wrote: > Add logging support for MMIO high level accessors such as read{b,w,l,q} > and their relaxed versions to aid in debugging unexpected crashes/hangs > caused by the corresponding MMIO operation. Also add a generic flag > (__DISABLE_TRACE_MMIO__) which is used to disable MMIO tracing in nVHE KVM > and if required can be used to disable MMIO tracing for specific drivers. This "add a build flag to a Makefile to change how a driver operates" feels very wrong to me given that this is now a totally new way to control how a driver works at build time. That's not anything we have done before for drivers and if added, is only going to create much added complexity. How about requiring that the #define be in the .c files, and not in the Makefile, as Makefile changes are much much harder to notice and review over time. Also, I see that this "disable the trace" feature has already been asked for for 2 other drivers in the Android kernel tree, why not include those changes here as well? That kind of shows that this new feature is limited in that driver authors are already wanting it disabled, even before it is accepted. Because of that, who _will_ be using this feature? thanks, greg k-h