All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>,
	Matt Roper <matthew.d.roper@intel.com>,
	<intel-xe@lists.freedesktop.org>, <anshuman.gupta@intel.com>
Subject: Re: [PATCH] drm/xe: select CONFIGFS_FS dependency
Date: Mon, 22 Dec 2025 10:10:08 -0500	[thread overview]
Message-ID: <aUlfUKVo5Kfv8sZy@intel.com> (raw)
In-Reply-To: <18e569c3-188f-43eb-931d-3aa7f449aac6@intel.com>

On Sun, Dec 21, 2025 at 04:18:56PM +0530, Riana Tauro wrote:
> 
> 
> On 12/19/2025 10:12 PM, Michal Wajdeczko wrote:
> > 
> > 
> > On 12/19/2025 5:32 PM, Matt Roper wrote:
> > > On Fri, Dec 19, 2025 at 11:04:06AM -0500, Rodrigo Vivi wrote:
> > > > On Fri, Dec 19, 2025 at 01:35:14PM +0530, Riana Tauro wrote:
> > > > > Xe driver uses configfs functions to expose configuration to userspace.
> > > > > If CONFIGFS_FS is built as module (=m) when Xe is built-in (=y),
> > > > > undefined reference errors occur.
> > > > 
> > > > Perhaps we don't need  this middle phrase. Only the first and the last.
> > > > But anyway, we need the patch in. I just pushed it.
> > > > 
> > > > Thanks,
> > > > Rodrigo.
> > > > 
> > > > > Add select CONFIGFS_FS to ensure configfs is built at minimum required
> > > > > level.
> > > 
> > > If we make this change, shouldn't we also remove all of the #ifdef logic
> > > we have to support running without configfs?
> > 
> > but is it a good idea to always back select CONFIGFS ?
> > maybe the actual fix should be like this:
> > 
> > -xe-$(CONFIG_CONFIGFS_FS) += xe_configfs.o
> > +
> > +ifdef CONFIG_CONFIGFS_FS
> > +       xe-y += xe_configfs.o
> > +endif
> > 
> 
> Hi Matt/Michal
> 
> This was the first approach i tried. But if CONFIG_CONFIGFS_FS is set to m
> we get undefined references for the configfs functions
> 
> drivers/gpu/drm/xe/xe_configfs.o: in function
> `xe_configfs_get_psmi_enabled':
> xe_configfs.c:(.text+0x182c): undefined reference to `config_item_put'
> 
>  drivers/gpu/drm/xe/xe_configfs.o: in function `xe_configfs_init':
> xe_configfs.c:(.init.text+0x24): undefined reference to `config_group_init'
> 
> We should either change the header checks to have IS_BUILTIN
> 
> or select.
> 
> Since there are many other drivers selecting CONFIGFS and this is seen in
> powerpc builds. Sent this as the first patch
> 
> drivers/gpio/Kconfig:1979:      select CONFIGFS_FS
> drivers/acpi/Kconfig:518:       select CONFIGFS_FS

Riana, could you please give a try on Jani's suggestion?

 depends on CONFIGFS_FS || CONFIGFS_FS=n

> 
> Thanks
> Riana
> 
> > 
> > > 
> > > 
> > > Matt
> > > 
> > > > > 
> > > > > Cc: Matt Roper <matthew.d.roper@intel.com>
> > > > > Reported-by: kernel test robot <lkp@intel.com>
> > > > > Closes: https://lore.kernel.org/oe-kbuild-all/202512190827.IeXYj4qg-lkp@intel.com/
> > > > > Closes: https://lore.kernel.org/oe-kbuild-all/202512181854.hPyTAXc5-lkp@intel.com/
> > > > > Closes: https://lore.kernel.org/oe-kbuild-all/202512190407.CcUFXX2F-lkp@intel.com/
> > > > > Fixes: 16280ded45fb ("drm/xe: Add configfs to enable survivability mode")
> > > > > Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> > > > > ---
> > > > >   drivers/gpu/drm/xe/Kconfig | 1 +
> > > > >   1 file changed, 1 insertion(+)
> > > > > 
> > > > > diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
> > > > > index 4b288eb3f5b0..1094c5fc5bdf 100644
> > > > > --- a/drivers/gpu/drm/xe/Kconfig
> > > > > +++ b/drivers/gpu/drm/xe/Kconfig
> > > > > @@ -46,6 +46,7 @@ config DRM_XE
> > > > >   	select WANT_DEV_COREDUMP
> > > > >   	select AUXILIARY_BUS
> > > > >   	select REGMAP if I2C
> > > > > +	select CONFIGFS_FS
> > > > >   	help
> > > > >   	  Driver for Intel Xe2 series GPUs and later. Experimental support
> > > > >   	  for Xe series is also available.
> > > > > -- 
> > > > > 2.47.1
> > > > > 
> > > 
> > 
> 

  reply	other threads:[~2025-12-22 15:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-19  8:05 [PATCH] drm/xe: select CONFIGFS_FS dependency Riana Tauro
2025-12-19  8:26 ` ✓ CI.KUnit: success for " Patchwork
2025-12-19  9:00 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-19 16:04 ` [PATCH] " Rodrigo Vivi
2025-12-19 16:32   ` Matt Roper
2025-12-19 16:42     ` Michal Wajdeczko
2025-12-19 16:53       ` Matt Roper
2025-12-19 17:00       ` Vivi, Rodrigo
2025-12-21 10:48       ` Riana Tauro
2025-12-22 15:10         ` Rodrigo Vivi [this message]
2025-12-22 12:42   ` Jani Nikula
2026-01-02 14:57     ` Riana Tauro
2026-01-02 15:13       ` Jani Nikula
2025-12-20 10:07 ` ✗ Xe.CI.Full: failure for " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aUlfUKVo5Kfv8sZy@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=riana.tauro@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.