Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3067445pxb; Mon, 6 Sep 2021 11:27:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeHd8eELAtRioLzMKaJMXKWJVKsU0VVDy04gQvgTIkUrpAmR//qcaG5hB8pkGukJf+4KHX X-Received: by 2002:a92:cb08:: with SMTP id s8mr9407400ilo.166.1630952847278; Mon, 06 Sep 2021 11:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630952847; cv=none; d=google.com; s=arc-20160816; b=tNodOWWA4PVmWbDS3wMc5fTdcaOuxPtwmrUHz7W7AWjKDdoCjWaxja+/oiQpZdbFuN wK1+e7bzh2xI/f6XIGPoyZMy6pzFLYk+aK3YCGEGZEJVmkqyKxYazGXgbIUOFVIPxWPw qXOCowfllKXJnlL/cvvqHXR4Qdw8qskSKqSSOAQ9UMfDjY7Ae3sjLv78lmGj88GGKFHD DFRIA55cqvGMbcbYwLULr7+9aQbhK8RdfRpFDh8XMN5AAKznMJL9kRSOqNIjiAHnyFlA wJkorMWZGB2MjSweyJ+tSbRpUQMHa57KQbGgwe8KMDAX9lSJhDdHMnGChaqbyi0TPfIq 8Y2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=i6BKrN7X5suyNsmFH5r3sUKXBVHf29sG6WVeH2BVyjM=; b=AsKF6U6bSJZORmLq4IrBBw6lJH/D2qcH8j4foSnef2o4DbqbyPWEox9R9XorAbcdsQ D7ZMmBpJ5qZdgDzCGtsJtp4bXI+aIsZ8nBbitDh/FhAvc5hCsMNpORovA6n3L++o2sv5 M3nY0X0pmwRjTYxGKJW/Tf5jmhy127ptrnSr+T51SDedLy1LC3/3vx+bFBXc07b1DpWk rVpXIN8s6ZXd+4zgFFG6yPlXnAtbE4GR7eU/yi7mI8Dc3IqaBI4p8GkXJ4AIGJMPr007 k/wGuAcDcewN+3N5Emg4OBa3zntBwDIJyii/ytM0AHTgTx0l+qFPZiz5LaJSUxgZBSUz BHNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=clAkQy9m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si8708932ilu.22.2021.09.06.11.27.16; Mon, 06 Sep 2021 11:27:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=clAkQy9m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S244977AbhIFS1C (ORCPT + 99 others); Mon, 6 Sep 2021 14:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244452AbhIFS0Z (ORCPT ); Mon, 6 Sep 2021 14:26:25 -0400 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB94C0613D9 for ; Mon, 6 Sep 2021 11:25:13 -0700 (PDT) Received: by mail-vs1-xe2a.google.com with SMTP id i23so6243601vsj.4 for ; Mon, 06 Sep 2021 11:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i6BKrN7X5suyNsmFH5r3sUKXBVHf29sG6WVeH2BVyjM=; b=clAkQy9mohMLPnVHW5cIgwm5UEQQ5nDlPiwgp0cwJEYS0ycJTwv/DWUsRr0B8bbniX 5/nkndYJJQt+jFffYyrtHZE10RuffIy6IiG+DYcDqlWqy8v1aJQBv/22QpJfJH5sAPEp lFzSMj0ku9aH22fxeXosDlemQyfBnrg21y/mGp51LbpdTK2SbNrLJNY55iFB8CjdVghV cCQba6HKcoqGwISK6MvywQ7Ew8wNqzUPIVUUw2uSew4EA9ZcK7Tn69EDc0rfdmfmLWbZ QQBHqFLn51nzUM6pTyUzm7OOUvLdQYde41jakHoVKOSwyJNU9iVB7OSZZDf1tmA+23aw oPsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i6BKrN7X5suyNsmFH5r3sUKXBVHf29sG6WVeH2BVyjM=; b=RXqez9LEAKMlqgxPTCFMK2mhxotdKDTI9QxPSSpq2EKjyNrkgGoowHJr6+zhVXUIBu 6DXafCmvVk/K6WJ/UgUzKfKHo3bOb50QTOkpEntbE3TAGan5AcCIWtZUcA03xg7VTC3M BL5Sr6eF0EWs9eQ+LhmKckCpKphAcm9pbrkVv2jJk/qaJkoVuQecq44PrkJ4OBt3DsBH 0tn8aEztVKcHa41DkLXaIQviBciv8OOcOyZkqKi1pH8QY2+iStTVdvmlkbhW3EQ54Xjd Z2DwwAEX5163ieUen9WRP8ec3YwNFxJN3iYW15v1HXCjBHN+AFlx41PpSd/JcOYkheCO /lYQ== X-Gm-Message-State: AOAM533I4wX2854EvWG/swQjz0F9cZ2YbnxywdAZY4kn16Dpmy85uGW7 fnSSlmQWWWPVMfcF/GMjlgqsry+RjzcMpcT1QsyKuYwH X-Received: by 2002:a05:6102:188:: with SMTP id r8mr6850374vsq.11.1630952712249; Mon, 06 Sep 2021 11:25:12 -0700 (PDT) MIME-Version: 1.0 References: <20210831202133.2165222-1-jim.cromie@gmail.com> <20210831202133.2165222-6-jim.cromie@gmail.com> <1aabb5c0-eef9-a483-2631-25726c9dc268@linux.intel.com> In-Reply-To: <1aabb5c0-eef9-a483-2631-25726c9dc268@linux.intel.com> From: jim.cromie@gmail.com Date: Mon, 6 Sep 2021 12:24:46 -0600 Message-ID: Subject: Re: [Intel-gfx] [PATCH v7 5/8] drm_print: add choice to use dynamic debug in drm-debug To: Tvrtko Ursulin Cc: Jason Baron , Greg KH , LKML , dri-devel , amd-gfx mailing list , intel-gvt-dev@lists.freedesktop.org, Intel Graphics Development Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I'll try to extract the "executive summary" from this, you tell me if I > got it right. > > So using or not using dynamic debug for DRM debug ends up being about > shifting the cost between kernel binary size (data section grows by each > pr_debug call site) and runtime conditionals? Yes. > Since the table sizes you mention seem significant enough, I think that > justifies existence of DRM_USE_DYNAMIC_DEBUG. It would probably be a > good idea to put some commentary on that there. Ideally including some > rough estimates both including space cost per call site and space cost > for a typical distro kernel build? yeah, agreed. I presume you mean in Kconfig entry, since commits have some size info now - I have i915, amdgpu, nouveau; I can see some prose improvements for 5/8 > Regards, > > Tvrtko thanks Jim