Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5338394rwb; Mon, 8 Aug 2022 17:19:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7zyzOBUEQersd2sLAKYKBLmNX0MMFGyFFI0n17O4W70d02ckk5PEiiH6wD5HwrJIUazkOC X-Received: by 2002:a17:90b:4b0a:b0:1f5:f2c3:645c with SMTP id lx10-20020a17090b4b0a00b001f5f2c3645cmr17328057pjb.10.1660004370854; Mon, 08 Aug 2022 17:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660004370; cv=none; d=google.com; s=arc-20160816; b=VrR/7FdLEq0YU1BTRHYRUdmsW25pgvhWM5ggJxBqTdRuE6b95grWxwv3ntqZktTXow kb5b8+ckiZGAVY9oPCezrxXwXaIKBDFL2aXTCoLcOxOCs5Rw92XFXpvOPd95N9HIDvFZ lzN8TZ0POJRvch86wo4NBh2v4cX8KLAHkdBSY0mo7IOUBa3AniUDf9nmjz/B3kKLiSTD JAFu0HtGZwAreGmCpsXLmCrUq4XYc0mzJhZDnlQguxzZUkkMcm18SUDGxo+U9BpOcnU4 MlMpMPgrl8qRoXxvtYgNczicpjQfMfmT/OoCoZH/ImlA4/0CQvnTYoNMMOvzWT3qkwSu Ys1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZBOqHQ+0wLuoWsigkrWi4WtzQUueoCKnZQINx3aEaTo=; b=p2AtTSjTO6GjTINo6VciiWWZqaoyM4MKD/Pu4JICnEw6r3N3xpQxzqYqzI5TvoU9eH 69GyyceeYVvQncyK5RWmr1Emn7HQudMXzVUQwqfsvVYmvAmLnb0A/I34EuW92S0jQtkl bBXxVI/l1BW4tyAsxgJcT/vzDc6WHlu7fRGbwIwZ2atrJsR9d7JUewNsdk5bJj+J8R/b tJUF9IXX3xIq5CACE7/8jE1t81fFvQPeTx4qeUYP7vVrI968ItmleSTe1imRUKc6WsZg f4HCm3gIsdp0Erg6rbcpwRzRoTOH3Rpd0+VqTVJLc9Q8AO8Tfbqx1A98cPFQroWZuFN7 zkLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KfvyP72M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a170902b78800b0016be96cf31bsi6163539pls.273.2022.08.08.17.19.06; Mon, 08 Aug 2022 17:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KfvyP72M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S244593AbiHHXy5 (ORCPT + 99 others); Mon, 8 Aug 2022 19:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244511AbiHHXyd (ORCPT ); Mon, 8 Aug 2022 19:54:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F17391C93D for ; Mon, 8 Aug 2022 16:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660002870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZBOqHQ+0wLuoWsigkrWi4WtzQUueoCKnZQINx3aEaTo=; b=KfvyP72MnvBbpx6LoVvehV5kOzeQWvjISjg+52ju5eqiQkQODRSgdr2IhlG7BHBu2iuWMn E8h91Mozx9SvO3XLg8i/rdk30ySk611uhK+Q4Xeia97psPenDT0TFM9Vm7X7TjecGRrJQa 4pYhpbEZaENpfdKjUitL9is9hL5jD8I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-378-uGTCsmAXPx-nPqTFc-21Jg-1; Mon, 08 Aug 2022 19:54:23 -0400 X-MC-Unique: uGTCsmAXPx-nPqTFc-21Jg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 23C3C1019C96; Mon, 8 Aug 2022 23:54:23 +0000 (UTC) Received: from emerald.lyude.net (unknown [10.22.17.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 776F5C15BA1; Mon, 8 Aug 2022 23:54:22 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Wayne Lin , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Fangzhi Zuo , Jani Nikula , Imre Deak , Daniel Vetter , Sean Paul , David Airlie , Daniel Vetter , Thomas Zimmermann , Alex Deucher , Javier Martinez Canillas , Bhawanpreet Lakha , linux-kernel@vger.kernel.org (open list) Subject: [RFC v2 06/18] drm/display/dp_mst: Add some missing kdocs for atomic MST structs Date: Mon, 8 Aug 2022 19:51:51 -0400 Message-Id: <20220808235203.123892-7-lyude@redhat.com> In-Reply-To: <20220808235203.123892-1-lyude@redhat.com> References: <20220808235203.123892-1-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we're about to start adding some stuff here, we may as well fill in any missing documentation that we forgot to write. Signed-off-by: Lyude Paul Cc: Wayne Lin Cc: Ville Syrjälä Cc: Fangzhi Zuo Cc: Jani Nikula Cc: Imre Deak Cc: Daniel Vetter Cc: Sean Paul Acked-by: Jani Nikula --- include/drm/display/drm_dp_mst_helper.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/drm/display/drm_dp_mst_helper.h b/include/drm/display/drm_dp_mst_helper.h index 9cdd2def56a1..3b155ad3eee4 100644 --- a/include/drm/display/drm_dp_mst_helper.h +++ b/include/drm/display/drm_dp_mst_helper.h @@ -542,7 +542,14 @@ struct drm_dp_payload { #define to_dp_mst_topology_state(x) container_of(x, struct drm_dp_mst_topology_state, base) +/** + * struct drm_dp_mst_atomic_payload - Atomic state struct for an MST payload + * + * The primary atomic state structure for a given MST payload. Stores information like current + * bandwidth allocation, intended action for this payload, etc. + */ struct drm_dp_mst_atomic_payload { + /** @port: The MST port assigned to this payload */ struct drm_dp_mst_port *port; /** @@ -551,16 +558,32 @@ struct drm_dp_mst_atomic_payload { * the immediate downstream DP Rx */ int time_slots; + /** @pbn: The payload bandwidth for this payload */ int pbn; + /** @dsc_enabled: Whether or not this payload has DSC enabled */ bool dsc_enabled; + + /** @next: The list node for this payload */ struct list_head next; }; +/** + * struct drm_dp_mst_topology_state - DisplayPort MST topology atomic state + * + * This struct represents the atomic state of the toplevel DisplayPort MST manager + */ struct drm_dp_mst_topology_state { + /** @base: Base private state for atomic */ struct drm_private_state base; + + /** @payloads: The list of payloads being created/destroyed in this state */ struct list_head payloads; + /** @mgr: The topology manager */ struct drm_dp_mst_topology_mgr *mgr; + + /** @total_avail_slots: The total number of slots this topology can handle (63 or 64) */ u8 total_avail_slots; + /** @start_slot: The first usable time slot in this topology (1 or 0) */ u8 start_slot; }; -- 2.37.1