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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 469C2C7619A for ; Sun, 2 Apr 2023 20:43:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FD8910E058; Sun, 2 Apr 2023 20:43:17 +0000 (UTC) Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6AAA810E058 for ; Sun, 2 Apr 2023 20:43:16 +0000 (UTC) Received: from linux-libre.fsfla.org ([209.51.188.54] helo=free.home) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj4Xd-0005vk-5z; Sun, 02 Apr 2023 16:43:09 -0400 Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 332Kgstx1652492 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 2 Apr 2023 17:42:55 -0300 From: Alexandre Oliva To: John Harrison Organization: Free thinker, not speaking for the GNU Project References: Date: Sun, 02 Apr 2023 17:42:54 -0300 In-Reply-To: (John Harrison's message of "Fri, 31 Mar 2023 12:14:47 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 Subject: Re: [Intel-gfx] [PATCH] [i915] avoid infinite retries in GuC/HuC loading X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, stable@vger.kernel.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Mar 31, 2023, John Harrison wrote: >>> I'm not sure that is really a valid use case that the driver code >>> should be expected to support. >> It's most certainly not. As I wrote, I'd be happy to keep on carrying >> the patch that adjusts the code to cope with our changes. I just >> thought the same issue could come up by, say, mistakenly applying a >> patch twice to add support for a new card, a circumstance in which one >> might not have the card readily available to try it out. > Not following this argument. I was talking about downstream backporting, e.g. random users or small-distro maintainers attempting to backport support for certain cards without realizing it's already there. >> Oh, no, the driver loads just fine even without those blobs, and that's >> much nicer of you than other drivers for hardware that doesn't really >> require blobs, but that insist on bailing out if the firmware can't be >> loaded. i915 hasn't been hostile like that. > That situation won't last... :-( > I would consider that a bug that should never make it past either > pre-merge CI or code review. Agreed. > And if you really do need to remove the firmware files from the > compiled binary completely, then replacing them with unique names > would also work - '/*(DEBLOBBED_1)*/', '/*(DEBLOBBED_2)*/', etc. That is not doable with our current deblob-check implementation, unfortunately. There are long-term plans to switch to a different approach, but we're not there yet. So I guess we'll have to use custom code to disable blob loading on i915, while that's still possible, when the stricter table checking hits. >>> Also, is this string unification thing a part of the current gcc >>> toolchain? >> Yeah, compilers and linkers have been unifying (read-only) string >> literals for a very long time. > That's what I would have assumed. Which is why I was confused that you > were saying 'if you use a toolchain that does this'. It seemed that > you were implying that most don't and this was a special situation. Oh, no, sorry, it's just that compilers can't be dependent on for string literal unification. It's an optimization, not a language-imposed requirement. Thanks for considering the patch, and for the heads up about darker days coming for users of Intel video cards! :-( -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about