From patchwork Fri Dec 4 08:46:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 7766841 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80724BEEE1 for ; Fri, 4 Dec 2015 08:47:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A8EC520504 for ; Fri, 4 Dec 2015 08:47:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DB12A20498 for ; Fri, 4 Dec 2015 08:47:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 372EE8A831; Fri, 4 Dec 2015 00:46:48 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id B38868A81C for ; Fri, 4 Dec 2015 00:46:44 -0800 (PST) Received: by wmec201 with SMTP id c201so63486776wme.0 for ; Fri, 04 Dec 2015 00:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=udICxF5hHmPJbpCTX5ntx/Tgsk5ybVh8ygibtjIojF8=; b=ZbZI8LSdg9Ler4Tg3jh23YBTk92Etj78UZVM2gaaddqmTjM39fNL5UIIhyhsaVtEeL WVOqY2De28+Fw0DfHVapwAuu4srM5d3Bv0/Wdc8u/gks3tt/VrwItAZXmkqEIrvCcRVK 0OoCWq+Guigxq4JG/CEdzJ5dSuAIYGPblP268= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=udICxF5hHmPJbpCTX5ntx/Tgsk5ybVh8ygibtjIojF8=; b=Uh95hTHs9jd7rJgWDVJWrKkBLao4qRw9DoAk31D31IsYComU7Knx0Az2tFw8IolIk0 wBfJ9Gw4FBatczzPm5VzgrvBdc3GeV7aMK14P3Jgn5p7gY5HBFiEuZKVqqF19qUJGE8H 7MMs5mqzYNGp4meWQEGKSLG+GE6WCS03xYNs2t2oPFhCdDhp75rNpqB63F2ggVIpv0EA 76/0QKieLWZgnJ3/qHU79k1dysqNZJelHOaAYlA0vzGJCjI5uI4eZpJAhxPxdiDuUi/S 5v08ZW0+wwezhAXnYY0FuFUpSRm517iYcvin3iS+/o25BrTABKUkCrd9kfgLyXocmUTz xIAw== X-Gm-Message-State: ALoCoQlbUfrenPbvKB+o+py5h1tTX6UXI7Lvb6EfnbldoqF913Q0OddUzrgY3GNUS9yDadl0o1FbSszJVOEnOEXDldzrMBDB6w== X-Received: by 10.28.32.65 with SMTP id g62mr3358239wmg.81.1449218803536; Fri, 04 Dec 2015 00:46:43 -0800 (PST) Received: from phenom.ffwll.local (212-51-149-109.fiber7.init7.net. [212.51.149.109]) by smtp.gmail.com with ESMTPSA id pc2sm6926311wjb.11.2015.12.04.00.46.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 00:46:42 -0800 (PST) From: Daniel Vetter To: DRI Development Subject: [PATCH 25/28] drm/atomic-helper: Mention the new system/resume helpers the docs Date: Fri, 4 Dec 2015 09:46:06 +0100 Message-Id: <1449218769-16577-26-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1449218769-16577-1-git-send-email-daniel.vetter@ffwll.ch> References: <1449218769-16577-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , Intel Graphics Development X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP They have pretty kerneldoc already, but better to link to that in one of the overview sections. Signed-off-by: Daniel Vetter Reviewed-by: Thierry Reding --- drivers/gpu/drm/drm_atomic_helper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index ab275499d2a3..110f3db8dd05 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -2405,6 +2405,12 @@ EXPORT_SYMBOL(drm_atomic_helper_connector_dpms); * The simpler solution is to just reset the software state to everything off, * which is easiest to do by calling drm_mode_config_reset(). To facilitate this * the atomic helpers provide default reset implementations for all hooks. + * + * On the upside the precise state tracking of atomic simplifies system suspend + * and resume a lot. For drivers using drm_mode_config_reset() a complete recipe + * is implemented in drm_atomic_helper_suspend() and drm_atomic_helper_resume(). + * For other drivers the building blocks are split out, see the documentation + * for these functions. */ /**