From: "Christian König" <christian.koenig@amd.com>
To: "Noralf Trønnes" <noralf@tronnes.org>, dri-devel@lists.freedesktop.org
Cc: kraxel@redhat.com, liviu.dudau@arm.com, linux@armlinux.org.uk,
jsarha@ti.com, tomi.valkeinen@ti.com, bskeggs@redhat.com,
linux+etnaviv@armlinux.org.uk, alexander.deucher@amd.com,
daniel.vetter@intel.com, vincent.abriou@st.com
Subject: Re: [PATCH 12/19] drm/radeon: Remove drm_debugfs_remove_files() call
Date: Fri, 27 Jan 2017 09:10:54 +0100 [thread overview]
Message-ID: <8bfbef93-1e62-bac2-e893-e0109ebc7621@amd.com> (raw)
In-Reply-To: <20170126225621.12314-13-noralf@tronnes.org>
Am 26.01.2017 um 23:56 schrieb Noralf Trønnes:
> drm_debugfs_cleanup() now removes all minor->debugfs_list entries
> automatically, so it's not necessary to call drm_debugfs_remove_files().
>
> Cc: alexander.deucher@amd.com
> Cc: christian.koenig@amd.com
> Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Great work! I wanted to do this for quite a while as well, but never
found time to look into it.
A good first step, but when we don't have radeon_debugfs_remove_files()
any more we don't need rdev->debugfs and all the related housekeeping
either.
Additional to that we have a couple of entries added/removed to the
minor manually, just grep for "debugfs_remove" in the radeon code. Those
calls can now be removed as well.
But all that can be done in separate patches, this one is Reviewed-by:
Christian König <christian.koenig@amd.com>.
Regards,
Christian.
> ---
> drivers/gpu/drm/radeon/radeon_device.c | 16 ----------------
> 1 file changed, 16 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
> index 8a1df2a..4b0c388 100644
> --- a/drivers/gpu/drm/radeon/radeon_device.c
> +++ b/drivers/gpu/drm/radeon/radeon_device.c
> @@ -1549,8 +1549,6 @@ int radeon_device_init(struct radeon_device *rdev,
> return r;
> }
>
> -static void radeon_debugfs_remove_files(struct radeon_device *rdev);
> -
> /**
> * radeon_device_fini - tear down the driver
> *
> @@ -1577,7 +1575,6 @@ void radeon_device_fini(struct radeon_device *rdev)
> rdev->rmmio = NULL;
> if (rdev->family >= CHIP_BONAIRE)
> radeon_doorbell_fini(rdev);
> - radeon_debugfs_remove_files(rdev);
> }
>
>
> @@ -1954,16 +1951,3 @@ int radeon_debugfs_add_files(struct radeon_device *rdev,
> #endif
> return 0;
> }
> -
> -static void radeon_debugfs_remove_files(struct radeon_device *rdev)
> -{
> -#if defined(CONFIG_DEBUG_FS)
> - unsigned i;
> -
> - for (i = 0; i < rdev->debugfs_count; i++) {
> - drm_debugfs_remove_files(rdev->debugfs[i].files,
> - rdev->debugfs[i].num_files,
> - rdev->ddev->primary);
> - }
> -#endif
> -}
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-01-27 8:11 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-26 22:56 [PATCH 00/19] drm: debugfs: Remove all files automatically on cleanup Noralf Trønnes
2017-01-26 22:56 ` [PATCH 01/19] " Noralf Trønnes
2017-01-27 7:59 ` Daniel Vetter
2017-01-26 22:56 ` [PATCH 02/19] drm: drm_minor_register(): Clean up debugfs on failure Noralf Trønnes
2017-01-26 22:56 ` [PATCH 03/19] drm/atomic: Remove drm_atomic_debugfs_cleanup() Noralf Trønnes
2017-01-27 8:49 ` Daniel Vetter
2017-01-26 22:56 ` [PATCH 04/19] drm/amd/amdgpu: Remove drm_debugfs_remove_files() call Noralf Trønnes
2017-01-27 8:12 ` Christian König
2017-01-26 22:56 ` [PATCH 05/19] drm/armada: Remove armada_drm_debugfs_cleanup() Noralf Trønnes
2017-01-26 22:56 ` [PATCH 06/19] drm/etnaviv: allow build with COMPILE_TEST Noralf Trønnes
2017-01-27 9:57 ` Lucas Stach
2017-01-27 14:24 ` Daniel Vetter
2017-01-26 22:56 ` [PATCH 07/19] drm/etnaviv: Remove etnaviv_debugfs_cleanup() Noralf Trønnes
2017-01-27 9:57 ` Lucas Stach
2017-01-26 22:56 ` [PATCH 08/19] drm/hdlcd: Remove hdlcd_debugfs_cleanup() Noralf Trønnes
2017-01-27 11:47 ` Local user for Liviu Dudau
2017-01-26 22:56 ` [PATCH 09/19] drm/msm: Remove drm_debugfs_remove_files() calls Noralf Trønnes
2017-01-27 7:52 ` Daniel Vetter
2017-01-26 22:56 ` [PATCH 10/19] drm/nouveau: Remove nouveau_drm_debugfs_cleanup() Noralf Trønnes
2017-01-26 22:56 ` [PATCH 11/19] drm/omap: Remove omap_debugfs_cleanup() Noralf Trønnes
2017-01-27 8:06 ` Tomi Valkeinen
2017-01-26 22:56 ` [PATCH 12/19] drm/radeon: Remove drm_debugfs_remove_files() call Noralf Trønnes
2017-01-27 8:10 ` Christian König [this message]
2017-01-26 22:56 ` [PATCH 13/19] drm/sti: Remove drm_debugfs_remove_files() calls Noralf Trønnes
2017-01-27 10:38 ` Vincent ABRIOU
2017-01-26 22:56 ` [PATCH 14/19] drm/tegra: Remove tegra_debugfs_cleanup() Noralf Trønnes
2017-01-27 7:53 ` Daniel Vetter
2017-01-27 9:37 ` Thierry Reding
2017-01-26 22:56 ` [PATCH 15/19] drm/tilcdc: Remove tilcdc_debugfs_cleanup() Noralf Trønnes
2017-01-27 10:03 ` Jyri Sarha
2017-01-26 22:56 ` [PATCH 16/19] drm/vc4: Remove vc4_debugfs_cleanup() Noralf Trønnes
2017-01-27 17:56 ` Eric Anholt
2017-01-30 8:49 ` Daniel Vetter
2017-01-26 22:56 ` [PATCH 17/19] drm/virtio: Remove virtio_gpu_debugfs_takedown() Noralf Trønnes
2017-01-26 22:56 ` [PATCH 18/19] drm/qxl: Remove qxl_debugfs_takedown() Noralf Trønnes
2017-01-26 22:56 ` [PATCH 19/19] drm/i915: Remove i915_debugfs_unregister() Noralf Trønnes
2017-01-27 7:49 ` [PATCH 00/19] drm: debugfs: Remove all files automatically on cleanup Daniel Vetter
2017-01-27 9:36 ` Thierry Reding
2017-01-27 14:05 ` Daniel Vetter
2017-01-30 8:58 ` Thierry Reding
2017-01-30 9:03 ` Daniel Vetter
2017-01-30 9:10 ` Thierry Reding
2017-03-07 23:08 ` Daniel Vetter
2017-01-27 14:23 ` Noralf Trønnes
2017-01-27 14:29 ` Daniel Vetter
2017-03-01 14:31 ` Daniel Vetter
2017-03-01 22:55 ` Noralf Trønnes
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=8bfbef93-1e62-bac2-e893-e0109ebc7621@amd.com \
--to=christian.koenig@amd.com \
--cc=alexander.deucher@amd.com \
--cc=bskeggs@redhat.com \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jsarha@ti.com \
--cc=kraxel@redhat.com \
--cc=linux+etnaviv@armlinux.org.uk \
--cc=linux@armlinux.org.uk \
--cc=liviu.dudau@arm.com \
--cc=noralf@tronnes.org \
--cc=tomi.valkeinen@ti.com \
--cc=vincent.abriou@st.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.