Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp985099rwi; Thu, 27 Oct 2022 09:44:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XAwPh1vI6gOi98Iw0Q5e1A37S1glWyQkcf54yLahlbCMvs8gZTfOlCvFQCbjSf+h9RWns X-Received: by 2002:a05:6402:298e:b0:451:129e:1b35 with SMTP id eq14-20020a056402298e00b00451129e1b35mr45559020edb.79.1666889060194; Thu, 27 Oct 2022 09:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666889060; cv=none; d=google.com; s=arc-20160816; b=TtLcHdMJhZhe9MTBJq1QfEAuIMwAf5P5hE5z3rzanMclO/6sXRLogmNV4LIdTL4tl/ MXm7Oi2NK2zvSgjonmM927i97bg7469CVj/rf7pUgYVC+VoOKeGgmnGT05fUSx9kx9zE U5WoSBUSFAOgrNY0BAtPHG6Qt4opaqyNHMNFEkAVxisM8hXsdW1s57qFzXvLkvyBaafV XAhXKNYETwNgKpu5zFoSFdRvM93ztFdXMKyma5r+/tcpvbh5H+KDg/ujg9pVcxlPG+Lo DG252kQytjAyVxYs2t18HCwYeSVwkLqFFsEtnoNyUluX2jN8S35lwugi22a2sqUw28GJ NiYw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+I9LFdtvmW6A6eXReULSnhZ7bYVyP+RNUz8FC/3yMbk=; b=WSpm03oJFO35QPR7EUR+ufkd2R+Pf+fjbtgSHoj3B3IwaXuKWjaDno1kmamAWrEfCe MFVtmhauMyg0mXM1KVT3oTYfZSMNpqgmSaiOEGlmWfRayxYQts/yOsYi1ZEIzWaKqVf0 6paoOe9wJdji+SBKZyyCBQaITHX6pQFce2LshTZZiP8/1Ij/xgZKUKWGntMaSBP3gUDF EA6Lw4b1F3NbPaR4Bc6WuMvNWIcTrGlDGSSBhq6Hk6MDuhDgDyo2BrgFVOJKRlz41Jvr TQasnsM5pldfd/pHW3nSxew44b5EdLjN0Jx6gyl52FIeY/rwV7axV2FHAsnY9jGVlqlC Sepg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UraA4nfO; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a50aa81000000b00453a0393deasi2084467edc.368.2022.10.27.09.43.54; Thu, 27 Oct 2022 09:44:20 -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=@intel.com header.s=Intel header.b=UraA4nfO; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236039AbiJ0P7K (ORCPT + 99 others); Thu, 27 Oct 2022 11:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236090AbiJ0P65 (ORCPT ); Thu, 27 Oct 2022 11:58:57 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D1AD1958F0 for ; Thu, 27 Oct 2022 08:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666886336; x=1698422336; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=0kjG/brUOnWwwDLYzkCfqaQKWYg0i41CBDbErJIKe7w=; b=UraA4nfODz1LTL3a9VP6coUJPQeHwcIXckgGpvj+KxXCBsX2ro1zux6/ bgSrhO98kB6MP/RzwX9raGEbnKTJaUhr4toz/MTw/Cr6Y5qMn9tFhgMV6 s5aWwb08JmZg284STVn3J9Phj0U3QhIiGMTfpCpSlo1J84s8MemI8CaIW z1rA6DHUBtDpxDw65i9GuXHBqf4T8puspf2zN0gPoBKVisXhNaFVuurv6 GyIVNU2VMhutroj6yhqaH9poOn4Jqj/5+vXbxtxySE4cmPVjec/I4UBHk 2L51Rgfnvk1NXiNiXd2PSEKkVsvavlNCOHeOylRqZjPr9nVQx+7So+pzX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="288659649" X-IronPort-AV: E=Sophos;i="5.95,218,1661842800"; d="scan'208";a="288659649" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2022 08:58:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="663668418" X-IronPort-AV: E=Sophos;i="5.95,218,1661842800"; d="scan'208";a="663668418" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.191]) by orsmga008.jf.intel.com with SMTP; 27 Oct 2022 08:58:51 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 27 Oct 2022 18:58:50 +0300 Date: Thu, 27 Oct 2022 18:58:50 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: jim.cromie@gmail.com Cc: Jason Baron , Jani Nikula , Greg KH , daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org, linux@rasmusvillemoes.dk, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, seanpaul@chromium.org, dri-devel@lists.freedesktop.org, joe@perches.com, intel-gvt-dev@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH v7 0/9] dyndbg: drm.debug adaptation Message-ID: References: <20220912052852.1123868-1-jim.cromie@gmail.com> <87a65pfsbq.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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, Oct 27, 2022 at 09:37:52AM -0600, jim.cromie@gmail.com wrote: > On Thu, Oct 27, 2022 at 9:08 AM Jason Baron wrote: > > > > > > > > On 10/21/22 05:18, Jani Nikula wrote: > > > On Thu, 20 Oct 2022, Ville Syrj?l? wrote: > > >> On Sat, Sep 24, 2022 at 03:02:34PM +0200, Greg KH wrote: > > >>> On Sun, Sep 11, 2022 at 11:28:43PM -0600, Jim Cromie wrote: > > >>>> hi Greg, Dan, Jason, DRM-folk, > > >>>> > > >>>> heres follow-up to V6: > > >>>> rebased on driver-core/driver-core-next for -v6 applied bits (thanks) > > >>>> rework drm_debug_enabled{_raw,_instrumented,} per Dan. > > >>>> > > >>>> It excludes: > > >>>> nouveau parts (immature) > > >>>> tracefs parts (I missed --to=Steve on v6) > > >>>> split _ddebug_site and de-duplicate experiment (way unready) > > >>>> > > >>>> IOW, its the remaining commits of V6 on which Dan gave his Reviewed-by. > > >>>> > > >>>> If these are good to apply, I'll rebase and repost the rest separately. > > >>> > > >>> All now queued up, thanks. > > >> > > >> This stuff broke i915 debugs. When I first load i915 no debug prints are > > >> produced. If I then go fiddle around in /sys/module/drm/parameters/debug > > >> the debug prints start to suddenly work. > > > > > > Wait what? I always assumed the default behaviour would stay the same, > > > which is usually how we roll. It's a regression in my books. We've got a > > > CI farm that's not very helpful in terms of dmesg logging right now > > > because of this. > > > > > > BR, > > > Jani. > > > > > > > > > > That doesn't sound good - so you are saying that prior to this change some > > of the drm debugs were default enabled. But now you have to manually enable > > them? > > > > Thanks, > > > > -Jason > > > Im just seeing this now. > Any new details ? No. We just disabled it as BROKEN for now. I was just today thinking about sending that patch out if no solutin is forthcoming soon since we need this working before 6.1 is released. Pretty sure you should see the problem immediately with any driver (at least if it's built as a module, didn't try builtin). Or at least can't think what would make i915 any more special. > > I didnt knowingly change something, but since its apparently happening, > heres a 1st WAG at a possible cause > > commit ccc2b496324c13e917ef05f563626f4e7826bef1 > Author: Jim Cromie > Date: Sun Sep 11 23:28:51 2022 -0600 > > drm_print: prefer bare printk KERN_DEBUG on generic fn > > drm_print.c calls pr_debug() just once, from __drm_printfn_debug(), > which is a generic/service fn. The callsite is compile-time enabled > by DEBUG in both DYNAMIC_DEBUG=y/n builds. > > For dyndbg builds, reverting this callsite back to bare printk is > correcting a few anti-features: > > 1- callsite is generic, serves multiple drm users. > it is soft-wired on currently by #define DEBUG > could accidentally: #> echo -p > /proc/dynamic_debug/control > > 2- optional "decorations" by dyndbg are unhelpful/misleading here, > they describe only the generic site, not end users > > IOW, 1,2 are unhelpful at best, and possibly confusing. > > reverting yields a nominal data and text shrink: > > text data bss dec hex filename > 462583 36604 54592 553779 87333 /kernel/drivers/gpu/drm/drm.ko > 462515 36532 54592 553639 872a7 -dirty/kernel/drivers/gpu/drm/drm.ko > > Signed-off-by: Jim Cromie > Link: https://lore.kernel.org/r/20220912052852.1123868-9-jim.cromie@gmail.com > Signed-off-by: Greg Kroah-Hartman -- Ville Syrj?l? Intel