Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp83555lqe; Wed, 3 Apr 2024 23:35:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQQA8lcZp85ZUqwi4FYmx5IRbF77rOCaQSAAUwRBMDvgdRSo2cqTOcU4B6BHwWzuSWJjT6V2uNvpMoZOQmEpK6dFowoo2FLmq6b+OBqQ== X-Google-Smtp-Source: AGHT+IHn/lcXTWXYJej1oGt4axeU9zYzA+Tu828pBgmiOd8nk68t+F1QMm9RS2dNw8LkxM9NL8qV X-Received: by 2002:a17:903:41c9:b0:1e2:a1a8:5f49 with SMTP id u9-20020a17090341c900b001e2a1a85f49mr2723245ple.24.1712212543269; Wed, 03 Apr 2024 23:35:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712212543; cv=pass; d=google.com; s=arc-20160816; b=MAiBBh8phc1G8xqsrVHW3gS+CqyaIc3mRe76GyZn5DZ5jyFXnM8dhpDkVdiQLSV69C /uSHRecrfNyFyFgiyjof4Sacl8Z57WLgU3BbZtUisEdvgRXLGVGHwJB4kdsPoYh5kD6k C8K9Nmeo7v8+LEupjFWGMlyP1JQgXagmDliUGkuSpJWYL9PAKtwNt77qruWvhaG0+Xu0 XPvNrYHSFUrJopZun1TF94ETsAdvfJ8xWpR7+On2COGDoce93A7DUMNL9KWQREscRZHu Y0WGq7s+UvYuoY1RY3SLtDRw491v5WZI/hwLgqqEmEBC1/NirS+Kr//3zXE4v0Ii8P0W +Dnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=aUS+OYnFgkVlJtdzc5TCv6ib1nQIE7c9RlYNdnpE+8c=; fh=1TnxFor2GN0ePNxq//eHD41R+J+vUAnfISoFfFE8y10=; b=qOj3N1RhrQDQd9K5HIabUqvw/VN55gv35/L2d8Yk4XlUW5oHWh9bUL2yRXNVgxPx5Y T6ygXOi8dD1b90JGZZls0C3xEQv141A1NeGYM/Llola4TposfcXnyk6HY+SUNn2nqdUT Kh69ZanVlPmAEqPgxL3RVi1pOcxALVyRBq5vOVwqQMXesrLi78H0aqoi3Hd+CR4D/Ukk QScos+pRaeBZ+3GKhOgPyBeVvDT72hB/QJK6EJMFaE/dnYedRYdT7AZbgA3bcIkq8eIw qOF3DmX7C7HJYk8hSYMMVHn3jIdoFT6HEPpF5FXR+xoAJe00B9LbK99IzAsL854kkerW VySg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YmHMrmdb; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-130983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m23-20020a170902bb9700b001dda34e84c2si13761984pls.649.2024.04.03.23.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 23:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YmHMrmdb; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-130983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D0526287D7A for ; Thu, 4 Apr 2024 06:35:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E82618E20; Thu, 4 Apr 2024 06:35:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YmHMrmdb" Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01EAC22313 for ; Thu, 4 Apr 2024 06:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712212534; cv=none; b=MG93ozAtqn0qBOlfuNeBeQiHcrqxTRimE492PkkXyRux+OH6HxtIG02KYR3m+5SJrEfCQOutXshZ9m9DSoYIZizVSNdZtzbygQbA/T+KlcNesIgellgGYLE2qkDuOUaMIMOj0m7y4YfScpExl07uJVpBFf4EYBOb2P9EjtG8Q9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712212534; c=relaxed/simple; bh=H9b5JJlTquQKI2VM9qJwXhoYJq+49fLigdSgodwpAeI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PaZh4ZVfO3gZF+zLdVpSUgWYNq1LM4+UdHwkIC4micycYVhNc4ks+zBvJ4Ueq3sPxWik+aJeFCS1zjrKv5CxeshMWd4fdd1Wj3VrJ534iTYQ5U7Phg+ktv1AZw8ol6t32hzlMoBDnF+3Tanl3FFowgXdYG8vHTzXpuFh+G45LMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=YmHMrmdb; arc=none smtp.client-ip=209.85.222.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-78a16114b69so50749285a.0 for ; Wed, 03 Apr 2024 23:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712212531; x=1712817331; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aUS+OYnFgkVlJtdzc5TCv6ib1nQIE7c9RlYNdnpE+8c=; b=YmHMrmdb/HpI98l08cx9jfydLZhZEXfHmWtGpHfoy0ULLv+GlAhMvqWPtHbh4kuEnT 0iO2yp52VMshW5XSbkUAgPmaRWXC3q2bRE/EqUQZWf9x9QUPOThmrdeVPPIolxJmdoY1 GLcdfztDO5jleCo0NPZSeaH82I34vbsUO4y+8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712212531; x=1712817331; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aUS+OYnFgkVlJtdzc5TCv6ib1nQIE7c9RlYNdnpE+8c=; b=XtM32ioUIypL6FmioxxtzFzP8hjZNRBc6CEBbNiC4bcxPK+hZyC6cZBZwC8SQ29+E9 ROiQCtQ+CDe24e94b1JX24Sr9emo3u3IGE+RtRn9GHMqERMqb+d3+Uu9qsrmgj/xkgRU y59nGnoId43kw5qz416pA9ts3VynSCu7v/pnKZN9OFSImU0lBSyaOmu/UJE2dMrzghs6 KIlQUrQOWudE0j8bzJ6lExusyp2Bsd6fHue7xlqGYoE1FE293ug+t+ICcHcw99qz+1rO XZ7o+aaJL001ltS1rsTsgtf/I4MrgPPuechqiFRM+8H3wIWFPLmPUkfZuz1KBed+QXDT 0w7g== X-Forwarded-Encrypted: i=1; AJvYcCVV3ST9oL6fdq9M8BD2vkjoA2Gp5yKDkfzQ0xvWhyEVLu8icmHO+w8Nd1T92D3nCJtJOgc5xxJObKX3pvz2JNP5OyL0iZPcoYhE96Mq X-Gm-Message-State: AOJu0YyfZjL+tbZ3DqLHTABgJFgHjck6KVo/1g8DlsJhZ2VPUhH1H2mM xqa2yPyBpDIDpsnxQ1jWda7N8cfL1T4dZVMMckKU8IzR5bJxz+Rv22wRmrd5FCGlS46bf9hbHCs wOZQj X-Received: by 2002:a05:620a:404a:b0:78d:3c25:4f53 with SMTP id i10-20020a05620a404a00b0078d3c254f53mr4247471qko.6.1712212531575; Wed, 03 Apr 2024 23:35:31 -0700 (PDT) Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com. [209.85.219.44]) by smtp.gmail.com with ESMTPSA id g19-20020a37e213000000b0078d3d55dcbbsm518367qki.42.2024.04.03.23.35.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 23:35:30 -0700 (PDT) Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-6991e317e05so15843606d6.1 for ; Wed, 03 Apr 2024 23:35:30 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVAkwSbqJg4aukMxaKF6yrldTrbs4oJZjcskbndbrixae+husFr9I1pMJhkrKNdpbG1LXGYGKx3oASXeQeJeBvrHP4FBWtErxmUt5+m X-Received: by 2002:a05:6214:1ccf:b0:691:67f9:16e7 with SMTP id g15-20020a0562141ccf00b0069167f916e7mr2530909qvd.24.1712212529833; Wed, 03 Apr 2024 23:35:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325142611.15550-1-oleksandr@natalenko.name> <6046664.lOV4Wx5bFT@natalenko.name> <20240404011120.GH23803@pendragon.ideasonboard.com> In-Reply-To: <20240404011120.GH23803@pendragon.ideasonboard.com> From: Ricardo Ribalda Date: Thu, 4 Apr 2024 08:35:14 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] media/uvcvideo: add quirk for invalid dev_sof in Logitech C920 To: Laurent Pinchart Cc: Oleksandr Natalenko , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Mauro Carvalho Chehab , "hn.chen" , Hans Verkuil , Sergey Senozhatsky Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Laurent On Thu, 4 Apr 2024 at 03:11, Laurent Pinchart wrote: > > Hi Oleksandr, > > On Mon, Apr 01, 2024 at 06:45:16PM +0200, Oleksandr Natalenko wrote: > > On pond=C4=9Bl=C3=AD 25. b=C5=99ezna 2024 15:26:11, CEST Oleksandr Nata= lenko wrote: > > > Similarly to Logitech C922, C920 seems to also suffer from a firmware > > > bug that breaks hardware timestamping. > > > > > > Add a quirk for this camera model too. > > > > > > Before applying the quirk: > > > > > > ``` > > > 100 (4) [-] none 100 200717 B 212.919114 213.079004 33.727 fps ts mon= o/SoE > > > 101 (5) [-] none 101 200889 B 213.003703 213.114996 11.822 fps ts mon= o/SoE > > > 102 (6) [-] none 102 200926 B 213.035571 213.146999 31.379 fps ts mon= o/SoE > > > 103 (7) [-] none 103 200839 B 213.067424 213.179003 31.394 fps ts mon= o/SoE > > > 104 (0) [-] none 104 200692 B 213.293180 213.214991 4.430 fps ts mono= /SoE > > > 105 (1) [-] none 105 200937 B 213.322374 213.247001 34.254 fps ts mon= o/SoE > > > 106 (2) [-] none 106 201013 B 213.352228 213.279005 33.496 fps ts mon= o/SoE > > > =E2=80=A6 > > > ``` > > > > > > After applying the quirk: > > > > > > ``` > > > 154 (2) [-] none 154 192417 B 42.199823 42.207788 27.779 fps ts mono/= SoE > > > 155 (3) [-] none 155 192040 B 42.231834 42.239791 31.239 fps ts mono/= SoE > > > 156 (4) [-] none 156 192213 B 42.263823 42.271822 31.261 fps ts mono/= SoE > > > 157 (5) [-] none 157 191981 B 42.299824 42.303827 27.777 fps ts mono/= SoE > > > 158 (6) [-] none 158 191953 B 42.331835 42.339811 31.239 fps ts mono/= SoE > > > 159 (7) [-] none 159 191904 B 42.363824 42.371813 31.261 fps ts mono/= SoE > > > 160 (0) [-] none 160 192210 B 42.399834 42.407801 27.770 fps ts mono/= SoE > > > ``` > > > > > > Link: https://lore.kernel.org/lkml/5764213.DvuYhMxLoT@natalenko.name/ > > > Reviewed-by: Ricardo Ribalda > > > Signed-off-by: Oleksandr Natalenko > > > --- > > > drivers/media/usb/uvc/uvc_driver.c | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/u= vc/uvc_driver.c > > > index 723e6d5680c2e..444d7089885ea 100644 > > > --- a/drivers/media/usb/uvc/uvc_driver.c > > > +++ b/drivers/media/usb/uvc/uvc_driver.c > > > @@ -2573,7 +2573,8 @@ static const struct usb_device_id uvc_ids[] =3D= { > > > .bInterfaceClass =3D USB_CLASS_VIDEO, > > > .bInterfaceSubClass =3D 1, > > > .bInterfaceProtocol =3D 0, > > > - .driver_info =3D UVC_INFO_QUIRK(UVC_QUIRK_RESTORE_CTRL= S_ON_INIT) }, > > > + .driver_info =3D UVC_INFO_QUIRK(UVC_QUIRK_RESTORE_CTRL= S_ON_INIT > > > + | UVC_QUIRK_INVALID_DEVICE= _SOF) }, > > > /* Logitech HD Pro Webcam C922 */ > > > { .match_flags =3D USB_DEVICE_ID_MATCH_DEVICE > > > | USB_DEVICE_ID_MATCH_INT_INFO, > > > > > > > Gentle ping on this one. > > Ricardo, could you include this in the next version of your hw timestamp > series ? There are no outstanding comments on the series https://patchwork.linuxtv.org/project/linux-media/list/?series=3D12485 Do you need me to send a v11 with this patch? or you can take that directly from your tree? Thanks! > > > Also, should I have added: > > > > Fixes: 5d0fd3c806b9 ("[media] uvcvideo: Disable hardware timestamps by = default") > > > > ? > > I don't think that's needed, no. > > > (it's not that this change re-enables HW timestamping, but > > 5d0fd3c806b9 explicitly mentions C920 as affected) > > -- > Regards, > > Laurent Pinchart --=20 Ricardo Ribalda