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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3C0DC433E6 for ; Mon, 8 Feb 2021 20:47:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38EC664E74 for ; Mon, 8 Feb 2021 20:47:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38EC664E74 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bugzilla.kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6895F6E9F7; Mon, 8 Feb 2021 20:47:46 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7CF8A6E9F7 for ; Mon, 8 Feb 2021 20:47:45 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPS id 1765464EAC for ; Mon, 8 Feb 2021 20:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612817265; bh=oTMI9tknAdg5Py9ufBtK+Y74H6Z4mNRrdr/6CiwOI54=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SRaUiRU7GDCFmnOedXkZhS7/6QoxX31D+uhXFOXpnOTxuMs4Ir5ZNTEpE5w3zneQN 9y8OYrzDcWzpUhNVy3/XRXYa+z8PCy12Xr37iob7iowbT0Aka66yPhVFcNvdyKSfJi NOFIoEWVnbvw9nlNqLYfO+Wx3qLeq9RjuUhaTrR53dETKQ0KhNpIJoQDqrtEUZeQCp JdcUDrC8G6XkECTgLIUhUtOxpsm5M5WqeB10NoO1KcZuLBXnUIqElHOBtp8WFp1mE2 Xt1da9HZcSsSWIIwwyr10KoI0BEZ8Po1y8nhpCkWFAZtqEvwhQEXIkl+rDScLVUjVI KjwqakFslw1zQ== From: bugzilla-daemon@bugzilla.kernel.org To: dri-devel@lists.freedesktop.org Subject: [Bug 203905] amdgpu:actual_brightness has unreal/wrong value Date: Mon, 08 Feb 2021 20:47:44 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo drivers_video-dri@kernel-bugs.osdl.org X-Bugzilla-Product: Drivers X-Bugzilla-Component: Video(DRI - non Intel) X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: antonyjr000@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: drivers_video-dri@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" https://bugzilla.kernel.org/show_bug.cgi?id=203905 --- Comment #22 from Antony J.R (antonyjr000@gmail.com) --- A workaround for this is done by the OpenSUSE folks, Please see https://bugzilla.opensuse.org/show_bug.cgi?id=1180749 The only distro which fixes this is OpenSUSE. This is because there is a bug in the mainline kernel and kernel devs are not responding to us for some reason(maybe file a new issue???). The problem is that the kernel uses aux for backlight control but our systems don't support backlight control via aux. So disabling aux completely from amdgpu kernel module can give us backlight control for the iGPU. I've tested it and it works just find. Regards, Antony J.R On Mon, Feb 8, 2021 at 3:47 AM wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=203905 > > Paulo Nascimento (paulo.ulusu@googlemail.com) changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| | > paulo.ulusu@googlemail.com > > --- Comment #21 from Paulo Nascimento (paulo.ulusu@googlemail.com) --- > I confirm that the bug is not fixed in kenel 5.11-rc3 > > max brightness: > [pn@pn-legion backlight]$ cat > /sys/class/backlight/amdgpu_bl1/actual_brightness > 311 > [pn@pn-legion backlight]$ cat /sys/class/backlight/amdgpu_bl1/brightness > 255 > [pn@pn-legion backlight]$ cat > /sys/class/backlight/amdgpu_bl1/max_brightness > 255 > > min brightness: > [pn@pn-legion backlight]$ cat > /sys/class/backlight/amdgpu_bl1/actual_brightness > 311 > [pn@pn-legion backlight]$ cat /sys/class/backlight/amdgpu_bl1/brightness > 0 > [pn@pn-legion backlight]$ cat > /sys/class/backlight/amdgpu_bl1/max_brightness > 255 > > My laptop has an amd ryzen 5 4600h with renoir igpu and nvidia dgpu. > Tests are done with renoir igpu: > > [pn@pn-legion backlight]$ inxi -G > Graphics: Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: > nouveau > v: kernel > Device-2: Advanced Micro Devices [AMD/ATI] Renoir driver: > amdgpu v: > kernel > Device-3: Chicony Integrated Camera type: USB driver: uvcvideo > Display: x11 server: X.Org 1.20.10 driver: loaded: > amdgpu,ati,modesetting,nouveau resolution: 1920x1080~120Hz > OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-1-MANJARO LLVM > 11.0.1) v: 4.6 Mesa 20.3.3 > > -- > You may reply to this email to add a comment. > > You are receiving this mail because: > You are on the CC list for the bug. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel