Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp38278imm; Fri, 6 Jul 2018 13:31:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeiyR0lN50Y2bd3e8HnnxjKxQ13g1QJQO9D10RVy2WzsfbT0eYe1H2HFwV2vW5bYQ7USxMl X-Received: by 2002:a65:5a49:: with SMTP id z9-v6mr10639130pgs.244.1530909091065; Fri, 06 Jul 2018 13:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530909091; cv=none; d=google.com; s=arc-20160816; b=xyl6ITXWbHkHN25iB4UUCAF01KHndnywDP0j1iMOq6zJVTOwr70GgOlQAawESNYWIP xLjITu3TFPQd246Oet0+IWydba1YKC1y2+YKEklXJn4TGQCb0a5Q0DgAK5UUrfO7KK6v zDfGSSYZO7eKzQ6YFi5SjmBLRnvI/SQ/bQoZLNEvVK33lfrfatrWkXatYKGZy16p4oNZ xoOTBlqIuRcow76MMlbYkDByzOSirf7EzbbbePSTe6DHvmRsf1CsYmHl1m0+le/3tnV4 7c0yKds74H6lOFyCAR4652HY3DyXpyu2MG/QMbe7lgfVjV69AFRdPq037y5f4RL85VSb yU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=zRTH569F8vriJitbYHb6SPGnXwyJTa4/bc9MeQXcY74=; b=YZWxCt6lALVll1XB/iMpGiumd7/Y/x5GSjIBXZI5nPqZTamqExg5jJ8XdGiY2ksK1A l8+9DVCbKXXPvNFsYyYmUarP8Qg/MTO7zoH+ntqM3CxYtG91ACi/W0V5xwoDwhpI4HJ9 phO0mgIVNai8j/B9EeUBrPeWz3NhLbEOv/7M88zHDMxnfrrJDTqJNIs+hqmmG8dLWfsJ S+goCla9qOaBy+yxZpoMJma6gPQrxq+NDtyT3JhkRDzP/IrGIz/Qx+106Z8nDUvWa4/J Sohqw8yVoIaJ5Kbc2pUySRrCmbLyTw0ojRRZ5y7Ced63jCu5GkucJm9aEs8kd+i1E15J bVzw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si8687068plj.411.2018.07.06.13.31.13; Fri, 06 Jul 2018 13:31:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933831AbeGFUaU (ORCPT + 99 others); Fri, 6 Jul 2018 16:30:20 -0400 Received: from mga11.intel.com ([192.55.52.93]:43101 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932328AbeGFUaR (ORCPT ); Fri, 6 Jul 2018 16:30:17 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jul 2018 13:30:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,317,1526367600"; d="scan'208";a="69282814" Received: from qifengwu-mobl.amr.corp.intel.com (HELO intel.com) ([10.254.87.22]) by fmsmga004.fm.intel.com with ESMTP; 06 Jul 2018 13:30:16 -0700 Date: Fri, 6 Jul 2018 13:30:15 -0700 From: Rodrigo Vivi To: Peter Jones Cc: Jani Nikula , David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] Make the "Reducing compressed framebufer size" message be DRM_INFO_ONCE() Message-ID: <20180706203015.GC23473@intel.com> References: <20180706190424.29194-1-pjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706190424.29194-1-pjones@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2018 at 03:04:24PM -0400, Peter Jones wrote: > This was sort of annoying me: > > random:~$ dmesg | tail -1 > [523884.039227] [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS. > random:~$ dmesg | grep -c "Reducing the compressed" > 47 > > This patch makes it DRM_INFO_ONCE() just like the similar message > farther down in that function is pr_info_once(). > > Signed-off-by: Peter Jones > --- > drivers/gpu/drm/i915/intel_fbc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c > index b431b6733cc..88b013758da 100644 > --- a/drivers/gpu/drm/i915/intel_fbc.c > +++ b/drivers/gpu/drm/i915/intel_fbc.c > @@ -585,7 +585,7 @@ static int intel_fbc_alloc_cfb(struct intel_crtc *crtc) > if (!ret) > goto err_llb; > else if (ret > 1) { > - DRM_INFO("Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.\n"); > + DRM_INFO_ONCE("Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.\n"); I know the feeling of seeing a message over and over again when you are already aware of that. Specially something that tells you to change BIOS configuration... for this reason I think it makes sense, so: Acked-by: Rodrigo Vivi I will just wait for CI and give a couple days to someone else to challenge. If I end up forgetting to push it please ping me... > > } > > -- > 2.17.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel