Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp881343pxf; Wed, 7 Apr 2021 14:03:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMMr+7ZZF2HS6/RCTM/erURXMEZ9EXDDDPsP9fyccbKjmj5cPlXX2PZ6yp0oIIIKV8AZvD X-Received: by 2002:a50:fa0d:: with SMTP id b13mr6992535edq.354.1617829381602; Wed, 07 Apr 2021 14:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829381; cv=none; d=google.com; s=arc-20160816; b=iPIM315YPqBH3UQ2ZD56BBGgsTjF9BernYU5O96ta39WBXHwUO+yWjRV+Q4X6G0YTJ sBVTBOAQgKx7bhec7az+GyTjrt2G0na9ZTSBI3x+zCqj2ikXfPnGjkNh2KRQ7MDjFIot EBXlr47A91ERSbVHzxLfmOOrevuHuHPoSnlWUWdJZMcDOEvNzx9rbW+QjCVmGRmu0MMm QxXkKr2FBHb6hXGSR3fbcroqytCVjaoi0otRgRKhkBFr6piJvsCd3OU9CY7u7fZ87WXA HpanJhwI/UVa7q3dqDOt+SzjCv9R/4k52jFaNqMD+QOlyWLbBHUcBE7VZEkCJ43EPXeE F6PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=+m2nyqVT8Jk+n2mezVPlPX7sFS6BnAED0vkBv/oGkW8=; b=vAMywjJ59hPsfn3LjFURk3Zfd4EWPSnlIq/1ST1Ile9F8DThRAgvvqN1xbuEeGHGz8 dsn08S7mq3mFbPwJMn8RqzVCoYY8DdWloHUiAP/DqAxvP9mozMVHYFg3k5KOoIb39qbh IBthhGXghokSQTfs1CC5PMlMe93qA8lNSXYYDUH2/4hLKy3CL+ZpoLbLRyAhDylyrQ8x BwOovj4blJR7VE1Z1LVSmlBf7Y6pmHTCu3Jlkp/6jBVlTfDUxCIs9F4SNvbNTKlh8BhA fkf5yyC1Qr6kz4DOpE5+/8nUeMCa0tenPMyDc8e907B8K1/AkJK362sqmWGMeXSuy86W 0+dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si4688115edc.302.2021.04.07.14.02.37; Wed, 07 Apr 2021 14:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347558AbhDGNuC (ORCPT + 99 others); Wed, 7 Apr 2021 09:50:02 -0400 Received: from angie.orcam.me.uk ([157.25.102.26]:38472 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234087AbhDGNuC (ORCPT ); Wed, 7 Apr 2021 09:50:02 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 74FCF92009C; Wed, 7 Apr 2021 15:49:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 7033092009B; Wed, 7 Apr 2021 15:49:51 +0200 (CEST) Date: Wed, 7 Apr 2021 15:49:51 +0200 (CEST) From: "Maciej W. Rozycki" To: Ilya Lipnitskiy cc: Thomas Bogendoerfer , Wei Li , Tiezhu Yang , linux-mips@vger.kernel.org, Linux Kernel Mailing List , Felix Fietkau Subject: Re: [PATCH] MIPS: add support for buggy MT7621S core detection In-Reply-To: Message-ID: References: <20210403061912.1012509-1-ilya.lipnitskiy@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 5 Apr 2021, Ilya Lipnitskiy wrote: > Thanks for the comments. Including asm/bugs.h in asm/mips-cps.h led to > some circular dependencies when I tried it, but I will try again based > on your feedback - indeed it would be much cleaner to have this logic > in mips_cps_numcores. The only wrinkle is that mips_cps_numcores may > return a different value on MT7621 after the cores have started due to > CPULAUNCH flags changing, but nobody calls mips_cps_numcores later > anyway, so it's a moot point today. I will clean up the change and > resend. Hmm, I don't know this system, but by the look of the code it queries launch[2], which I gather refers to the VPE #0 of an inexistent core #1, so why would the structure change given that there is no corresponding silicon? Maciej