Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1167851pxb; Wed, 29 Sep 2021 19:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDMMUyCAzv3hG9RDXlXckhaUnSGa3eaKvZWRB291kvShchylzSEeP/vl0T8YlTQnOm/1zJ X-Received: by 2002:a17:906:1cd3:: with SMTP id i19mr3840054ejh.470.1632968079276; Wed, 29 Sep 2021 19:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632968079; cv=none; d=google.com; s=arc-20160816; b=Js8ZWfmn2UD1inDV2mzFjnu46B5VNhCsq9MTkh2VWRDXr1jan090EZjg+3zwSGGPu5 wkbyh9nkReaVRz35GzYwYNOdogmtRUz59LYrXWcCBygtFXg5koIZqhnWkcrUpJMwDcia z0k9JsGOOP7oUSFJW6TA/8rmKf5gLYuidxpERQyrh24E+0pUcjrQmPG8gOF3bC4TJZ08 TBlb9wk9pi7ENwlS/zh/Lj3VRduul3B4+gYkzIit1+n+k2pR7ty1Y1zf/XiO/mtyIyUM buyJSMWyx01QDtIGmXUwxVwyto7H1XgXDNW3tUQ1DZz2AAENU/rpoDft9UviSGdVe5wG zpoA== 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 :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=kywkh4xeQ4XL9Mav3lHZy+trWZDSlHZ5f8RIok88ptk=; b=ozB02LN8ncpdqMFebLSESiv/URjXB40bSK1cbbWKsjaOkcXeTiBnSHmglD5TVRc7v5 DwW++BoXrK0XfEkZMPYs6lnf6gHXt+Bb43tM35hlvR7LNd5lsfFoTIekMaqZ0vlD9ECO mSl+MTu+gJPVtMXZNQrXEo8N02IUBPC+/auZYhGmG11tgl4oZtzc808J/vnDOCGyoUqk sBmaN37THF5S4pBqP7dU7KJs9sYqXr84bxIwDlL2xPZUa5kks26IntKC6AFxmNKkehgn xVWNN/+tL4NnCiTtxWZcg1N+1uHXnleLhNs7Ertz0lN4eTcvC/FADcOBAKiHzslumcls rz6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si2310470eje.358.2021.09.29.19.14.15; Wed, 29 Sep 2021 19:14:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347676AbhI3CKl (ORCPT + 99 others); Wed, 29 Sep 2021 22:10:41 -0400 Received: from smtprelay0203.hostedemail.com ([216.40.44.203]:46392 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1347626AbhI3CKh (ORCPT ); Wed, 29 Sep 2021 22:10:37 -0400 Received: from omf10.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 7938418059B50; Thu, 30 Sep 2021 02:08:54 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA id 7F78F2351F3; Thu, 30 Sep 2021 02:08:53 +0000 (UTC) Message-ID: Subject: Re: [PATCH 2/4] amdgpu_ucode: reduce number of pr_debug calls From: Joe Perches To: Jim Cromie , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Wed, 29 Sep 2021 19:08:51 -0700 In-Reply-To: <20210930014427.14239-3-jim.cromie@gmail.com> References: <20210930014427.14239-1-jim.cromie@gmail.com> <20210930014427.14239-3-jim.cromie@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: 7F78F2351F3 X-Spam-Status: No, score=0.10 X-Stat-Signature: anmt6jx4t6f7u5gh4einmjsx1txe8h6k X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18kGVBu/5EFA7vPk09h4PPRUG51zMWAUwg= X-HE-Tag: 1632967733-854858 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c [] > @@ -30,17 +30,26 @@ > ? > > ?static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr) > ?{ > - DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes)); > - DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes)); [] > + DRM_DEBUG("size_bytes: %u\n" > + "header_size_bytes: %u\n" etc...