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=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 1FB38C432C0 for ; Mon, 18 Nov 2019 12:56:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E256A20692 for ; Mon, 18 Nov 2019 12:56:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iETXcqp/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="kTqeBHTF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E256A20692 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/bXp3IbupXe9OXbyl4YnoyC2ANuKvq6I3zsQ0WiGlMM=; b=iETXcqp/uoAsfh 9Etl5HSZO4Z6J9SR9NuSTX6sY1+EwBuVBSz8hyRPgYJpFraAAKBpCzg4nwNwFFPR5Ppv4rut8vuRx dUJ+ovMRvJDrC2s8K98UkI5lu37pkaSRboQtNFplTs7EKezlbZJG4Cic4W+bDmQnvcDN0wL1Xg52B I0w+utuTX8YDbhU8/Lj/zG8Sh0vdaHFRVYCDtWdxu5HDXdjCW9Kj9E8sp6Hxx5+X+9gWccwV2QXJ9 AcCVoxkpPoy6toME49yxmcrGxdHAIpozqRPIQeh5NdL4rxOrDvDUjRfok/mttlnOdznZMAouhAicK FfCQ2K8gsPYexE7RHizg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iWgZX-0003sM-Pq; Mon, 18 Nov 2019 12:56:03 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iWgZT-0003r8-Q5 for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2019 12:56:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=960wzGvE+KcG1OqGD4Pmky51z5BTfCbb59hEtVos6UY=; b=kTqeBHTFI5VbTcrHrCYatitkc XFreysQNzWmafsaSmK4O84GWThZEpLvCZh7I6o0NcFGAwpWldEtZphBY1r9VZRwPQ7co2i+2j3DCk 00JU5In5vbigEbEjNinbCx+LhgvuFjC8NhvpwWo+7tkVFOEaenej57vcN66EFaqSNAIY0jSs6XzAl rkaAESx2o9DXOTla9Ee75yHFUIz9S4iMC6BYM2J1mXBeYtBS304+r+6oUAZubou/A4jYdAK7j7FSN ImCJLzHmh2bCudQAe55CPAcNxgar2eG0dctNGYM2KssgMmjyMec5qL95FI3JMbaDZncfiKvVS/RUg xvqjY2sIg==; Received: from shell.armlinux.org.uk ([2002:4e20:1eda:1:5054:ff:fe00:4ec]:37134) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iWgZD-0003Mi-39; Mon, 18 Nov 2019 12:55:43 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iWgZA-0008DI-Ny; Mon, 18 Nov 2019 12:55:40 +0000 Date: Mon, 18 Nov 2019 12:55:40 +0000 From: Russell King - ARM Linux admin To: Nicolas Saenz Julienne Subject: Re: [PATCH v2] ARM: dt: check MPIDR on MP devices built without SMP Message-ID: <20191118125540.GW25745@shell.armlinux.org.uk> References: <20191004155232.17209-1-nsaenzjulienne@suse.de> <5abdcb0e0e1043a101f579ea65d07a1f6b91f896.camel@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5abdcb0e0e1043a101f579ea65d07a1f6b91f896.camel@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191118_045559_848405_B5479712 X-CRM114-Status: GOOD ( 13.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, "kernelci.org bot" , wahrenst@gmx.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Nov 18, 2019 at 12:49:04PM +0100, Nicolas Saenz Julienne wrote: > On Fri, 2019-10-04 at 17:52 +0200, Nicolas Saenz Julienne wrote: > > On SMP builds, in order to properly link CPU devices with their > > respective DT nodes we start by matching the boot CPU. This is achieved > > by comparing the 'reg' property on each of the CPU DT nodes with the > > MPIDR. The association is necessary as to validate the whole CPU logical > > map, which ultimately links CPU devices and their DT nodes. No, that is not the primary purpose of the CPU logical map. The CPU logical map is there to map the CPU logical number to a hardware number, necessary for programming hardware. > > On setups built without SMP, no MPIDR read is performed. The only thing > > expected is for the 'reg' property in the CPU DT node to contain the > > value 0x0. > > > > This causes problems on MP setups built without SMP. As their boot CPU > > DT node contains the relevant MPIDR as opposed to 0x0. No match is then > > possible. This causes troubles further down the line as drivers are > > unable to get the CPU's DT node. So the DT is incorrect for the platform - it is not describing the hardware. Why can't the DT be fixed? Clearly, it would have never worked with the mainline kernel today. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel