From patchwork Tue Jan 23 02:20:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Airlie X-Patchwork-Id: 13526776 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 526AFC46CD2 for ; Tue, 23 Jan 2024 02:20:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 921FC10F42C; Tue, 23 Jan 2024 02:20:23 +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 AD7F810F42C for ; Tue, 23 Jan 2024 02:20:22 +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-590-7RCL8IAjM8a5SQA6zX8sOQ-1; Mon, 22 Jan 2024 21:20:20 -0500 X-MC-Unique: 7RCL8IAjM8a5SQA6zX8sOQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 BFAAC185A780; Tue, 23 Jan 2024 02:20:19 +0000 (UTC) Received: from dreadlord.redhat.com (unknown [10.64.136.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 23754C0FDCA; Tue, 23 Jan 2024 02:20:17 +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:20:15 +1000 Message-ID: <20240123022015.1288588-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 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: , Cc: Dave Airlie , Rajneesh Bhardwaj , Steven Rostedt 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 Tested-by: Steven Rostedt (Google) --- 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);