mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Ricardo Ribalda <ribalda@chromium.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH 0/9] media: uvcvideo: Implement Granular Power Saving
Date: Mon, 2 Dec 2024 13:10:27 +0100	[thread overview]
Message-ID: <42d06183-107e-4945-b83c-72be857c2067@redhat.com> (raw)
In-Reply-To: <20241126-uvc-granpower-ng-v1-0-6312bf26549c@chromium.org>

Hi Ricardo,

On 26-Nov-24 5:18 PM, Ricardo Ribalda wrote:
> Right now we power-up the device when a user open() the device and we
> power it off when the last user close() the first video node.
> 
> This behaviour affects the power consumption of the device is multiple
> use cases, such as:
> - Polling the privacy gpio
> - udev probing the device
> 
> This patchset introduces a more granular power saving behaviour where
> the camera is only awaken when needed. It is compatible with
> asynchronous controls.
> 
> While developing this patchset, two bugs were found. The patchset has
> been developed so these fixes can be taken independently.

Thank you for your patch series. For now lets focus on fixing the
async-controls ctrl->handle setting / dangling ptr issue and then
we can look into the rest of this later (after we have also landed
the privacy GPIO and UVC 1.5 ROi series).

Regards,

Hans




> ---
> Ricardo Ribalda (9):
>       media: uvcvideo: Do not set an async control owned by other fh
>       media: uvcvideo: Remove dangling pointers
>       media: uvcvideo: Keep streaming state in the file handle
>       media: uvcvideo: Move usb_autopm_(get|put)_interface to status_get
>       media: uvcvideo: Add a uvc_status guard
>       media: uvcvideo: Increase/decrease the PM counter per IOCTL
>       media: uvcvideo: Make power management granular
>       media: uvcvideo: Do not turn on the camera for some ioctls
>       media: uvcvideo: Remove duplicated cap/out code
> 
>  drivers/media/usb/uvc/uvc_ctrl.c   |  52 +++++++++-
>  drivers/media/usb/uvc/uvc_status.c |  38 +++++++-
>  drivers/media/usb/uvc/uvc_v4l2.c   | 190 +++++++++++++++----------------------
>  drivers/media/usb/uvc/uvcvideo.h   |   6 ++
>  4 files changed, 166 insertions(+), 120 deletions(-)
> ---
> base-commit: 72ad4ff638047bbbdf3232178fea4bec1f429319
> change-id: 20241126-uvc-granpower-ng-069185a6d474
> 
> Best regards,


      parent reply	other threads:[~2024-12-02 12:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-26 16:18 Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 1/9] media: uvcvideo: Do not set an async control owned by other fh Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 2/9] media: uvcvideo: Remove dangling pointers Ricardo Ribalda
2024-11-27  7:26   ` Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 3/9] media: uvcvideo: Keep streaming state in the file handle Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 4/9] media: uvcvideo: Move usb_autopm_(get|put)_interface to status_get Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 5/9] media: uvcvideo: Add a uvc_status guard Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 6/9] media: uvcvideo: Increase/decrease the PM counter per IOCTL Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 7/9] media: uvcvideo: Make power management granular Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 8/9] media: uvcvideo: Do not turn on the camera for some ioctls Ricardo Ribalda
2024-11-26 16:18 ` [PATCH 9/9] media: uvcvideo: Remove duplicated cap/out code Ricardo Ribalda
2024-12-02 12:10 ` Hans de Goede [this message]

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=42d06183-107e-4945-b83c-72be857c2067@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=guennadi.liakhovetski@intel.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab+samsung@kernel.org \
    --cc=mchehab@kernel.org \
    --cc=ribalda@chromium.org \
    --cc=stable@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®