Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp514057rdb; Fri, 26 Jan 2024 02:35:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu9AS9Dam26lK+js8mzaKBKM0z3xuCX/xK6la4R1aNZVPbYmxwn6SWLig/5lGzjwKcpItw X-Received: by 2002:a05:622a:109:b0:42a:6d13:da3c with SMTP id u9-20020a05622a010900b0042a6d13da3cmr1289956qtw.18.1706265309431; Fri, 26 Jan 2024 02:35:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706265309; cv=pass; d=google.com; s=arc-20160816; b=jAazKq1V3TK5wzoE2RwCXibosaJjxnVpvq+7+ZuP61AcvG6LhMhMLi7x6qLkgrYHNv UeVuIvOdciq16g8SXYrSW6L8c3bmEsxIVT9pvq38y3NIDQjfU5sKh7rbKG8mIjdETI7/ k3VuHBxsLGFiMJY567zUZ7H/QgztLUU01y8flihmgWhatbREJqK8cla38ahEtPSPJN2d KzCjuec56DoB9viUBHQYSGktZU2bito6PKGLz8Qkrn7SUEXyAhPk9YkQy3agPwsFNxY/ BqH7O6Iwofhu7kZl4TOipr4HNOSb33Qit1VET2GmFv1abYhZAcYRNw2C5OJMUjRVucHN Bsnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=wCY3u/maKRNOqNU7xGirq8AihDGdz+uJgfVBjUoqAdw=; fh=XsL0b1akzONSG7yzJ0wMmgXQP3txwMp3dHL97GPhth0=; b=zvi9aA/45/phI3Un0t2C40nN51PGamSYgF5KwM0MhYFSB+RRq/LND68yYOZ4bzObu9 IK9iVX1cIQDCcDFU9zXDHHWz833Bu+ggjqeLOwMnoGWGEWMhE4HB4X0skutJIiAcJdt3 84znDWSkZLj/d5YVdvrSvOu5BnxyOBih11Bnoq/50jXKVA7CqVC2qemUBNSsy9hXj057 FW5Ag9gt1zKnrCUgokMBaumu93pICZYJAzHLMgmMb1IeCQghk9VrZYacC4OSFzJgQImw +4X+Lk27jyAZfOd7/xsDudmrHny5UYiRGrZF1Zv3ydtfkkqx7tjQ7g2aAe9owEJfEArB gHRg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-39989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39989-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f2-20020a05622a104200b0042a2005d02dsi894465qte.763.2024.01.26.02.35.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 02:35:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-39989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39989-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 246C41C2DE89 for ; Fri, 26 Jan 2024 10:30:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDC081CF91; Fri, 26 Jan 2024 10:16:05 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBD621CD1A; Fri, 26 Jan 2024 10:16:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706264165; cv=none; b=AEQOUIiq8uCAJGvBQtR3thauc9UCMgg7D7f13cxno3NdTuiaeglHu2wqBU7LiBBgdJXxFDobNC3f39VDDVZzqvWK1W73FyXpgqtrgQ59jErhnqR5496XaC4JDyGd8cmZqznZrJ0jYo8pYSE9qkNW+vDv+qHFRQiaoFnrcUIXz/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706264165; c=relaxed/simple; bh=JzsJ1hi/HTW0sIn7Hj+aVlk0JmlpkAgZaLCD04xMdtA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l32eXsR73L32zXhiKvc6KUPbKO2TnqGeU4nUfmp+n/jDeymWz0FyCBaYBixqwTcsZF7zPrXFMgrhrkQ8A05OLJceqa/05FFyPb7oKV0MDJ4dN+QDwcx+bRY6VcUx6mx8YOoICv3VJk4XeTp8ghdJKTtTzU0vBDy8ES5SCSSF7C4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1rTJFY-0003wk-00; Fri, 26 Jan 2024 11:15:52 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 83452C0661; Fri, 26 Jan 2024 11:13:43 +0100 (CET) Date: Fri, 26 Jan 2024 11:13:43 +0100 From: Thomas Bogendoerfer To: Aleksander Jan Bajkowski Cc: john@phrozen.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: lantiq: register smp_ops on non-smp platforms Message-ID: References: <20240122184709.9625-1-olek2@wp.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240122184709.9625-1-olek2@wp.pl> On Mon, Jan 22, 2024 at 07:47:09PM +0100, Aleksander Jan Bajkowski wrote: > Lantiq uses a common kernel config for devices with 24Kc and 34Kc cores. > The changes made previously to add support for interrupts on all cores > work on 24Kc platforms with SMP disabled and 34Kc platforms with SMP > enabled. This patch fixes boot issues on Danube (single core 24Kc) with > SMP enabled. > > Fixes: 730320fd770d ("MIPS: lantiq: enable all hardware interrupts on second VPE") > Signed-off-by: Aleksander Jan Bajkowski > --- > arch/mips/lantiq/prom.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c > index a3cf29365858..0c45767eacf6 100644 > --- a/arch/mips/lantiq/prom.c > +++ b/arch/mips/lantiq/prom.c > @@ -108,10 +108,9 @@ void __init prom_init(void) > prom_init_cmdline(); > > #if defined(CONFIG_MIPS_MT_SMP) > - if (cpu_has_mipsmt) { > - lantiq_smp_ops = vsmp_smp_ops; > + lantiq_smp_ops = vsmp_smp_ops; > + if (cpu_has_mipsmt) > lantiq_smp_ops.init_secondary = lantiq_init_secondary; > - register_smp_ops(&lantiq_smp_ops); > - } > + register_smp_ops(&lantiq_smp_ops); > #endif > } > -- > 2.39.2 applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]