Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp640640lqp; Wed, 12 Jun 2024 11:34:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSZrutdTgfYZDZ3k3nmfObh5HyxvJ4aGQ8Zc5HG1406ldbtWuPnXOLoD7OrSIkUNJKI5LtPAmePGOllA/2Y5BOm/mUQhlAPxGvC2SICw== X-Google-Smtp-Source: AGHT+IGPt7F/bgc/w4r04YeYO33XroEMHZ73UXouFdo2H6bs2lNpA77vnKzrSrCilEh3YoqQI+fO X-Received: by 2002:a05:6214:4505:b0:6b0:806e:4015 with SMTP id 6a1803df08f44-6b19230e049mr32285156d6.25.1718217259264; Wed, 12 Jun 2024 11:34:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718217259; cv=pass; d=google.com; s=arc-20160816; b=D5XpAO1uHd3LNQf6UAPqPO+bnnHznBhAOr6WbfBMKv3L786ZbvbhePBmDzK14u61Ui fW2iKsj+lKPKZlld/zjuJBIuktFBafV2uGI66uJEW5hC3lgfPoptF75M8VKfTpJxDxPK eYVB02WmpUJavQtZ05M1X8fPtD9DSSEPbs9HuxEa0yGPJGUTbhChMk6sLO4eybj+hMUy o7uSf63tjfAyJG/osnBRf2OO0+WGo0bgxXK+IrOz+80wc+4dxE1aZPYvWFQC2zNnJPLk 26nr1QvZy/Dsv+E49AIvPhsYlwukuZBA+o5xRKe+XYBzVu7EFmXV2FYRXO9OaBaote+2 +N+w== 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=N/+b8vmftPPbFCPUby4IvBG7LIHLq7yZ5Y9q43xgEJ0=; fh=Jr2fmiKTxm3vYCrbCM51tAejJM189bcfyhj0lQx/Dgw=; b=a12sMPU34Ne2/K0x9Lv0o54ogm0vqcqDQWlQdWRjnst4JvIXcr2XLi6KbrC4RbomoI teo59V/TZLIoQw4yBP2+2e8ywd7bF4iB3I6hF2rApLHuwVtHl0Vfm04eHcuKcbXLgjhI E2j6qniI9kMzhypx/1UXkkC9dCG6XIi5Ek+Tehr+Mn45ZNT6Z4QnR4/11SgE7Mh8rBwr P+LF7KdSBIeAaEgcMZFAVSpz6PqMapMvbv3PR+vRJ29MuNcBCdJVr3wkuzspGL9GmqfY 8zK/AUkvrERZJlxG2qLeJDYIvn7J9LlT9gK2GYaN6+IKAgX/o0J/Skoz2u/dDbTe3DjG eJdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZCzru+PM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212083-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212083-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b070dd1103si111021206d6.212.2024.06.12.11.34.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:34:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212083-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 header.i=@intel.com header.s=Intel header.b=ZCzru+PM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212083-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212083-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E1D581C2092D for ; Wed, 12 Jun 2024 18:34:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28B725477A; Wed, 12 Jun 2024 18:33:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZCzru+PM" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 5A3F84597A; Wed, 12 Jun 2024 18:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217208; cv=none; b=p59yQh4TZexYO9oZKw9hELZgpCKrH2UxP6a/Dcfkl3Wx2zu444/HvPlTwgZQN17OSJLALl/rkx3+SJMS8tf/AtvGgcRhPIG4r5QGYfwL9sRkM1EpH7gb1cbW5YQDbYyeqy1pbYUEIOIvs9GNA5G1KBY47HaHVn+474nrcCYwUnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217208; c=relaxed/simple; bh=3chq8aGAuNSKagtHO9pYuCTMVP7l20YtXhwbbVv0/gg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fVMwycmI5x+siqK+wWHmlksi6DPpbA6oY49/0bRGlKVI/RUtYK255QxQC18sPZwC1+3UG/TZOKbG33DMzsjNazEkqxQL4wT23yTxSljYEOdn2csdLA4DXx05MMBMm25fl619WMOISRuIb8sqSUYU1+VrNINeC/FG/KPRkZUrBfY= 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=ZCzru+PM; arc=none smtp.client-ip=192.198.163.12 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=1718217207; x=1749753207; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=3chq8aGAuNSKagtHO9pYuCTMVP7l20YtXhwbbVv0/gg=; b=ZCzru+PM1DKbDnL5qAs7z7kTlFub5V2FwmnFAH4T84Ol95C0bdpTl6HC itzu8+a+iB2XkZT9I8ghCXh65HLoBuwxCIqo0wOS/v+x63NtmnWB4dW0y Je092v7C2wHkluV8mhgw9MmXqJ40oEEmuXOA6e0Ki/8+kCywJvL4KY1rQ O7TNKNrzgVYuBmhqf0PPw8686F2AqyH9HlJX0/l91NVTJI1pAVEIK6rBz 0r34U00SaUn0r+GRjJZCy+n72D+r+j4L3Zv8anaJleA16mf4KvRxADQvH vGKNh0ywsaHZFwoHdd0VARAnypIYLpXFYYMVvH+ol8fHJ0+ToeYsg5BiZ w==; X-CSE-ConnectionGUID: zxyeR/zJRYetvrC+Zm8Haw== X-CSE-MsgGUID: WCnow9OEQOKuGVKPcRhSKQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="18858296" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="18858296" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 11:33:26 -0700 X-CSE-ConnectionGUID: D8O8/xUdTBKzElSgYmAnyA== X-CSE-MsgGUID: 3g51+lagSs6J3ayfXpGkkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="39768352" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 11:33:23 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id E2B6D11FA94; Wed, 12 Jun 2024 21:33:20 +0300 (EEST) Date: Wed, 12 Jun 2024 18:33:20 +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: <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: 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? > > And hopefully we'll eventually get to the point at which we are able > to say "whitelist everything from now on". -- Kind regards, Sakari Ailus