From patchwork Tue Jan 23 02:19:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Airlie X-Patchwork-Id: 13526775 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5D232C46CD2 for ; Tue, 23 Jan 2024 02:19:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3D27C10F42E; Tue, 23 Jan 2024 02:19:56 +0000 (UTC) Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4131A10F42D for ; Tue, 23 Jan 2024 02:19:55 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-668-D0rdT3l_Nj25lJtBgvK5FQ-1; Mon, 22 Jan 2024 21:19:52 -0500 X-MC-Unique: D0rdT3l_Nj25lJtBgvK5FQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 F0E33845E36 for ; Tue, 23 Jan 2024 02:19:51 +0000 (UTC) Received: from dreadlord.redhat.com (unknown [10.64.136.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 311F8492BE2 for ; Tue, 23 Jan 2024 02:19:50 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/qxl: pass a device into ttm init. Date: Tue, 23 Jan 2024 12:19:49 +1000 Message-ID: <20240123021949.1288562-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: gmail.com 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Dave Airlie ttm init was changed to look at numa node, but that needed a device. Only qxl appears to not hand in a device, so just fix that. Fixes: b0a7ce53d494 ("drm/ttm: Schedule delayed_delete worker closer") Reported-by: Steven Rostedt Cc: Rajneesh Bhardwaj Signed-off-by: Dave Airlie --- drivers/gpu/drm/qxl/qxl_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 1a82629bce3f..1876419ea237 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -195,7 +195,7 @@ int qxl_ttm_init(struct qxl_device *qdev) int num_io_pages; /* != rom->num_io_pages, we include surface0 */ /* No others user of address space so set it to 0 */ - r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, NULL, + r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, qdev->ddev.dev, qdev->ddev.anon_inode->i_mapping, qdev->ddev.vma_offset_manager, false, false);