Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2813310rwd; Mon, 22 May 2023 04:55:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jux7WwgLPzRUhMtWwt1UJerej2gfydaSl96r2HdeuONaKn4btGulsYPx+KZliSqNBKQ7o X-Received: by 2002:a17:902:ab42:b0:1ae:4ba0:af86 with SMTP id ij2-20020a170902ab4200b001ae4ba0af86mr7497398plb.64.1684756505371; Mon, 22 May 2023 04:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684756505; cv=none; d=google.com; s=arc-20160816; b=VwbvIz+0ew/7Er7/nqRoSYPC/zwCDopJfBwB90Qi3pbqKFoivfAmY/lc+Pl4pqeoh5 zPyQbtX2DqiK4gwfkvfMdKmvUoIy9H+T17eBT8qkx9kSBy3heAqaxn3zyYCFvOfj6NJ0 yNB5pIv+nk/b68ZmlHpOuDO3IYcOGUYO2K2n4MFQmX2bGRNQwpIyi6SUVxU69MVKk1qz k4w3JDbDj2Fj0vJF/IA5YleqQ4M6nWbDZpFZY2jPpO+Gczb/tocEaHQKkzAMBs811UF1 9LJ9C7Z7CHND1nCMcEPDMh+7EtgAlV8Ng1OZMzjKl8mLyTEUbNbJPFk/uWR815+QlSa/ s3Fw== 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=RXgpxboI1bw9eXRQKxoN/Zr/TelBo2erFp+oCAN6jQ4=; b=iJypOAcC4rrrco0PXM4aNvSww6yyNMhqR/A3U0q8bObs0aYKsAUZKxwvzLsEVr3w9T RYwcj6XyTCMNb40EeNbgaP5VFgRXwh6kYeVx6szN/7J2DNWdnp91FiHFd4XhZz6uEti/ 7daWtZRVL8g5LtgNURdqBG7DhLRS44QX3KQogM3Y509ylJI2MOgfYuYUNTnerD+3nEcY aUa40r8Of1+gV3KjlDot6xZiw+hTLTyJMxnMNGTEIW6uXUNDPZqjEU0fswWzkv93gblH I4guYHKMKuWmX2Mx9+sohp949QNDlVplXZDfk1PWvhJqx/om4YJx0ZIXiSLvzyCToWmh T2Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="xshnHi/Z"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=VCaQEPWI; 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 v5-20020a170902b7c500b001a6ade4c8c2si4398681plz.142.2023.05.22.04.54.50; Mon, 22 May 2023 04:55:05 -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="xshnHi/Z"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=VCaQEPWI; 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 S233370AbjEVLoh (ORCPT + 99 others); Mon, 22 May 2023 07:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232427AbjEVLog (ORCPT ); Mon, 22 May 2023 07:44:36 -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 7F0A299; Mon, 22 May 2023 04:44:33 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 2645C1FE83; Mon, 22 May 2023 11:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1684755872; 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=RXgpxboI1bw9eXRQKxoN/Zr/TelBo2erFp+oCAN6jQ4=; b=xshnHi/ZPGtf5PnerhW07I/ZJ3gtuXaQXOMW1lqWJPHulL6JCwemBTdT6hrFHwIIHSed4v ea2F1eVZy8EXq+1FsNxVQTtwHaY1yz1Ptq/ScwtUkJim3RYiBlETvetX0UbmO4Ety9M0ni hwzOSYQrMj/LOTJYuPl9EjduENWCBiQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1684755872; 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=RXgpxboI1bw9eXRQKxoN/Zr/TelBo2erFp+oCAN6jQ4=; b=VCaQEPWIJMQFKfvjU2QqgEyFocOltgb1T0Aku6lMo9jnDOFeFltWYrRg398m5sQNJb9NTE E4mo0IqKd9uklYBQ== 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 D0A092C141; Mon, 22 May 2023 11:44:31 +0000 (UTC) Date: Mon, 22 May 2023 13:44:30 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Thomas Zimmermann Cc: Geert Uytterhoeven , Cyril Brulebois , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Rob Herring , linux-kernel@vger.kernel.org, stable@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH 2/2] drm/ofdrm: Update expected device name Message-ID: <20230522114430.GA15906@kitsune.suse.cz> References: <20230412095509.2196162-1-cyril@debamax.com> <20230412095509.2196162-3-cyril@debamax.com> <5694a9ab-d474-c101-9398-eea55aab29df@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5694a9ab-d474-c101-9398-eea55aab29df@suse.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 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 Mon, Apr 24, 2023 at 11:07:45AM +0200, Thomas Zimmermann wrote: > Hi > > Am 24.04.23 um 09:33 schrieb Geert Uytterhoeven: > > Hi Cyril, > > > > CC DT > > > > On Wed, Apr 12, 2023 at 12:05 PM Cyril Brulebois wrote: > > > Since commit 241d2fb56a18 ("of: Make OF framebuffer device names unique"), > > > as spotted by Frédéric Bonnard, the historical "of-display" device is > > > gone: the updated logic creates "of-display.0" instead, then as many > > > "of-display.N" as required. > > > > > > This means that offb no longer finds the expected device, which prevents > > > the Debian Installer from setting up its interface, at least on ppc64el. > > > > > > Given the code similarity it is likely to affect ofdrm in the same way. > > > > > > It might be better to iterate on all possible nodes, but updating the > > > hardcoded device from "of-display" to "of-display.0" is likely to help > > > as a first step. > > > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=217328 > > > Link: https://bugs.debian.org/1033058 > > > Fixes: 241d2fb56a18 ("of: Make OF framebuffer device names unique") > > > Cc: stable@vger.kernel.org # v6.2+ > > > Signed-off-by: Cyril Brulebois > > > > Thanks for your patch, which is now commit 3a9d8ea2539ebebd > > ("drm/ofdrm: Update expected device name") in fbdev/for-next. > > > > > --- a/drivers/gpu/drm/tiny/ofdrm.c > > > +++ b/drivers/gpu/drm/tiny/ofdrm.c > > > @@ -1390,7 +1390,7 @@ MODULE_DEVICE_TABLE(of, ofdrm_of_match_display); > > > > > > static struct platform_driver ofdrm_platform_driver = { > > > .driver = { > > > - .name = "of-display", > > > + .name = "of-display.0", > > > .of_match_table = ofdrm_of_match_display, > > > }, > > > .probe = ofdrm_probe, > > > > Same comment as for "[PATCH 1/2] fbdev/offb: Update expected device > > name". > > > > https://lore.kernel.org/r/CAMuHMdVGEeAsmb4tAuuqqGJ-4+BBETwEwYJA+M9NyJv0BJ_hNg@mail.gmail.com > > Sorry that I missed this patch. I agree that it's probably not correct. At > least in ofdrm, we want to be able to use multiple framebuffers at the same > time; a feature that has been broken by this change. How did it work before, though? We did not have this device name clash, then we did, and it was solved by renaming the devices to numnered. Now matching the first device should restore the previously available functionality, mathing any of the numbered devices would potentially allow to use multiple devices. Or am I missing something? Thanks Michal