From patchwork Mon Nov 12 16:59:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 10678963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2C7613BB for ; Mon, 12 Nov 2018 17:00:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2787629FA9 for ; Mon, 12 Nov 2018 17:00:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B99A29FB7; Mon, 12 Nov 2018 17:00:10 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable 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 D452029FA9 for ; Mon, 12 Nov 2018 17:00:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B13689F75; Mon, 12 Nov 2018 17:00:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11A8889D58; Mon, 12 Nov 2018 17:00:06 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2018 09:00:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,495,1534834800"; d="scan'208";a="91446153" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga008.jf.intel.com with SMTP; 12 Nov 2018 09:00:01 -0800 Received: by stinkbox (sSMTP sendmail emulation); Mon, 12 Nov 2018 19:00:00 +0200 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Date: Mon, 12 Nov 2018 18:59:44 +0200 Message-Id: <20181112170000.27531-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.18.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 00/15] drm/i915: Fix TV encoder support X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Ville Syrjälä Our TV encoder support isn't in the best shape. This series fixes it up quite a bit. The most important part is fixing the issues resulting from the lack of frame counter on i965gm which causes nasty flip_done timeouts when we attempt to do anything with the TV encoder (including load detection). Dust off those component cables people! ;) Entire series is available here: git://github.com/vsyrjala/linux.git tvout_fixes Ville Syrjälä (15): drm/vblank: Allow dynamic per-crtc max_vblank_count drm/i915: Don't try to use the hardware frame counter with i965gm TV output drm/i915/tv: Fix interlaced ysize calculation drm/i915/tv: Fix tv mode clocks drm/i915/tv: Store the TV oversampling factor in the TV mode drm/i915/tv: Use bools where appropriate drm/i915/tv: Nuke silly 0 inittialization of xpos/ypos drm/i915/tv: Deobfuscate preferred mode selection drm/i915/tv: Use drm_mode_set_name() to name TV modes drm/i915/tv: Make TV mode autoselection actually useable drm/i915/tv: Nuke reported_modes[] drm/i915/tv: Add 1080p30/50/60 TV modes drm/i915/tv: Generate better pipe timings for TV encoder drm/i915/tv: Fix >1024 modes on gen3 drm/i915/tv: Filter out >1024 wide modes that would need vertical scaling on gen3 drivers/gpu/drm/drm_vblank.c | 39 +- drivers/gpu/drm/i915/i915_irq.c | 10 +- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_display.c | 40 +- drivers/gpu/drm/i915/intel_tv.c | 695 +++++++++++++++++++++------ include/drm/drm_vblank.h | 8 + 6 files changed, 640 insertions(+), 153 deletions(-)