lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5863c61a424545119df8ccb28dc1dbf8@inspur.com>
Date: Wed, 13 Aug 2025 01:38:44 +0000
From: Gary Chu(楚光庆) <chuguangqing@...pur.com>
To: "tzimmermann@...e.de" <tzimmermann@...e.de>,
	"maarten.lankhorst@...ux.intel.com" <maarten.lankhorst@...ux.intel.com>,
	"mripard@...nel.org" <mripard@...nel.org>, "airlied@...il.com"
	<airlied@...il.com>, "simona@...ll.ch" <simona@...ll.ch>
CC: "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Gary Chu(楚光庆) <chuguangqing@...pur.com>
Subject: Re: [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper

Hi Thomas

This is what I've done in the yhgch_drm driver.
See the link below:
https://lore.kernel.org/all/20250808053508.52202-1-chuguangqing@inspur.com/T/#t

In fact, through modifications in Patch v2, it allows only the selection of 
DRM_VRAM_HELPER in the driver.
See the link below:
https://lore.kernel.org/all/20250729060728.82402-1-chuguangqing@inspur.com/T/#m3e33f8e155275ea548223c21777c191ecd392159

Best regards
Chuguangqing

> From: Thomas Zimmermann <tzimmermann@...e.de>
> To:chuguangqing <chuguangqing@...pur.com>; Maarten Lankhorst
> <maarten.lankhorst@...ux.intel.com>; Maxime Ripard <mripard@...nel.org>;
> David Airlie <airlied@...il.com>; Simona Vetter <simona@...ll.ch>
> Cc: dri-devel@...ts.freedesktop.org; linux-kernel@...r.kernel.org
> Subject: Re: [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper
>
> Hi
>
> Am 29.07.25 um 08:07 schrieb chuguangqing:
> > We encountered the following errors while compiling drm_vram_helper.ko
> >
> > ERROR: modpost: "drm_gem_ttm_print_info"
> [drivers/gpu/drm/drm_vram_helper.ko] undefined!
> > ERROR: modpost: "drm_gem_ttm_mmap"
> [drivers/gpu/drm/drm_vram_helper.ko] undefined!
> >
> > The functions drm_gem_ttm_mmap and drm_gem_ttm_print_info are
> defined in drm_gem_ttm_helper.c. This patch adds drm_gem_ttm_helper.o to
> DRM_VRAM_HELPER to resolve the undefined symbol errors.
>
> You need to select DRM_TTM_HELPER for your driver.
>
> Best regards
> Thomas
>
> >
> > Signed-off-by: chuguangqing <chuguangqing@...pur.com>
> > ---
> >   drivers/gpu/drm/Makefile | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index
> > 4dafbdc8f86a..abbe32ddf6d0 100644
> > --- a/drivers/gpu/drm/Makefile
> > +++ b/drivers/gpu/drm/Makefile
> > @@ -125,7 +125,7 @@ drm_suballoc_helper-y := drm_suballoc.o
> >   obj-$(CONFIG_DRM_SUBALLOC_HELPER) += drm_suballoc_helper.o
> >
> >   drm_vram_helper-y := drm_gem_vram_helper.o
> > -obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
> > +obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
> > +drm_gem_ttm_helper.o
> >
> >   drm_ttm_helper-y := drm_gem_ttm_helper.o
> >   drm_ttm_helper-$(CONFIG_DRM_FBDEV_EMULATION) +=
> drm_fbdev_ttm.o
>
> --
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Frankenstrasse 146, 90461 Nuernberg, Germany
> GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB
> 36809 (AG Nuernberg)
>


Download attachment "smime.p7s" of type "application/pkcs7-signature" (3931 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ