From patchwork Wed Apr 5 11:04:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karol Herbst X-Patchwork-Id: 13201614 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 54390C76188 for ; Wed, 5 Apr 2023 11:05:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B08310E034; Wed, 5 Apr 2023 11:05:05 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D54510E034 for ; Wed, 5 Apr 2023 11:05:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680692703; h=from:from:reply-to:subject:subject: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=D1iQ5cfXUobOUC8Rzy8Kki+uzPzlUU+kbKGwGQ+L2M4=; b=i8OSyOy1ygJ0+XUXMRILNwTlpeaYipoaV9OYj62V3wsjGs9yZS65yIB0CXGmoClwzAWOcH txtOqB1awv4rg93mnr7JcmfVcMHyuLs/5e8cXeIEfwBGAqwyRL0lCGEmQjPc01FF2OhIG1 BvJeRSTLEgQpqpiJLVJPBBUIQvxjl/0= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-462-TyRWG7ZJMuOGpHvxLg-_9Q-1; Wed, 05 Apr 2023 07:05:02 -0400 X-MC-Unique: TyRWG7ZJMuOGpHvxLg-_9Q-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-3e03178131bso1280171cf.1 for ; Wed, 05 Apr 2023 04:05:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680692701; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D1iQ5cfXUobOUC8Rzy8Kki+uzPzlUU+kbKGwGQ+L2M4=; b=Sagg/Oiz9zcqfNTMO/NP0lV88sAbzsUDJx1/ZzW42MypqQdx/qbuyb5FK+00Q0AX8v HtPQLwWnLAuzQCc2a1RKtEZnuKufPBpn6LV37KCSddncVea2iRGQulBUSaHIwxDSH0Xy UcpznktJOf0n4EOJ2ONBW6if6Ic94J/qt7N89Jq3qahbhbnKy4+sg1egKqhDQbwgo+Qz KhvIivxHxOJiRQdEZcSQLGcfHPveY5rS4AfOUXqnUp13MJLqmLh7iMcpqMDHG+XPXHlx YzUTLqHLUNzmPvuKl44MMJn+Jg2ynZ/fy9aXjuYiF9ONC9q0oeYgmdbvY/wmfD//5Jfh 50Yw== X-Gm-Message-State: AAQBX9cPmHjE46F4+NeUW5UjcsZdQlrGDxOKEFIEKdDY4zRdw/jTDJuU qv/BO5j8cmfvNXs5AfiAWrOqQkF6aMY/Y1PzT5Vk5YL2ThepO3gxTy7GMf1xBbr1I2mVsKcoLEm qdOg6Vvt4tw4qALy+4IAwSSdvvEJI X-Received: by 2002:a05:622a:188e:b0:3e4:d3cc:4211 with SMTP id v14-20020a05622a188e00b003e4d3cc4211mr2771872qtc.3.1680692701427; Wed, 05 Apr 2023 04:05:01 -0700 (PDT) X-Google-Smtp-Source: AKy350aIXirj4rP1VlnrQftjsVcsEyJPTmnJjGaVkizUa1zfyv4BxeuGC8+LxXlqfSDIGNjW5Ljgig== X-Received: by 2002:a05:622a:188e:b0:3e4:d3cc:4211 with SMTP id v14-20020a05622a188e00b003e4d3cc4211mr2771837qtc.3.1680692701001; Wed, 05 Apr 2023 04:05:01 -0700 (PDT) Received: from kherbst.pingu.com (ip1f113ce7.dynamic.kabel-deutschland.de. [31.17.60.231]) by smtp.gmail.com with ESMTPSA id j3-20020a05620a146300b0074876c013f9sm4317207qkl.123.2023.04.05.04.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 04:04:58 -0700 (PDT) From: Karol Herbst To: linux-kernel@vger.kernel.org Subject: [PATCH] drm/nouveau/fb: add missing sysmen flush callbacks Date: Wed, 5 Apr 2023 13:04:55 +0200 Message-Id: <20230405110455.1368428-1-kherbst@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.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: nouveau@lists.freedesktop.org, Karol Herbst , Ben Skeggs , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Closes: https://gitlab.freedesktop.org/drm/nouveau/-/issues/203 Fixes: 5728d064190e1 ("drm/nouveau/fb: handle sysmem flush page from common code") Signed-off-by: Karol Herbst Reviewed-by: Lyude Paul Reviewed-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf108.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm107.c | 1 + 4 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf108.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf108.c index 76678dd60f93f..c4c6f67af7ccc 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf108.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf108.c @@ -31,6 +31,7 @@ gf108_fb = { .init = gf100_fb_init, .init_page = gf100_fb_init_page, .intr = gf100_fb_intr, + .sysmem.flush_page_init = gf100_fb_sysmem_flush_page_init, .ram_new = gf108_ram_new, .default_bigpage = 17, }; diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.c index f73442ccb424b..433fa966ba231 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.c @@ -77,6 +77,7 @@ gk104_fb = { .init = gf100_fb_init, .init_page = gf100_fb_init_page, .intr = gf100_fb_intr, + .sysmem.flush_page_init = gf100_fb_sysmem_flush_page_init, .ram_new = gk104_ram_new, .default_bigpage = 17, .clkgate_pack = gk104_fb_clkgate_pack, diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c index 45d6cdffafeed..4dc283dedf8b5 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c @@ -59,6 +59,7 @@ gk110_fb = { .init = gf100_fb_init, .init_page = gf100_fb_init_page, .intr = gf100_fb_intr, + .sysmem.flush_page_init = gf100_fb_sysmem_flush_page_init, .ram_new = gk104_ram_new, .default_bigpage = 17, .clkgate_pack = gk110_fb_clkgate_pack, diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm107.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm107.c index de52462a92bf0..90bfff616d35b 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm107.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm107.c @@ -31,6 +31,7 @@ gm107_fb = { .init = gf100_fb_init, .init_page = gf100_fb_init_page, .intr = gf100_fb_intr, + .sysmem.flush_page_init = gf100_fb_sysmem_flush_page_init, .ram_new = gm107_ram_new, .default_bigpage = 17, };