Message ID | 20200814065740.276039-15-vicamo.yang@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BSZ630ZTnz9sTN; Fri, 14 Aug 2020 16:58:35 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1k6Tfa-0007xh-KH; Fri, 14 Aug 2020 06:58:30 +0000 Received: from mail-pg1-f173.google.com ([209.85.215.173]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <vicamo@gmail.com>) id 1k6TfW-0007qC-5v for kernel-team@lists.ubuntu.com; Fri, 14 Aug 2020 06:58:26 +0000 Received: by mail-pg1-f173.google.com with SMTP id t6so4096067pgq.1 for <kernel-team@lists.ubuntu.com>; Thu, 13 Aug 2020 23:58:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y8AtkVooBPezhJmlqAj1GncygOGpW/j+ct6cBy5GcHc=; b=eoAWvfY3yytfdsmgr1fS/7uEFyVKOdaml8GJOAeAI356r0obKuZFCGT7k4lyvdaVU0 l1FhQVD++mLS/ldMd0E6qYL59sMHI2LUE83dKa2G38mzhmGqWl2YDCkbiiX5vhFIRInT 18ARfjl5dFpcfY84NtIyqOfRyEtAeeskSXmtylUrOvGDkxx/5rNwQN8oMMRYNtva3brU 1ngQ6/IQLTqDMfo2xRQHt6OkdZCMshUpjv9+UXR286Q666nXYWJj5lUQFqi08tabn7GH znz/LfXaRekJ/UYmZy9Kc6/PK7Zi7xXGf+MccerBwZ8ke2h6JGPHn6F96ErCdufq7hzW r1zQ== X-Gm-Message-State: AOAM532RY3iLtRUORoREFpB9D1nNeWLJrsZzVof9j9bWPAnEprhQXLS4 siOa2Q0wtx+4U24M+USkAOYa4ncWhAyvIA== X-Google-Smtp-Source: ABdhPJzjkVKl7tFJ0BHkfbx4jYV531xp3HWIBWUldhKFBHuOuQ62QxtLwRgCCg7P8d73I25rqFW3Og== X-Received: by 2002:a63:2584:: with SMTP id l126mr876493pgl.126.1597388300836; Thu, 13 Aug 2020 23:58:20 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id o10sm7025268pjo.55.2020.08.13.23.58.19 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 23:58:20 -0700 (PDT) From: You-Sheng Yang <vicamo.yang@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH 14/31][SRU][OEM-5.6] drm/i915: Don't check for wm changes until we've compute the wms fully Date: Fri, 14 Aug 2020 14:57:23 +0800 Message-Id: <20200814065740.276039-15-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200814065740.276039-1-vicamo.yang@canonical.com> References: <20200814065740.276039-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.173; envelope-from=vicamo@gmail.com; helo=mail-pg1-f173.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Add TGL+ SAGV display support
|
expand
|
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index d25726666177..e5460b470f1f 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -5769,16 +5769,24 @@ skl_compute_wm(struct intel_atomic_state *state) ret = skl_build_pipe_wm(new_crtc_state); if (ret) return ret; - - ret = skl_wm_add_affected_planes(state, crtc); - if (ret) - return ret; } ret = skl_compute_ddb(state); if (ret) return ret; + /* + * skl_compute_ddb() will have adjusted the final watermarks + * based on how much ddb is available. Now we can actually + * check if the final watermarks changed. + */ + for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, + new_crtc_state, i) { + ret = skl_wm_add_affected_planes(state, crtc); + if (ret) + return ret; + } + skl_print_wm_changes(state); return 0;