From patchwork Wed May 14 18:51:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 4176931 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BCEC89F1C0 for ; Wed, 14 May 2014 18:51:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F021420212 for ; Wed, 14 May 2014 18:51:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E7A532011E for ; Wed, 14 May 2014 18:51:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A45F26ECCA; Wed, 14 May 2014 11:51:39 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 4597B6ECD6 for ; Wed, 14 May 2014 11:51:38 -0700 (PDT) Received: by mail-ee0-f48.google.com with SMTP id e49so4576eek.21 for ; Wed, 14 May 2014 11:51:37 -0700 (PDT) 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=IW1NgLhAUYRbMVzwstG/jN9UOkgv67eDLg++TzuurWY=; b=JaDEdRq/Ppx2UFgbAchjGMTtsGf1HTdfxQovsvRan4DmymT4tas6vIm9y0L8uBVYIZ F1yuc5ws3WQHked+a+5NR230rayVeSUxCZ2HN0/K9DbM4hJPnJxnFjduknGi9PXHrI4n pre6VfIzY6XNfJUhbW3FwRuiufFfmHc4oEIrU= 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=IW1NgLhAUYRbMVzwstG/jN9UOkgv67eDLg++TzuurWY=; b=nAWtRVLP5ZncCeL2Hm50uBkMXT/wVSADEmC0IH5YY+NE/Ro1D7kjdpIuHW7pRP4HBs zJsqjJO6CfJWqYIMMHxjEiC/02yar2YyEE3Daf0SbK2EwZMxslcYBqn+gWWqZmuk6+9T nrgH07k0k2hUKEx/zEt9BsfnyPKGHbKJImZHOsTdUVl+kMseclT+X1eSajEKB2jZBl6f gud5VQRCOs3n7veyy0Baci3wDPCWLaRH6JiuPqXrCukrXYGi0M/Uy9qCVOmVxfXQWlqb NfZ6ktZxn4GgV09kx/dzRzvRnp7nmMuXlHqwysj70WiY/rQSGEgs9+KREevpa+xqun0e nNcg== X-Gm-Message-State: ALoCoQkH03lEkpwXaWpotcftBbEFNYVfeR2VO3VbqbapND+Sdf8FQ0AAG2uLcDI+THrpORmuJFXu X-Received: by 10.14.122.196 with SMTP id t44mr6794906eeh.61.1400093497561; Wed, 14 May 2014 11:51:37 -0700 (PDT) Received: from bremse.ffwll.local (84-73-67-144.dclient.hispeed.ch. [84.73.67.144]) by mx.google.com with ESMTPSA id a4sm6973179eep.12.2014.05.14.11.51.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 11:51:36 -0700 (PDT) From: Daniel Vetter To: DRI Development , Intel Graphics Development Subject: [PATCH 06/12] drm/doc: Discourage usage of MODESET_CTL ioctl Date: Wed, 14 May 2014 20:51:08 +0200 Message-Id: <1400093477-3217-7-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1400093477-3217-1-git-send-email-daniel.vetter@ffwll.ch> References: <1400093477-3217-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , Laurent Pinchart X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Leftover from the old days of ums and should be used any longer. Since commit 29935554b384b1b3a7377d6f0b03b21d18a61683 Author: Laurent Pinchart Date: Wed May 30 00:58:09 2012 +0200 drm: Disallow DRM_IOCTL_MODESET_CTL for KMS drivers it is a complete no-Op for kms drivers. Cc: Laurent Pinchart Signed-off-by: Daniel Vetter --- Documentation/DocBook/drm.tmpl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index 83dd0b043c28..e37a77a72b8b 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl @@ -2861,12 +2861,11 @@ int num_ioctls; DRM_IOCTL_MODESET_CTL - This should be called by application level drivers before and - after mode setting, since on many devices the vertical blank - counter is reset at that time. Internally, the DRM snapshots - the last vblank count when the ioctl is called with the - _DRM_PRE_MODESET command, so that the counter won't go backwards - (which is dealt with when _DRM_POST_MODESET is used). + This was only used for user-mode-settind drivers around + modesetting changes to allow the kernel to update the vblank + interrupt after mode setting, since on many devices the vertical + blank. Modern drivers should not call this any more since with + kernel mode setting it is a no-Op.