Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1074664rwb; Sat, 5 Aug 2023 06:59:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOq3Ax6FzMUeUOo6uHn2eT2eAF29Uhc5wZtCIzRNBvmJAWYXv/oXJa8CBrDAjh9G7Mx0Og X-Received: by 2002:a05:6a20:429b:b0:13d:ea25:9656 with SMTP id o27-20020a056a20429b00b0013dea259656mr5787680pzj.60.1691243945246; Sat, 05 Aug 2023 06:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691243945; cv=none; d=google.com; s=arc-20160816; b=TvssXJ9skuJMbOdCoLXsNrWbHIUT3ueufYd2bjsQTpO2mAFxkstwAO558eycSQtcy4 CGA2dYvQWJHQqteJpHfr5DOxMIh4THzEyLeu+ERM9/Z8AzNQgfUH6Mf3q5TGA50Nf1/I /uSKgovAicROYJBo12Mnak1Ux7rev9V2fXzJOWrtyVKbx0Rto0osTHqYeIuqYSV2H3bD CJ4lW+Odz98/rX807Uzj5KJe0ZDlAsggcgc5NmQEHiXC5IFa8BmHe2ElOzu9qRSGeGxV D8fzk+zgYReeOlS0wum1pAVwZPKn19Uyg9thhLUHVVBrdRb01RtrPj3WTdxyb6Y12zbI EPMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=U6kDWzV9e2XZH2aJxm/vvznv1nHNWfxKKsnzaVw0sys=; fh=o5ykWxn5+S+AsktlqUZr76CWoM8CzBjq6hG4r6G9fa0=; b=LICQTE5XV/AxbSTG4fSfPexg5wovuq6kANT54vGOOcmZ7PS0kavVEVgR0+5wQsIXyy RPlhSVJ2huObXe7S/xaYkPUzUq1kQP1YEA0Z/LhnHtD+6qpCKoHq99X0S9UMMNZIetjM LrpVTxlHXJMUMy01EY98WFmQsMgVtIq79TGc4c3IXt5QWJgU++UmWSdbhQykCKwaepZj mIt1Twy83JbMJ4n9G3WOjEiZVrkpNkABAgJHE4wBb9xgrfUQu7swYwum8UirQdF52DGs APoRfziLHbpnQZiunW2j14x8ZYQ05dXn+ApBsaeT+CClFl/jzmMhzD/agZqkA22aD31r 62rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=sbw+HE2I; 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 s26-20020a63525a000000b0054201a3f08dsi3179773pgl.592.2023.08.05.06.58.51; Sat, 05 Aug 2023 06:59: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=@gmail.com header.s=20221208 header.b=sbw+HE2I; 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 S229617AbjHEKuf (ORCPT + 99 others); Sat, 5 Aug 2023 06:50:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjHEKud (ORCPT ); Sat, 5 Aug 2023 06:50:33 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F050468A; Sat, 5 Aug 2023 03:50:32 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-790a590237aso123359539f.3; Sat, 05 Aug 2023 03:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691232631; x=1691837431; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=U6kDWzV9e2XZH2aJxm/vvznv1nHNWfxKKsnzaVw0sys=; b=sbw+HE2I+oBQwgVNQRawZShnAWXrilYum/KcmdhDaS08aSvzOhIaWAHm8b81cwtbVn I8j2ZwiGcgjk3AkBVnUVzj4v90AJTC5TbxKM5fTRSBCdv9/wjctJRns1sXGMuGSh7X/z LUXRN7OEipgoNKxPMB8kunJ4udKYwnt99MgNxtJjhYURdoiPSk2WDmUso72H7E04Xo0f uSrxdHE8i4xoG5nDy8XnjGdYMRiRUJVSUy4+qGRh5DuvJMTSQf6dT8KokYJOvXre5MzX j8FCadS8Bl1GPdnMwZTsGqKz+hxPYT1PkYX78/J5AjT4ESuZogSxb+i0JyTZNpAJrxbw hTsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691232631; x=1691837431; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U6kDWzV9e2XZH2aJxm/vvznv1nHNWfxKKsnzaVw0sys=; b=fn+fkmWH8IzBseFpH7TN7bR2LcN1U3cG6rOcB8XEgTN20mm4lp15mHuDCXC+6ZErlu 2fWzbMdLTY7sP98JUehKcCrg3w74WYHZ7BfIT8fUD9pbXYI+opXgPXbuZ2llH5UsPX+d jK8IEqnHpAHgoKXj7nUf5JXAYmG/laPH2muqJh1d5wISL54BHU4eQ69Xr0etlATy5mZb L7Vyosc+V/n7d8lA86hChSfBz4g8MGsoY5gB/uTUcCUG+oWfUhgDmLJvX+Y998DLu+p3 yopoxommzSAwY/dHhSdwcF4/IVUS4Tng8s6TctjbRJRHUlG2F/Y1UA1P8DGhclRIaf+S vPYw== X-Gm-Message-State: AOJu0Yxsq1DDpALS8lKTOHi59FerNgtLrf6lyzRYjZCdUC4r6mazRuVp Hmw5b6cZj9F4hTePF1ojxG0= X-Received: by 2002:a5d:8909:0:b0:787:1557:3834 with SMTP id b9-20020a5d8909000000b0078715573834mr5665878ion.20.1691232631211; Sat, 05 Aug 2023 03:50:31 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id s22-20020a5eaa16000000b00785cd25010esm1239532ioe.11.2023.08.05.03.50.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Aug 2023 03:50:30 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Sat, 5 Aug 2023 03:50:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Tony Lindgren Cc: Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Andy Shevchenko , Dhruva Gole , =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, kernel test robot References: <20230803071034.25571-1-tony@atomide.com> <0e1bc27d-dc84-473d-bfdf-db0743c5d64a@roeck-us.net> <20230805044910.GJ14799@atomide.com> From: Guenter Roeck Subject: Re: [PATCH v2 1/1] serial: core: Fix serial_base_match() after fixing controller port name In-Reply-To: <20230805044910.GJ14799@atomide.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 8/4/23 21:49, Tony Lindgren wrote: > * 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") > 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. Guenter