From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (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 5D86D3B2FF6 for ; Fri, 14 Aug 2026 23:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786750423; cv=none; b=ADEoQGqWr290XDp1paczHMo8NtLpxlPwsHA/KEHueU4YW/u+MnAjTrCvjQBclq+DZYJzNO+GeeNFM4drTv90t1Mu6HFdbHy8gX7tL7jbcqgkrqEaKfU30OK6cg7/WegasVxOX2O5r3+B5moHZOzBUKPe3QuBmuZzb2GKhoPSpoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786750423; c=relaxed/simple; bh=gTvnKda3k7bhjdlJ+DEWnw4iU5AwLz2j9KoiwZAwHaI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tsy+qk42CcMG9tZUHmw8dFcU6qVwu/6gVOXhTqA6NRj9OHjd+X1zkAYwiGkaa7xCfH1pAZDOB7nDjWT+xxrJZAo4QDeoI0Xwne9+fKQmYGjdp4GE+eiisjf9AgAV1tmRS4wp10r/he6i2sLfmQ7sbxVzIxxkuWUG5TJhXHcGygs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FqtL83wi; arc=none smtp.client-ip=209.85.128.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FqtL83wi" Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-836eac5682bso24495177b3.0 for ; Fri, 14 Aug 2026 16:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786750421; x=1787355221; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gTvnKda3k7bhjdlJ+DEWnw4iU5AwLz2j9KoiwZAwHaI=; b=FqtL83wiFhlBXcFRsLD5XO1RkkuWQ+vbxGUPAR63fL1iVLok2x4lKayJlNjzPGecay 4won7TXUwwhJQ7PsntbuawvpOHzj0yuXC8BmHM+vrbMGzO0xS9czgY09NFRY92pLQcoO SUoFJW/c8poM+dJVtngNXy0n/heqbHljrsmZZkJbfWqW6nPOl0Q1f0drZFt6VPqg3tmI /zK5uopE4hClFY5r7FvhGvgMlHJFReDLoWFOFv/aOXE5Pe5Uis1s9GLYcog6z0xIIvXx CXPnO910Km6zWp6L/Q7oalAqu2tDjqdLjk2zaMGq5hMJAuxMppA7uWSCmpUKiH1poI0h cYoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786750421; x=1787355221; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gTvnKda3k7bhjdlJ+DEWnw4iU5AwLz2j9KoiwZAwHaI=; b=qB79eFCoogho0m3KPqSCbIS3SY9Po5cXKh3wAoYhCgAICfm8svuZsLjOlgyftBPjVe ttR4aAdlnTmDTima/pA89sI0/0SlDzP+XLZUujuhJY6SjZTY+qc/muvz2TkNLN+OraZb ViiZcIpP7ufag6pyZaY5tRjMpAbiFqAccH7Vub0ILr/SkzlsOVgD3nwDl3Ssi5LxoJDi PMww55jdkAHpYipnaH/W09qecUasO9v7JmsgWIk/e0ex5vY977aUXrB9HpGwDsHCxWAl 4v76eyGK+RI4LGGqansT7baTZEBMrvnklGtNjP1eW1DShdqA+PQZEz8Dfe7JyYFIzchS gJMg== X-Forwarded-Encrypted: i=1; AHgh+Rpj+xgc88akF47Vsn2lrUnrVRXw0XJJzLs3Fzm4HhuTU9qfmT2y293rH16qR94GWHMtpMY47Ka69dLLPtk=@vger.kernel.org X-Gm-Message-State: AOJu0YzrA8aObErNr9a9sGLCnORs1Ku3M1HMqshs/EWbFiuEVZQ1Stgc AAwfwNccfV4IY7+PY4RXRzzMA8xdZybuqLDFGWvopSElOyJhI9v/f1Lo X-Gm-Gg: AR+sD13Lbb8NsOfRFUJMAOXjXaxYYzpOeUhXkERagvTIbVPBL0/xAbRAsyYwG1oWwr4 MEpTm4T09Kbyo0BU5VrLZXLG87ji0RU85zczfu5DCjBZPRqtZFKLRFD6CyoTWpFHqAd/t1yy86Y kG/PH9yIAtFlYe+Lm09juSfd7tGMaje1zNkzTjPmRKBgTZY2TjdHaL78RdQz8NW3Lu19AVm6XO1 wr/M1WfNBydhCxe9stj/7EE3top5cuzmCGg+BVJwqSaSEkiVsU5DiE5KkLShkLyyk8hy6HJun7D 9vyiDRuFcJtNJx9lHhhihN5yuLCrLEgxM7V3PUH6tPEAVg5HZCfRX73F7gEJIpkd48pmORi3SSi 17OkCHtPOjgFURp0Be79knQ3BNWnmtMomFsWVrvGdZ0N68KdvXj5z/FIdARUPJHf3yCiKae8xMR Dzs8XN4K1GbKmm/4Awj4WxPFgoz0zMz3+QG4bf9jN9p6qoDelZqBtOj8deSFROylsL/oAJhKoad jb1TiBuXX3/zxEXUOUQrf7zKbexF/TClSSO/iO4zh+9DY8YzJsIzA== X-Received: by 2002:a05:690c:d8c:b0:81e:d60b:ecc4 with SMTP id 00721157ae682-83489252cadmr74396087b3.17.1786750421310; Fri, 14 Aug 2026 16:33:41 -0700 (PDT) Received: from llmbox.. ([38.81.85.65]) by smtp.gmail.com with ESMTPSA id 00721157ae682-836bc69387dsm19676237b3.20.2026.08.14.16.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2026 16:33:40 -0700 (PDT) From: Michael Jordan To: Ricardo Ribalda , Hans Verkuil Cc: Michael Jordan , laurent.pinchart@ideasonboard.com, hansg@kernel.org, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: uvcvideo: query pan/tilt position from the device on every read Date: Fri, 14 Aug 2026 19:33:39 -0400 Message-ID: <20260814233339.973623-1-jordan.mymail@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20260725212332.64927-1-jordan.mymail@gmail.com> <20260731151509.577383-1-jordan.mymail@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Ricardo, On Fri, 31 Jul 2026 19:14:51 +0200, Ricardo Ribalda wrote: > You definitely have to ping the vendor to make sure they fix their firmware. Done -- I wrote to OBSBOT on 4 August covering the GET_INFO stub along with two other compliance defects I found on the device (a control default outside the control's own min/max, and PanTilt-Relative returning a constant). No response so far. I will report back if that changes. One thing I should have made explicit earlier, since it bears on whether this patch is the right general-case fix rather than a quirk for one broken camera: correcting that firmware would not make the position observable. The driver clears the control cache in exactly two places -- uvc_ctrl_status_event() on a Control Change interrupt, and uvc_ctrl_commit_entity() after a SET_CUR commit for auto-update controls -- and __uvc_ctrl_load_cur() re-arms it after each read. So on a fully compliant device a host-commanded move yields two samples, both endpoints: the first G_CTRL after the commit reaches the device, but it runs microseconds after the command, when the actuator has not yet moved, and every later poll returns that value frozen until the end-of-movement interrupt. Under autonomous tracking there is no commit and no defined interrupt, so nothing invalidates the cache at all. So the limit is the caching model rather than the device. That is the case I would want the patch judged on, and it applies to correct firmware too. Worth flagging one side effect if OBSBOT does fix GET_INFO: with AUTO_UPDATE reported, uvc_ctrl_commit_entity() would begin clearing ctrl->loaded on this camera, so single-axis writes issued tens of milliseconds apart would start merging against live data and cancelling each other -- the second failure mode I measured. It would move the device from one horn of the read-modify-write question to the other, which is the pre-existing problem you identified and which this patch deliberately does not touch. No action needed from my side while we wait for Laurent, HansG or HansV. I am still happy to respin with the autonomous-tracking case argued in the commit message rather than in this thread, if that would help whoever picks it up. Best regards, Michael Jordan