Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp804482pxv; Wed, 14 Jul 2021 16:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7HmmIRqmX3HkWbkbB0wkOHJgGvhqFlJwG0HcaymbbaTphwTz+FQf0bNgpXDKjMkrsRI0Y X-Received: by 2002:a92:d3d1:: with SMTP id c17mr208283ilh.86.1626304766340; Wed, 14 Jul 2021 16:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626304766; cv=none; d=google.com; s=arc-20160816; b=oqiES1FjT/PQ9r4BfyBYjCL/S0j6zoEcmqx+9dkdU0u5nt5l2iAUwXQSoKKeHbV6My GchJczNZg0x2s5iVpU8O2TGiXVHxkcBhIvz2bPqLpM9xUkVO9ywKaXHBVJR/pL7RoG9n gCzHrwR7Pn5IJqZaDSRZYNvBJ2zbTFMNfOT2ZMmY0ctQtvy6ngbKR3PSVht767mp/F4z pOVG2pa2Bgj7gYPS+FPjlYiCLMoyw9IQNmvN4JzGzHuDoV33ruiE7Kn0YOEUjeBtKQpc ZJhjMqgVpp+RjYJWjD63Ie9X6UCF8wKP6vlK80YS/E5QUhyP96CPjY4lNlnwm48GrFkq ohSw== 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=ox9n5HOVsZUFJXxnUlspC1O8C/8MVNuwlisUHZH9Rq4=; b=d9Nvpb3s6b0ScmRycv5dTC/8OtgzLXdRHvkPNZjiqlwffb4cPHwgcsew7CK7kLjr5f /UqYf7pjVryX2lXpYUL3n7Ym8iQQBiiHKUBSQ98QMWyTFKVMDfFLUZDMtv12EJ19FvGj 3/ySCvT5FNqJs8l7Z3HVCekIwCU4ffx+KHBPnYOIQG2+YrK/tjEct7wODp/JHEgeeeq1 vGRiAPYxxIoB4wgQwj1d/dHnHUjsqhZ0hnQPwGQPdhyVVbgaMEycDrn/A0+Xevxpbnf4 o4lMjUvQ6j4JecyLsj7XPuYr5raN9vv6A0vW3YZXrxWW/P4Z8dOjVX7GvNhCcAiorIPG qX0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HxupBf46; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si4396334ilu.13.2021.07.14.16.19.13; Wed, 14 Jul 2021 16:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HxupBf46; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbhGNV43 (ORCPT + 99 others); Wed, 14 Jul 2021 17:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhGNV42 (ORCPT ); Wed, 14 Jul 2021 17:56:28 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C189C06175F; Wed, 14 Jul 2021 14:53:36 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 31C89CC; Wed, 14 Jul 2021 23:53:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1626299614; bh=pWKpxPOvoAW7FKSdGJi+ZdPivLsbxsmn5uEaNivCJZQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HxupBf46z7lsaydCKXHIGaIcqgX6jf/wgEJkDCEodah700UlwEICBYdBA2nFI7O// WfC95RiNsYHoVTcTx5m274S21CFjGuF/hOn8XODn0+G4k+EGOpNH3TSQFN5WIdkPC4 PnTqUYo3Ta4cAjkCynTVR5QbaHEHe0kEh8tZ6Nmo= Date: Thu, 15 Jul 2021 00:53:32 +0300 From: Laurent Pinchart To: Mark Brown Cc: Andy Shevchenko , Daniel Scally , Linux Kernel Mailing List , Platform Driver , Hans de Goede , Mark Gross , Maximilian Luz , Liam Girdwood , kieran.bingham@ideasonboard.com, Pierre-Louis Bossart , Cezary Rojewski , Liam Girdwood , Jie Yang Subject: Re: [RFC PATCH 0/2] Add software node support to regulator framework Message-ID: References: <20210713152454.GC4098@sirena.org.uk> <20210713181837.GE4098@sirena.org.uk> <20210714165948.GG4719@sirena.org.uk> <20210714172846.GI4719@sirena.org.uk> <20210714191855.GJ4719@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210714191855.GJ4719@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 08:18:55PM +0100, Mark Brown wrote: > On Wed, Jul 14, 2021 at 08:41:27PM +0300, Laurent Pinchart wrote: > > On Wed, Jul 14, 2021 at 06:28:46PM +0100, Mark Brown wrote: > > > On Wed, Jul 14, 2021 at 08:18:13PM +0300, Laurent Pinchart wrote: > > > > It's only one data point, but we're seeing adoption of the ACPI > > > > DT-in-DSD for camera. It's still not pretty of course. > > > > > > By non-Linux system vendors? > > > > For Windows-based machines, yes. It's fairly new, and the information I > > have is that those machines may ship DSDT containing both Windows-style > > (read: crap) data and Linux-style data for the same nodes. My fear is > > that only the former will be properly tested and the latter will thus be > > incorrect. The future will tell (I'm as usual very hopeful). > > Adding the Intel audio people - it'd be good if we could get some > similar stuff started for the audio things. Sadly in these sorts of > cases AIUI the Windows thing is broadly to match DMI data and supply > platform data so it's more a case of just not having essential > information in firmware, a bad format would be better TBH (assuming it's > accurate which also requires loads of quirks...). On the camera side, the Windows-based machines I've worked with (Skylake and Kabylak) have data in the DSDT. There's data we can use directly, and there's a lot that is hardcoded in the Windows driver (including what voltage to program on the different outputs of an I2C-controlled regulator - you get that wrong, you fry your camera). I believe Intel provides a small set of reference designs with several options to the OEMs, and I wouldn't be surprised if some of the data present in ACPI that we don't know how to interpret would identify these options. I don't think the Windows driver has DMI-based quirks, the driver isn't machine-specific as far as I can tell. For newer devices, ACPI should contain Windows data in a format that the Windows team decides on its own, and data that is actually usable in the _DSD for Linux. I've also heard that the power management would be saner, with PM actually implemented in the DSDT. I haven't seen those DSDT yet though. -- Regards, Laurent Pinchart