From patchwork Fri Jul 10 19:31:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lyude Paul X-Patchwork-Id: 11657295 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 C5EC413BD for ; Fri, 10 Jul 2020 19:32:01 +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 A3EC9207D0 for ; Fri, 10 Jul 2020 19:32:01 +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="G/wyBrv8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3EC9207D0 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 C19D36ECF9; Fri, 10 Jul 2020 19:31:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76D836ECF9 for ; Fri, 10 Jul 2020 19:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594409515; 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=HacSkUNLds5/sRRLINbKn+YLzCPd/xRoJbqAEYCBS+s=; b=G/wyBrv89Wn83Qtox44sxS3ckQ6n2S4JeVPKCySST86GcYiYqzMBPn44vXHxK4jrFjawLK /Zechjf0PMQhzjEl04k+/xOQjpoklw1CUqg9shRi3tqzeEFVQVhpC7VAbSmKACsylzthPR 2++Tu0jJevyWJyGuSaYfBgJWKr90/Sg= 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-236-itt6DS7PPaKGhxRz9OOF2A-1; Fri, 10 Jul 2020 15:31:53 -0400 X-MC-Unique: itt6DS7PPaKGhxRz9OOF2A-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 71E5C100AA22; Fri, 10 Jul 2020 19:31:52 +0000 (UTC) Received: from Whitewolf.redhat.com (ovpn-112-154.rdu2.redhat.com [10.10.112.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 08C2910016E8; Fri, 10 Jul 2020 19:31:51 +0000 (UTC) From: Lyude Paul To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH v3 0/2] drm/probe_helper, i915: Validate MST modes against PBN limits Date: Fri, 10 Jul 2020 15:31:42 -0400 Message-Id: <20200710193144.94751-1-lyude@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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 | 94 ++++++++++++++------- drivers/gpu/drm/i915/display/intel_dp_mst.c | 55 ++++++++---- include/drm/drm_modeset_helper_vtables.h | 42 +++++++++ 4 files changed, 147 insertions(+), 51 deletions(-)