mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergey Lebedev <lsa.uz@pm.me>
To: Fernando Rimoli <fernandorimoli11@gmail.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans de Goede <hansg@kernel.org>,
	Dan Scally <dan.scally@ideasonboard.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] media: ipu-bridge: Add upside-down sensor quirks for the Surface Pro 9
Date: Tue, 15 Sep 2026 07:56:24 +0000	[thread overview]
Message-ID: <20260915075619.96025-1-lsa.uz@pm.me> (raw)
In-Reply-To: <20260915000140.47125-1-fernandorimoli11@gmail.com>

Two things your commit message says are ones I have checked on the Surface
Pro 11, so for what it is worth from another submitter rather than a
reviewer.

That nothing in the bridge turns pixels - measured. One static scene captured
through libcamera with the property at 0 and at 180, vertical brightness
profiles correlated: +0.995 the same way up against -0.781 flipped. Asking
explicitly for rot0 with the entry in place makes libcamera answer "Camera
configuration adjusted" and hand back the same frame - it tells the
application it cannot, rather than doing it. That was on a 7.3.0-rc1 built
from media/next with libcamera 0.5.0, on a Surface Pro 11 for Business
(Intel), firmware 17.105.143.

What happens above the bridge, which your last paragraph leaves open, has an
answer now too. German Pablo Lindo tested the SP11 entry on a second
machine. The image is correct in Gnome Snapshot and in Firefox, and still
inverted in qcam. His reading is that the first two take the frame through
pipewire while qcam talks to libcamera directly. So an application that reads
the property does turn the image the right way up; the one that ignores it is
qcam.

That the entry only fires when the HID matches - read rather than measured.
ipu_bridge_parse_rotation() walks every DMI match rather than stopping at the
first, and returns 180 only where acpi_dev_hid_match() also succeeds. That is
what makes DMI_PRODUCT_NAME safe for a model that might have shipped
different sensors, and it is the same reasoning behind the SP11 entry.

On your note that mine no longer applies
========================================

You are right, and I would rather be exact about where, because the tree
decides it. Checked today:

  media/next, 27953c0449        table ends 960QHA / OVTI02E1    mine applies
  mainline master               no 960XFH                       mine applies
  linux-next                    has 960XFH                      conflict

The 960XFH entry is Felipe Calliari's Samsung Book3 Ultra patch of
2026-09-05, which has reached linux-next but not media/next. So as posted mine
still applies to the tree it is aimed at. It stops doing so when that entry
arrives there, and then it wants exactly the one-line fix you describe - as
does yours, for the same reason.

Thank you for raising it rather than letting it be found later.

Sergey


      reply	other threads:[~2026-09-15  7:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15  0:01 Fernando Rimoli
2026-09-15  7:56 ` Sergey Lebedev [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=20260915075619.96025-1-lsa.uz@pm.me \
    --to=lsa.uz@pm.me \
    --cc=dan.scally@ideasonboard.com \
    --cc=fernandorimoli11@gmail.com \
    --cc=hansg@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /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®