Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp490890imu; Sat, 17 Nov 2018 03:59:20 -0800 (PST) X-Google-Smtp-Source: AJdET5fkSDRid70sVHIZHDy3aS8lUGAFmQ0UzqcPoevtZSp8mVieHxOJ/0arNfrJXnKBCKOBzZvE X-Received: by 2002:a63:8e43:: with SMTP id k64mr13270194pge.346.1542455960077; Sat, 17 Nov 2018 03:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542455960; cv=none; d=google.com; s=arc-20160816; b=miHMQpUKcE/F2OtTA3ttdhhUIkcobBa+cT9jGULsdKaCKWgbS/ldbxTlqawC/bZSCq axAM7kr7UPx/wT7Th5k4/4NvmadCMNaqTtezhHiufhT9YEdgFKm93QjLqugqicI2dF7H WbJlikoQH1mwZYSu/fU28bduelN0u2uDtthrwRMv/viqdlYnbGAKgCqYyNi0LV2ava4J x8c8tz6RSCVlSv94xDOAcPdQfmn27Gy1cF1UaahlsSzpA4dsY29MPPEb12etWcoBZ/xs nohxR4kOrqe6B6asbvfQ6XQg7fk/iwlF5DlGaqSOmrpkUIsStLkpnRhPnuEri05/XWYc sfOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Hpe5RNFGwzVZ/c6lJEAotJxwyFvoQ6g9ja2GP1j36SA=; b=iYE07NjXASFj1gr3s/kvFPCXP/Z41O91BenAB5jwt21azUroT8Lnu1+4mH7r9Y8PVK gfbTnnUpR2Ss9/U6en0rC4mV4vf8XDWIOv70ny3DmyNxiRdDkCavwWxzOio9Yp9pGBPz /da/xXb0/QvwX3pLA2Bnotk0lA9KW2KpASRS1oSkj1m7Acw6UH2fjV1wRwT96kv0gIts 6LUuraM3sOmgeU9ZpF1+ruRzl7pwQw2aTNS0RVIlANgKsJCqWWyVvlAu/TR2J949Ie3c NzqifsdGClgJzy56ooUMhdndEY8PaqJ0MigWnfJkD3DaOQJo7R6bMe3NAFZ1MyHzMu4c DGbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si16789437pfd.113.2018.11.17.03.58.50; Sat, 17 Nov 2018 03:59:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726128AbeKQWOK (ORCPT + 99 others); Sat, 17 Nov 2018 17:14:10 -0500 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]:57060 "EHLO lb2-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbeKQWOK (ORCPT ); Sat, 17 Nov 2018 17:14:10 -0500 Received: from [IPv6:2001:983:e9a7:1:b167:1e29:5b51:e4fb] ([IPv6:2001:983:e9a7:1:b167:1e29:5b51:e4fb]) by smtp-cloud8.xs4all.net with ESMTPA id NzEHgHLlQcvkSNzEIgT2QX; Sat, 17 Nov 2018 12:57:40 +0100 Subject: Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile To: Mauro Carvalho Chehab , Dan Williams Cc: linux-kernel@vger.kernel.org, vishal.l.verma@intel.com, ksummit-discuss@lists.linuxfoundation.org, Greg Kroah-Hartman , linux-nvdimm@lists.01.org, Dmitry Vyukov , Steve French , "Tobin C. Harding" , linux-media@vger.kernel.org References: <154225759358.2499188.15268218778137905050.stgit@dwillia2-desk3.amr.corp.intel.com> <154225760492.2499188.14152986544451112930.stgit@dwillia2-desk3.amr.corp.intel.com> <20181115074403.45d9a16a@silica.lan> From: Hans Verkuil Message-ID: <82b16038-b671-cf63-d85f-ffb65926585c@xs4all.nl> Date: Sat, 17 Nov 2018 12:57:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181115074403.45d9a16a@silica.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfA4fbTLxCjQatIUMtQlVWjx3JT0tvEzidbPqIom2lPgKM06mQV6gIrcBgP+w6ix9q9az5SfLKRWOkKxzaArnG/GSQrrGHxT/BUeI9pM75KP00i2eLBkJ G+XN+S32oc6Ygkg40COr4vYP7DtmvxLOvAJmf4utw1KoF9NqlSOjHErNlhtz1imlH5f84MO9Nh3ztiAe9LroIBgIEvBqMlDrLMpncYEwA1g9HJuAJn1L8El8 VMUu8pFww1Q3WZYmZbAFO5WcttNxTlas4L9G236KE7SiaqVbFDng4i6mEqycXRg5yFHBn+58BpwUT54Hv5x/R6pMH+DCfDukmpInfdemKMni70SOpMlF0paD yqkMvRNkyQHfJXsQc7ptHvoSPTlXIaetreNGzlJWwejvNrSdL+prW8MUMpi0/L7XT4SQfnniT2N4XqP1HEHFfvWrNTwe4XTrT4Ah6L1Ad1GJ6/fdAUufJR0P xh6dJLTFeQUHhkIEHxIa0l5FEV//YfeSDpYs5jdNq3HJcRQy+FjSDDo/qEtTcqqIMP//4YNCjfHqY4CiQUkJLl9+JyOx510Mci43NmFw9L3XbEuzdLMCgDsD FQUZa/GZIa8I6ZLRBWppXlFk+srINY5xLsu9xheN0A5qgt3Y9Dr1PjVoIZQ7JdGj1Pk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/2018 04:44 PM, Mauro Carvalho Chehab wrote: > Em Wed, 14 Nov 2018 20:53:25 -0800 > Dan Williams escreveu: > >> As presented at the 2018 Linux Plumbers conference [1], the Subsystem >> Profile is proposed as a way to reduce friction between committers and >> maintainers and perhaps encourage conversations amongst maintainers >> about best practice policies. >> >> The profile contains short answers to some of the common policy >> questions a contributor might have, or that a maintainer might consider >> formalizing. The current list of maintenance policies is: >> >> Overview: General introduction to maintaining the subsystem >> Core: List of source files considered core >> Leaf: List of source files that consume core functionality >> Patches or Pull requests: Simple statement of expected submission format >> Last -rc for new feature submissions: Expected lead time for submissions >> Last -rc to merge features: Deadline for merge decisions >> Non-author Ack / Review Tags Required: Patch review economics >> Test Suite: Pass this suite before requesting inclusion >> Resubmit Cadence: When to ping the maintainer >> Trusted Reviewers: Help for triaging patches >> Time Zone / Office Hours: When might a maintainer be available >> Checkpatch / Style Cleanups: Policy on pure cleanup patches >> Off-list review: Request for review gates >> TODO: Potential development tasks up for grabs, or active focus areas >> >> The goal of the Subsystem Profile is to set expectations for >> contributors and interim or replacement maintainers for a subsystem. >> >> See Documentation/maintainer/subsystem-profile.rst for more details, and >> a follow-on example profile for the libnvdimm subsystem. >> >> [1]: https://linuxplumbersconf.org/event/2/contributions/59/ >> >> Cc: Jonathan Corbet >> Cc: Thomas Gleixner >> Cc: Mauro Carvalho Chehab >> Cc: Steve French >> Cc: Greg Kroah-Hartman >> Cc: Linus Torvalds >> Cc: Tobin C. Harding >> Cc: Olof Johansson >> Cc: Martin K. Petersen >> Cc: Daniel Vetter >> Cc: Joe Perches >> Cc: Dmitry Vyukov >> Signed-off-by: Dan Williams > > Ok, I sort of followed the proposed model, adding a documentation for > the media subsystem using the template. > > I'm pretty sure this is incomplete and more work would be needed. > So, for now, this is just an example. > > Also, I didn't test building it on Sphinx (nor added any reference for it > at MAINTAINERS), as my main goal here was to see how the model would fit > for us. > > I noticed a few issues there: > > 1) Describing the "core" files. The media subsystem is complex: depending on > the device type, we have different APIs and different cores. So, our core > is actually a set of different cores. I ended by adding sub-sections. > > Also, several things were not described there. For example, we store > DVB frontend drivers on an specific directory. We have drivers there organized > by bus type. So, one directory for I2C, one for USB, one for PCI, ... > > It should probably make sense to be able to tell about that. > > So, I would actually prefer to have, at the profile, a "files" section, > instead of "core". > > 2) As I said before, on media, we have sub-maintainers. Not sure how to > describe them on this template. > > 3) I noticed one big missing thing there: in the case of media, we are > responsible also to maintaining media staging drivers, that goes at > drivers/staging/media. IMO, it would be important to be able to describe > who maintains staging stuff - e. g. if the subsystem maintainers prefer > to let staging up to staging maintainers or if they'll maintain themselves. > > In the latter, it probably makes sense to describe any specific thing > related to it (where staging will be at the tree, are there any special > rules for them?) > > Anyway, RFC patch follows. > > - > > [PATCH] [RFC] Add a system profile description for media subsystem > > This RFC aligns with current Dan's proposal for having subsystem > specific ruleset stored at the Kernel tree. > > On this initial RFC, I opted to not add the reviewers e-mail > (adding just a "<>") as a boilerplate. If we decide keeping emails > there, I'll add them. > > Signed-off-by: Mauro Carvalho Chehab > > diff --git a/Documentation/media/subsystem-profile.rst b/Documentation/media/subsystem-profile.rst > new file mode 100644 > index 000000000000..7a5d6f691d05 > --- /dev/null > +++ b/Documentation/media/subsystem-profile.rst > @@ -0,0 +1,186 @@ > +Media Subsystem Profile > +======================= > + > +Overview > +-------- > + > +The media subsystem cover support for a variety of devices: stream > +capture, analog and digital TV, cameras, remote controllers, HDMI CEC > +and media pipeline control. And radio tuners and modulators, including support for RDS (Radio Data System), and also software defined radio tuners and modulators. We also support video codecs (very important to mention this!) and video memory-to-memory processing (deinterlacers, scalers, etc.). There is also support for touch devices and VBI (Vertical Blanking Interface). > + > +Both our userspace and Kernel APIs are documented and should be kept in > +sync with the API changes. It means that all patches that add new > +features to the subsystem should also bring changes to the corresponding > +API files. > + > +Also, patches for device drivers that changes the Open Firmware/Device > +Tree bindings should be reviewed by the Device Tree maintainers. > + > +Due to the size and wide scope of the media subsystem, our > +maintainership model is to have sub-maintainers that have a broad > +knowledge of an specific aspect of the subsystem. It is a > +sub-maintainers task to review the patches, providing feedback to users > +if the patches are following the subsystem rules and are properly using > +the media internal and external APIs. > + > +We have a set of compliance tools at https://git.linuxtv.org/v4l-utils.git/ > +that should be used in order to check if the drivers are properly > +implementing the media APIs. New V4L2 and HDMI CEC drivers must pass their corresponding compliance tests before they are accepted into the kernel. Adding new public V4L2 or HDMI CEC APIs will also require adding new compliance tests to ensure that the new APIs are tested. > + > +Patches for the media subsystem should be sent to the media mailing list > +at linux-media@vger.kernel.org as plain text only e-mail. emails with > +HTML will be automacially rejected by the mail server. > + > +Our workflow is heavily based on Patchwork, meaning that, once a patch > +is submitted, it should appear at: > + > + - https://patchwork.linuxtv.org/project/linux-media/list/ > + > +If it doesn't automatically appear there after a few minutes, then > +probably something got wrong on your submission. Please check if the > +email is in plain text only and if your emailer is not mangling with > +whitespaces before complaining or submit it again. > + > +Core > +---- > + > +Documentation > ++++++++++++++ > + > +F: Documentation/media > + > +Kernelspace API headers > ++++++++++++++++++++++++ > + > +F: include/media/*.h > + > +Digital TV Core > ++++++++++++++++ > + > +F: drivers/media/dvb-core > + > +HDMI CEC Core > ++++++++++++++ > + > +F: drivers/media/cec > + > +Media Controller Core > ++++++++++++++++++++++ > + > +F: drivers/media/media-\*.[ch] > + > +Remote Controller Core > +++++++++++++++++++++++ > + > +F: drivers/media/rc/rc-core-priv.h > +F: drivers/media/rc/rc-ir-raw.c > +F: drivers/media/rc/rc-main.c > +F: drivers/media/rc/ir\*-decoder.c > +F: drivers/media/rc/lirc_dev.c > + > +Video4linux Core > +++++++++++++++++ > + > +F: drivers/media/v4l2-core We should mention vb2 here as well: F: drivers/media/common/videobuf2 It's a critical part of the V4L2/DVB core infrastructure. > + > +Patches or Pull requests > +------------------------ > + > +All patches should be submitted via e-mail for review. We use > +pull requests on our workflow between sub-maintainers and the > +maintainer. > + > + > +Last day for new feature submissions > +------------------------------------ > + > +Before -rc5 > + > + > +Last day to merge features > +-------------------------- > + > +Before -rc7 > + > + > +Non-author Ack / Review Tags Required > +------------------------------------- > + > +Not required, but desirable > + > + > +Test Suite > +---------- > + > +Use the several *-compliance tools that are part of the v4l-utils > +package. > + > + > +Trusted Reviewers > +----------------- > + > +Sub-maintainers > ++++++++++++++++ > + > +At the media subsystem, we have a group of senior developers that are > +responsible for doing the code reviews at the drivers (called > +sub-maintainers), and another senior developer responsible for the > +subsystem as a hole. For core changes, whenever possible, multiple > +media (sub-)maintainers do the review. > + > +The sub-maintainers work on specific areas of the subsystem, as > +described below: > + > +- Sensor drivers > + > + R: Sakari Ailus <> > + > +- V4L2 drivers > + > + R: Hans Verkuil <> > + > +- Media controller drivers > + > + R: Laurent Pinchart <> > + > +- HDMI CEC That's me as well :-) > + > +- Remote Controllers > + > + R: Sean Young <> > + > +- Digital TV > + > + R: Michael Krufky <> > + R: Sean Young <> > + > + > +Resubmit Cadence > +---------------- > + > +Provided that your patch is at https://patchwork.linuxtv.org, it should > +be sooner or later handled, so you don't need to re-submit a patch. > + > +Please notice that the media subsystem is a high traffic one, so it > +could take a while for us to be able to review your patches. Feel free > +to ping if you don't get a feedback on a couple of weeks. Hmm, I would prefer a ping in a week for high-prio patches. Otherwise wait 2-3 weeks. > + > +Time Zone / Office Hours > +------------------------ > + > +Media developers are distributed all around the globe. So, don't assume > +that we're on your time zone. We usually don't work on local holidays or > +at weekends. Please also notice that, during the Kernel merge window, > +we're usually busy ensuring that everything goes smoothly, meaning that > +we usually have a lot of patches waiting for review just after that. So > +you should expect a higher delay during the merge window and one week > +before/after it. > + > + > +Checkpatch / Style cleanups > +--------------------------- > + > +Standalone style-cleanups are welcome, but they should be grouped per > +directory. So, for example, if you're doing a cleanup at drivers > +under drivers/media, please send a single patch for all drivers under > +drivers/media/pci, another one for drivers/media/usb and so on. Regards, Hans > > > > > > Cheers, > Mauro >