Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7465441rwd; Tue, 20 Jun 2023 01:24:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pUEf+h7GTNTyI/B0EpIlz9LMwI8QWTfYd1VADq/b7RCkD5ol8/r+Hfl00+Sm8p2VJBvoo X-Received: by 2002:a05:6a21:7886:b0:10f:1f0:9b43 with SMTP id bf6-20020a056a21788600b0010f01f09b43mr16863471pzc.6.1687249460880; Tue, 20 Jun 2023 01:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687249460; cv=none; d=google.com; s=arc-20160816; b=h32YrtOllv3hKsM1w0kPqR304OJfAhmkO4uBT/do5nt7vlrayWaSEXwC4DAZbrUQPq fgMkyQ+/37jtD8dJiY/CdPV7I5Z6IY/uXE5E0Muz2vc9nXfQKRQilHUHVPXVVV7pRFUN R+yhXRIbIyT/BXhEt0bBwuvzuobPKotzrhb7T4HCI71W9V16GidM+slTSfjfSbLraveY UYD1u6JVu/WjdN8+u5ZG3x/WlRxf623ciyA7Ojnx+6+RmpEktmn4NVyM/ooxjJ4qRXu8 Sg1VmkHsY9C0guQA0hpSkJFGDHEom7nC5Y5Tl64dgnmTg4ts2OJbHPe45wotey9gofOG rm9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=7OJL+2ljSAsX+K1gdyXTKpGUjBVDC+iSX2Dkj5l9F1E=; b=Btvoc22yeI4DT79Rq9q12bwhFEqXNjvXbnhHpgsnRvJtgenCMG8ZObVp7Brl3seiRQ j1ZRZUnaAQHReQLavot1etR35UmmbYv7uzuklI2NQmqXo2DTAygVGVb0xqrdXgxBw8DV hU6Ll6I+VUf5+BnjpMkc18vXnw0cjoh61Y6Lvdq3Q2ll3EoBhtCHwC2LqqPpXqtI6Y86 USJM9I5GFL5EbIkNCJvezUuH0NbLvpteOjhVLqZZkW2Huu807pyMZQnS+kugsvj4qTYR 7IJ1a45Odmiw/lcO2mVbiP01e0vWe7ULeKApHtZOglj4Q5cezdEu2F47V3a7tW1ZKqFI mz8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VwbYO1I6; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=UCMTO8CD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a63e444000000b00544054a1555si1270570pgk.460.2023.06.20.01.24.08; Tue, 20 Jun 2023 01:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VwbYO1I6; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=UCMTO8CD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbjFTIEk (ORCPT + 99 others); Tue, 20 Jun 2023 04:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjFTIEi (ORCPT ); Tue, 20 Jun 2023 04:04:38 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D737B1; Tue, 20 Jun 2023 01:04:37 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 33FFE1F37C; Tue, 20 Jun 2023 08:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687248276; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7OJL+2ljSAsX+K1gdyXTKpGUjBVDC+iSX2Dkj5l9F1E=; b=VwbYO1I6T2fGkPwnvn8GfJx+WUb0vQY9rr31AUTLpwwKOPrVZv8b7Lp3E8scFLga/iXhKF 4J+n9bzh5K7KoTqbMZDkhu7GRdzExRvH+v0jCYnNgOIj1A9ICZgQA2qTZm/+h/rOYZVw+w 7EVW6DSk9IQie8tiGFoGvneGqoe5GKU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687248276; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7OJL+2ljSAsX+K1gdyXTKpGUjBVDC+iSX2Dkj5l9F1E=; b=UCMTO8CD/webcRI2Fo5EoQLq/NF5sqXQ42k43dTN1pLahxxl7WrTimou6gZWuLATpKgGBV vidFDbrvfCFwdHCg== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id B94712C141; Tue, 20 Jun 2023 08:04:35 +0000 (UTC) Date: Tue, 20 Jun 2023 10:04:34 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Helge Deller Cc: Cyril Brulebois , Rob Herring , Thomas Zimmermann , Linux regressions mailing list , Salvatore Bonaccorso , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] fbdev/offb: Update expected device name Message-ID: <20230620080434.GD9196@kitsune.suse.cz> References: <20230412095509.2196162-1-cyril@debamax.com> <20230412095509.2196162-2-cyril@debamax.com> <11b342dc-1a46-d1be-5fdd-c6eee661e15a@leemhuis.info> <20230615132107.GA9196@kitsune.suse.cz> <20230615200901.GA1572644-robh@kernel.org> <20230615211924.cf2qs52cfaf7m3f7@debamax.com> <3d8c3a8c-68be-422a-c4ff-6d2e99c3f01b@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3d8c3a8c-68be-422a-c4ff-6d2e99c3f01b@gmx.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2023 at 08:24:34AM +0200, Helge Deller wrote: > On 6/15/23 23:19, Cyril Brulebois wrote: > > Hi Rob, > > > > Rob Herring (2023-06-15): > > > On Thu, Jun 15, 2023 at 03:21:07PM +0200, Michal Such?nek wrote: > > > > At the time this was proposed it was said that "of-display", is wrong, > > > > and that "of-display.0" must be used for the first device instead, and > > > > if something breaks an alias can be provided. > > > > > > > > So how does one provide an alias so that offb can find "of-display.0" > > > > as "of-display"? > > > > > > I'm not aware of any way. There isn't because device names and paths are > > > not considered ABI. There are mechanisms for getting stable class device > > > indices (e.g. i2c0, mmcblk0, fb0, fb1, etc.) though not implemented for > > > fbN (and please don't add it). > > > > > > In any case, this should be an easy fix. Though if "linux,opened" or > > > "linux,boot-display" is not set, then you'd still get "of-display.0": > > > > > > diff --git a/drivers/of/platform.c b/drivers/of/platform.c > > > index 78ae84187449..e46482cef9c7 100644 > > > --- a/drivers/of/platform.c > > > +++ b/drivers/of/platform.c > > > @@ -553,7 +553,7 @@ static int __init of_platform_default_populate_init(void) > > > if (!of_get_property(node, "linux,opened", NULL) || > > > !of_get_property(node, "linux,boot-display", NULL)) > > > continue; > > > - dev = of_platform_device_create(node, "of-display.0", NULL); > > > + dev = of_platform_device_create(node, "of-display", NULL); > > > of_node_put(node); > > > if (WARN_ON(!dev)) > > > return -ENOMEM; > > Michal, does that patch look correct? > I don't have that hardware, but that way the boot-display gets named > "of-display" while all others get "of-display.x".... Yes, that's inconsistent, and IIRC it's what I originally proposed to preserve compatibility as much as possible. The patch went through multiple iteration by me and Rob and the final version that was merged uses the consistent but incompatible naming. The other option would be to adapt the offb driver, presumably. I don't understand how the device name figures in attaching the driver to the device, the only other occurence of of-display is the name of the offb and ofdrm drivers. > > I've just replaced my clueless workaround with this patch on top of the > > kernel found in Debian 12 (Bookworm), i.e. 6.1.27 at this point, and it > > indeed fixes the black screen problem in the installer's context. > > ... at least it fixes the issue. I would expect as much. I don't have the hardware either but keeping what was there before, and only adding on top is kind of the least disruptive way of adding new stuff. Thanks Michal