Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp541071lqp; Wed, 12 Jun 2024 08:56:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+/cvnSnnT/3gfC8E/Zs2fS0YJlq8KzsF624XJFp8wErp/V7PGNMe/z6v17F+xpf97ZeczMQFo6Sgy3HVMZuEvcFTCYjxRzkHf5S0wpQ== X-Google-Smtp-Source: AGHT+IEyMY3lTaqjSODRSh6tCG3STsqUSvCcejuJ+t6wvlsn62TGK2ulfe2T4IUfGn8pVqN8rXFp X-Received: by 2002:a05:6358:60c7:b0:199:2c57:4f8f with SMTP id e5c5f4694b2df-19f69d176c7mr274897955d.9.1718207766103; Wed, 12 Jun 2024 08:56:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718207766; cv=pass; d=google.com; s=arc-20160816; b=HtZKVOfKfEB7azx5sE0NFfQ8V68Eitpqy6AcO0G0IZUe2icmYvW0F+Js2axmxPPKee LuyqwH/jMmNmN61jWtidKdaUtQzazGHb23m+sNBG3xTW5f9nTpz0anMuhqFFFqC2hYPJ faTitBv8SzRAKF6s0bRa8c5nyqgImhtWKolekQXstf8o+M8LP20P0iJeaHn/jXl3RS+/ j+PuuCAsrFJ0VQn/mCUECGd9S3gs/U+RCrd81cL7okTitzWsqGaUwQiNjE8n55JjLZwt 2QBPswKWq64VMeYvXGZhb72hs9y2+zEiwppWOzudmEpMSaQdXC+GiLcE05Sik3rprElQ TJ7w== 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=gLmnxLT73YKfeIFiYLsAK+IwkzT3CnAhm0YWjvSN+nY=; fh=X3H+SLnssZxlTt5gIKwMjOkNILMGta0+IE5rvHOmy7I=; b=aolTU1EtO91kZR0tFCuQnqyOjjsiNSiVfmBDtN1rC+7XyZhr2rzQ0Fyzkwb0mDVMGq knCPLByOL04PUIVJ7bSK2q7p6VwFnVaiZNSk5sGEgfNYC+TpQyycXv23q2EgaFoGFSvN hXwka7lN/tEb5mhVlw3FVaH60BZLQ+oSPIS2neD9wzg9EPr5vxPH1ObFMa1bv3g2beJE uWIZD1B2pfEEiBqfV91/pl46uyeYjM0+0/VEl3dhPV7CRj6h+5/3HNbQekg6++VSNZ5d GvA7ip4k5ZjO/E3G1JZB+XvNcqVAdZQesNvRSL0ZERzWrb+qLGh0sZ6LoCcCBzPmHz1J AWXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AP3e0CNc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de294f8f68si11197908a12.721.2024.06.12.08.56.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:56:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AP3e0CNc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211787-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7996CB23EAA for ; Wed, 12 Jun 2024 15:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1960317FAA8; Wed, 12 Jun 2024 15:27:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AP3e0CNc" 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 2037F17C7C8; Wed, 12 Jun 2024 15:26:59 +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=1718206019; cv=none; b=PfFyu5TxTvkOaN/KRk2rEn7q0hLA2Ra4ysFkox/jY4XU/tzNYWKCIgXbniQOxEZ6KjyVJ27OEpEws3F3sIFwPjx6VVfJwcd+y8e/qkqIgkrB1lS5CB17+vXWx/FHxvD8WKsgf0V31s6hpTKaiHNA0FxalCW23vVGbYm5JyyOoCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718206019; c=relaxed/simple; bh=i0tIWVrxpXVNiH8UaLFBap5+2XPdFzrsjMX6/kJT1ns=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Y5gOdah5SD+NUAQj/9gLE0Rp8r/tI4cw/Y6nwfHiZg+dhndEk8OQB9ZL4IBGX6Yl0wm0vY+np40z9VmwFtqyKH+dUWMdsdHWO9XIc9YtSct682owyCIcEYQsStK3kuxdtl8Lv5awYXQYpeMFjtEugyriry2TYB8Jjfxi9T1niXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AP3e0CNc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01692C4AF50; Wed, 12 Jun 2024 15:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718206019; bh=i0tIWVrxpXVNiH8UaLFBap5+2XPdFzrsjMX6/kJT1ns=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AP3e0CNcf3s2NZtQ+jo2N0jCN7wOgdw/6YBMtvS38euYp3lQqnkUM+6aXRzIvA5NW 60vT8OcHim2lBiPy8S8Yswa9Ckrc452Ovq658cI9B3rmBvoZEIJ8h8f/Qvmc2noaAu ebigdw2mmdtI9HEgq0dOoAqlbVbQQ+NeKT/laGQmrtzVzkJw1dEyEANXFJRaryXPIl ht3qBcW/PnAJbNy4pJ9y4MBHTWwT7qcutAqAdZ7vYq/BQzbV5DiGxN4wr6qhuY3fdU 7kXHcHosxAPbt16JBuoVPvWSsW7kKeuDP1ppKSXshX3iVly72/248Akc3AMH78JiZ+ zByKcmBXZ8/5w== Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-254c411d816so111889fac.1; Wed, 12 Jun 2024 08:26:58 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVWEqmWwxIFYuDnDDt1uEIJohipS+eCLJN18zILUm8uj/VcaHkHoq/OnocNlMsUkr8sVEQ6SBEoMCY7wLDGd6sfxUSuA3+lXyYJlQSDI53745Gd7zSyfGZFkxHsrSKSxYGRjGVOGWc0E33IAO6BJWscAW+XsOKyDkerE6PGPQuKnFccYv0n X-Gm-Message-State: AOJu0YyEwh2UlI83TPXEej60Uihbu/4kbSwQwo8+PVJQclg3xB9IXVAH rv0LllpuHI8qzUkEvTIwQSWyma4XRj8qKfWTGNslvX7SLr4Hn8bUk0jjQzGHcZyuq2mmsC1x35O 8osLrxRbVY3GZ5CZKh/otw866drw= X-Received: by 2002:a05:6871:5813:b0:254:d417:34ff with SMTP id 586e51a60fabf-255151dd450mr2398277fac.4.1718206018125; Wed, 12 Jun 2024 08:26:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <988e48090982c89ce0c906954832fdfb09a1ce34.camel@sapience.com> <20240528084413.2624435-1-sakari.ailus@linux.intel.com> <4b387b4d-f778-4891-9f07-df5fc0a093cd@redhat.com> <18cb82bb-51c6-4a52-80a4-6b1e3d95f99c@redhat.com> In-Reply-To: <18cb82bb-51c6-4a52-80a4-6b1e3d95f99c@redhat.com> From: "Rafael J. Wysocki" Date: Wed, 12 Jun 2024 17:26:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] ACPI: scan: Ignore Dell XPS 9320 camera graph port nodes To: Hans de Goede Cc: "Rafael J. Wysocki" , Sakari Ailus , Genes Lists , linux-kernel@vger.kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, 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, On Wed, Jun 12, 2024 at 4:30=E2=80=AFPM Hans de Goede = wrote: > > Hi, > > On 6/12/24 3:06 PM, Rafael J. Wysocki wrote: > > Hi Sakari, > > > > On Wed, Jun 12, 2024 at 2:47=E2=80=AFPM Sakari Ailus > > wrote: > >> > >> Hi Rafael, > >> > >> 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 that > >>>>>>> all Dell laptops with IPU6 camera from the Tiger Lake, Alder Lake > >>>>>>> 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, a= nd this > >>>>>> isn't what your patch does either. Instead the ACPI graph port nod= es (as > >>>>>> per Linux specific definitions) are simply dropped, i.e. this isn'= t related > >>>>>> to DisCo for Imaging at all. > >>>>> > >>>>> So it looks like the changelog of that patch could be improved, rig= ht? > >>>> > >>>> Well, yes. The reason the function is in the file is that nearly all= camera > >>>> related parsing is located there, not that it would be related to Di= sCo 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 case > >>> 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 windo= ws > 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% functio= nal > ACPI MIPI information. I believe that some work is in place to get correc= t > usable ACPI MIPI information in place in the ACPI tables of some Meteor L= ake > laptops. But I believe that there too it does not work yet with the BIOS > version with which current Windows models are shipping. It is being fixed > for systems which have Linux support from the vendor but I suspect that > 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 devices > going forward. We really need to have 1 reliable source of truth here and > using information which is ignored by Windows does not seem like the best > source to use. > > Sakari I know you have been pushing for MIPI camera descriptions under > ACPI to move to a standardized format and I can see how that is a good > thing, but atm it seems to mainly cause things to break and before > the ACPI MIPI DISCO support landed in 6.8 we did not have these issues, > since the information used by the ipu-bridge code does seem to be correct= . Well, if Windows doesn't use this information, it is almost guaranteed to be garbage. So maybe it would be better to make acpi_graph_ignore_port() return true by default and false only when the information is known to be valid. IOW, whitelist things instead of adding blacklist entries in perpetuum. And hopefully we'll eventually get to the point at which we are able to say "whitelist everything from now on".