From patchwork Sat Jun 1 17:45:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 2648411 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 1A62A3FDBC for ; Sat, 1 Jun 2013 17:25:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2848E5ED9 for ; Sat, 1 Jun 2013 10:25:03 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 30C68E5D74 for ; Sat, 1 Jun 2013 10:24:30 -0700 (PDT) Received: by mail-ee0-f44.google.com with SMTP id b57so712903eek.3 for ; Sat, 01 Jun 2013 10:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=HZnjU0bS0kW9a/wNzvarHFvV5K7PlP6jMJB9ZQ1OOLQ=; b=KGinm+CQl0CE6hRssCI5hH1Am2Hvpp+YyXOcRn7dJsHsoVzcVUX/7zQEf1urFXJEmf wnZiC0K0d88+7u9q2b+pKDf8Ek5PhGCjbZxAeapsoui0Ek199iIL21f1e2wamL8yWbcb 1R0PTmmzibDFqPF8I0tPhZp9doU9mt8OYlaiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=HZnjU0bS0kW9a/wNzvarHFvV5K7PlP6jMJB9ZQ1OOLQ=; b=cdxSPmGYuFYRoA5pvrmbux6f6gz7OPI0qI7iPiKENN7cIpOS9MK8r6cGjGS03vhZjS XC61oPAp9n8MktHWwFqVibH8UZCngJBJUocaWJJDJ6XqVT6y5UWGWKY2lY+ZbERjXo3x T1dLnYGDHm32phrX94DJIvMrjUS4l9Mzi0jPAV2AKesaSO6IagRyiUHbfappAc1DUCHv 0q3aBcrUEDL8+i0aRIzNcX1g/bHg0G+zhSQZDeMEidp/e4vyu0L0hkQwCZy0Q1eNViuW g0PPSAuHGvq8wvPQRXQgaibLFPoWs3xVHKhPlozZFkc4cyNfaz8DO+YUv4Z0HATXBp+G 5yVA== X-Received: by 10.15.68.194 with SMTP id w42mr3719046eex.59.1370107469339; Sat, 01 Jun 2013 10:24:29 -0700 (PDT) Received: from hummel.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPSA id y10sm74156599eev.3.2013.06.01.10.24.28 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 01 Jun 2013 10:24:28 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Sat, 1 Jun 2013 19:45:56 +0200 Message-Id: <1370108756-1948-2-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1370108756-1948-1-git-send-email-daniel.vetter@ffwll.ch> References: <1370108756-1948-1-git-send-email-daniel.vetter@ffwll.ch> X-Gm-Message-State: ALoCoQldWh/5bNIkd8DE1/1aNyfQFHrKpZJv8vgpwOQPXnFD87EZlgXqRG8vdWqY0dVRy+RVQAHq Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH 2/2] drm/i915: enable 30bpp for DP outputs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org We always limited the link bw calculations to 24bpp. Tested with my shiny new high-bpc screen, seems to work as advertised. Signed-off-by: Daniel Vetter Tested-by: shui yangwei Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index c92eeeb..9868600 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -704,7 +704,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, /* Walk through all bpp values. Luckily they're all nicely spaced with 2 * bpc in between. */ - bpp = min_t(int, 8*3, pipe_config->pipe_bpp); + bpp = pipe_config->pipe_bpp; if (is_edp(intel_dp) && dev_priv->vbt.edp_bpp) bpp = min_t(int, bpp, dev_priv->vbt.edp_bpp);