Received: by 10.213.65.68 with SMTP id h4csp61398imn; Thu, 15 Mar 2018 09:32:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELvh/0EOmVfn0tXkqWKjBY4YjRnHeCxcU6AVwu8yfoA7EOwYUAMLrqpD4uzXDkvRV8PowZK9 X-Received: by 2002:a17:902:7d17:: with SMTP id z23-v6mr8917975pll.237.1521131561071; Thu, 15 Mar 2018 09:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521131561; cv=none; d=google.com; s=arc-20160816; b=W6AQkYRbvT4lSMM7U+7Nc7Udmv+ftWi1bqvihHKSFU4FctcbI+FCH88bIikZo1W/G5 tCbj9n5+YPTUmF4opPtsx9BujSBaTtx6aa5NB2x55eg95eOtrJWFEA4K28EAPsaRLznR 6dFFoc2gGR7cOtAgqxkMdOn0Fz1W12DsJ/kaYbY2B398JV4fdwvOvzpTks/UCQgvRg0M rT5YArhpv3yejxZSVu0TALE+fsv5lPreCjyfGoDiyFwqRwtkqoC2CsQaO64X0M+VBcei 1Xy9AYR3LhiE6sNKFDRe1Vzc+qvt7RNfVss3pROgKus1leSztqSGb+2WI0GnU5ECYj8O SMVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Fd0MC6EISkgC9UjLV6aVAHBsSzAgs4y4T8n5dQTZboE=; b=AQNrE8FzUvlOtFj2knpvyjeq+bwKKORMsPWxkjACbLajBG0CqXCh7xUjLmgVSTbWTM 1WsRsXWrY/wjxDXkJtohqHcdyWxyx4HPhnpn02kt4+JHwb/rlb1CCC/HBNsGzUa1BWEe AON2Aw+kAbjL76SeUTlNHHTCfJ8BVBTj5Mk34z2H/p/OvBuW+EmstzEkqIl+V6AJ9D46 xbvRzfqaRPJrhH9e4g7guhQeQxt2R95L7OprbWbAEYCQLcjYRbvUAM03vvcDzxRmyAGv ISGcGAe/vOZd+Yhxfi9riIaxgRQ68H7r4fI8Mr3EETAabiHXJHFsrm1fabRrxWgACsv1 Ls1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si3614830pge.2.2018.03.15.09.32.25; Thu, 15 Mar 2018 09:32:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbeCOQaC (ORCPT + 99 others); Thu, 15 Mar 2018 12:30:02 -0400 Received: from smtprelay0175.hostedemail.com ([216.40.44.175]:49859 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751600AbeCOQaA (ORCPT ); Thu, 15 Mar 2018 12:30:00 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 3F8B618098549; Thu, 15 Mar 2018 16:29:59 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4037:4321:5007:8660:10004:10400:10848:11232:11658:11914:12296:12663:12740:12895:13069:13148:13161:13229:13230:13311:13357:13439:13894:14096:14097:14659:14721:21080:21451:21627:30012:30054:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: nerve02_399d26280f24f X-Filterd-Recvd-Size: 2549 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Thu, 15 Mar 2018 16:29:55 +0000 (UTC) Message-ID: <1521131394.22221.25.camel@perches.com> Subject: Re: [PATCH] drm: Reduce object size of DRM_ERROR and DRM_DEBUG uses From: Joe Perches To: Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= Cc: Maarten Lankhorst , Gustavo Padovan , Sean Paul , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Thu, 15 Mar 2018 09:29:54 -0700 In-Reply-To: <20180315161434.GV5453@intel.com> References: <016b5cb84cede20fd0f91ed6965421d99fd5f2ce.1520978414.git.joe@perches.com> <20180315133026.GR5453@intel.com> <1b50f5d8-97a6-2442-34bb-2782c35505fd@linux.intel.com> <20180315150524.GS5453@intel.com> <1521127073.22221.13.camel@perches.com> <20180315153734.GT5453@intel.com> <1521128645.22221.18.camel@perches.com> <20180315161434.GV5453@intel.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-03-15 at 18:14 +0200, Ville Syrj?l? wrote: > > There's no trade-off in this patch for faster/larger. > > This patch is simply smaller. Smaller is better. > > This feels a bit like saying pink is better than red because it's > more pink. Silly. If you can't say smaller total object code that performs the same task identically is better, I think we can't discuss much of anything about code together. Any printk related mechanism is not fast-path so any icache dilution isn't an issue. > That said, I'm not arguing against this patch as such. Making things > smaller "just because" usually doesn't cause problems. It seems more like you haven't read the patch. > But I was > hoping that we might be after some more tangible gains here, and > thus pointed out that there may be a better way to achieve even > bigger gains. Sure, it's just any such a discussion should not affect this patch being applied. This patch reduces the argument count of the drm_printk (now drm_dbg) call and so is faster to execute even if the emit test is internal to the drm_dbg function.