Jani Nikula
2021-Dec-15 11:04 UTC
[Nouveau] [PATCH v2 3/5] drm/dp: Move DisplayPort helpers into separate helper module
On Wed, 15 Dec 2021, Thomas Zimmermann <tzimmermann at suse.de> wrote:> * move DP helper code into dp/ (Jani)I suggested adding the subdirectory, but I'm going to bikeshed the name, which I didn't suggest. $ find drivers/gpu/drm -mindepth 1 -maxdepth 1 -type d | wc -l 68 Assuming we move more of the drm modules to subdirectories, how are they going to stand out from drivers? I suggested drm_dp, which I understand results in tautology, but hey, all the filenames under drm/ also have drm_*.[ch]. And I find that very useful for git greps and other code archeology. With just the dp name, you'd have to know and list all the drm subdirectories when looking up stuff that's part of drm but not drivers. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center
Thomas Zimmermann
2021-Dec-15 11:12 UTC
[Nouveau] [PATCH v2 3/5] drm/dp: Move DisplayPort helpers into separate helper module
Hi Am 15.12.21 um 12:04 schrieb Jani Nikula:> On Wed, 15 Dec 2021, Thomas Zimmermann <tzimmermann at suse.de> wrote: >> * move DP helper code into dp/ (Jani) > > I suggested adding the subdirectory, but I'm going to bikeshed the name, > which I didn't suggest. > > $ find drivers/gpu/drm -mindepth 1 -maxdepth 1 -type d | wc -l > 68 > > Assuming we move more of the drm modules to subdirectories, how are they > going to stand out from drivers? > > I suggested drm_dp, which I understand results in tautology, but hey, > all the filenames under drm/ also have drm_*.[ch]. And I find that very > useful for git greps and other code archeology. With just the dp name, > you'd have to know and list all the drm subdirectories when looking up > stuff that's part of drm but not drivers.I think we have enough filename prefixes already. drm/drm_dp/drm_dp_ is just ridiculous. Best regards Thomas> > > BR, > Jani. > >-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N?rnberg, Germany (HRB 36809, AG N?rnberg) Gesch?ftsf?hrer: Ivo Totev -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20211215/8e585962/attachment.sig>
Javier Martinez Canillas
2022-Jan-11 10:21 UTC
[Nouveau] [PATCH v2 3/5] drm/dp: Move DisplayPort helpers into separate helper module
On Wed, Dec 15, 2021 at 12:12 PM Thomas Zimmermann <tzimmermann at suse.de> wrote:> > Hi > > Am 15.12.21 um 12:04 schrieb Jani Nikula: > > On Wed, 15 Dec 2021, Thomas Zimmermann <tzimmermann at suse.de> wrote: > >> * move DP helper code into dp/ (Jani) > > > > I suggested adding the subdirectory, but I'm going to bikeshed the name, > > which I didn't suggest. > > > > $ find drivers/gpu/drm -mindepth 1 -maxdepth 1 -type d | wc -l > > 68 > > > > Assuming we move more of the drm modules to subdirectories, how are they > > going to stand out from drivers? > > > > I suggested drm_dp, which I understand results in tautology, but hey, > > all the filenames under drm/ also have drm_*.[ch]. And I find that very > > useful for git greps and other code archeology. With just the dp name, > > you'd have to know and list all the drm subdirectories when looking up > > stuff that's part of drm but not drivers. > > I think we have enough filename prefixes already. drm/drm_dp/drm_dp_ is > just ridiculous. >Maybe what can be done is to just add a drivers/gpu/drm/core subdirectory that would contain all the DRM core code ? Then the dp helpers could be moved to drivers/gpu/drm/core/dp/drm_dp.c for example. This would also make easy to differentiate the drm modules from the drivers with just: $ find drivers/gpu/drm -mindepth 1 -maxdepth 1 -type d -not -name core Best regards, Javier