From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBF9BC433B4 for ; Mon, 12 Apr 2021 11:33:44 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 666D260249 for ; Mon, 12 Apr 2021 11:33:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 666D260249 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CbCSAWUEMV+Wzh8KJe3pvsOn/l3diEK/aIYyZk7Af5c=; b=RS5uQJTMn4HRqWJQqZuI0Hxd+ XLmJgQ0PvKJ4EZ2IEQ3RINQ/PNvbIWnti6QAU+kQdDGB+/u3YrP73lP2Q1gmURDSzTQG2Vkq6LrI/ JbXaXmcfaGZR286G8Lm7o2V0xu2ST6Ky6M4tQOW9PAt9NYP0pE84tBCaoz8Ggz6fB+2NVdDughjVt rJNU3QK8sD9jkixg7lh2QbivuW++JT80HxTHpdxv4xgtOtuDX37Doj+bUTIALjep5YH/URkXTFQk/ DBvimIjD4A3sujePuYvNiuA4b/kxQjjKJWNTYw0m58ifEkwiE8uSt4DViOWS3wR6xiDu2KUe810oL r/Z32SBVw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVund-006ZNU-TE; Mon, 12 Apr 2021 11:32:14 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVuna-006ZN3-Lh for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 11:32:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xGP4VGQ7AnGODIAc3nHJ2dtJ1CF+6iCsS4MA7zE09Fs=; b=zyOXgImENKdj0MapIdYaeYGK9n xBLxajRrgJCDcLnR9qiLgUx1LRe6LwKNho1TqciMG/hbskPep8crFzDgddFFMM2FTwWCZFLsgXtrd pOujhYLkeua+4Ybs6xvmm2vk6Z2SkWWv5rWB78DcvFGegIDK7e1OXT47Q9KrCFi36zRnLmowIa9Li C8BSed3mnuAqLDKjG7CzH3p1TkG1fUk+ihTJVp/hQ11yoAyHaVA08821weNHqbL6mH3OrcqPgNMpu bDl/nczyQllKUOpavEGzUx1LjGeW77szmrQylIY6qdF7McLQQxdnBj0zrzQLmAPmydWmndPSRoYJF yspoERAg==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVunY-006BIa-1j for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 11:32:09 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CDDA731B; Mon, 12 Apr 2021 04:32:02 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3EDEC3F694; Mon, 12 Apr 2021 04:32:01 -0700 (PDT) From: Valentin Schneider To: Ruifeng Zhang , linux@armlinux.org.uk, sudeep.holla@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org, a.p.zijlstra@chello.nl, dietmar.eggemann@arm.com, mingo@kernel.org, ruifeng.zhang1@unisoc.com, nianfu.bai@unisoc.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] arm: topology: parse the topology from the dt In-Reply-To: <20210412070819.23493-1-ruifeng.zhang0110@gmail.com> References: <20210412070819.23493-1-ruifeng.zhang0110@gmail.com> Date: Mon, 12 Apr 2021 12:31:59 +0100 Message-ID: <87y2dnn3gw.mognet@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_043208_155109_1F411A3E X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 12/04/21 15:08, Ruifeng Zhang wrote: > From: Ruifeng Zhang > > The arm topology still parse from the MPIDR, but it is incomplete. When > the armv8.3 cpu runs in aarch32 mode, it will parse out the wrong topology. > > armv7 (A7) mpidr is: > [11:8] [7:2] [1:0] > cluster reserved cpu > > armv8.3 (A55) mpidr is: > [23:16] [15:8] [7:0] > cluster cpu thread > > For compatibility to keep the function of get capacity from default > cputype, renamed arm parse_dt_topology to get_cputype_capacity and delete > related logic of parse from dt. > Arm using the same parse_dt_topology function as arm64. > > The arm device boot step is to look for the default cputype and get cpu > capacity firstly. Then parse the topology and capacity from dt to replace > default values. > I'm afraid I don't get it. CONFIG_COMPAT lets you run 32-bit stuff at EL0, but the kernel is still arm64. So if you take your armv8.3 system, the topology parsed by the kernel will be the same regardless of CONFIG_COMPAT. Could you elaborate on what problem you are trying to fix here? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel