public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "José Expósito" <jose.exposito89@gmail.com>
To: louis.chauvet@bootlin.com
Cc: hamohammed.sa@gmail.com, simona@ffwll.ch, melissa.srw@gmail.com,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	tzimmermann@suse.de, airlied@gmail.com,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	"José Expósito" <jose.exposito89@gmail.com>
Subject: [PATCH 00/16] drm/vkms: Add configfs support
Date: Tue, 18 Feb 2025 18:07:52 +0100	[thread overview]
Message-ID: <20250218170808.9507-1-jose.exposito89@gmail.com> (raw)

Hi everyone,

This series, to be applied on top of [1], allow to configure one or more VKMS
instances without having to reload the driver using configfs.

The series is structured in 3 blocks:

  - Patches 1..11: Basic device configuration. For simplicity, I kept the
    available options as minimal as possible.

  - Patches 12, 13 and 14: Allow to hot-plug and unplug connectors. This is not
    part of the minimal set of options, but I included in this series so it can
    be used as a template/example of how new configurations can be added.

  - Patches 15 and 16: New option to skip the default device creation and to-do
    cleanup.

The process of configuring a VKMS device is documented in "vkms.rst".

Finally, the code is thoroughly tested by a collection of IGT tests [2].

Best wishes,
José Expósito

[1] https://lore.kernel.org/all/20250218101214.5790-1-jose.exposito89@gmail.com/
[2] It is not in patchwork yet, but it'll appear here eventually:
    https://patchwork.freedesktop.org/project/igt/patches/?submitter=19782&state=*&q=&archive=both&delegate=

José Expósito (16):
  drm/vkms: Expose device creation and destruction
  drm/vkms: Add and remove VKMS instances via configfs
  drm/vkms: Allow to configure multiple planes via configfs
  drm/vkms: Allow to configure the plane type via configfs
  drm/vkms: Allow to configure multiple CRTCs via configfs
  drm/vkms: Allow to configure CRTC writeback support via configfs
  drm/vkms: Allow to attach planes and CRTCs via configfs
  drm/vkms: Allow to configure multiple encoders via configfs
  drm/vkms: Allow to attach encoders and CRTCs via configfs
  drm/vkms: Allow to configure multiple connectors via configfs
  drm/vkms: Allow to attach connectors and encoders via configfs
  drm/vkms: Allow to configure connector status
  drm/vkms: Allow to update the connector status
  drm/vkms: Allow to configure connector status via configfs
  drm/vkms: Allow to configure the default device creation
  drm/vkms: Remove completed task from the TODO list

 Documentation/gpu/vkms.rst                    |  98 +-
 drivers/gpu/drm/vkms/Kconfig                  |   1 +
 drivers/gpu/drm/vkms/Makefile                 |   3 +-
 drivers/gpu/drm/vkms/tests/vkms_config_test.c |  24 +
 drivers/gpu/drm/vkms/vkms_config.c            |   8 +-
 drivers/gpu/drm/vkms/vkms_config.h            |  26 +
 drivers/gpu/drm/vkms/vkms_configfs.c          | 918 ++++++++++++++++++
 drivers/gpu/drm/vkms/vkms_configfs.h          |   8 +
 drivers/gpu/drm/vkms/vkms_connector.c         |  26 +-
 drivers/gpu/drm/vkms/vkms_connector.h         |  18 +-
 drivers/gpu/drm/vkms/vkms_drv.c               |  18 +-
 drivers/gpu/drm/vkms/vkms_drv.h               |   4 +
 drivers/gpu/drm/vkms/vkms_output.c            |   2 +-
 13 files changed, 1138 insertions(+), 16 deletions(-)
 create mode 100644 drivers/gpu/drm/vkms/vkms_configfs.c
 create mode 100644 drivers/gpu/drm/vkms/vkms_configfs.h


base-commit: 9b6c03cb96b9e19bce2c2764d2c6dd4ccbd06c5d
prerequisite-patch-id: 1bff7bbc4ef0e29266265ac3dc009011c046f745
prerequisite-patch-id: 74a284d40a426a0038a7054068192238f7658187
prerequisite-patch-id: c3e34e88ad6a0acf7d9ded0cdb4745a87cf6fd82
prerequisite-patch-id: 9cd0dfaf8e21a811edbe5a2da7185b6f9055d42d
prerequisite-patch-id: f50c41578b639370a5d610af6f25c2077321a886
prerequisite-patch-id: 5a7219a51e42de002b8dbf94ec8af96320043489
prerequisite-patch-id: 67ea5d4e21b4ce4acbd6fc3ce83017f55811c49b
prerequisite-patch-id: 37a7fab113a32581f053c09f45efb137afd75a1b
prerequisite-patch-id: 475bcdc6267f4b02fb1bb2379145529c33684e4f
prerequisite-patch-id: d3114f0b3da3d8b5ad64692df761f1cf42fbdf12
prerequisite-patch-id: d1d9280fb056130df2050a09b7ea7e7ddde007c5
prerequisite-patch-id: 2c370f3de6d227fa8881212207978cce7bbb18ba
prerequisite-patch-id: 938b8fe5437e5f7bc22bffc55ae249a27d399d66
prerequisite-patch-id: ab0a510994fbe9985dc46a3d35e6d0574ddbb633
-- 
2.48.1


             reply	other threads:[~2025-02-18 17:08 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-18 17:07 José Expósito [this message]
2025-02-18 17:07 ` [PATCH 01/16] drm/vkms: Expose device creation and destruction José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:07 ` [PATCH 02/16] drm/vkms: Add and remove VKMS instances via configfs José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:07 ` [PATCH 03/16] drm/vkms: Allow to configure multiple planes " José Expósito
2025-02-25 11:01   ` Louis Chauvet
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:07 ` [PATCH 04/16] drm/vkms: Allow to configure the plane type " José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:07 ` [PATCH 05/16] drm/vkms: Allow to configure multiple CRTCs " José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:07 ` [PATCH 06/16] drm/vkms: Allow to configure CRTC writeback support " José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:07 ` [PATCH 07/16] drm/vkms: Allow to attach planes and CRTCs " José Expósito
2025-02-18 17:08 ` [PATCH 08/16] drm/vkms: Allow to configure multiple encoders " José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:08 ` [PATCH 09/16] drm/vkms: Allow to attach encoders and CRTCs " José Expósito
2025-02-18 17:08 ` [PATCH 10/16] drm/vkms: Allow to configure multiple connectors " José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:08 ` [PATCH 11/16] drm/vkms: Allow to attach connectors and encoders " José Expósito
2025-02-18 17:08 ` [PATCH 12/16] drm/vkms: Allow to configure connector status José Expósito
2025-02-18 17:08 ` [PATCH 13/16] drm/vkms: Allow to update the " José Expósito
2025-02-18 17:08 ` [PATCH 14/16] drm/vkms: Allow to configure connector status via configfs José Expósito
2025-02-18 17:08 ` [PATCH 15/16] drm/vkms: Allow to configure the default device creation José Expósito
2025-02-25 11:02   ` Louis Chauvet
2025-02-18 17:08 ` [PATCH 16/16] drm/vkms: Remove completed task from the TODO list José Expósito
2025-02-25 11:01   ` Louis Chauvet
2025-02-25 11:01 ` [PATCH 00/16] drm/vkms: Add configfs support Louis Chauvet
2025-02-25 17:56   ` José Expósito

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=20250218170808.9507-1-jose.exposito89@gmail.com \
    --to=jose.exposito89@gmail.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=louis.chauvet@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=melissa.srw@gmail.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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