From patchwork Thu Oct 23 16:59:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barnes X-Patchwork-Id: 5142241 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 899C39F349 for ; Thu, 23 Oct 2014 17:00:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4382201EC for ; Thu, 23 Oct 2014 17:00:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E5A0C2017E for ; Thu, 23 Oct 2014 17:00:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67B2D6E4AD; Thu, 23 Oct 2014 10:00:18 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by gabe.freedesktop.org (Postfix) with ESMTP id 122AF6E4AD for ; Thu, 23 Oct 2014 10:00:15 -0700 (PDT) Received: by mail-pd0-f179.google.com with SMTP id g10so662196pdj.24 for ; Thu, 23 Oct 2014 10:00:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EqE+D5OBiKyhkDbOEU8vzOD8aF9LnZ0iNJafW/U5Xhg=; b=BFCKwIw7DHx+2F1OIrSWQbN49HWanbnaQ9YmsuQ8naCW50bcfQdxONqMS17UfB55Ch X1JTF9kqGjtu3f/eJ31PBF0N7/fKU6uAh8njia0HqRjfz4Mpc7YTZ0CE+Ui83JyRYMVe hnyzeCXETRRwouB+eDJFsU1g4yJRqRMB1Hh2GfQfhI/YYYgF8PL0VBKkBOZDRnxvHePa kzgX2J38Hs5H7GwA0o+Nrjn2j7GRwpKBvYBlIEkajzBuhZmabqHwlUElgcZ8c8ckZqVe nELUSNOqhcEyIyLjmid1nBPCoc9vEmGFVH7FUBd7+L0pYh7WVHfbyCrT0026GRrk/ngG rtKQ== X-Received: by 10.68.228.33 with SMTP id sf1mr6422848pbc.14.1414083614476; Thu, 23 Oct 2014 10:00:14 -0700 (PDT) Received: from jbarnes-t420.intel.com (c-67-161-37-189.hsd1.ca.comcast.net. [67.161.37.189]) by mx.google.com with ESMTPSA id ke5sm1967412pad.34.2014.10.23.10.00.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Oct 2014 10:00:14 -0700 (PDT) From: Jesse Barnes To: intel-gfx@lists.freedesktop.org Date: Thu, 23 Oct 2014 18:59:16 +0200 Message-Id: <1414083556-26054-5-git-send-email-jbarnes@virtuousgeek.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414083556-26054-1-git-send-email-jbarnes@virtuousgeek.org> References: <1414083556-26054-1-git-send-email-jbarnes@virtuousgeek.org> Cc: shuang.he@linux.intel.com Subject: [Intel-gfx] [PATCH 5/5] drm/i915: check for audio and infoframe changes across mode sets X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If these change (e.g. after a modeset following a fastboot), we need to do a full mode set. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index b2d4f9c..6fbe2fc 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -11507,6 +11507,16 @@ static int intel_crtc_set_config(struct drm_mode_set *set) if (ret) goto fail; + if (to_intel_crtc(set->crtc)->new_config->has_audio != + to_intel_crtc(set->crtc)->config.has_audio) + config->mode_changed = true; + + /* Force mode sets for any infoframe stuff */ + if (to_intel_crtc(set->crtc)->new_config->has_infoframe || + to_intel_crtc(set->crtc)->config.has_infoframe) + config->mode_changed = true; + + if (config->mode_changed) { ret = intel_set_mode_pipes(set->crtc, set->mode, set->x, set->y, set->fb,