mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-06 08:17:06 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
From f270d47c08b26493116cc3111baaf52718775584 Mon Sep 17 00:00:00 2001
|
|
From: Matthias Brugger <matthias.bgg@gmail.com>
|
|
Date: Tue, 29 Oct 2024 12:24:29 +0100
|
|
Subject: [PATCH] drm/v3d: Drop allocation of object without mountpoint
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Commit d28292aa48d1917db39fac6bcdaf991ba0ed279f upstream
|
|
|
|
Function drm_gem_shmem_create_with_mnt() creates an object
|
|
without using the mountpoint if gemfs is NULL.
|
|
|
|
Drop the else branch calling drm_gem_shmem_create().
|
|
|
|
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
|
|
Signed-off-by: Maíra Canal <mcanal@igalia.com>
|
|
Link: https://patchwork.freedesktop.org/patch/msgid/20241029-v3d-v2-1-c0d3dd328d1b@gmail.com
|
|
---
|
|
drivers/gpu/drm/v3d/v3d_bo.c | 9 ++-------
|
|
1 file changed, 2 insertions(+), 7 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/v3d/v3d_bo.c
|
|
+++ b/drivers/gpu/drm/v3d/v3d_bo.c
|
|
@@ -157,13 +157,8 @@ struct v3d_bo *v3d_bo_create(struct drm_
|
|
struct v3d_bo *bo;
|
|
int ret;
|
|
|
|
- /* Let the user opt out of allocating the BOs with THP */
|
|
- if (v3d->gemfs)
|
|
- shmem_obj = drm_gem_shmem_create_with_mnt(dev, unaligned_size,
|
|
- v3d->gemfs);
|
|
- else
|
|
- shmem_obj = drm_gem_shmem_create(dev, unaligned_size);
|
|
-
|
|
+ shmem_obj = drm_gem_shmem_create_with_mnt(dev, unaligned_size,
|
|
+ v3d->gemfs);
|
|
if (IS_ERR(shmem_obj))
|
|
return ERR_CAST(shmem_obj);
|
|
bo = to_v3d_bo(&shmem_obj->base);
|