Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp490930lqp; Wed, 12 Jun 2024 07:40:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrNi74Q4Re/+2AIIQ40IKcTCGvwtgTNiySUTwZEUAF7uAMItDKI0E6ImHI1buXFOPCihOepZbpD67F2IAOkjVxy7D4KO8l+PRc9reijg== X-Google-Smtp-Source: AGHT+IGCEV5RQ40h45Q2NoAl7u1NuqYq57k/fiSNb1sG/DqwCM9dccJ6d2VIBZBzB1b4UT9xlpO2 X-Received: by 2002:a05:620a:6291:b0:795:e9cd:f5b8 with SMTP id af79cd13be357-797c2d94d68mr1010183885a.23.1718203233437; Wed, 12 Jun 2024 07:40:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718203233; cv=pass; d=google.com; s=arc-20160816; b=fK3q4hG1tDQiVE7M1wUK/Czb2c5HFDei2z+SwqDgfbG6Xsrdk27NzQAc0ahYDhGG5J foIwKnWLKNB4MEHDWSuFOBQ1ja+YclOAy1gXQRU8ZEwe43vJtNU1BJXYvv/7g3niMpWv pw864yOpN4X5LecMwxDC+tbGCScx7JijBJss01a2f07F+NwTvLm/hcpCNWPW97vBICiA QW5y1dB4o4v0TxOTgTSMIxGMhRb4D52xdKQAC3GoI4EdKjxT2B1iemBzhPIDaUf/cCrt lMOwrBrvXYASOI5YutJvg+GyhX/tQIU0oapAifnl6ypSpzHVsAP1hyJjNtwCq6CWE8Lv flgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=py0jNv8gMl9kc1nov5PF0kqziSWC/VKHWo77kxSvhV8=; fh=52JLuM77oGHrI7tH9QT0xmz9rCG2T7Ctbza0t10WWxY=; b=Tc/WLd7AMCHD+yVUDR68zD4kWFdXuXX/OEhkxsSCP5WxU3X/6smTdim7Mt255apH/X bk0hUyAD7Z5e0exZ280u3R0PXtCeAMwLVgN0eHR6nzKlg4t16iIftQ4NMgRQnqmmJFRk gYvfygfW9XOWMB/RFsqghlUqLo9IKGdh/7bgUANNw/MmkXNL+jaWNZtnVsrC0zaEZyQk R1uOAzc0LiHinw/PH9keLakHcQWBhmQ+3Co65btWOVKgFVxuL6wLNhNmmIgnhMm5KfxQ NsAX9M+CCZXO4IfvfPwP9ZhNnerzYM3jOctt9EbWyM0Q4jCCeeKtsrLqeQSNrvYwmpI0 rRvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wJr6F2t1; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-211685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211685-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795dca742ecsi835134185a.736.2024.06.12.07.40.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wJr6F2t1; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-211685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211685-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0F7701C20FF7 for ; Wed, 12 Jun 2024 14:40:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8A0C17E8F9; Wed, 12 Jun 2024 14:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="wJr6F2t1" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 5BC6417DE34; Wed, 12 Jun 2024 14:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203222; cv=none; b=mhktHb2FWOMOfSJnejFrozJzMW06Uh1ip3HGcQwiRvWx3MQg3I7iQePdX8TqAhHK1UApIZgqVkHVFeR6YhP9MxUrQqvjeSp/ueVEr2N7/kQ31awbxZUwou9wT53BwHVEE6TiWbKPJiZ+htsgbzobUPykuGNifZUBJAN+ObATzTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203222; c=relaxed/simple; bh=JPNJmCvj0/G+NJcBj5UdicW55buFti9R+yrbgiH8D/o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tnNnveT+r/uXbhAuhIWR85d1tsc+mQNbxb6UBLz/t4T+oeU6bQ2Nr0BjR9VbnZWuCmdDLUmdwkJR8lAoioU1gM6ZP2iM92EwR7X/ka0EdZwam/0sSQqgEfxOsrL8FaHMBsFwS/19KcQv0y/eHE6J0tL0HpkIsCxWYbFi521ACAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=wJr6F2t1; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A5B3429A; Wed, 12 Jun 2024 16:40:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1718203203; bh=JPNJmCvj0/G+NJcBj5UdicW55buFti9R+yrbgiH8D/o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wJr6F2t1UjHrDJkj3IdB3qb/VJJ0SPbrJzZgNOlR7UYyN+KaFEjudY0ky6g7V/sKc W7Yz4gnJBJ0ewejY8zhIvZbdFPYKbzORCZKgE2QR6vgtnjiHWSVwQUmNkQ2Xw3uZjq m6TewdaS51KybIlwpVY/HMSL5ul3wqQgtg0Unjm0= Date: Wed, 12 Jun 2024 17:39:56 +0300 From: Laurent Pinchart To: Hans de Goede Cc: "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" Subject: Re: [PATCH 1/1] ACPI: scan: Ignore Dell XPS 9320 camera graph port nodes Message-ID: <20240612143956.GN28989@pendragon.ideasonboard.com> References: <4b387b4d-f778-4891-9f07-df5fc0a093cd@redhat.com> <18cb82bb-51c6-4a52-80a4-6b1e3d95f99c@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18cb82bb-51c6-4a52-80a4-6b1e3d95f99c@redhat.com> 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 PM 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 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, and this > >>>>>> isn't what your patch does either. Instead the ACPI graph port nodes (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, right? > >>>> > >>>> 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 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 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 windows > 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% functional > ACPI MIPI information. I believe that some work is in place to get correct > 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 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 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 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. 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). > 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. -- Regards, Laurent Pinchart