From patchwork Thu Jul 22 11:50:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 12393929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5A91C63793 for ; Thu, 22 Jul 2021 11:50:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8BA296128E for ; Thu, 22 Jul 2021 11:50:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8BA296128E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F28AD6F389; Thu, 22 Jul 2021 11:50:46 +0000 (UTC) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by gabe.freedesktop.org (Postfix) with ESMTPS id 232826F389; Thu, 22 Jul 2021 11:50:46 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 913F71FD47; Thu, 22 Jul 2021 11:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1626954644; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4zXoT3ylB6VKxXeCNbbNcso1YijxYQ+dEHYi0mE1dbo=; b=g+wLLtva6y7odNEWxcEUMgEmaxOvYbA2US0h2eDsD1oEFiJ5JdQ8Y+dbg+EAeA6gS0N6Ju E1zl0KBxjXZaeF7lvXHUsP+8yj+c9OK0/96v1x5y4qPdXUC+7wqsJjH+Qba4tVXBnlRmFc ju7bNW0UoX8P0VjFByWuLkHNtoPBcAo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1626954644; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4zXoT3ylB6VKxXeCNbbNcso1YijxYQ+dEHYi0mE1dbo=; b=Y17V0+TBtq+bdK6vsRdS4wII9+uyJBMawuGTesgq3x9WOT9vavSMs+ZWpoqUjJlz3402ks iS95BN8FNYk+93Aw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 5318A13C20; Thu, 22 Jul 2021 11:50:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id FhkNE5Rb+WBrWQAAGKfGzw (envelope-from ); Thu, 22 Jul 2021 11:50:44 +0000 Date: Thu, 22 Jul 2021 13:50:42 +0200 From: Thomas Zimmermann To: Dave Airlie , Daniel Vetter Subject: [PULL] drm-misc-fixes Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dim-tools@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Rodrigo Vivi , Sean Paul , intel-gfx@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Dave and Daniel, here's the PR for drm-misc-fixes. There's a UAPI change where -ENOTTY is now being returned for non-DRM ioctls. Best regards Thomas drm-misc-fixes-2021-07-22: Short summary of fixes pull: * Return -ENOTTY for non-DRM ioctls * amdgpu: Fix COW checks * nouveau: init BO GME fields * panel: Avoid double free * ttm: Fix refcounting in ttm_global_init(); NULL checks * vc4: Fix interrupt handling The following changes since commit 9e5c772954406829e928dbe59891d08938ead04b: drm/ttm: add a check against null pointer dereference (2021-07-14 17:16:16 +0200) are available in the Git repository at: git://anongit.freedesktop.org/drm/drm-misc tags/drm-misc-fixes-2021-07-22 for you to fetch changes up to 7bbcb919e32d776ca8ddce08abb391ab92eef6a9: drm/panel: raspberrypi-touchscreen: Prevent double-free (2021-07-22 11:37:03 +0200) ---------------------------------------------------------------- Short summary of fixes pull: * Return -ENOTTY for non-DRM ioctls * amdgpu: Fix COW checks * nouveau: init BO GME fields * panel: Avoid double free * ttm: Fix refcounting in ttm_global_init(); NULL checks * vc4: Fix interrupt handling ---------------------------------------------------------------- Charles Baylis (1): drm: Return -ENOTTY for non-drm ioctls Christian König (1): drm/nouveau: init the base GEM fields for internal BOs Felix Kuehling (1): drm/amdgpu: workaround failed COW checks for Thunk VMAs Jason Ekstrand (1): drm/ttm: Force re-init if ttm_global_init() fails Maxime Ripard (2): drm/vc4: hdmi: Drop devm interrupt handler for CEC interrupts drm/panel: raspberrypi-touchscreen: Prevent double-free Pavel Skripkin (1): drm/ttm: add missing NULL checks drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 9 ++++ drivers/gpu/drm/drm_ioctl.c | 3 ++ drivers/gpu/drm/nouveau/nouveau_bo.c | 6 +++ .../gpu/drm/panel/panel-raspberrypi-touchscreen.c | 1 - drivers/gpu/drm/ttm/ttm_bo.c | 3 ++ drivers/gpu/drm/ttm/ttm_bo_util.c | 3 ++ drivers/gpu/drm/ttm/ttm_device.c | 2 + drivers/gpu/drm/vc4/vc4_hdmi.c | 49 +++++++++++++++------- include/drm/drm_ioctl.h | 1 + 9 files changed, 60 insertions(+), 17 deletions(-) --- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer