Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2074702ybp; Thu, 10 Oct 2019 01:43:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKZSAHrgGzyzJKzNrKic1RsAIitxectTRj1NCN4PLf5pathEchPeHPq3lsW1EhTwPus6T6 X-Received: by 2002:a50:fc86:: with SMTP id f6mr7034783edq.233.1570697027502; Thu, 10 Oct 2019 01:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570697027; cv=none; d=google.com; s=arc-20160816; b=HW3xtedlDYs7M3wRHidINjHgdx7b8nv7KPTUcCNpRjIguqEEsqcGEEKyaenJqaBNBZ 1LeGOU+PHrEM6dl3TUbxRsOyZDUXuXIv9pOnwiDwwnu7S5DT5dmpD4DzBPnPzxsBxg16 L87yrIPkqTKBGJ6fzbm1Uy6xncV/iXLqoLI0KI/Y/eMtxW0H3CEYjV8yfJRAsIITlqib dnET5D1SF0w5yB9Vj109aLaPJj1kVH9ZJg40HPK27M5jlxB5pYh7wCoZo1HWJtgrscp7 /jHFQ1HrotBliB+1aK+b2iB6frycjSOTmohKGq7JTSZ2HDd0p2mTLK4T7GMSZMGtVX69 6laQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hPMpVomSQ/bV/f44cWAZTWkG+s1rj02urigppVrUyXg=; b=KIU9zHCCGkw6PzCMWbXRHT2PAE/sx3csMj/9/uvTY3HOyNRg67gA6R+n7bBEaEPdAH e9zou5u5GN/hkrCIffFXvDVYvzitzpWBjHpqNhrtIkomJE5e/et8f8kE7s5oVmfLacH0 trFC7AIXDn1HN2BPfFUWaCyWQaqNS2sLuZgAMnyvIViW9dTh2HEaW5FibR/dR9STmKx/ SCimU/sjCZlRtQ0rTF3tKY7mIPglWEErKgcZ/txE69CluqBanAjrlrDwMHuZQCnm7OXo eRu8/34DdIJoZFCE4gVuwQ4owwaFdYwRv42q6+oedymPKGGkLVOpyg127kxqk9816DBW 4wog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PfmSO5EG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o46si2992502edc.124.2019.10.10.01.43.24; Thu, 10 Oct 2019 01:43:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PfmSO5EG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388082AbfJJIkV (ORCPT + 99 others); Thu, 10 Oct 2019 04:40:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:44388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387411AbfJJIkT (ORCPT ); Thu, 10 Oct 2019 04:40:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B7610218AC; Thu, 10 Oct 2019 08:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696819; bh=vbgDH5249EV0bJnz9nY2ORMiQg8hmDmPY9XI8g4iOL4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PfmSO5EGTFl+hibl8zY7iz1ji69f3M0XXP51xU83diZB5R8f1VD/i8Q2GEJoH+i7j taDaiAy4jF3FxXyH0Yp+4zuXJUpehSg4Tp7ObZQE6PcLstdXvyLjpx1z8zzPl+MNX3 LiX0CQ1d+1tqwNtuCOdTAsGzvzHFEURPfZcOyHM8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maarten Lankhorst , Nicholas Kazlauskas , =?UTF-8?q?Michel=20D=C3=A4nzer?= , Alex Deucher , Adam Jackson , Sean Paul , David Airlie , Daniel Vetter Subject: [PATCH 5.3 063/148] drm/atomic: Reject FLIP_ASYNC unconditionally Date: Thu, 10 Oct 2019 10:35:24 +0200 Message-Id: <20191010083615.262955181@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Vetter commit f2cbda2dba11de868759cae9c0d2bab5b8411406 upstream. It's never been wired up. Only userspace that tried to use it (and didn't actually check whether anything works, but hey it builds) is the -modesetting atomic implementation. And we just shut that up. If there's anyone else then we need to silently accept this flag no matter what, and find a new one. Because once a flag is tainted, it's lost. Reviewed-by: Maarten Lankhorst Reviewed-by: Nicholas Kazlauskas Cc: Maarten Lankhorst Cc: Michel Dänzer Cc: Alex Deucher Cc: Adam Jackson Cc: Sean Paul Cc: David Airlie Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20190903190642.32588-2-daniel.vetter@ffwll.ch Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/drm_atomic_uapi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @@ -1301,8 +1301,7 @@ int drm_mode_atomic_ioctl(struct drm_dev if (arg->reserved) return -EINVAL; - if ((arg->flags & DRM_MODE_PAGE_FLIP_ASYNC) && - !dev->mode_config.async_page_flip) + if (arg->flags & DRM_MODE_PAGE_FLIP_ASYNC) return -EINVAL; /* can't test and expect an event at the same time. */