Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1032784rwb; Sat, 5 Aug 2023 06:09:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDFMA+cTz2siyXg8RoffQVqk/N9MOC7UxEIxPNeSLaSmleTshrSDLgjlALHero8JDYZTLW X-Received: by 2002:a05:6a21:2789:b0:134:198b:84e9 with SMTP id rn9-20020a056a21278900b00134198b84e9mr2898407pzb.61.1691240961895; Sat, 05 Aug 2023 06:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691240961; cv=none; d=google.com; s=arc-20160816; b=yy9v5XapMwtE0LRSuUPCep/G+/M6e4yxfCo9i3rMWnAPE4901T8H1GQMeLGweZvGp8 KdpAv2Y3yvwt0yJ+JuKpwDt7SeuTPwqgcrOa48GqgIbHN/GgP66NgQjPC134F54VwjwF 0SEQ+Qk6MaAXpss63ZL5FkOKcU+X4cVgkCu+hiiUPUGZHNPN/yE+z0pf0+0NtaDSDShI OXIV98svtQtRPQoB1XUEkY07MF4tRZSSdCvEqJM+MDsxKfojlo4mZ2+1XNohjhnok0pH I9c2rAIuYCLAJBfbzDF2SEUk5JcbwfpgAzO3srRmWVMS93mwgyNtjjV9FAVOhFge6BCY EUXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pgFV1E+E1F2H+m0gvqckr89cfexum37dYZ78ziH9ZxU=; fh=sl6kuNXSIQvqKkkKPtsXtAcjhumddHKasLtkpdSyAqE=; b=Dpvg8UuEQ7NCNl8vnxRV+qMQaC13m98z7RU09hdtqkpSP7kmjnMMuSu3bVRaKufq+j qtHGTXmddp2LkyqiBz6/fb/6vkT+00gjMHQSkUM78p/S0lLwrhpcEr4DBKTTQvwMEzLc 66QazRjN+mDogdPoMgCcUlsvftQ3lXeKw/bF9q2C5IC50hibwnPWtFERlkXiqWZgV8Rq zx7P7iQm4d6n9Exe2FLZrWp+dUzEmjH7P+oJJoeg2Q1QJxytE6zL2htV3P/RsIH4c2sk bngGthlGY0XqlcCS9qhunK14FlhbIZYFzG55nS0yNB7oE6LKIdONs7cNVVgVBtgGYt5q Z3UQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a637705000000b005649a48340esi3174160pgc.797.2023.08.05.06.09.10; Sat, 05 Aug 2023 06:09:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbjHELsv (ORCPT + 99 others); Sat, 5 Aug 2023 07:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjHELst (ORCPT ); Sat, 5 Aug 2023 07:48:49 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BDF591720; Sat, 5 Aug 2023 04:48:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C5D0780A0; Sat, 5 Aug 2023 11:48:47 +0000 (UTC) Date: Sat, 5 Aug 2023 14:48:46 +0300 From: Tony Lindgren To: Guenter Roeck Cc: Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, kernel test robot Subject: Re: [PATCH v2 1/1] serial: core: Fix serial_base_match() after fixing controller port name Message-ID: <20230805114846.GK14799@atomide.com> References: <20230803071034.25571-1-tony@atomide.com> <0e1bc27d-dc84-473d-bfdf-db0743c5d64a@roeck-us.net> <20230805044910.GJ14799@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 * Guenter Roeck [230805 10:50]: > On 8/4/23 21:49, Tony Lindgren wrote: > > * Guenter Roeck [230804 21:42]: > > > kobject: kobject_add_internal failed for serial8250.0:0.0 with -EEXIST, don't try to register things with the same name in the same directory. > > > serial8250 serial8250.0: unable to register port at index 1 (IO2f8 MEM0 IRQ3): -17 > > > sysfs: cannot create duplicate filename '/devices/platform/serial8250.0/serial8250.0:0/serial8250.0:0.0' > > > > The issue above should be fixed with commit: > > > > bbb4abb1bcfb ("serial: 8250: Reinit port_id when adding back serial8250_isa_devs") > > > > No. I tested the tip of tty-linus (v6.5-rc4-9-gdfe2aeb226fd) which includes > above commit, but still see the problem. sparc images also still stall after > the "cannot create duplicate filename" message. > I bisected the sparc problem - it also bisects to commit d962de6ae51f. > > The problem affects all mips boot tests, all sparc boot tests, as well as > arm sx1, ppc bamboo and sam460ex emulations. As far as I can see, those > call serial8250_register_8250_port() without calling serial8250_setup_port() > and thus don't set port_id. I am only testing a few of those, so I strongly > suspect that all similar callers of serial8250_register_8250_port() are > affected (i.e., almost all of them) if they register more than one serial port. OK thanks for explaining. So we need to initialize port->port_id for the multi-port instances to avoid being stuck with the port->line index. I'll take a look. I wonder if we should just revert d962de6ae51f for now. It needs to be tested to see if something else also needs reverting though. Regards, Tony