Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp99402rdb; Tue, 31 Oct 2023 01:45:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvzD9P2/C5u0Z714EGi46BLe1LdBbew4KvKJKqhRjDi1CSOtQJ6JDDQsq+ufX6+P+ZV/SK X-Received: by 2002:a17:90a:1a50:b0:27d:3ed2:86a5 with SMTP id 16-20020a17090a1a5000b0027d3ed286a5mr10332052pjl.33.1698741957860; Tue, 31 Oct 2023 01:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698741957; cv=none; d=google.com; s=arc-20160816; b=dmFVnbIbhZy23aqxAJlOGl49lMsUfKHl2E+zwnUKLnGQrTAv1mCSVl8Gifvil88a1X d7OYQqLdKhdE6UvzfGI5jhUbonQsvNY3UsretE4yLQU5jQWREVedOEaBC5HCToxfqIsC JqawwA/OQin/RzlzNYX3Gg6qTFqodpLyeM1Rrb8VqCaDuN87Qcrv0eZxt+tI9XBmRT8U t0g5NWUzsLr2mgyrNamZogs2qSwfc5rWMhi6PRkbmlmVPyhApTsbag1twF2W0iKk4yWY grzNwhWa21OrYXobgXgdaMZNdYRHiLjlzGheaY+EIUOOSV9OhAgm4vFFYHhBkxFmV2OY kBhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FjHJxbtiBhsn/881RTlOBnM6+78Qq5L8QBSdBSAHCtA=; fh=wxl7wP3hcSHx61OGwS6ASwqenQLYzU+oqwoBTAsym1Y=; b=0fSAPmlTVQyKHGwiJ+NjoCNYTHllSy1ECiMJmvtoh6zB72VUsXADxrSm/CzjXmMoAe 94P6r7FAzf/sVUvbBcUce6jehDK1UbJATNBXufTAT+bVUHiRja0sl2qVerV/L5nhoK9Q nyvo23FIorwS9JP7AbhmiIfUSNQkpAjtoZ2MwQ1nCycrXKMDJrquP40ip/7UzCm9luAL LHNYEPWCiYB18xJ4egr1rr4PICGi9T7QrEiBGbLaZaaTfqsNh5nvd3SDBVNVrzsgcvuC GrMMsaM9NBkgtjyvcC2QkzXYChq8/ftUA8+ZRBe7J4gyj4yE2ur5cmzRQLhWzb7wP0ik hNsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f7Swnraj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id hi12-20020a17090b30cc00b002800b13adb7si665925pjb.72.2023.10.31.01.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 01:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f7Swnraj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 41812806896A; Tue, 31 Oct 2023 01:45:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234968AbjJaIpl (ORCPT + 99 others); Tue, 31 Oct 2023 04:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjJaIpi (ORCPT ); Tue, 31 Oct 2023 04:45:38 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C53C4C1; Tue, 31 Oct 2023 01:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698741935; x=1730277935; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9L4mxlspwhWbHo4tAtmrYB/SxGPjbl1D/9kB+dCYtRM=; b=f7SwnrajLiDYhVgVqd/Z3suhTRlZ3nIF+hJ70qUbvBnPEqYHCVn7wOMn 4DkO3vPzr5umIpWAwQHtGp7t3X3S7sKkLBovJzUIuORsi6wa7uEnQctdN xUTbdPg+FmRc9RYXlfbEwMwX6wLv8TmJ4V4ft3AxRwGlgIqiSrLmo+qD8 SgQXhYePnrBe6ZtY+71Dffk25CpBrVqMAC4VojmuU4QDnZOhuYUU7QBo9 dVOhdp91Jqe+1Yk4EE7gwnTG1Wds613dz/O5coOAcH3suHH5QK29WiGva q1ewAOX79CNI/9RbilE0fVT/G+0VXSRyVASl+jFuEoO02aj2UeN1fiQma w==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="419352215" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="419352215" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 01:45:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="934037016" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="934037016" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 01:45:33 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 302C411F894; Tue, 31 Oct 2023 10:45:30 +0200 (EET) Date: Tue, 31 Oct 2023 08:45:30 +0000 From: Sakari Ailus To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML Subject: Re: [PATCH v2 0/6] ACPI: scan: MIPI DiSco for Imaging support Message-ID: References: <2187487.irdbgypaU6@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2187487.irdbgypaU6@kreacher> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 01:45:45 -0700 (PDT) Hi Rafael, On Fri, Oct 20, 2023 at 04:33:56PM +0200, Rafael J. Wysocki wrote: > Hi Folks, > > This is a new revision of > > https://lore.kernel.org/linux-acpi/13276375.uLZWGnKmhe@kreacher/ > > which was reported to have issues and it took time to revisit it. > > > The main points from the original cover letter are still valid: > > > > The general idea is the same - CSI-2 resource descriptors, introduced in > > ACPI 6.4 and defined by > > > > https://uefi.org/specs/ACPI/6.5/06_Device_Configuration.html#camera-serial-i > > nterface-csi-2-connection-resource-descriptor > > > > are found and used for creating a set of software nodes that represent the > > CSI-2 connection graph. > > > > These software nodes need to be available before any scan handlers or ACPI > > drivers are bound to any struct acpi_device objects, so all of that is done > > at the early stage of ACPI device enumeration, but unnecessary ACPI > > namespace walks are avoided. > > > > The CSI-2 software nodes are populated with data extracted from the CSI-2 > > resource descriptors themselves and from device properties defined by the > > MIPI DiSco for Imaging specification (see > > https://www.mipi.org/specifications/mipi-disco-imaging). > > > > Patches [4,6/6] come from the original series directly, but the other > > patches have been changes substantially, so I've decided to re-start patch > > series versioning from scratch. > > The v2 addresses at least 3 issues found in the v1 by code inspection: > > * A port_count field incrementation was missing in acpi_mipi_scan_crs_csi2(), > so its value for all of the devices having CSI2 resources in _CRS was always > 1 (and it should be equal to the number of valid CSI2 connection resources). > > * Some acpi_mipi_crs_csi2_list members could be freed prematurely, so they were > inaccessible when extract_crs_csi2_conn_info() attempted to access them. > > * A check of remote_swnodes() against NULL was missing, which could result in > a crash in a case when the swnodes memory could not be allocated for some > acpi_mipi_crs_csi2_list entries. > > Apart from that, it rearranges the code somewhat to make it easier to follow > and to avoid premature freeing of memory in it in general and the new file > added by it is now called mipi-di.c (instead of mipi-disco-imaging.c) for > compactness. > > The series is based on current linux-next. Thanks for the update. I've tested this and I can confirm it works, to the extent implemented in the set. The rest can be implemented on top (mainly replicating properties). I'll comment on a few patches in the set. Do you prefer to make the changes or shall I? I presume them to be fairly minor. -- Regards, Sakari Ailus