From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74EF6C433F5 for ; Tue, 16 Nov 2021 13:33:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F73061B4D for ; Tue, 16 Nov 2021 13:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235911AbhKPNgD (ORCPT ); Tue, 16 Nov 2021 08:36:03 -0500 Received: from lithium.sammserver.com ([168.119.122.30]:49106 "EHLO lithium.sammserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232895AbhKPNf6 (ORCPT ); Tue, 16 Nov 2021 08:35:58 -0500 Received: from mail.sammserver.com (sammserver.wg [10.32.40.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by lithium.sammserver.com (Postfix) with ESMTPS id AEBD13115D1B; Tue, 16 Nov 2021 14:33:00 +0100 (CET) Received: from fastboi.localdomain (fastboi.wg [10.32.40.5]) by mail.sammserver.com (Postfix) with ESMTP id 3BF2E2534D; Tue, 16 Nov 2021 14:32:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cavoj.net; s=email; t=1637069580; bh=rsBoRUnLkAEXPVbzZQ/EmyVepqJ2ugaPXO0wds7juOs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pmqtAhN0PjzmJnp5Ads5EPwiG0Da0AWI9vRxkfs/9FYiwOjJ0cfLMr7sjnOxNX29y 0IFa/YtCuoowxkDtJc4CpvUosq3gThzCg4FFqlK1L0E1CWhczN4i16DSWn1VK62GgW uU9qp+WVFue/mJ4spMXpIRLzZKRBmqFX5vAPPWVQ= Received: by fastboi.localdomain (Postfix, from userid 1000) id 268DD1421378; Tue, 16 Nov 2021 14:32:59 +0100 (CET) Date: Tue, 16 Nov 2021 14:32:59 +0100 From: Samuel =?utf-8?B?xIxhdm9q?= To: Alex Deucher Cc: Alex Deucher , Leo Li , Roman Li , Maling list - DRI developers , LKML , amd-gfx list Subject: Re: Backlight control broken on UM325 (OLED) on 5.15 (bisected) Message-ID: <20211116133259.svayrqaiivaubkjp@fastboi.localdomain> References: <20211114105657.b57pjojiv72iopg5@fastboi.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, thank you for your response. On 15.11.2021 10:43, Alex Deucher wrote: > [...] > > That patch adds support for systems with multiple backlights. Do you > have multiple backlight devices now? If so, does the other one work? No, there is still only one backlight device -- amdgpu_bl0. > > Can you also try this patch? > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > index 4811b0faafd9..67163c9d49e6 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > @@ -854,8 +854,8 @@ int amdgpu_acpi_init(struct amdgpu_device *adev) > if (amdgpu_device_has_dc_support(adev)) { > #if defined(CONFIG_DRM_AMD_DC) > struct amdgpu_display_manager *dm = &adev->dm; > - if (dm->backlight_dev[0]) > - atif->bd = dm->backlight_dev[0]; > + if (dm->backlight_dev[1]) > + atif->bd = dm->backlight_dev[1]; > #endif > } else { > struct drm_encoder *tmp; > There is no difference in behaviour after applying the patch. Samuel > > Alex > > > > > Regards, > > Samuel Čavoj > > > > [0]: https://www.reddit.com/r/AMDLaptops/comments/qst0fm/after_updating_to_linux_515_my_brightness/