From patchwork Mon Jul 13 17:07:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lyude Paul X-Patchwork-Id: 11660749 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 728CD913 for ; Mon, 13 Jul 2020 17:08:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FA0820663 for ; Mon, 13 Jul 2020 17:08:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ENOwGfAP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FA0820663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 551FD6E214; Mon, 13 Jul 2020 17:08:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id A740A89FE8 for ; Mon, 13 Jul 2020 17:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594660090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hr/kaW7+oMFB0cvy2b27XuMOCWJEc0lGVrzPi6zJbOY=; b=ENOwGfAPMTc6GCHMit51+IYdIh4WXnXA+apAGIf1jawFoByPsZaRoEUZahHbOKF2eCucij m5Ge8GrHeo1j626DSaBiBlCZkiAOrolj1cka4yl/yLYhEOAPgTpaha7RLZjJVIe6US+zXr pL16Bk0kZrJRrsVBeXfCgH6BRI1wKWs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-32-Csy64op8MYu3VaoCi_hh4Q-1; Mon, 13 Jul 2020 13:08:08 -0400 X-MC-Unique: Csy64op8MYu3VaoCi_hh4Q-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1D0D28B4261; Mon, 13 Jul 2020 17:07:50 +0000 (UTC) Received: from Ruby.redhat.com (ovpn-119-224.rdu2.redhat.com [10.10.119.224]) by smtp.corp.redhat.com (Postfix) with ESMTP id AAEA41053B3D; Mon, 13 Jul 2020 17:07:49 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Subject: [PATCH v4 0/2] drm/probe_helper, i915: Validate MST modes against PBN limits Date: Mon, 13 Jul 2020 13:07:44 -0400 Message-Id: <20200713170746.254388-1-lyude@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lyude@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Something we've been missing for a while with drivers that support MST is being able to prune modes that can't be set due to bandwidth limitations. So, let's go ahead and add that. This also adds a new hook that was needed, mode_valid_ctx, so that we can grab additional locks as needed when validating modes. Lee Shawn C (1): drm/i915/mst: filter out the display mode exceed sink's capability Lyude Paul (1): drm/probe_helper: Add drm_connector_helper_funcs.mode_valid_ctx drivers/gpu/drm/drm_crtc_helper_internal.h | 7 +- drivers/gpu/drm/drm_probe_helper.c | 101 +++++++++++++------- drivers/gpu/drm/i915/display/intel_dp_mst.c | 55 +++++++---- include/drm/drm_modeset_helper_vtables.h | 42 ++++++++ 4 files changed, 151 insertions(+), 54 deletions(-)