Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp658127lqp; Wed, 12 Jun 2024 12:08:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfwT1VURcAVzIPwzBHV1IuGOjs1hsSCcfgwUi848q53R4cipmMH+/ywMW598Lxb0nFfjVnVKp607DwJ8dWOzihX9ohyWHd8LgilfLihQ== X-Google-Smtp-Source: AGHT+IF9G4rienpCrEbTktDk8S5kTD5jfdSXk0dV+BRgBXq6cOaU9SSuTt8OjFVYeWwRxXn8PPwG X-Received: by 2002:a05:6a20:7491:b0:1b4:53e3:5903 with SMTP id adf61e73a8af0-1b8a9b8b36bmr3098234637.27.1718219292576; Wed, 12 Jun 2024 12:08:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718219292; cv=pass; d=google.com; s=arc-20160816; b=CBqw15iZQYhwS0bJUNhLTUUROAhh6xpUcPswK4uLV0h13arNJm/9+HOLv3X2BKptXF jBP01Ld0sP1eFDxlYt8HnTmC2oly//SXTbbQkaiKhnsp7CwPlxH92tR6lBFJJ2elHvwv KN4wdaCtiFcJFeKlSSQDFkVXn6/B9bUR22XwqJHWirtfTUJwtP0hYa+FQpvH1z9hu0sG hjrEJhFpFNmZ3jfoMqjAI6ARBn4RlNaXJeaZcQFf8psn9yQ/YTnij8A9hpJudy8zPaYo 7uPRCE1DI8hZuK6fu8MbknKr+hzDyY3LLhs4KXV2mOLJDBAa7vGs6dlcOa7kYS0jXZw4 rZ2Q== 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=o+pRTmLNwNp5L6tILdDFLaBhmlgze7iVzlTyqCF2owQ=; fh=cb+eH0pCUQu+tYcK/qtNMiCnvMOESzuo7OOv2qyxGFA=; b=IV0glZveXFu+TfJKBJEhLznmyH+2HyK/A2C+pgDEgk/tmdiz6lUT1bZAvOUvGNj0Ec 4vS8vspGqhrZhZE2N+NKpExMSyyXPpkRVARGAbeRwAZBRny3jrpzI4XIyg1WgFI3mu8A Zv6H0CYH1leYB/5VDsX/2gAtk7uP/4M6OGT9M2QFAw2EQ/zUwfa/lSq/ojSnaAso+6cY Bg2xbxEqasVncj4+DYlqAfQ4iIv6yqoqYVbrL3t+NdgwShpqcT7Q9+JcOQQziNXiTfPC kVibMJaJoiTPntNOUngC65O7OCM1EwH/T8APLMM7BHa+1KFSkMe1iRQPGZXWQ2wHK1vB HNMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Tp+/ReVB"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 98e67ed59e1d1-2c4a9c8608fsi1919220a91.138.2024.06.12.12.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:08:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212135-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=@kernel.org header.s=k20201202 header.b="Tp+/ReVB"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 87DCE2848FE for ; Wed, 12 Jun 2024 19:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 358E882C76; Wed, 12 Jun 2024 19:07:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tp+/ReVB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 309B22F3B; Wed, 12 Jun 2024 19:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718219242; cv=none; b=is1F+Ymb5Y4dmSirjsY1lMw4LqfwQqR+29srd4rs/9KS0aGJ0aVSNMVyQT+sXXB3LLOCZyJmxaY6jfiUQ8cC7xu/0i6Podrgxa1a8qDf8K7p/BMGzdqMcFmC2OM5dwSsmpBdwK5h6I8ApCsNjjdgoLiMz7+4IRuJfyCm0ZvzzdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718219242; c=relaxed/simple; bh=co3JLRVjCdgIMVek7zva2k02tHosLsHbny7zqnwE6UM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VqKVCmeL+xP5tsUpeOGDJybGs7qx4xFx8R4pOVlIXgOgyETwWfpaXss/CO3R28wY82+byJk6dipoMXzvVygxo1pmi+++9D0eB3PztT5YlULcAixTXVPClfBV5wA5zstrfFOW3HRQQ6lg7oaSvU7GoCm0vzA6AGkhYcNvwmkoQVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tp+/ReVB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0698C116B1; Wed, 12 Jun 2024 19:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718219241; bh=co3JLRVjCdgIMVek7zva2k02tHosLsHbny7zqnwE6UM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Tp+/ReVBLeZqSTlO4XqIY2FqWn5Vsqw50lcbJijpkOcw3OQ+1OtB2Fgm0cZEYnm7m 6RqCLfKwW33/W4+sObF8o5Gq/mctFI+sCCdz4gmP6x4ByBL3kVDlOgyJK6T4NwiN5m EjPRWveoElkbL8pwH0NHcbfmg3GjhZiWfU17Pu6K0BrFcpe07LMpqm/omex1/G/dO4 J8E3G396HVLF6DlRHwcbbqbgSH3logQ5nFjtuJdtx4n5CaEjAEO67ctVLOX2lyYlMZ l14QBOUjEwpQnBE50CcXlphrtilYYnCW+tXRZHNokZyQfC/i7HfENo/0h2NrEqqtPy 1JnJlHnD9HnCg== Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-254c411d816so18395fac.1; Wed, 12 Jun 2024 12:07:21 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVO722AeLRgMQl1ZXx1qlc+VfYXIbAQu7Vdei4poO2tFrxH3RzsqdDJUaE776G7AI31UihGbwpqFJYsaDGFj0zJGhWmJE8YgLLRqWGlKaISR6CJ6mVsKI8B/uGMeUkQMvtKhZ9iyVOhdPsUQ8wX+dAPArDFwnkskZ73I92YPd703UoKkyaa X-Gm-Message-State: AOJu0YwgaYqtwo6CylGVXS6DuDTAzWc8igtAr1ZknvSA4gpoJ+/TWJAw vxzjWCYR4uXRCsM5TP3Cl7e5IVpHhPod3orir1z369HL7Q97x4+dwsmkMRZmGmyAXHK/d9VCmBe aaw3HG/wcvKZ+bg4N9niz6ZNr01w= X-Received: by 2002:a05:6870:e2cc:b0:255:1fea:340d with SMTP id 586e51a60fabf-2551fea40d9mr1841541fac.0.1718219241080; Wed, 12 Jun 2024 12:07:21 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4b387b4d-f778-4891-9f07-df5fc0a093cd@redhat.com> <18cb82bb-51c6-4a52-80a4-6b1e3d95f99c@redhat.com> <20240612143956.GN28989@pendragon.ideasonboard.com> In-Reply-To: <20240612143956.GN28989@pendragon.ideasonboard.com> From: "Rafael J. Wysocki" Date: Wed, 12 Jun 2024 21:07:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] ACPI: scan: Ignore Dell XPS 9320 camera graph port nodes To: Laurent Pinchart Cc: Hans de Goede , "Rafael J. Wysocki" , Sakari Ailus , Genes Lists , linux-kernel@vger.kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, wentong.wu@intel.com, linux-media@vger.kernel.org, linux-acpi@vger.kernel.org, "regressions@lists.linux.dev" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Laurent, On Wed, Jun 12, 2024 at 4:40=E2=80=AFPM Laurent Pinchart wrote: > > On Wed, Jun 12, 2024 at 04:30:30PM +0200, Hans de Goede wrote: > > On 6/12/24 3:06 PM, Rafael J. Wysocki wrote: > > > On Wed, Jun 12, 2024 at 2:47=E2=80=AFPM Sakari Ailus wrote: > > >> On Wed, Jun 12, 2024 at 02:32:26PM +0200, Rafael J. Wysocki wrote: > > >>>>>>> I just hit the same problem on another Dell laptop. It seems th= at > > >>>>>>> all Dell laptops with IPU6 camera from the Tiger Lake, Alder La= ke > > >>>>>>> and Raptor Lake generations suffer from this problem. > > >>>>>>> > > >>>>>>> So instead of playing whack a mole with DMI matches we should > > >>>>>>> simply disable ACPI MIPI DISCO support on all Dell laptops > > >>>>>>> with those CPUs. I'm preparing a fix for this to replace > > >>>>>>> the DMI matching now. > > >>>>>> > > >>>>>> DisCo for Imaging support shouldn't be dropped on these systems,= and this > > >>>>>> isn't what your patch does either. Instead the ACPI graph port n= odes (as > > >>>>>> per Linux specific definitions) are simply dropped, i.e. this is= n't related > > >>>>>> to DisCo for Imaging at all. > > >>>>> > > >>>>> So it looks like the changelog of that patch could be improved, r= ight? > > >>>> > > >>>> Well, yes. The reason the function is in the file is that nearly a= ll camera > > >>>> related parsing is located there, not that it would be related to = DisCo for > > >>>> Imaging as such. > > >>> > > >>> So IIUC the camera graph port nodes are created by default with the > > >>> help of the firmware-supplied information, but if that is defective= a > > >>> quirk can be added to skip the creation of those ports in which cas= e > > >>> they will be created elsewhere. > > >>> > > >>> Is this correct? > > >> > > >> Yes. > > > > > > So it would be good to add a comment to this effect to > > > acpi_nondev_subnode_extract() where acpi_graph_ignore_port() is > > > called. > > > > > > And there is a somewhat tangential question that occurred to me: If > > > the nodes are created elsewhere when acpi_graph_ignore_port() is true= , > > > why is it necessary to consult the platform firmware for the > > > information on them at all? Wouldn't it be better to simply always > > > create them elsewhere? > > > > That is a good question. The ACPI MIPI DISCO specification is an > > attempt standardize how MIPI cameras and their sensors are described > > in ACPI. > > > > But this is not actually being used by any Windows drivers atm. The win= dows > > drivers rely on their own custom ACPI data which gets translated into > > standard Linux device-properties by: drivers/media/pci/intel/ipu-bridge= .c > > > > and so far AFAIK there are 0 laptops where there actually is 100% funct= ional > > ACPI MIPI information. I believe that some work is in place to get corr= ect > > usable ACPI MIPI information in place in the ACPI tables of some Meteor= Lake > > laptops. But I believe that there too it does not work yet with the BIO= S > > version with which current Windows models are shipping. It is being fix= ed > > for systems which have Linux support from the vendor but I suspect that > > I think it's shipped in Chrome Books. Sakari can confirm. > > > on other models if ACPI MIPI DISCO information is there it will not > > necessarily be reliable because AFAICT Windows does not actually use it= . > > > > And TBH this has me worried about camera support for Meteor Lake device= s > > going forward. We really need to have 1 reliable source of truth here a= nd > > using information which is ignored by Windows does not seem like the be= st > > source to use. > > As long as the Windows drivers don't use the ACPI data that Linux uses, > you can be 100% sure it will be wrong. That will never be fixed if Intel > doesn't address the issue on their side, and effort we would put in > standardizing that data for machines shipped by Windows OEMs is a waste > of time in my opinion. Our only option, given Intel's failure, is to > keep reverse-engineering camera support per machine for the time being > (sometimes with the help of OEMs). So while I kind of agree with you on the technical side (as you can see from my messages in this thread), there is one thing in the above paragraph that I need to react to. Namely, both I and Sakari are Intel employees. Do you think or are you suggesting that we are somehow responsible for this failure? Because I personally don't think like I have anything to do with it. What do you mean, specifically, by saying "if Intel doesn't address the issue on their side"? And who at Intel do I need to talk to about this?