Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp53340lqq; Wed, 12 Jun 2024 16:33:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaG7hQ5eNfU33HMjANLy2TZBADE2tNUsU5ku5lTBTscFuRxMRbIMtU6g/YljrlZINMsOE+Mh3IpKaJ8UnpkRWSaZNI4XxCDEYCydjkfQ== X-Google-Smtp-Source: AGHT+IHWzqSFOsoYYsaQrgHDYoI4q3yawOHNDbrN6kZsnqtdEuSXldv9xxIK+EW70WIQwL4L+wMZ X-Received: by 2002:a17:907:72cb:b0:a6f:5431:366b with SMTP id a640c23a62f3a-a6f54314496mr42874666b.42.1718235200644; Wed, 12 Jun 2024 16:33:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718235200; cv=pass; d=google.com; s=arc-20160816; b=rMJnoeg5TLemsHBzzA784e2389E76BhP4jU0M0oU9gjBaZLqZy6xtJyh95oZlv9Vfn Cd2sfPZPngqPHgS9WD+Xh8rJsElY6bSAczkbdAmdWzFSlagMZDJyzlRCuFthjfGSs6ds PvSg3Awz9sBkKdJunUYcCRuDLniyQKQX0Z9MIKQJWE+sAB2Hqyo487AfsYLgwEWg0ysp dJ8O/jtCizlPqwQVa9ghs0cGT3C4F4jBUfBGvgxk6TkuCFc8qh7QOWIVLKMIJoQcI3i8 ViXgE+ETjPB92L8dzTgFR/dwMAncB27ms6f1HTzFJRbf5cYbQuTHwTpqEsgtaWGeisKU hI+Q== 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=wpy9e4Yn48d1UcXsQvMCB2FB6mBAOf9Yh5HVx6uVh0k=; fh=Jr2fmiKTxm3vYCrbCM51tAejJM189bcfyhj0lQx/Dgw=; b=V79B9q0WdL/2Io7hyewEnczM0FK5L/nSvxYnSn6UOrTKx++/pIks1mKl+ANAt4ke2a TfksHeUliNkMzackdPPGiVCL3T6Pw0qkEBPScOz8ZYZ1/TuZM0Noq2LlGVwsnEj3GIKE DYdCzz3ounRPa+vkEEDgtLIMz7GYSpCzQV2dWBj9SUNlEvgNap3OxG0B1qinuKqj23UK KyBVowsxTec9nwPXNUaJD/s/QhEdBLBLOja1mgJ2ydPT/p7SCqVOe5QUPV9b/uuGgHjw 4pFyYkTtsbwAT78UHjOWOIXfv7kpTtd0U19AYXz3tbSodOz1TgFTuPRzKYPtfMRksqnz Am/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gmio1zny; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d4c370si6354766b.273.2024.06.12.16.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 16:33:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gmio1zny; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3BF5E1F22187 for ; Wed, 12 Jun 2024 19:17:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D67D82D72; Wed, 12 Jun 2024 19:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gmio1zny" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 E0F3B57880; Wed, 12 Jun 2024 19:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718219865; cv=none; b=Zqsek1PLHAuB6TDwHqhUZ4JSgNFHv4IN0YwLNfCesZT/k+DIFjwdvokqaxmWPL+cV+BiCR5u5Hc4h1httwnOpW7qY2XnbRPXv+R4cJts9H01VbjEBpPHT5QYbDZr5rwl19EbiHbSy2B02ro9e5VLm8khyMajmOWm4oMwsrJLCD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718219865; c=relaxed/simple; bh=VYNQPO1rYKxmb2ZkK8ky6KQ+fvcqajqoxY7EF4z8mpI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gUXljNgSeCNJ3W5dDYzRw81vFLHRSJ1JR83mNDgRLN1L5QXiw/zHQZl6g7dKPluPfHTytCoohUIHITBxon5mZmCbxqquTj3fPya4hVom9dfD48ZDJzsD8Xk24VtSxwgZs+DFrP39aqckxiAXV/Von7QS3juV/KXb+Sce9xlmvHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gmio1zny; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718219864; x=1749755864; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=VYNQPO1rYKxmb2ZkK8ky6KQ+fvcqajqoxY7EF4z8mpI=; b=gmio1znyiNaaPv6ObvDOMciI7H/n7YfaslwMVVtw7AMgjTcj1H4EyYe9 dsoG1anZQFxz1GlHzEmvK507PyXb+eTqkvxTKuMzBG3dP/m8d4qoYHMUT syg0U9/bdmb/fZKL/79urZyPpOJ9Cd9Nv/LnvoWRnBoDgLPNOn5H8hEiL O/C2vsqgMQnhJZy8E5S1ZOfr28hfJQfuWSR9yOf0xnteiqtx83azl/Zgc lEhwff4K6+LyNz0cAT26x0K+5Ce6Di6ycAQwPqpja+HwaUJr2fMHFTAtj XWwtK6KV4REpyLQvTGrXbRgHI//7/6bGrv5TcHz7vEU/+J5C4ynfwPmin w==; X-CSE-ConnectionGUID: aWbyn0rTTj2t07GFZu/+Og== X-CSE-MsgGUID: HbG98tJNRUCVDNLhCiI7KA== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="15235607" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="15235607" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 12:17:42 -0700 X-CSE-ConnectionGUID: VmWWKgQZSVqobx7wMbbroQ== X-CSE-MsgGUID: lktB3YFaT3WKvDVKwucyLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="44831089" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 12:17:40 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B7CE511FA94; Wed, 12 Jun 2024 22:17:37 +0300 (EEST) Date: Wed, 12 Jun 2024 19:17:37 +0000 From: Sakari Ailus To: "Rafael J. Wysocki" Cc: Hans de Goede , 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" Subject: Re: [PATCH 1/1] ACPI: scan: Ignore Dell XPS 9320 camera graph port nodes Message-ID: References: <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: Hi Rafael, On Wed, Jun 12, 2024 at 09:12:59PM +0200, Rafael J. Wysocki wrote: > Hi Sakari, > > On Wed, Jun 12, 2024 at 9:07 PM Sakari Ailus > wrote: > > > > Hi Rafael, > > > > On Wed, Jun 12, 2024 at 08:41:43PM +0200, Rafael J. Wysocki wrote: > > > Hi Sakari, > > > > > > On Wed, Jun 12, 2024 at 8:33 PM Sakari Ailus > > > wrote: > > > > > > > > Hi Rafael, > > > > > > > > On Wed, Jun 12, 2024 at 05:26:46PM +0200, Rafael J. Wysocki wrote: > > > > > Hi, > > > > > > > > > > On Wed, Jun 12, 2024 at 4:30 PM 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 PM 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, 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 > > > > > > 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. > > > > > > > > No ACPI DSDT in production systems uses DisCo for Imaging as of now at > > > > least to my knowledge. > > > > > > > > > > > > > > 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. > > > > > > > > What could be gained from this? > > > > > > Generally speaking, fewer headaches for people trying to support Linux > > > on Intel client platforms. > > > > I don't think that is the case here. > > > > I'd like to reiterate that none of the issues there have been so far > > (including with Dell laptops) have been related to DisCo for Imaging. > > Well, they were (or are) related to firmware issues that cause systems > to fail to boot if triggered until they get blacklisted in > acpi_graph_ignore_port(). This is the first time I hear about a boot failure due to incorrect camera description (on production systems). Could you point me to where this has happened? -- Kind regards, Sakari Ailus