Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7803417rwi; Mon, 24 Oct 2022 21:07:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5cuEmUEUlA2WAp595HTWMWWbT2oZ78Mq7TylnpNuXfCEAVhlMjdlszgSGdgdH0Lar7C6YQ X-Received: by 2002:a17:902:ced0:b0:17f:92d6:f5ec with SMTP id d16-20020a170902ced000b0017f92d6f5ecmr36213531plg.34.1666670871148; Mon, 24 Oct 2022 21:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666670871; cv=none; d=google.com; s=arc-20160816; b=j/l4UBNqMNUeqg8Z6Cj1IsN90//IFQOBTCkmSvKwodZlQ9diHOQi3teoo6gIKN9mSF gdihb+6vF5IG/bcajMWwufzoFIwFg5ArOCCtlZAHqLZ8lvFm1IOq3GU3kS0rCM5TUztY aeHppEj64H+VNkVHpJAAF1e7mkTRO3lw5eWcbu8UApj1sdEeuxFvslOVI2MedyjULjlM mbsieqzoKZgVS53nHDO6NS6Qs0aAULH+AMMaFaX4ywEVkof/DZsuoQZdW1CwbtfRVUES czhFyLc4rw6NtDBifOeICWpTgM0JizwGE0Gpg/x2bQ9QX8AT+vL5MI5716qY4xJEED+Y zzWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=f9FEmbC5xpjHJg/2O8DNlMMB4H4G84Faq1RNdC5/70Y=; b=s6mciGeBOXZCT1271K/rhmMduP5Xc4Qp5ROt1kZROe1XjiVvQuePyElE/QclGj3poX /gGwSDO2RFryYQ3vmpdAXYZp6iVk6zKVoKkra8jOsyfPIoo97YsBbXJh57LDToEFpwOY yoYE0D7xwPsVwL2Kp3m5kqbVdoxZ4Ee2b4/WLSGX4czeqeEnlFio1ARdWalH3O8SAjrS xIDWZFBQVimFPrahY1pZLdEz4/1h7cZ8ncbadyURval80mMfPkoKZMNB+GiYi9dtTZ2f KkJiwYZj597/csDVd12tS1I61NCnNcry88RnWUbmtFETP7u725EsfGuOWxt7r06+pLXa uKCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=J6AoKAQC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a170902ec8300b00186ada28189si1763310plg.240.2022.10.24.21.07.38; Mon, 24 Oct 2022 21:07:51 -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=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=J6AoKAQC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbiJYDXy (ORCPT + 99 others); Mon, 24 Oct 2022 23:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbiJYDXv (ORCPT ); Mon, 24 Oct 2022 23:23:51 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FC5B4C2E6 for ; Mon, 24 Oct 2022 20:23:49 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id io19so5173588plb.8 for ; Mon, 24 Oct 2022 20:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=f9FEmbC5xpjHJg/2O8DNlMMB4H4G84Faq1RNdC5/70Y=; b=J6AoKAQCxSkBd/sowbwPCi6ub1mPxV0qlHWX0WF7X3NIlYQn4YHES82Srn6p4epgIr I/r34Cbt1RAn8twGDRZkfGNfzOPw/CE/lQ3d8KKm/xk0O0byOMZgfEBxXin8xMsH6Ae4 OYdMDc09gEwKmklQ38eKDQ1EP/Ifp9975kI3vOWpMT2+B7APWMDg1HWdHh6RDm2IhmZp nFlQWBQ5LXCjatGUOm0Nssz0irDhTOK5bRfoLWDBGVjr3x7Zn+3TjCCDg34vvNahoMXf /GTBMcEoPm5pkxKRsBe/cZklokeE7OuhvhWmNxe9o2BV3Dg9u2aHkD+tP04uQVNOH6VR XDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f9FEmbC5xpjHJg/2O8DNlMMB4H4G84Faq1RNdC5/70Y=; b=VIICYBxkDL9xsOpDHIYm30SwNqKRUndvTHHyqdSftWQ2EV+2DHL73H2KtvIlIyS/pK 0exfwkQUAuXfBc4M0uy3Ytvt6BIITb2jCoa0iSjOA2/vKYRvs8SL8uBqKycKm37Mv89c O3boAzf0qWpbRPcHWecLccILFonzqXlpsRB7InGem9lszgysu5gAI+5iDtpVatW16zM8 EZhtQH2uq3e6sQVeseWFg0emhn5vp9PHaAEIBfo5JTUhkIWjyO/v6K7kVA9L38Vs+8u3 iKKdOPtcr/wKgDIFZFxNnv+ZecT5L1go+pjLSz6LCOF7IIPfUyC/MQVsDJHABe3HMgc+ LnmA== X-Gm-Message-State: ACrzQf3A3peCDLEBaGpsZ1SQT/P0HZfOGQtio/UgQoJLEYjvPx9VixYN /3QMGW8d+TWZ8AXTWZJ+Idf5xw== X-Received: by 2002:a17:90b:4a47:b0:212:f7ef:1bd6 with SMTP id lb7-20020a17090b4a4700b00212f7ef1bd6mr13717346pjb.79.1666668229127; Mon, 24 Oct 2022 20:23:49 -0700 (PDT) Received: from ?IPV6:2400:4050:c360:8200:8ae8:3c4:c0da:7419? ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id n16-20020a170903111000b001868d4600b8sm397270plh.158.2022.10.24.20.23.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 20:23:48 -0700 (PDT) Message-ID: <8ed65e3e-e0b9-05ae-b113-db9d649a1e5a@daynix.com> Date: Tue, 25 Oct 2022 12:23:39 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH 00/22] Fallback to native backlight To: Jani Nikula , Hans de Goede Cc: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet , "Rafael J. Wysocki" , Len Brown , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , "Lee, Chun-Yi" , Mark Gross , Corentin Chary , Cezary Jackiewicz , Matthew Garrett , =?UTF-8?Q?Pali_Roh=c3=a1r?= , 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 References: <20221024113513.5205-1-akihiko.odaki@daynix.com> <746e5cc6-516f-8f69-9d4b-8fe237de8fd6@redhat.com> <60672af8-05d2-113c-12b9-d635608be0dd@redhat.com> <7373e258-f7cc-4416-9b1c-c8c9dab59ada@daynix.com> <78ad5d7b-4078-0b8e-f4aa-6c8113631359@daynix.com> <87o7u1drcz.fsf@intel.com> Content-Language: en-US From: Akihiko Odaki In-Reply-To: <87o7u1drcz.fsf@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 2022/10/25 3:11, Jani Nikula wrote: > On Tue, 25 Oct 2022, Akihiko Odaki wrote: >> That aside, the first patch in this series can be applied without the >> later patches so you may have a look at it. It's fine if you don't merge >> it though since it does not fix really a pragmatic bug as its message says. > > I think it's problematic because it needlessly ties i915 backlight > operation to existence of backlight devices that may not be related to > Intel GPU at all. The direction should be multiple supported backlight > devices, across GPUs and connectors, but only one per display. > > BR, > Jani. > > Unfortunately it is the current situation (even without this patch), and this patch is not meant to fix the particular issue. This patch replaces the following expression: acpi_video_get_backlight_type() == acpi_backlight_native As you can see, acpi_video_get_backlight_type() doesn't take a parameter which represents the backlight currently being operated. The problem is known and documented in "Brightness handling on devices with multiple internal panels" section of Documentation/gpu/todo.rst. The exiting solution is based on the assumption that no device with i915 and multiple internal backlights. Regards, Akihiko Odaki