From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6F033DE422 for ; Mon, 29 Jun 2026 07:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782718880; cv=none; b=VQ74mIPg1y8CKKO60hXZOjMqNFPVY8Ahu8yUNJZ5dPZ8GiKpfoqX/UO66ccx06f22wBmyh69Lh9APfhYx44kna3MhNntWTdJiXUIt61fFAgeYAj+evItSJyiFJ3QCeSs1VA23qQBvd3JyHV7AqHEwBR1CIvT29qbAk9utLb0UZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782718880; c=relaxed/simple; bh=LmCfoAfqTzaypii7UNkAlnh3r+PDzWTSrj9G9wDOSx4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bL9YN3kJFJJ9LslUnmk4ql97IRVPqtb6HzzvhH193OqbYy2lNsG0DOa8alPxEeB49qIEMzfRNu5grNrVazQjVNCYXRxV4/r8ABmu8byf4AB01i/v4TErPZkBlbokwHvqrvylhWx9o+qVPq0TV5iDYL5eMsPlch5QVCOgd4By7i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aaogMZEC; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aaogMZEC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782718876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y76BXjB6jF0TQ2a3vQSuyC3iw7Y3ehjGpmne3lURBRk=; b=aaogMZECtTpPveFlxKwG9TAsG22RQPBfcyT9qBImrwhCoAtsvSGHDEHYj5O3TEjBCTM3xu ODTIXJa4+B7DwrBkZfr2HvJZOuzZqnAXzMAotUFAfBEGqxdyquxymDVAARBtRLOvthNx5p Xd0LncVrBqNcjfAS6y0cq88LCdMPEQw= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-550-Kf-2AfdjMyi_hxi54pBsmQ-1; Mon, 29 Jun 2026 03:41:09 -0400 X-MC-Unique: Kf-2AfdjMyi_hxi54pBsmQ-1 X-Mimecast-MFC-AGG-ID: Kf-2AfdjMyi_hxi54pBsmQ_1782718867 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4DD8E19560B9; Mon, 29 Jun 2026 07:41:07 +0000 (UTC) Received: from hpa-thinkpadx1carbongen12.taipei.com (unknown [10.67.32.110]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 118631956041; Mon, 29 Jun 2026 07:40:58 +0000 (UTC) From: Kate Hsuan To: Mauro Carvalho Chehab , Hans de Goede , Hans Verkuil , Sakari Ailus , Serin Yeh , Tarang Raval , Damjan Georgievski , Kieran Bingham Cc: computman , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Scally , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , platform-driver-x86@vger.kernel.org, Kate Hsuan Subject: [PATCH v6 1/4] media: ipu-bridge: Add DMI information of Lenovo X9 to the image upside-down list Date: Mon, 29 Jun 2026 03:40:23 -0400 Message-ID: <20260629074026.35490-2-hpa@redhat.com> In-Reply-To: <20260629074026.35490-1-hpa@redhat.com> References: <20260629074026.35490-1-hpa@redhat.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 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 The Lenovo X9 has an upside-down-mounted Sony IMX471 sensor so the image was displayed upside-down. Add the DMI information of Lenovo X9 to resolve the issue. Signed-off-by: Kate Hsuan --- drivers/media/pci/intel/ipu-bridge.c | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/pci/intel/ipu-bridge.c index 88581a4c081d..2474452b3015 100644 --- a/drivers/media/pci/intel/ipu-bridge.c +++ b/drivers/media/pci/intel/ipu-bridge.c @@ -134,6 +134,45 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = { }, .driver_data = "OVTI02C1", }, + /* + * The first four characters of DMI_BOARD_NAME identify the Lenovo + * machine type/model. For example, a DMI_BOARD_NAME starting with + * "21Q6" indicates a ThinkPad X9-15. + * + * Reference: https://psref.lenovo.com/ + */ + { + /* Lenovo X9-14 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_BOARD_NAME, "21QA"), + }, + .driver_data = "SONY471A", + }, + { + /* Lenovo X9-14 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_BOARD_NAME, "21QB"), + }, + .driver_data = "SONY471A", + }, + { + /* Lenovo X9-15 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_BOARD_NAME, "21Q6"), + }, + .driver_data = "SONY471A", + }, + { + /* Lenovo X9-15 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_BOARD_NAME, "21Q7"), + }, + .driver_data = "SONY471A", + }, {} /* Terminating entry */ }; -- 2.54.0