Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp88494ybm; Tue, 26 May 2020 11:27:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfsULV/CEt1QCfVn4aYBqifO0vOpJMUYRL6pQ+cN1vCkmBk7AqbUA0cK0AuJFIClMtl9ZI X-Received: by 2002:a17:906:4dd6:: with SMTP id f22mr2196795ejw.483.1590517655337; Tue, 26 May 2020 11:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590517655; cv=none; d=google.com; s=arc-20160816; b=trEN6rIViLy/1Ra3N+rY35yQmBlID2Wbo25pQlxVs0ge6G7B4b+vMw8JFdW6DnNS24 1HWGkl0o36e4e7Z3QJccbKZmBHTyFWyYfzxFJPK300eJxLbNF+cih+hchAtXFQWvBOpN Kz6Jfb51Ov6iZejFpJzkA7/JiYgKtXONciBnfvWjR7ip48hSaml5QwBwW9qdt6KZgucl i0saH3DK2bHhsLanxu+kNFAHp/uDxe+Rf/UjUcaZWi9htXWAbE4NJZmsmulLjNozkSwm FcIgUpsv0+Z2Shxxql1DnCDZhVybOyUrJwcaGyAwKp1n+KbHb19v06wByea+Yakhcm9B xa7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5+EU/K2kj/k8K0E7hESfXaQ4YimAcr8+UqvyVfx2X4A=; b=cfJC7nODIllu1his4Kj9Dyr8RIxP7dVYAtDjlKEhYIPdq7pEsGQBN6uycdRo1sA1Mx LZNLz7r922YRkSpZIE/q6GlxGbE4Pm02ZwZF6t/zYrp85Y0NwYQl9EQ/iu8cBrH1ripa 4tGmC9p1XvBTk1BuzxvCIrHdm6O32AqEtldlSMVJc3OmXzONvlrsBgR9gdfE9Pw3rFX3 2kdCNXAlX/AWRcX+C9hMwFjqWLTVeF61Abb1JMmLzL87AYIOh0Uo1pSJ6ifc+EC1w0lF Ww/Aw/ilZozdD396ALxcfyRXBE2WEb8rmklrBf9q879it5QF+gYwpSbXCIbeoZH/1MLd Ye/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gm0xuuSA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si356299edx.407.2020.05.26.11.27.11; Tue, 26 May 2020 11:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gm0xuuSA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728685AbgEZSXZ (ORCPT + 99 others); Tue, 26 May 2020 14:23:25 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:54525 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727112AbgEZSXZ (ORCPT ); Tue, 26 May 2020 14:23:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590517403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=5+EU/K2kj/k8K0E7hESfXaQ4YimAcr8+UqvyVfx2X4A=; b=Gm0xuuSA95wVqbcTQF4LWnsS7RkwTyCvxNoLt9x62JPmRtW8Ck5/+bB+QsbndJurd3+S1+ H5szroD0CHHuJp2veHw5kRG32XZMiAzBhfIKtO0WhaypvgviyiLVT3XDVknWiBoUmwL1/M n5jsOrdY+BpH4TcrtGeY5L5/BhXx/rE= 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-169-g6Gi8_IIO7aRX8Un7vznuA-1; Tue, 26 May 2020 14:23:19 -0400 X-MC-Unique: g6Gi8_IIO7aRX8Un7vznuA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 51C4C8018AD; Tue, 26 May 2020 18:23:17 +0000 (UTC) Received: from Whitewolf.redhat.com (ovpn-120-19.rdu2.redhat.com [10.10.120.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id BAE0079C40; Tue, 26 May 2020 18:23:14 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org Cc: Lee Shawn C , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , "Daniel Vetter" , "David Airlie" , "Maarten Lankhorst" , linux-kernel@vger.kernel.org, "Thomas Zimmermann" , "Maxime Ripard" , "Lucas De Marchi" , "Rodrigo Vivi" , "Jani Nikula" , intel-gfx@lists.freedesktop.org, "Joonas Lahtinen" , "Lyude Paul" , =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Subject: [PATCH 0/2] drm/probe_helper, i915: Validate MST modes against PBN limits Date: Tue, 26 May 2020 14:23:08 -0400 Message-Id: <20200526182313.4005-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 6 +- drivers/gpu/drm/drm_probe_helper.c | 65 ++++++++++++++------- drivers/gpu/drm/i915/display/intel_dp_mst.c | 39 +++++++++++-- include/drm/drm_modeset_helper_vtables.h | 41 +++++++++++++ 4 files changed, 123 insertions(+), 28 deletions(-) -- 2.26.2