Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1161146pxb; Wed, 6 Apr 2022 10:09:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXThIYtzSCdoRudSRIiGiAzi7+PS9FeRX7gcdEA/piW9CshXqilueSAvalvsj6BBbndNbi X-Received: by 2002:a05:6a00:2dc:b0:504:ccd6:2b2 with SMTP id b28-20020a056a0002dc00b00504ccd602b2mr316739pft.48.1649264944329; Wed, 06 Apr 2022 10:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649264944; cv=none; d=google.com; s=arc-20160816; b=zdyhkA8hwFPSRXgnu8+sZ+z7medlfqPIx42n7cI71+YvyqkSH4Q03y3l0WRheTyiu8 J8fYET82nF3j/Tt0ntfCDnU/0gBoasZL29lekcYev48+BfoYct/MznQokWTGQ6fs5pl6 tIkk+RXcy6z5DOYZ7UFp69DCiTXhgY6JfsPEH9drOymeIkDYK1FKeLF/7rVxeM/+v5tI 9FDGY547O1zH1xRP2mRbdYuTDr75zJ0HW0MZsmM2jY4J69hAdgYlBdrg2HCSoNyLPDkZ CdFR0Gy/3mzbuk+QuSdjiH2GXiYgUJ/icJLyuiLEJfWAh+ApI3rjFwcActflr2VcDKXu erpw== 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; bh=sxeuvX6/wgNCO/Auunk9wpLiU73IgPJjTMra8ls+3gk=; b=cEVqvs8uyy1FNSO8AVpCI4VciFRZvUCbbUWAWKpVntDzfrzxRTvyT2P2Ejblci83X4 lHrJNdQGTeS5EGFLqP4lwXQ+rAnrSOANccKiUXdBZPh6jgkJ+e5qJNzkhuiemafJVyst 8KBwrgki+CAxDGoT1OUa8DVJzkktKhx0lBaLc4SjEUJvO2buFJe+akmVS8/soelreo2y FUDCNjbzgmRzpN6yRA3K+wM/AEcv29UgDEP0kVpPHnMQIN+la8BLPtMFXIx3S4+NreUu HxhWatGAySeBvLaqurSCKgSZRRP4w92buAHbkSkyYsZ4PPd954i6hcmDU5JisQY/Hf9q e4qQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h11-20020a63530b000000b0038648023487si16362812pgb.799.2022.04.06.10.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 10:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 330A823FF29; Wed, 6 Apr 2022 09:54:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238316AbiDFQzz (ORCPT + 99 others); Wed, 6 Apr 2022 12:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238454AbiDFQzj (ORCPT ); Wed, 6 Apr 2022 12:55:39 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 357DC3408B3 for ; Wed, 6 Apr 2022 07:19: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 sin.source.kernel.org (Postfix) with ESMTPS id A7E4ACE20CB for ; Wed, 6 Apr 2022 14:19:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E379C385A3; Wed, 6 Apr 2022 14:19:44 +0000 (UTC) Date: Wed, 6 Apr 2022 10:19:42 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Josh Poimboeuf , Thomas Gleixner , kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, mbenes@suse.cz, x86@kernel.org Subject: Re: drivers/gpu/drm/i915/i915.prelink.o: warning: objtool: __intel_wait_for_register_fw.cold()+0xce: relocation to !ENDBR: vlv_allow_gt_wake.cold+0x0 Message-ID: <20220406101942.7abaf7dc@gandalf.local.home> In-Reply-To: <20220406072913.GC34954@worktop.programming.kicks-ass.net> References: <202204041241.Hw855BWm-lkp@intel.com> <20220406000500.5hlaqy5zrdqsg5mg@treble> <87czhv11k1.ffs@tglx> <20220406053251.6dyfxrjmmgdwocfc@treble> <20220406072913.GC34954@worktop.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 6 Apr 2022 09:29:13 +0200 Peter Zijlstra wrote: > Best would be for Steve to send a patch removing them all: > > > arch/powerpc/kvm/book3s_xics.c:#define XICS_DBG(fmt...) trace_printk(fmt) > drivers/gpu/drm/i915/gt/intel_gtt.h:#define DBG(...) trace_printk(__VA_ARGS__) > drivers/gpu/drm/i915/i915_gem.h:#define GEM_TRACE(...) trace_printk(__VA_ARGS__) > drivers/gpu/drm/i915/i915_gem.h: trace_printk(__VA_ARGS__); \ > drivers/hwtracing/stm/dummy_stm.c: trace_printk("[%u:%u] [pkt: %x/%x] (%llx)\n", master, channel, > drivers/infiniband/hw/hfi1/trace_dbg.h: trace_printk(fmt, ##__VA_ARGS__) > drivers/tty/n_tty.c:# define n_tty_trace(f, args...) trace_printk(f, ##args) > drivers/usb/early/xhci-dbc.c:#define xdbc_trace trace_printk > fs/ext4/inline.c: trace_printk("inode %lu\n", dir->i_ino); > fs/ext4/inline.c: trace_printk("de: off %u rlen %u name %.*s nlen %u ino %u\n", > > > All except i915 use CPP tokens that don't exist, local developer really > has to take effort to enable it. i915 crud depends on a CONFIG_ symbols > that all{yes,mod}config will happily set for you, As I replied to Josh, when trace_printk() is used, you get nasty dmesg reports, and those do show up in bug reports to vendors (I laugh every time I see them.) I'm not too worried if trace_printk() is called for debugging, and even with CONFIG_ options. I even have trace_printk() used for things like my ring_buffer benchmark (which should never be run on production!) Thus, if the code that has trace_printk() is truly for debugging, and not something that would normally get applied in other people's trees, then that actually falls into its use case. -- Steve