Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7360591rwi; Mon, 24 Oct 2022 13:31:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rOrfIlslDDkDbuE0UBlmhb6nPpoy5bY0RAbeVh3c+bM7kLNckAdYCd/mPKognxGrP5Doi X-Received: by 2002:a05:6402:51c6:b0:45d:50ef:1142 with SMTP id r6-20020a05640251c600b0045d50ef1142mr32892397edd.259.1666643490022; Mon, 24 Oct 2022 13:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666643490; cv=none; d=google.com; s=arc-20160816; b=Zfr0JONFtZ8tlRiJq5ZltlOl4lgPbYUXHav7WaZFzh63U1Hp0lpEBPegEJtJk1lLwT MqGTNVbBVqKO9DHypR5EKrrHRay4ffBLbIcWWCGRQeZz7p5lx61Iq+mcVsHqxRJrntiX dqg6pFdb6nx9+6BfODvOBikf/KFn13FB84DF20EJrbefbYA8bcwARf9+DkdsQp5/u0Py O3+ZYOvgpYtvgBzW8Wd1ZCtLLKHF9yfr25QBG9wY740X/Y1zrafKCyMVvKCLh3AORs/5 FZH9rXk48P9b4H0bmNvM3gl6QoM+RUuowx+oQN6p5TyDTVPj3WGds3jWH1WXa6xwNOrr MbJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3nE0pujKjkKrAG3Zlhw1YeJuPRfB3mFezLZb6lzLCGA=; b=q2fp/VBrVHLm5jJm8RCDTOLPUx7fWHtpdNR7UvqbUyUejDUD9U/GGpBt9EQfVEMWoC m7dShMPe4kcNB+wODTnxfpZ+rJj4a1it/jmeFb3dyydPneba3d3VIsasuFC4GAkaxllv S41qkZWty3JAboV776W7O9lBO3L5upwyHdLqt9fRUQLONjkVwitpsY8WPtjOkEFszAnJ RSOfaWINi75UDPPZP+EEm0M4UZlYsyX59KMZdoko5ZGmcOfnuPs+xdb2SJVhthtpZQvz fjd946Ewh/Te3zxl7P5Xq8RLwpMbIgoF+6rkSX/medujQW34UgjJz6WBSR5vfmTHlwQC 9PiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LMm2+6OB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr18-20020a170906d55200b0077ef2f9c8b7si675156ejc.922.2022.10.24.13.31.04; Mon, 24 Oct 2022 13:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LMm2+6OB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234171AbiJXUQ7 (ORCPT + 99 others); Mon, 24 Oct 2022 16:16:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234135AbiJXUQV (ORCPT ); Mon, 24 Oct 2022 16:16:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E00C150F88; Mon, 24 Oct 2022 11:33:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C0FA1612E7; Mon, 24 Oct 2022 13:14:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F11F4C433C1; Mon, 24 Oct 2022 13:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666617295; bh=3nE0pujKjkKrAG3Zlhw1YeJuPRfB3mFezLZb6lzLCGA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LMm2+6OBEsQawTDmuHx79XkDRpx8g9QS54i0VAgQtCk02UkomS95/vMkOooCKFRX3 xxQEe24yv/tDtsQYrTGmzauMv0Jh6zHqana1EL/TBHlmO6GXulViaDuIlAEYGkafKP kqE4fIBr817hQoEx/xF9wYtGawey5ywjjoX7MjRMntvcbUYm0BK0RPqRrLUuuXw2Nk nhWxKTcWwM9VEt4aM7KgAIT39FftcsQukjfpyyfLMkVVk5XzPzt3H5NCVm2IIV71GR WEwDHsAVQ/xfBG0zYbWT3h7jEZyT/78B/fc3OPRLq/euFmv9sbHup10WXUReRUbepL 1J6fTEisi4WTg== Received: by pali.im (Postfix) id 060EE82F; Mon, 24 Oct 2022 15:14:51 +0200 (CEST) Date: Mon, 24 Oct 2022 15:14:51 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Akihiko Odaki Cc: Hans de Goede , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet , "Rafael J. Wysocki" , Len Brown , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , "Lee, Chun-Yi" , Mark Gross , Corentin Chary , Cezary Jackiewicz , Matthew Garrett , Jonathan Woithe , Ike Panhc , Daniel Dadap , Kenneth Chan , Mattia Dongili , Henrique de Moraes Holschuh , Azael Avalos , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Robert Moore , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, intel-gfx@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, ibm-acpi-devel@lists.sourceforge.net, linux-fbdev@vger.kernel.org, devel@acpica.org Subject: Re: [PATCH 00/22] Fallback to native backlight Message-ID: <20221024131451.lvkesdg3kvyvbi7n@pali> References: <20221024113513.5205-1-akihiko.odaki@daynix.com> <746e5cc6-516f-8f69-9d4b-8fe237de8fd6@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Monday 24 October 2022 21:58:57 Akihiko Odaki wrote: > Regarding the second limitation, I don't even understand the difference > between vendor and native. My guess is that a vendor backlight device uses > vendor-specific ACPI interface, and a native one directly uses hardware > registers. If my guess is correct, the difference between vendor and native > does not imply that both of them are likely to exist at the same time. As > the conclusion, there is no more motivation to try to de-duplicate the > vendor/native combination than to try to de-duplicate combination of devices > with a single type. Hello! I just want to point one thing. On some Dell laptops there are 3 different ways (= 3 different APIs) how to control display backlight. There is ACPI driver (uses ACPI), GPU/DRM driver (i915.ko; uses directly HW) and platform vendor driver (dell-laptop.ko; uses vendor BIOS or firmware API). Just every driver has different pre-calculated scaling values. So sometimes user wants to choose different driver just because it allows to set backlight level with "better" granularity. Registering all 3 device drivers is bad as user does not want to see 3 display panels and forcing registration of specific one without runtime option is also bad (some of those drivers do not have to be suitable or has worse granularity as other).