Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp48521pxb; Wed, 29 Sep 2021 20:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzngdscB60JDHct3CblTXdshLHe3SH2y5U0WIUAZJKwyAvQWhlXVuA5lcUnFnLSWbMZgMRx X-Received: by 2002:a17:90b:14d6:: with SMTP id jz22mr3866720pjb.61.1632973597330; Wed, 29 Sep 2021 20:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632973597; cv=none; d=google.com; s=arc-20160816; b=SQKQnrrZgL4VQljWJdC5rHsINvu1CAsiNpNNG4lHXBI51uMCq2mVNkQhBxuw7mTdgE 9+V2aDETBBoKOretw8DGpIUh8alcAKj2d4lYXddbuo/PdvWXFyOYTWnWeMW/27o2RwcO Y6I5+9/1gPj5M3DihK7pmTDDTfuL1TA4cTZrMMQjvybwmhZUDiKtPdD24EppKPocu6xf Q8zSIXwG8ZcVz9opbu9UJYV89ppAFlo6j8Jrk2P7LvypskPpD5BtPfgSJVPiJsfSjjOj vxFi3zCV3I48KOXEfDGMfDs2IiOedizFxaAv7UFB0HzMkMJtbOZYM/nrEhMmoCF/UW5I uCxg== 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=4b3DOEuint+WBw7an5Qknmrkjl0i1y1HcTIoKU3zalE=; b=wtrzaACJVpOw0zWEiRQi2wGA08YizMTmkFtK7itAAo6M+iIMwa0sp6M02KAS1b+Mt/ rEy3XUdLHmwm6bh1S0XZAx6hMK0+AplKDS9m0QrKelLMc0GcJjGTlYLTUG8acMfkTJkJ EkYB1Z3i3KyXLoeMdR/CzW/XNCUEVs8fanzj9Sc7IodgfI1mjt8oX91cD6IlGi/8OQbg CPxnEtyMg/BzFc2ZvkWyWqzgHozEzrXDjnlbghBB04ncRDnUNPoTXxFsnMqFzLBSWzE7 OjZ/PYpDdI9zcBpxL39UdLB/Jf3F+4hMYpZ7KZdo28/OsYwbRhtI5daa+jZppbnpy3rh 4zNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BNthy7e7; 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 y188si2157709pfc.251.2021.09.29.20.46.23; Wed, 29 Sep 2021 20:46:37 -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=BNthy7e7; 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 S1347986AbhI3DjZ (ORCPT + 99 others); Wed, 29 Sep 2021 23:39:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346796AbhI3DjZ (ORCPT ); Wed, 29 Sep 2021 23:39:25 -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 5FE52C06161C for ; Wed, 29 Sep 2021 20:37:43 -0700 (PDT) Received: by mail-vk1-xa32.google.com with SMTP id s137so2174806vke.11 for ; Wed, 29 Sep 2021 20:37:43 -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=4b3DOEuint+WBw7an5Qknmrkjl0i1y1HcTIoKU3zalE=; b=BNthy7e7lNpu4+NE9vBtOHHjcEgbb9FfvTE2xiomHVM5k2AoSstsZb0Ib/bCmpHFL2 I7MR8CYJ1bz2mS6+go3Vk3zlHbpEz2YpzUW4xC+aZL+sl50WG8u78lofZsgMmXGZO6wh SLuR9F9VRZ68fE7aorklrfFUs40JM6A2qD1kgg8mj6vBGvoiR/kUJ0cnY9Shc0zUkdmu ZSWq3OAoyiTyhP074mbKhtSX7Dif1MwN/KE1ylJ708rkMwt1FA6CQhcKE2gVly5xOd3G cJOK7OgaI/JneKqOYeXV4utbWJjLCypgybzg8yYzI27DyrECFZKR+YY/IVrB4p1G4/h5 jiPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4b3DOEuint+WBw7an5Qknmrkjl0i1y1HcTIoKU3zalE=; b=efFVIj8DlV7Y1B1/fzhlV3DfmUk9bc3dLniD9WLaaaMRIz7ZAb27f/v1BCKTOHvuDA tfuIlcVBxT1vi+tawe1O0oU7V16nv/Y8v8cl5OVU3xlcb6WRunJp9amzeoeZu9rFuT6y joeyGIv0cpV6ezVOjZFeaCExzyKGgWY+Ub19tcdcWyvDFlbqMbX70lT5knDCrKg38xig q/UrLKHQWbnsrUWW8SDgtSQGQtZhawBriZddk2N9GOs4rEAE6OcZrXGIowRmA3eztjhi xertewb1Yr565nV6oOkIxtl/tbVg8Hk3+ot5J3O2MRsdQ3vwMXOpZ2U0mJxdO55UdsL2 cINA== X-Gm-Message-State: AOAM533W3ub5RXf87PaB/o0zMykvumLi7sXYxYHWSV8oOBObNoHsi6Un 2tJZrKrF9cEZYgtWBdz8UXzTqsZQ3KoEXPFvbb7F/09H X-Received: by 2002:a1f:1f0a:: with SMTP id f10mr1667502vkf.21.1632973062492; Wed, 29 Sep 2021 20:37:42 -0700 (PDT) MIME-Version: 1.0 References: <20210930014427.14239-1-jim.cromie@gmail.com> <20210930014427.14239-3-jim.cromie@gmail.com> In-Reply-To: From: jim.cromie@gmail.com Date: Wed, 29 Sep 2021 21:37:16 -0600 Message-ID: Subject: Re: [PATCH 2/4] amdgpu_ucode: reduce number of pr_debug calls To: Joe Perches Cc: dri-devel , amd-gfx mailing list , intel-gvt-dev@lists.freedesktop.org, Intel Graphics Development , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 8:08 PM Joe Perches wrote: > > On Wed, 2021-09-29 at 19:44 -0600, Jim Cromie wrote: > > There are blocks of DRM_DEBUG calls, consolidate their args into > > single calls. With dynamic-debug in use, each callsite consumes 56 > > bytes of callsite data, and this patch removes about 65 calls, so > > it saves ~3.5kb. > > > > no functional changes. > > No functional change, but an output logging content change. > > > RFC: this creates multi-line log messages, does that break any syslog > > conventions ? > > It does change the output as each individual DRM_DEBUG is a call to > __drm_dbg which is effectively: > > printk(KERN_DEBUG "[" DRM_NAME ":%ps] %pV", > __builtin_return_address(0), &vaf); > > ok. that would disqualify the nouveau patch too.