Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1249231rwi; Thu, 27 Oct 2022 13:16:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HpIekdbddpRV5TQYWtAzX0kMKGDRFce0ZK+ZE3LDdFEXlN+Ls9YGkOXGIUY00SQGkXPVW X-Received: by 2002:a63:cc43:0:b0:43a:2f12:d326 with SMTP id q3-20020a63cc43000000b0043a2f12d326mr43269783pgi.320.1666901767171; Thu, 27 Oct 2022 13:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666901767; cv=none; d=google.com; s=arc-20160816; b=iXo/NdQ55WGU/yFDGxnRUhUfX3vxrFt8tM8po68dwAzz6BmupFlbXH21qdBO57w7qy pIj9xq1YIA5/48tLY/oUjRevFSR/N+dMZjVITSo/qetLWkjAb2t9QnSPW7/bezZFvvVU JkJIVquxgQTx5oKdGgpmO77uu31LhPFWrQwoZdfXvtSIEgyd2uUfNB/NsIxNHWgusZE8 NbgK1lg+XNo6PoHPxCx0lJ0Gk/suWp6obOBgibzdHfyBB0TkBCbMZbp7bHRGEa89xrEu 7ffKiFdSgwVuz0eN3vh1WKhb4ZuSlnwpVBgkBX7hJM99ZbbfNoIlXMfmVCCJiq1/6qMN NEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZTHkMF5AYaJe86KSKSivOBUTyiiz/DT6VONprpQISZY=; b=hkhZyGv3rerrLE43uBln1R4rLn33Nb5FHL0MCqJb28SE2xo8JkIGSAbOjSRSUOtWQ1 gB5UT/lAKHNjJe+4wmA+LrpsE3265boBLAbZHokhB7+uJbecIrb3oOKGIMIewYwxaOIw pHMPuIgMgnNIm1GkNusTu/o8FaFbTomYnxD9sUkWIsC2NbaD8Fmv8K3vl4mwb/Vkp5t+ 43iWyIccRPKv+lLlfIfFGbth7JRagnAlaDXXQckZPeEMVD8ZX9wUam184EQgNdEmhO0X dtLUZsgyqKhJU7dSLzNscO0uYpNZyXy5dQXWoyE7AW5UqOiflP/IA1N4uL6QLE2h5if3 A1gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AcVgGPFV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a170902e84100b00186a16f8d94si3232365plg.77.2022.10.27.13.15.55; Thu, 27 Oct 2022 13:16:07 -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=@gmail.com header.s=20210112 header.b=AcVgGPFV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236719AbiJ0T4K (ORCPT + 99 others); Thu, 27 Oct 2022 15:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236345AbiJ0T4H (ORCPT ); Thu, 27 Oct 2022 15:56:07 -0400 Received: from mail-vk1-xa32.google.com (mail-vk1-xa32.google.com [IPv6:2607:f8b0:4864:20::a32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC75422C5 for ; Thu, 27 Oct 2022 12:56:06 -0700 (PDT) Received: by mail-vk1-xa32.google.com with SMTP id t85so1395668vkb.7 for ; Thu, 27 Oct 2022 12:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZTHkMF5AYaJe86KSKSivOBUTyiiz/DT6VONprpQISZY=; b=AcVgGPFV4XFU+4opW5D6NQQmov1f6MruK2ECWfzufhi2CugH/KgRERclmljMIXWOQT 3c2vXrfilt5zv6tXmjkI+zfr8RiPz0BP8KREqPLzV0p2E600YN0pNFO4+KmmGIEIYPeS 7CwKH7xV1Gci59W1q5kz43y+pIOQVqVymoH2j/HBcXQQaKLCYT9ZD95/+wWwzCsTgNL9 TTO+j871MWK/+LTnKlMy7VWgA/Eass/r3XHoizDq4y48UJpoI86mcUKZJPwYx4ViX/5T WwlmeX9RG5X6KnPIDqIECQ0mSI9OjjlgjPcpLXC/VdWvev6Hlg5ch0wGdQp1tyvKa/kr bFVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZTHkMF5AYaJe86KSKSivOBUTyiiz/DT6VONprpQISZY=; b=cy4/P7iNfPMLE5hTS3P7orb4bD0aVswurgdOKNVvqU+l5V7EgpdFdDvlYR76DPYL8K 39HexPgO3wpdOw3/6PgEbREbKEu4e4dW+bNbgSig8bubCQe2ChQgHvBh8U5Lp1dSu0hG nc7rAM1TV226WYxLtkSsAVhhamQ61nfj27CU1Mu/ondXkHzy1Xy4u1Tvj7tl/jsmdQv9 droyHmG/peqfnuWv8uAi3SxreB7Wh2YoG5docy6nExSdODknZyKd0iGko0iC0ysFXX3G uSoJEdTSjvRaErRPeJirWYTCVoKpP2HDMZ9ZOq2TSWXnI8+lI1srLBXd7CMqC6nWFjjE r95g== X-Gm-Message-State: ACrzQf3bq9Z/0RPWJ//2iHTYIgI259aYSpIlTUV+ylAkexxLXezD+SQg 5RVkjLjKBHHj7YZjxMVZLYCWgE/jiJnEmlrIXM8= X-Received: by 2002:a1f:1e12:0:b0:3a3:6ce9:3f11 with SMTP id e18-20020a1f1e12000000b003a36ce93f11mr27088613vke.15.1666900565787; Thu, 27 Oct 2022 12:56:05 -0700 (PDT) MIME-Version: 1.0 References: <20220912052852.1123868-1-jim.cromie@gmail.com> <87a65pfsbq.fsf@intel.com> In-Reply-To: From: jim.cromie@gmail.com Date: Thu, 27 Oct 2022 13:55:39 -0600 Message-ID: Subject: Re: [Intel-gfx] [PATCH v7 0/9] dyndbg: drm.debug adaptation To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, Oct 27, 2022 at 9:59 AM Ville Syrj=C3=A4l=C3=A4 wrote: > > 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=C3=A4l=C3=A4 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=3DSteve on v6) > > > >>>> split _ddebug_site and de-duplicate experiment (way unready) > > > >>>> > > > >>>> IOW, its the remaining commits of V6 on which Dan gave his Revie= wed-by. > > > >>>> > > > >>>> If these are good to apply, I'll rebase and repost the rest sepa= rately. > > > >>> > > > >>> All now queued up, thanks. > > > >> > > > >> This stuff broke i915 debugs. When I first load i915 no debug prin= ts 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 sa= me, > > > > 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. > So, I should note - 99% of my time & energy on this dyndbg + drm patchset has been done using virtme, so my world-view (and dev-hack-test env) has been smaller, simpler maybe its been fatally simplistic. ive just rebuilt v6.0 (before the trouble) and run it thru my virtual home box, I didnt see any unfamiliar drm-debug output that I might have inadvertently altered somehow I have some real HW I can put a reference kernel on,0 to look for the missing output, but its all gonna take some time, esp to tighten up my dev-test-env in the meantime, there is: config DRM_USE_DYNAMIC_DEBUG bool "use dynamic debug to implement drm.debug" default y depends on DRM depends on DYNAMIC_DEBUG || DYNAMIC_DEBUG_CORE depends on JUMP_LABEL help Use dynamic-debug to avoid drm_debug_enabled() runtime overheads. Due to callsite counts in DRM drivers (~4k in amdgpu) and 56 bytes per callsite, the .data costs can be substantial, and are therefore configurable. Does changing the default fix things for i915 dmesg ? or is the problem deeper ? theres also this Makefile addition, which I might have oversimplified CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) +=3D -DDYNAMIC_DEBUG_MODULE