Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3080227pxu; Mon, 19 Oct 2020 03:29:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9ItXF2br+pgB69kqo9MkrLTKrTd7NqxwozJkHyNK/hnp/4kPhlFFJiwjJNc1l7bvrvJBO X-Received: by 2002:a17:906:3c03:: with SMTP id h3mr16120385ejg.78.1603103396917; Mon, 19 Oct 2020 03:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603103396; cv=none; d=google.com; s=arc-20160816; b=lurUAS2jANysN8r1QFstooxUSee5zJ5ocZFXwR/4DrJw36k5g9pLn90SanM9mei1Cd TwljSIn7jd0X0130d7qmDV8oMBo068rlXUW5f3N7N60s4jsSR5DLYkdcPvXNEey2XEOH 4oC/bZkPYu+TX2TZw5CoF9s8mKOV5xU04p76zf9XstZOfgphcZjpR8m/Aa/k5u5jMHwQ MVuMJq0DgJ9yykkxXo1DSNi0bukb4m8qrQMYXTNm/l+v+8BFMZMXxXGtwJKsYYKvroHG R9e5N8nPHuvxfbuXBQjIzluDPumIg5TefzwdW/S1OLfhjVhtOvq7cWy+PZflwo6TY+Mo kwAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :autocrypt:from:references:cc:to:subject:dkim-signature; bh=Dxlb943mpAZem9qguDW/aZj239fOnb9kmxA8tQ1N2pE=; b=dGNBUghHMpmz3fedScjT8kGAfpeSFf/LI0Vo4L/fS9hbj1gVMa3KSkQT/7PkP70ybM lWmGFf/KHm9d7kIV3LcbefX9/zi3G5MfTH9xxQcmIbh8RdH4qVh7l0cJM9W9pZHCsJFj 3qkm/i2WU0qL6qb3wTXvjkGett90bToLlstgL58CdobKiOCcivZLa/AuMiKcH9UMhCcK McpMcESIqlntdkqE/4ZRt9kBzocUM0tjnIuSaMSvINuWwIECHLbzpFZyao6pjezKihrh QnCj0cNExa58PgZUIv6Nm854S71bmkgSnAKwZuk/M7upxsEyCVxmI/NGfpdRjZ6amCdT /p7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=HDsiYK42; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si7823188edq.232.2020.10.19.03.29.34; Mon, 19 Oct 2020 03:29:56 -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=@xs4all.nl header.s=s1 header.b=HDsiYK42; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729278AbgJSIfV (ORCPT + 99 others); Mon, 19 Oct 2020 04:35:21 -0400 Received: from lb2-smtp-cloud7.xs4all.net ([194.109.24.28]:34571 "EHLO lb2-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728871AbgJSIfV (ORCPT ); Mon, 19 Oct 2020 04:35:21 -0400 Received: from cust-57f2be97 ([IPv6:fc0c:c196:c6c4:fdf1:aa47:ab6:e251:d2a8]) by smtp-cloud7.xs4all.net with ESMTPA id UQdMkcxTkghRkUQdNkr5dO; Mon, 19 Oct 2020 10:35:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1603096516; bh=Dxlb943mpAZem9qguDW/aZj239fOnb9kmxA8tQ1N2pE=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=HDsiYK424WLIPaq++W+HFCe0keMCSCRMnX+H0tgR1v2VYJkdzIQ0jC27Z6A1anmdn PiK6d/AJYqXF7OqE5vrTzMWlaX7ej9zN5qLiqiOsdACk5OYmuV7Gk37p7zBcS50XBP h8iDg+3BC0bgqA0FsQPJcbvtMwvnQ80537AOcbTChKfLYu7ot+oxUf1Br+3k60Ig/2 hhsWKUIT9zp7IqX0EXPqtEha4i4GGGd65vmLZY9uYFzKM1TDHSk7fM6ufnNfK+Eq2w wTvFddOfxmKH+xqtd4rlvpYrcyoAENV0zYCJEfBnK6K3jyGENHGBmrMTLp+ZbkMLfz y+QlKm9Z/b1bQ== Subject: Re: disabling CONFIG_LED_CLASS (SND_HDA_CODEC_REALTEK) To: Takashi Iwai , Randy Dunlap , "linux-kernel@vger.kernel.org" , linux-leds@vger.kernel.org, Dan Murphy , moderated for non-subscribers Cc: Pavel Machek References: <1e6b1961-9e9b-5f82-86a1-bf838cb68f55@xs4all.nl> <20201014075853.GB29881@amd> <056a8933-378f-30f2-c7af-5514d93d3c36@xs4all.nl> <20201014081116.GC29881@amd> <2be6e184-97d4-a2b1-a500-6ea3528cff37@xs4all.nl> <20201014082752.GA31728@amd> <9cf705b9-1fca-2445-43de-916b13b9103f@xs4all.nl> <20201014083758.GB31728@amd> From: Udo van den Heuvel Autocrypt: addr=udovdh@xs4all.nl; prefer-encrypt=mutual; keydata= mQINBFTtuO0BEACwwf5qDINuMWL9poNLJdZh/FM5RxwfCFgfbM29Aip4wAUD3CaQHRLILtNO Oo4JwIPtDp7fXZ3MB82tqhBRU3W3HVHodSzvUk2VzV0dE1prJiVizpPtIeYRRDr4KnWTvJOx Fd3I7CiLv8oTH9j5yPTMfZ58Prp6Fgssarv66EdPWpKjQMY4mS8sl7/3SytvXiACeFTYPBON 1I2yPIeYK4pKoMq9y/zQ9RjGai5dg2nuiCvvHANzKLJJ2dzfnQNGaCTxdEAuCbmMQDb5M+Gs 8AT+cf0IWNO4xpExo61aRDT9N7dUPm/URcLjCAGenX10kPdeJP6I3RauEUU+Q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ajcBNQpPrbg Ve3efZfKiwYECE7JehwomAWhiUdgRUXYT/Gv2guotzFj/LpitMiya1e4Lz9LC/BCrs9cwQES +Vrr84LEwO9kLIpREP2RmF8FpzzoiL06xsWRw/WqSjmnEqGPgk/lvsXvrQCk9CPJOBI3Wv4Y OozJ2jTTjV+q7YkBKFMb90fokYZ2gDSLHU6VKGQG7xcErZ0VoJ/i4CDLymubltDI5NMp3deF MRZbj7Oyd7GlLpBeI1yRolktgDw9ipzXO7AGa2nkpPyRctGNFhQgq/1B81S2Z8HVqXcN4p6C EHirTdo1qbjz9pfuH4C8mxyVZ6wwLI7o4AFE8miw2KFK8gYqHWPBvIHWcU2b15NEQPbsdk5x SSb3cPK0dbHo+S2sdQmZ0GMFzS7yIjnBVLSK0151I9ritrXmm9EQSBOEHnRqExhhz7rmvFqh ab1cwvYgiEJVbXxsOglb6vdonKm3c0GK5RW7FQlzjPU7zuaaaiaMH3SpqhVI0DwLDuNG8G6Y ZLdTQWpYGWsTAop6ahIIFZv6xqm49iY8kQHzvJBJMApE2evzJ68bLp8fVTSxgxM= Organization: hierzo Message-ID: Date: Mon, 19 Oct 2020 10:35:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201014083758.GB31728@amd> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfMhtmd72LSRj834vWkYq/ZQfiQkrT50q1y4It/03aF6gdz7QKHIgeBqLQogKoObCMiz/quhJtfdNXP5vNe3M1cyzweTd2ICUL0pdUCZTB+E0Y9Gav88j qbTUEm061VZLSBu8/IEcCtoiFy4xxHqWWmWykxCZYTL3CCdtpYnVV+y5EA306c5WG4ukdS3OFHZy2kMGc+beiW5nrINvGzajei1qPDD5z11e0xFsjiMBaBd2 29uyS6MCLtpmKepOPYTCviHk13ywKMj5m6946iFypI23anw4XYVDjIJi2VijNV0Vi/AJFNCqtEYJqsDqkysyL6cQWggnmAvrijAxhAqt/jfdAWM0BOj81AFd ga3mNh3JJrMha22SjmiMYxyfXpE7vDkSWlG9okY0hZFcmRnw2srOn/lHiY243pOQg3LnGBCIIONUjOYtw97+vuAYKXwK5A== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org People, At https://www.kernel.org/doc/html/latest/leds/leds-class.html we can read that the LEDS code supposedly optimizes away when certain conditions are met. Especially the Realtek HDA driver *unconditionally* (as found in 5.9.1) *wants* to enable LED functionality. I.e.: if this blockade is lifted in the source tree then I can live with the 'is optimized out' predictions, assuming that gcc (from Fedora 32) can do this. So the request is clear; we're almost there. Please make it so that the compiler can do the 'optimize away' work bij changing a tad in the Realtek HDA driver, along the lines of the patch sent to me earlier or something even more beautiful. Thanks in advance and kind regards, Udo On 14-10-2020 10:37, Pavel Machek wrote: > On Wed 2020-10-14 10:34:21, Udo van den Heuvel wrote: >> On 14-10-2020 10:27, Pavel Machek wrote: >>>> One should have thought about stuff beforehand. >>> >>> We did. And decided this is best solution. >> >> Then the thought process went awry. >> >>>> The non-selectability is not my fault. >>> >>> It also does not affect you in any way. >> >> It does. >> /boot fills up even sooner thanks to this unused code. >> Compiles last longer because of this unused code. > > Have you measured how much slower and how much bigger it is? Do you > understand that you propose to make source code bigger and slower to > compile for everyone else? > > You are filling my inbox. > >>> Feel free to go to the mic LED discussion to see why we did it like >>> this. Then you can come up with better solution for problem at hand. >> >> I did not think of forcing code onto somebody. Someone else did. >> This is effectively the effect of the LEDs thing. > > Without understanding what was decided and why, this discussion is not > useful. > > > Pavel >