Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1447983pxf; Fri, 19 Mar 2021 07:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxzijt7Ms+l9FGgDk3Uo5lJEaxb5z8yv6AKq66lvfB9aY2EZ+kT6u6jOkq6bO7duelKhhu X-Received: by 2002:a05:6402:95b:: with SMTP id h27mr9991189edz.93.1616163989230; Fri, 19 Mar 2021 07:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616163989; cv=none; d=google.com; s=arc-20160816; b=NC9ipET2NNDp/FT+zXmUKkaoO6AxVDLHeDI1OiIyF7NkN7Vkf/XkB3C9wmCwFiVhnq ch/tJuL3rzYeIi793AfhAHvhbMqNAeN3DXP26dSQBKQhArEs0VXLR3u94btEPDygtllG gIyxQOU93YcQ0JsdIZJPPbCUayQzVH+m2Bdui2IX0kUsEGYyynvmoG+/hXCHgo4btMps xfbWM4Fg3688pNsMHpJR+BiN+5itG3BEHFbGYFUX8VRfj/8JMzds931H6ODB37htN03E Qb76b+VM9dbbXJd+NNraEoUB9kPdjue74GHxOwPfAeYQN2ojHFYxyKj6cTAgCiMsjvNt dGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=H+QTRu6EnHIJRSAxr0xqfxOd0QJj6B0MWLRcdPTUx6E=; b=t93Dm+BKzeEAyE8hjnT0bRvOEE+t02d4kcoYJQm12GK5tpHC01evNwXVkBqjMXO1lN MWE3K0RaOFVPU34IEFjMGkLaa3iWSAz7dfH+uwupZ/t3hUHz+wq2myZbaNLMZWi65giB JQN0SNqLtu4S6Ea/9nlZvJb93BKOQDjqPLdjpvYs0pVzgDan7HZMn0+VjSKZui2J+5Cs No0qlWeyfcDRuK9Q2EDNppzIJohfyKbZMQIkCVAmH2AGVOCGBy81sZ3c0DT2KWHyuVXU nDiT6UBplSjXXK+8aLpecNnbUUHPbIskQqtoSJV61hF7amU4+RKh1UXYKEKfAunbwWv/ /rzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QG1GJGF0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si4517675eju.241.2021.03.19.07.26.05; Fri, 19 Mar 2021 07:26:29 -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 header.i=@gmail.com header.s=20161025 header.b=QG1GJGF0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbhCSOWi (ORCPT + 99 others); Fri, 19 Mar 2021 10:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbhCSOWY (ORCPT ); Fri, 19 Mar 2021 10:22:24 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDB0BC06174A for ; Fri, 19 Mar 2021 07:22:23 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id g8-20020a9d6c480000b02901b65ca2432cso8679679otq.3 for ; Fri, 19 Mar 2021 07:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H+QTRu6EnHIJRSAxr0xqfxOd0QJj6B0MWLRcdPTUx6E=; b=QG1GJGF09eRn2BJfugyVxbdtWB3kouSc28Ve52z65D2tx7ZZUD23R8f8ty6P8w4Jdu bmIWlZYjsZg1VFL2IRknwtEbZIJNJIXG7bn+1d1EgM8d0yA9JML5LxOaH6bFGIAzbeum HPKyoPLxbF2Rn69l5wDiL0GSFof3fOcjPNCCT9inw0JuJU9dDBybwr2r2F8KvbB0uVPB TruKdtbUgTGS8ItSjHQlj/jwaGap03lCPx4S7uk6Qo4qdtQh8wuhORDslhcRytR46Gbv fEO0BSJQFB41G0D1lwL21P9TIm8UWdR4tHnfvnEp9ITLXPCD6VwAf0hq1me2dwns5iHy kejg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H+QTRu6EnHIJRSAxr0xqfxOd0QJj6B0MWLRcdPTUx6E=; b=GJdOZzscY4UYg3uUHIy++JlUE24KnYtoIlufJaxzee1ASkByK3oxIN+7FJhLUi/EzX p/XGoAkIvlnAHsV/c8PeDoVqjTFgWu55ROgT4tBaIgcyfF9GJFqirS8f3F3NdHfR/Bq4 8UDVMdYj9+RCN4Qniw+C0Eaktu+oe2s8Gdvci5VLc1wfnKKVhLQ+xKKCtcF0650LzXhT RuyYD0cUsoZDo9QtL+7vCy+Xi9bIxZY2n2FeKDX3FMx5dUkDzwUy/t57tZBhVrH1j1Vd ZFUf7di6mtuQT/NxIFT+qOhmNBFelfAaglw9ojWtDW2F6wwQQivjUJ/RJLpNul+EIVVh hwBg== X-Gm-Message-State: AOAM530RFkabHI7/7PItRkBj/H0DrZNRMC2M6+i6yVWceGlX5EueWdWa TiJD97ZOxdS6oEL5gcjPHkDRIeFXiAL4j8tdYnQ= X-Received: by 2002:a05:6830:408f:: with SMTP id x15mr1432261ott.132.1616163743185; Fri, 19 Mar 2021 07:22:23 -0700 (PDT) MIME-Version: 1.0 References: <20210319164418.1.I5d51cc12776ee8993a1a54089b548952f75ada41@changeid> In-Reply-To: <20210319164418.1.I5d51cc12776ee8993a1a54089b548952f75ada41@changeid> From: Alex Deucher Date: Fri, 19 Mar 2021 10:22:12 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Set AMDGPU_DM_DEFAULT_MIN_BACKLIGHT to 0 To: Evan Benn Cc: LKML , Stylon Wang , Eryk Brol , David Airlie , Rodrigo Siqueira , amd-gfx list , Nicholas Kazlauskas , Leo Li , Aurabindo Pillai , Maling list - DRI developers , Alex Deucher , Bhawanpreet Lakha , =?UTF-8?Q?Christian_K=C3=B6nig?= , Anand Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 3:23 AM Evan Benn wrote: > > AMDGPU_DM_DEFAULT_MIN_BACKLIGHT was set to the value of 12 > to ensure no display backlight will flicker at low user brightness > settings. However this value is quite bright, so for devices that do not > implement the ACPI ATIF > ATIF_FUNCTION_QUERY_BRIGHTNESS_TRANSFER_CHARACTERISTICS > functionality the user cannot set the brightness to a low level even if > the display would support such a low PWM. > > This ATIF feature is not implemented on for example AMD grunt chromebooks. > > Signed-off-by: Evan Benn > > --- > I could not find a justification for the reason for the value. It has > caused some noticable regression for users: https://bugzilla.kernel.org/show_bug.cgi?id=203439 > > Maybe this can be either user controlled or userspace configured, but > preventing users from turning their backlight dim seems wrong. My understanding is that some panels flicker if you set the min to a value too low. This was a safe minimum if the platform didn't specify it's own safe minimum. I think we'd just be trading one bug for another (flickering vs not dim enough). Maybe a whitelist or blacklist would be a better solution? Alex > > Also reviewed here: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2748377 > > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index 573cf17262da..0129bd69b94e 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -3151,7 +3151,7 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) > return 0; > } > > -#define AMDGPU_DM_DEFAULT_MIN_BACKLIGHT 12 > +#define AMDGPU_DM_DEFAULT_MIN_BACKLIGHT 0 > #define AMDGPU_DM_DEFAULT_MAX_BACKLIGHT 255 > #define AUX_BL_DEFAULT_TRANSITION_TIME_MS 50 > > -- > 2.31.0.291.g576ba9dcdaf-goog > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel