Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1063571rda; Mon, 23 Oct 2023 00:48:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ46oe3F3Hi7yvm6r5Rcp23h6Gb2GtL6hCBs1kDDAigJG5j6ikDuYzqfEbWjBC9wo2KcC1 X-Received: by 2002:a17:90b:1098:b0:27d:54b9:c3d4 with SMTP id gj24-20020a17090b109800b0027d54b9c3d4mr8365464pjb.1.1698047332505; Mon, 23 Oct 2023 00:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698047332; cv=none; d=google.com; s=arc-20160816; b=OvMKmHvReBJZp6dlpdn7bFPWrbIXjbeQ0I76Jqp2YErHP0pzawJL6Gh8KwLxhExcYS Gwwj5HhLZMktg+suR3Wyq0xDxBi07Q6LUhAA1YqZmnSoAoEp5s0aO8rGe+GENyo0UeNp iaV5GjNsw8UOQDcEzLf5Q4ObVlOzrHTJKtAiQCUSMGUmBAI7SzYkB5XYEp64dIOMeLP/ VisnPFy96ZM9grOTx2P02Doc81mgcCfdXzfy+mS3ufltI9Ku+472i3xKzv+yMCOR5yrv wFjxqG9AJ91tEqxOfDxxkuYQiosLaxAe6gVqO9TDvEZE4Ef+hXU/Gh/1wmXS1gGk0pdB btAw== 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=gvfTjw8dSSlSiXvUaiK74LLIpEaLiwoPByusUIPVsI4=; fh=vGLQdWbpzZe7oKOugS+L+NqUjyMNya86JerJ9EiAn2A=; b=xRbDlmQsFckhPvm+sfD5BsVEdiV2LI2rxUH+XgLWs/3KF/3EpkoheHvKJgA6867JBc rUmNE+fP+gaMocXGsKjAZk3QG2zuoJ340yLrgDcPXJtCr4CcDX/g8f6mOm6qDXieRNLk Z0v1PYlfRsAKkV8Pbg8qewX3dRy2BWD2IxDDHO/nPunu0Xl9bbA7w/44er7AVCmrvUEQ pU4EpZZ8pL2Gn9UIz80tQfbrNYw3FJRD3VWnCwYcdsWG7Y3QUtwZfW1rUB+feA5PGYz9 8IKwHIDoPshhUs98lGSiBYclklPJv16eETsZuM37YtsOGZiWk1zZD7vtM1yZtiwzOVbu qlew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UYfaQSSN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id om17-20020a17090b3a9100b00274b668b762si6261756pjb.172.2023.10.23.00.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:48:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UYfaQSSN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 692828050026; Mon, 23 Oct 2023 00:48:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbjJWHsj (ORCPT + 99 others); Mon, 23 Oct 2023 03:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233657AbjJWHsM (ORCPT ); Mon, 23 Oct 2023 03:48:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF8E2D6B for ; Mon, 23 Oct 2023 00:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698047237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gvfTjw8dSSlSiXvUaiK74LLIpEaLiwoPByusUIPVsI4=; b=UYfaQSSNWsgfkwQitdTnNzmEn8x9UJqk3Hu9RaikyffQ+b18FhtLSvH6rl0sZTbyYM3PSx VM5374Lc2Ltp5yRkn0EKafw7CyyRTbxACCozbOMAYql2A6lhSsFmlSUzGXEaEk8OncMSWn ZQ6Yvj5ko2QCFyw64svBKZS8UPIf3ZQ= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-513-aJX6Sv2BP7ujtj9sq4BYhg-1; Mon, 23 Oct 2023 03:46:57 -0400 X-MC-Unique: aJX6Sv2BP7ujtj9sq4BYhg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 55D6F1C06E1A; Mon, 23 Oct 2023 07:46:56 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.225.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AA46503B; Mon, 23 Oct 2023 07:46:51 +0000 (UTC) From: Albert Esteve To: qemu-devel@nongnu.org Cc: zackr@vmware.com, contact@emersion.fr, linux-doc@vger.kernel.org, dri-devel@lists.freedesktop.org, Maxime Ripard , iforbes@vmware.com, Maarten Lankhorst , Chia-I Wu , Thomas Zimmermann , Hans de Goede , Matt Roper , David Airlie , banackm@vmware.com, Rob Clark , javierm@redhat.com, krastevm@vmware.com, spice-devel@lists.freedesktop.org, Gurchetan Singh , Jonathan Corbet , David Airlie , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mombasawalam@vmware.com, Daniel Vetter , ppaalanen@gmail.com, VMware Graphics Reviewers , Gerd Hoffmann , David Airlie Subject: [PATCH v6 7/9] drm: Remove legacy cursor hotspot code Date: Mon, 23 Oct 2023 09:46:11 +0200 Message-ID: <20231023074613.41327-8-aesteve@redhat.com> In-Reply-To: <20231023074613.41327-1-aesteve@redhat.com> References: <20231023074613.41327-1-aesteve@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 00:48:50 -0700 (PDT) From: Zack Rusin Atomic modesetting supports mouse cursor offsets via the hotspot properties that are created on cursor planes. All drivers which support hotspots are atomic and the legacy code has been implemented in terms of the atomic properties as well. Due to the above the lagacy cursor hotspot code is no longer used or needed and can be removed. Signed-off-by: Zack Rusin Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/drm_plane.c | 3 --- include/drm/drm_framebuffer.h | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c index eaca367bdc7e7..1dc00ad4c33c3 100644 --- a/drivers/gpu/drm/drm_plane.c +++ b/drivers/gpu/drm/drm_plane.c @@ -1110,9 +1110,6 @@ static int drm_mode_cursor_universal(struct drm_crtc *crtc, return PTR_ERR(fb); } - fb->hot_x = req->hot_x; - fb->hot_y = req->hot_y; - if (plane->hotspot_x_property && plane->state) plane->state->hotspot_x = req->hot_x; if (plane->hotspot_y_property && plane->state) diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h index 0dcc07b686548..1e108c1789b1e 100644 --- a/include/drm/drm_framebuffer.h +++ b/include/drm/drm_framebuffer.h @@ -188,18 +188,6 @@ struct drm_framebuffer { * DRM_MODE_FB_MODIFIERS. */ int flags; - /** - * @hot_x: X coordinate of the cursor hotspot. Used by the legacy cursor - * IOCTL when the driver supports cursor through a DRM_PLANE_TYPE_CURSOR - * universal plane. - */ - int hot_x; - /** - * @hot_y: Y coordinate of the cursor hotspot. Used by the legacy cursor - * IOCTL when the driver supports cursor through a DRM_PLANE_TYPE_CURSOR - * universal plane. - */ - int hot_y; /** * @filp_head: Placed on &drm_file.fbs, protected by &drm_file.fbs_lock. */ -- 2.41.0