From patchwork Fri Oct 14 13:55:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9376893 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2B9796022E for ; Fri, 14 Oct 2016 13:55:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B0502A6E4 for ; Fri, 14 Oct 2016 13:55:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C4332A6E7; Fri, 14 Oct 2016 13:55:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4006E2A6E4 for ; Fri, 14 Oct 2016 13:55:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF6926EC83; Fri, 14 Oct 2016 13:55:16 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5A3BB6EC81 for ; Fri, 14 Oct 2016 13:55:15 +0000 (UTC) Received: by mail-lf0-x241.google.com with SMTP id b75so18178882lfg.3 for ; Fri, 14 Oct 2016 06:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=rU6vdD9jrMuRreMHdZkxI6Pz03Rd/t8lUPVH6Q4x2kk=; b=ZEnfpaVPOclOY03ZFCHXiu9S2I6TpgyD1rt83WuemJEFEC2Bb/7SvYLaEjiBibW6M2 5KqiOOQXTMmgBKyeZ8pkq67tVdk4jDshYRqzvNQOV8gcu5igJMRuTqqy/vwo3p5s8QI7 G9hzop92NYYAWyv36OpcYPlKrOraU2BjLXee1FzaZyy9EuiobdjwUS3nOuLDob0fMU83 daSCqKbpC1BMVclaW3uZ2M3kyf3R7wKCPHYdNERaJ1Ok9rHno5kamP2U0q/YBQkxo+Kq LwFaASG7XHMCoPjMUPWj/BBhaJy+fDCtBOohYE/hfb9VCnbUKu2bGZBRAbu+TAiYpQ7D onOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rU6vdD9jrMuRreMHdZkxI6Pz03Rd/t8lUPVH6Q4x2kk=; b=jxjmVl8AdCSe1JeqiaaalZVW5r9VgJ7sdPB4m0AqQwDtJccFOHTMDVEDL5bfikPDDB cnGVShKfd21jDC+rmY+I/UFUhbCaHHTVtThYQ69SZNawK5cYWqZpC209velR5gXYKsRt tk+Ofqr6yB4KI3ZHr96srmlQAqssyLgRhyFUY4uCovXpNMIEhRuBAGhO3SzlhNe/neQC jqNu0uuOyHosDlJAPmcszXnUGJoAFAgoZRN4JwG8GyYG4q2ISW4Kr9c6XTdtFGiJWxNW NcrEXaf/Fyw0HlUaBi58nFUOn9wTR7eSRsXLlgyaTdYlIpmhoPwxzZUteT0kmLZLSrH9 rq4g== X-Gm-Message-State: AA6/9Rn1ADL6ZqS0IwGlkY+jni425jsD+Px28Sef15qXuc9GV1953oEJBQhkORmUiYwG4g== X-Received: by 10.194.243.104 with SMTP id wx8mr2041112wjc.229.1476453313477; Fri, 14 Oct 2016 06:55:13 -0700 (PDT) Received: from e31.Home ([2a02:c7d:9b6d:e300:916a:6cab:ac67:71c2]) by smtp.gmail.com with ESMTPSA id e2sm32081680wjw.14.2016.10.14.06.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Oct 2016 06:55:12 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Fri, 14 Oct 2016 14:55:02 +0100 Message-Id: <1476453302-7580-1-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 Subject: [Intel-gfx] [PATCH] drm/i915: Fix cxsr_latency_table reorg X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin I have re-ordered some struct members in patch: commit 44a655cae3043453f9dd8076538712d52e2e0ce4 Author: Tvrtko Ursulin Date: Thu Oct 13 11:09:23 2016 +0100 drm/i915: Shrink cxsr_latency_table but that particular one is not initialized with named initializers which broke it. Move the bitfields back at the beginning. Space saving is still there. Signed-off-by: Tvrtko Ursulin Fixes: 44a655cae304 ("drm/i915: Shrink cxsr_latency_table") Cc: Joonas Lahtinen Cc: Jani Nikula Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_drv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index a885b2ac9618..5bc115496355 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -807,14 +807,14 @@ struct intel_watermark_params { }; struct cxsr_latency { + bool is_desktop : 1; + bool is_ddr3 : 1; u16 fsb_freq; u16 mem_freq; u16 display_sr; u16 display_hpll_disable; u16 cursor_sr; u16 cursor_hpll_disable; - bool is_desktop : 1; - bool is_ddr3 : 1; }; #define to_intel_atomic_state(x) container_of(x, struct intel_atomic_state, base)