Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7598936rwi; Mon, 24 Oct 2022 17:25:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5PJj5FANJm2s/SSCAW5VI93WG+pBaDlX69lukooJbBOpKdW/j9I2rKFh1T8w+tioCNlrpd X-Received: by 2002:a05:6a00:21ca:b0:569:92dc:2949 with SMTP id t10-20020a056a0021ca00b0056992dc2949mr24099075pfj.63.1666657555792; Mon, 24 Oct 2022 17:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666657555; cv=none; d=google.com; s=arc-20160816; b=b08mHzO+rFXyAjC07Z7ovbOXYDcblXmq9euDsu4qhH/EdmjPAB3Vh9xuQG4H0L/Ld6 ovGLbJxiDYLylahTfouUYl1sYow0RvG9AK6PCQy+O2uQvCw40RSJgWU8m31bXvW2zPEo R8lmOCCXgkXtb2ihDDPZM4LjyBe8HocTIo6mg6A+oogp3H99qYskWhF/KKSPkGTVDd5s kWxljYznta+h0/LfSlZXXrvENb3EpPGq6pDkJGalaIIKu0/mjfybkBIwEfOIsWt2yk89 ksdEeZ8ecz2snc5oC/7x/cf5AyJKJXHaYY2Gb+7svYl/5w+ZXdirzhZUV08C/EHGgBrK qO9w== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oBddTd2aL3cpMShQLUMXQ70zqgPBnwYQKQRFaU3QDlI=; b=tgJp3/e+tR5/GA9T00J/szGVDzlpHkDNcA6jUdxRO2c6Q/TEOookK1lKS5lZwDpaH8 IKf7/XORT78aCspW817rUXpsG/BCLygazFfCnBuPHsiEMLvHEIkWqefCtgVVJWKEsYEO emkKTvmP6RhDnO0zQsaNtZiAtpn1hJ74TqgJyYw5opL80A0x9OkmbaKw4uyRFY0E4fH1 E79baCgs4dQwWiIFyvbgDq36lVrzFARrgtnSZKdWKHmq4MpK17o0fA2nwMfja9UQxm++ IgKj4QTFiHeHh5zzNkCRQW1xT9I/EdsslrHZemQk+od5unp7uY/aachpc22yUCMjZAxo 80EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i9hywrHU; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a63cd11000000b0043ce3d849fasi1080231pgg.663.2022.10.24.17.25.43; Mon, 24 Oct 2022 17:25:55 -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=@redhat.com header.s=mimecast20190719 header.b=i9hywrHU; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230218AbiJXX3X (ORCPT + 99 others); Mon, 24 Oct 2022 19:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbiJXX3E (ORCPT ); Mon, 24 Oct 2022 19:29:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF0C2EFC1B for ; Mon, 24 Oct 2022 14:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666648207; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oBddTd2aL3cpMShQLUMXQ70zqgPBnwYQKQRFaU3QDlI=; b=i9hywrHUb8bNYOc9quxs8NYBn3fAYUHDVv33GaJ6pXBzIlsAtT9kazKHgXkMzNhoD2Eycp o37AQ5sJ+AV8yPSxLW1PLshV4g4o344cvSdXCxIdQKofip+cPJi29stCGqZ15d2YDAZ8ab 2UNL/Fd77c5Sgc0dTxf+pp9zxhSP3yo= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-22-GZqTlxvqPqymw0wTvFBNeQ-1; Mon, 24 Oct 2022 08:00:19 -0400 X-MC-Unique: GZqTlxvqPqymw0wTvFBNeQ-1 Received: by mail-lf1-f72.google.com with SMTP id k19-20020ac24f13000000b004a49391ef9eso2598549lfr.9 for ; Mon, 24 Oct 2022 05:00:18 -0700 (PDT) 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:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oBddTd2aL3cpMShQLUMXQ70zqgPBnwYQKQRFaU3QDlI=; b=x2mpeVYaRhnG/+vrqbNxyVi6Bd8P+qV/R36goBqOx0sZjH5c8GUgZSsv2dmaPz2k02 YJxcljIcLY4NhMqQinoqNf8GPC2xABnamP/IJgiNerjtLJJoAuBjZYkI4kJiIPmD0QQz dtVyjbAU9jrDgCCYDSDSRb43gS7lmWti88hmrttnk4JENMe0bsIAumHzJ7VXCUrIIFAP FE2mEMOXjwNF8eLiLtwM2yjnbpfgXgFXmkVpOeAkPLGZnHmSJqVcOh9CjFh5QpT85fZp BMjhvOCT2HDbYlpFQzt/c7RRUTtjLZX9xz9DrfwUrkKs8NYbiucZPUYpEf8mppqH2Aq/ Hdog== X-Gm-Message-State: ACrzQf3x5JNWr5DsIb5fgfV8b18HYht66SLlIYUsNoB/fdh0gqYaNvC7 5ZJrAqE8wgL6ug4ZxyoGuMbiYM2svdce1QMcEskWHuUUUzo9XEe9XHW+n6A4wNH1rwy0jtGuAA9 Vvom8ziN9IFfD5+wn2W5kzbhl X-Received: by 2002:a2e:1546:0:b0:277:1238:cf16 with SMTP id 6-20020a2e1546000000b002771238cf16mr329356ljv.289.1666612816911; Mon, 24 Oct 2022 05:00:16 -0700 (PDT) X-Received: by 2002:a17:907:6e24:b0:791:905f:7881 with SMTP id sd36-20020a1709076e2400b00791905f7881mr27267484ejc.120.1666612806299; Mon, 24 Oct 2022 05:00:06 -0700 (PDT) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id u20-20020a17090626d400b0078907275a44sm15446126ejc.42.2022.10.24.05.00.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 05:00:05 -0700 (PDT) Message-ID: Date: Mon, 24 Oct 2022 14:00:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 00/22] Fallback to native backlight Content-Language: en-US To: Akihiko Odaki , Jani Nikula 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> <87tu3te92n.fsf@intel.com> <18478739-625b-0c16-cd5a-e05c5372a74a@daynix.com> From: Hans de Goede In-Reply-To: <18478739-625b-0c16-cd5a-e05c5372a74a@daynix.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Hi, On 10/24/22 13:56, Akihiko Odaki wrote: > On 2022/10/24 20:48, Jani Nikula wrote: >> On Mon, 24 Oct 2022, Akihiko Odaki wrote: >>> Commit 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() >>> helper") and following commits made native backlight unavailable if >>> CONFIG_ACPI_VIDEO is set and the backlight feature of ACPI video is >>> unavailable, which broke the backlight functionality on Lenovo ThinkPad >>> C13 Yoga Chromebook. Allow to fall back to native backlight in such >>> cases. >> >> Where's the bug report with relevant logs, kconfigs, etc? > > I haven't filed one. Should I? Please tell me where to report and what information you would need (to bugzilla.kernel.org with things mentioned in Documentation/admin-guide/reporting-issues.rst?) As mentioned in my other email this is a known issue, and your effort to fix this is appreciated very much, but I don't believe your solution to be the right one. See: https://lore.kernel.org/linux-acpi/42a5f2c9-a1dc-8fc0-7334-fe6c390ecfbb@redhat.com/ for more details and possible solutions. Please try implementing one of those solutions for your Chromebook. I unfortunately do not have hw to test this myself. Regards, Hans > > Regards, > Akihiko Odaki > >> >> BR, >> Jani. >> >>> >>> Signed-off-by: Akihiko Odaki >>> >>> Akihiko Odaki (22): >>>    drm/i915/opregion: Improve backlight request condition >>>    ACPI: video: Introduce acpi_video_get_backlight_types() >>>    LoongArch: Use acpi_video_get_backlight_types() >>>    platform/x86: acer-wmi: Use acpi_video_get_backlight_types() >>>    platform/x86: asus-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: asus-wmi: Use acpi_video_get_backlight_types() >>>    platform/x86: compal-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: eeepc-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: fujitsu-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: ideapad-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: msi-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: msi-wmi: Use acpi_video_get_backlight_types() >>>    platform/x86: nvidia-wmi-ec-backlight: Use >>>      acpi_video_get_backlight_types() >>>    platform/x86: panasonic-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: samsung-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: sony-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: thinkpad_acpi: Use acpi_video_get_backlight_types() >>>    platform/x86: toshiba_acpi: Use acpi_video_get_backlight_types() >>>    platform/x86: dell-laptop: Use acpi_video_get_backlight_types() >>>    platform/x86: intel_oaktrail: Use acpi_video_get_backlight_types() >>>    ACPI: video: Remove acpi_video_get_backlight_type() >>>    ACPI: video: Fallback to native backlight >>> >>>   Documentation/gpu/todo.rst                    |  8 +-- >>>   drivers/acpi/acpi_video.c                     |  2 +- >>>   drivers/acpi/video_detect.c                   | 54 ++++++++++--------- >>>   drivers/gpu/drm/i915/display/intel_opregion.c |  3 +- >>>   drivers/platform/loongarch/loongson-laptop.c  |  4 +- >>>   drivers/platform/x86/acer-wmi.c               |  2 +- >>>   drivers/platform/x86/asus-laptop.c            |  2 +- >>>   drivers/platform/x86/asus-wmi.c               |  4 +- >>>   drivers/platform/x86/compal-laptop.c          |  2 +- >>>   drivers/platform/x86/dell/dell-laptop.c       |  2 +- >>>   drivers/platform/x86/eeepc-laptop.c           |  2 +- >>>   drivers/platform/x86/fujitsu-laptop.c         |  4 +- >>>   drivers/platform/x86/ideapad-laptop.c         |  2 +- >>>   drivers/platform/x86/intel/oaktrail.c         |  2 +- >>>   drivers/platform/x86/msi-laptop.c             |  2 +- >>>   drivers/platform/x86/msi-wmi.c                |  2 +- >>>   .../platform/x86/nvidia-wmi-ec-backlight.c    |  2 +- >>>   drivers/platform/x86/panasonic-laptop.c       |  2 +- >>>   drivers/platform/x86/samsung-laptop.c         |  2 +- >>>   drivers/platform/x86/sony-laptop.c            |  2 +- >>>   drivers/platform/x86/thinkpad_acpi.c          |  4 +- >>>   drivers/platform/x86/toshiba_acpi.c           |  2 +- >>>   drivers/video/backlight/backlight.c           | 18 +++++++ >>>   include/acpi/video.h                          | 21 ++++---- >>>   include/linux/backlight.h                     |  1 + >>>   25 files changed, 85 insertions(+), 66 deletions(-) >> >