Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp684375rwb; Fri, 4 Aug 2023 21:57:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRlgFpFb6z0XjeLZDH2tqv5AIAguP+JDvN0DeXpMgRKKE2YpNKgSbzkMZdck+Lm6cngMYP X-Received: by 2002:a17:902:e549:b0:1bc:28a8:f856 with SMTP id n9-20020a170902e54900b001bc28a8f856mr4829972plf.47.1691211458027; Fri, 04 Aug 2023 21:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691211458; cv=none; d=google.com; s=arc-20160816; b=ndXxrRza0qfeGEIfaT7ZHCZN6uJS9eoAnMwcIealFsmKB/wyIoerdfQibHfD3b8Eky wCtvRc2xNjS55N/lwAlnTM75KC9gncMSxTmcbEopl+NHnguGzo2No1bb9jAKCayRqRyg kAvb3J1Oh7uW+ppJQSgn7Pi/jPJTRgM6pfGsv0Nt5K0RF8rPnIc4vHSaraiT+qSteJHl kj75ZXFVYEDuLPcSkg7Hywtfpw2/6XAnoqTCIUTlqrpJU/BQJqSl5cahz8AW3XWH8w27 AqPS6sRMbpvpDXE7SI16k31vxov0JZTHIzQVY9CrDhla7YV5g2eAwPVamFazxmgVvVJ3 9A/g== 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=5SwIWUkyjIV/sDeW1+lNPN8ROmy615BHKuD7lnDd2Rg=; fh=sl6kuNXSIQvqKkkKPtsXtAcjhumddHKasLtkpdSyAqE=; b=tXzqDGRCymZgCtPGRXtCQqtYiTryZHLdZoKQDsJzzZffPnn5TH/7p3ecq8ET7eCHbr 4Qr1/JaIeZ+G5caDrO/tmTi5vcEXyh0A/DMWG0WnDeEt9eAyljmdyhIlU1b9VfRXUNsj RKUNbtO3uMdy6dgYoPJ88jJSAoZIlokHWWDJ7aMaoB9DkML8jfZu07iJwF0pWwgxAXHk UoYjrO0MaG1nuGkIHlj9aeHA5LEQGvgGJGJVychBaaKVF6d5K1zomxJi4rGIMCSxYzBL 6loiqjiyPTjT9m0+wTLhRrCD5NVrkoPSC5e4VPdDqQmMt197dEKgpvaY4u9IiueLC7Lu Oipw== 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 t6-20020a170902e84600b001b89bcfb2c3si2825989plg.162.2023.08.04.21.57.23; Fri, 04 Aug 2023 21:57:38 -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 S229501AbjHEEtS (ORCPT + 99 others); Sat, 5 Aug 2023 00:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHEEtO (ORCPT ); Sat, 5 Aug 2023 00:49:14 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 822174C04; Fri, 4 Aug 2023 21:49:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id A28F380F7; Sat, 5 Aug 2023 04:49:11 +0000 (UTC) Date: Sat, 5 Aug 2023 07:49:10 +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: <20230805044910.GJ14799@atomide.com> References: <20230803071034.25571-1-tony@atomide.com> <0e1bc27d-dc84-473d-bfdf-db0743c5d64a@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e1bc27d-dc84-473d-bfdf-db0743c5d64a@roeck-us.net> 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 [230804 21:42]: > On Thu, Aug 03, 2023 at 10:10:32AM +0300, Tony Lindgren wrote: > > While fixing DEVNAME to be more usable, I broke serial_base_match() as the > > ctrl and port prefix for device names seemed unnecessary. > > > > The prefixes are still needed by serial_base_match() to probe the serial > > base controller port, and serial tx is now broken. > > > > Let's fix the issue by checking against dev->type and drv->name instead > > of the prefixes that are no longer in the DEVNAME. > > > > Fixes: 1ef2c2df1199 ("serial: core: Fix serial core controller port name to show controller id") > > Reported-by: kernel test robot > > Closes: https://lore.kernel.org/oe-lkp/202308021529.35b3ad6c-oliver.sang@intel.com > > Signed-off-by: Tony Lindgren > > With this patch applied, I see the following traceback in the pending-fixes > branch. > > Bisect log attached as well. It actually points to commit d962de6ae51f > ("serial: core: Fix serial core port id to not use port->line"). > Bisect was on mips, but I also see problems on arm, ppc, and sparc. > sparc boot tests show the warning message and then stall until aborted > (which of course may be a different problem). Sorry about all the hassles and thanks for testing again. I too noticed several issues remaining after testing reloading the hardware specific serial driver, the issues I saw should be fixed in tty-linus. > 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") Not sure about the sparc one you mentioned, but let's when you run your tests again. Regards, Tony