All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] drm/vkms: ConfigFS support
@ 2022-05-06  0:18 Jim Shargo
  2022-05-06  0:18 ` [RFC PATCH 1/1] drm/vkms: Add basic support for ConfigFS to VKMS Jim Shargo
  2022-05-09 15:10 ` [RFC PATCH 0/1] drm/vkms: ConfigFS support Daniel Vetter
  0 siblings, 2 replies; 6+ messages in thread
From: Jim Shargo @ 2022-05-06  0:18 UTC (permalink / raw)
  To: Rodrigo Siqueira, Melissa Wen
  Cc: Haneen Mohammed, Thomas Zimmermann, David Airlie, dri-devel, Jim Shargo

Hi!

I wanted to send this patch out early to get some feedback on the layout
of the code and new ConfigFS directory. I intend to follow this up with
a more complete patch set that uses this to, for instance, add more
connectors and toggle feature support.

A few questions I had as someone new to kernel dev:

1. Would you prefer laying out all the objects right now or add them
as-needed? IMO it’s nice to lay things out now to make future work that
much easier.

2. Is the layout of /config/vkms/<type>s/<id>/<attributes> OK? If VKMS
would eventually want to support installing multiple devices, we could
do something like /config/vkms/card<N>/<type>s/<id>/<attributes>.

3. Should I split out the documention into a separate change?

4. Any other style / design thoughts?

Thanks! I am excited to be reaching out and contributing.


Jim Shargo (1):
  drm/vkms: Add basic support for ConfigFS to VKMS

 Documentation/gpu/vkms.rst           |  23 +++++
 drivers/gpu/drm/Kconfig              |   1 +
 drivers/gpu/drm/vkms/Makefile        |   1 +
 drivers/gpu/drm/vkms/vkms_configfs.c | 129 +++++++++++++++++++++++++++
 drivers/gpu/drm/vkms/vkms_drv.c      |  10 +++
 drivers/gpu/drm/vkms/vkms_drv.h      |  25 ++++++
 drivers/gpu/drm/vkms/vkms_output.c   |   2 +
 drivers/gpu/drm/vkms/vkms_plane.c    |   2 +
 8 files changed, 193 insertions(+)
 create mode 100644 drivers/gpu/drm/vkms/vkms_configfs.c

-- 
2.36.0.512.ge40c2bad7a-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [RFC PATCH 1/1] drm/vkms: Add basic support for ConfigFS to VKMS
@ 2022-05-07  2:57 kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-05-07  2:57 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2409 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
In-Reply-To: <20220506001822.890772-2-jshargo@chromium.org>
References: <20220506001822.890772-2-jshargo@chromium.org>
TO: Jim Shargo <jshargo@chromium.org>

Hi Jim,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on drm/drm-next]
[also build test WARNING on v5.18-rc5 next-20220506]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Jim-Shargo/drm-vkms-ConfigFS-support/20220506-182056
base:   git://anongit.freedesktop.org/drm/drm drm-next
:::::: branch date: 17 hours ago
:::::: commit date: 17 hours ago
compiler: mipsel-linux-gcc (GCC) 11.3.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout e32fa3dd59fa0c63d6c7b007bddbc78a53cb40bc
        cppcheck --quiet --enable=style,performance,portability --template=gcc FILE

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cppcheck warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/vkms/vkms_configfs.c:15:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
    snprintf(name, CONFIGFS_ITEM_NAME_LEN, "%d", id);
    ^

vim +15 drivers/gpu/drm/vkms/vkms_configfs.c

e32fa3dd59fa0c Jim Shargo 2022-05-06   8  
e32fa3dd59fa0c Jim Shargo 2022-05-06   9  static void setup_configfs_object(uint32_t id, struct config_group *object,
e32fa3dd59fa0c Jim Shargo 2022-05-06  10  				  struct config_group *parent,
e32fa3dd59fa0c Jim Shargo 2022-05-06  11  				  struct config_item_type *type)
e32fa3dd59fa0c Jim Shargo 2022-05-06  12  {
e32fa3dd59fa0c Jim Shargo 2022-05-06  13  	char name[CONFIGFS_ITEM_NAME_LEN];
e32fa3dd59fa0c Jim Shargo 2022-05-06  14  
e32fa3dd59fa0c Jim Shargo 2022-05-06 @15  	snprintf(name, CONFIGFS_ITEM_NAME_LEN, "%d", id);
e32fa3dd59fa0c Jim Shargo 2022-05-06  16  	config_group_init_type_name(object, name, type);
e32fa3dd59fa0c Jim Shargo 2022-05-06  17  	configfs_add_default_group(object, parent);
e32fa3dd59fa0c Jim Shargo 2022-05-06  18  }
e32fa3dd59fa0c Jim Shargo 2022-05-06  19  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-08 15:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06  0:18 [RFC PATCH 0/1] drm/vkms: ConfigFS support Jim Shargo
2022-05-06  0:18 ` [RFC PATCH 1/1] drm/vkms: Add basic support for ConfigFS to VKMS Jim Shargo
2022-05-09 15:10 ` [RFC PATCH 0/1] drm/vkms: ConfigFS support Daniel Vetter
2022-06-06 21:59   ` Jim Shargo
2022-06-08 15:45     ` Daniel Vetter
2022-05-07  2:57 [RFC PATCH 1/1] drm/vkms: Add basic support for ConfigFS to VKMS kernel test robot

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.