dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>
Cc: linux-graphics-maintainer@vmware.com,
	dri-devel@lists.freedesktop.org, sroland@vmware.com
Subject: Re: [PATCH 3/3] drm/ttm: drop sysfs directory
Date: Wed, 3 Feb 2021 12:28:28 +0100	[thread overview]
Message-ID: <YBqI3Je9ssGgNoPx@phenom.ffwll.local> (raw)
In-Reply-To: <20210128131604.149660-3-christian.koenig@amd.com>

On Thu, Jan 28, 2021 at 02:16:04PM +0100, Christian König wrote:
> Not used any more.
> 
> Signed-off-by: Christian König <christian.koenig@amd.com>

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

> ---
>  drivers/gpu/drm/ttm/ttm_module.c | 50 --------------------------------
>  drivers/gpu/drm/ttm/ttm_module.h |  2 --
>  2 files changed, 52 deletions(-)
> 
> diff --git a/drivers/gpu/drm/ttm/ttm_module.c b/drivers/gpu/drm/ttm/ttm_module.c
> index f6566603a60f..56b0efdba1a9 100644
> --- a/drivers/gpu/drm/ttm/ttm_module.c
> +++ b/drivers/gpu/drm/ttm/ttm_module.c
> @@ -37,66 +37,16 @@
>  
>  #include "ttm_module.h"
>  
> -static DECLARE_WAIT_QUEUE_HEAD(exit_q);
> -static atomic_t device_released;
>  struct dentry *ttm_debugfs_root;
>  
> -static struct device_type ttm_drm_class_type = {
> -	.name = "ttm",
> -	/**
> -	 * Add pm ops here.
> -	 */
> -};
> -
> -static void ttm_drm_class_device_release(struct device *dev)
> -{
> -	atomic_set(&device_released, 1);
> -	wake_up_all(&exit_q);
> -}
> -
> -static struct device ttm_drm_class_device = {
> -	.type = &ttm_drm_class_type,
> -	.release = &ttm_drm_class_device_release
> -};
> -
> -struct kobject *ttm_get_kobj(void)
> -{
> -	struct kobject *kobj = &ttm_drm_class_device.kobj;
> -	BUG_ON(kobj == NULL);
> -	return kobj;
> -}
> -
>  static int __init ttm_init(void)
>  {
> -	int ret;
> -
> -	ret = dev_set_name(&ttm_drm_class_device, "ttm");
> -	if (unlikely(ret != 0))
> -		return ret;
> -
> -	atomic_set(&device_released, 0);
> -	ret = drm_class_device_register(&ttm_drm_class_device);
> -	if (unlikely(ret != 0))
> -		goto out_no_dev_reg;
> -
>  	ttm_debugfs_root = debugfs_create_dir("ttm", NULL);
>  	return 0;
> -out_no_dev_reg:
> -	atomic_set(&device_released, 1);
> -	wake_up_all(&exit_q);
> -	return ret;
>  }
>  
>  static void __exit ttm_exit(void)
>  {
> -	drm_class_device_unregister(&ttm_drm_class_device);
> -
> -	/**
> -	 * Refuse to unload until the TTM device is released.
> -	 * Not sure this is 100% needed.
> -	 */
> -
> -	wait_event(exit_q, atomic_read(&device_released) == 1);
>  	debugfs_remove(ttm_debugfs_root);
>  }
>  
> diff --git a/drivers/gpu/drm/ttm/ttm_module.h b/drivers/gpu/drm/ttm/ttm_module.h
> index 2f03c2fcf570..d7cac5d4b835 100644
> --- a/drivers/gpu/drm/ttm/ttm_module.h
> +++ b/drivers/gpu/drm/ttm/ttm_module.h
> @@ -33,10 +33,8 @@
>  
>  #define TTM_PFX "[TTM] "
>  
> -struct kobject;
>  struct dentry;
>  
> -extern struct kobject *ttm_get_kobj(void);
>  extern struct dentry *ttm_debugfs_root;
>  
>  #endif /* _TTM_MODULE_H_ */
> -- 
> 2.25.1
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2021-02-03 11:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-28 13:16 [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3 Christian König
2021-01-28 13:16 ` [PATCH 2/3] drm/ttm: move memory accounting into vmwgfx v3 Christian König
2021-02-02 13:04   ` Christian König
2021-02-02 15:14     ` Zack Rusin
2021-02-02 15:16       ` Christian König
2021-02-02 17:42         ` Zack Rusin
2021-02-03  2:45           ` [Linux-graphics-maintainer] " Zack Rusin
2021-02-03  8:20             ` Christian König
2021-02-08 13:35               ` Christian König
2021-02-08 13:39                 ` Daniel Vetter
2021-02-08 20:21                 ` Zack Rusin
2021-02-08 20:23                   ` Christian König
2021-02-08 20:40                     ` Zack Rusin
2021-01-28 13:16 ` [PATCH 3/3] drm/ttm: drop sysfs directory Christian König
2021-02-03 11:28   ` Daniel Vetter [this message]
2021-02-03 11:26 ` [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3 Daniel Vetter
2021-02-03 12:18   ` Christian König
  -- strict thread matches above, loose matches on Subject: below --
2021-02-08 13:32 [PATCH 1/3] drm/ttm: rework ttm_tt page limit v4 Christian König
2021-02-08 13:32 ` [PATCH 3/3] drm/ttm: drop sysfs directory Christian König
2021-01-26 14:48 [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3 Christian König
2021-01-26 14:48 ` [PATCH 3/3] drm/ttm: drop sysfs directory Christian König
2021-01-25 13:25 [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3 Christian König
2021-01-25 13:25 ` [PATCH 3/3] drm/ttm: drop sysfs directory Christian König

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=YBqI3Je9ssGgNoPx@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=ckoenig.leichtzumerken@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-graphics-maintainer@vmware.com \
    --cc=sroland@vmware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox