Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp307802rwb; Fri, 2 Sep 2022 14:41:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7RNcRQyVIZEhyz/C63UrwlCxo6CzoXB/0uV4U+kLhzIgCJ7S5/mDOGPGsBHm628SjN1DJR X-Received: by 2002:a17:903:120a:b0:172:5a63:7442 with SMTP id l10-20020a170903120a00b001725a637442mr37766386plh.55.1662154876089; Fri, 02 Sep 2022 14:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662154876; cv=none; d=google.com; s=arc-20160816; b=IRd1JoacCsZtk7gxx9sKKrWwVWuHOKErXalefuza8Jv+nRG6NMkpxEkrv4dz1S4rAJ vimwf5ztalJ/Nq9n0FriJxKwBztQJUUZXzjM/X5Iq2NiKRAUPSMGdCfBG5pX23eq4Z96 QgdHzbnrtRuuFOcawFZPJgwPVgfabkG1u6u3O5ycLWLQWtW37BYJJ9+EGq3b/QR3PQzr ciRuQhYzMZFIkzrFoMpmu1zsacDyMRHo7OiF2+32iZ/3139+1ipdr2UXlcScZDcTsXwL I677GXv0zWSoR/E9ma87ZKzj4yf+YHjMUjHPU5vsxioJDPPFRnqVsGN/oF3qUmIUmfJy LeGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=en4C/B2qL0LvCcPFy3bvzHxJYu71Y+1afcVI4SSM4x4=; b=yR+3yRkJ0+mJy6MTrZbjg3F8q5AQ/TpcqrdvB3dLSftKIXbUK4QEmHYjGEDr206dHT bF0zZH6Z+b0m+h20y7Nwa0kZyepfLpfj9hjG5WAk63ahONrT7IvZj8VLcJXExpkixyZ5 ZWpRfIqBPOKwfvKV6OuzNZ9Wmeohmztj3EYNy4uo1AibNAPqmcFrlHEttb9udqAEzf1w G/EzaIq5GvZgYR1K3RJ1XnA0Kd6Vrb9W4lwht/ZSxCQNpw+KHAUO6kyk570kf/AOJ3aQ aFDGK5h09ZM9riTVfYFxD0joHHCigL2vUEOSqwPZjmsSSGiDSh1KXqF68Y2H6COZd+S+ ZNcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOoJ7WBI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a633c02000000b00429cd0df384si2692928pga.520.2022.09.02.14.41.04; Fri, 02 Sep 2022 14:41:16 -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=@kernel.org header.s=k20201202 header.b=XOoJ7WBI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229684AbiIBVVP (ORCPT + 99 others); Fri, 2 Sep 2022 17:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbiIBVVN (ORCPT ); Fri, 2 Sep 2022 17:21:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D753D9D64 for ; Fri, 2 Sep 2022 14:21:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 21C7A614A0 for ; Fri, 2 Sep 2022 21:21:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C311C433C1; Fri, 2 Sep 2022 21:21:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662153671; bh=gtA3mZspcIkAO5q5+QzGaBO8XNZ0ayfsNt1Fu8t0hhs=; h=From:To:Cc:Subject:Date:From; b=XOoJ7WBIO14VZr25jns0ogH6zTUXGBSfsN1xVdU2DL8Wbo0WO+aVkhclGRTcCjlnA 9zwPOU9qCBfWMNMYjyUpu6EPqH2OdxhnYHWjdWbiKOfsiN6zCgQU/dgB38w5hIUAks HqLwuS9QGKUtwbPRTPDZROk23T95r/xykDDq9hjNmSmbSBu31TJ1RVcXF7E0jRbiLX a4EpH1xSY8JUMNGcrcovR2iusqVUE8dbuq5ZAHSoxEVWixR7zz8YgNrJKIuKfc17pp S3JqRWyp8ZZf/mZ5NonD11Onr77jdtwIN4nzPQgYWOngeoNfwgRw9Ng8+nfh1v6Z/z z/eScuD3ISzdA== Received: by pali.im (Postfix) id 5BE717EA; Fri, 2 Sep 2022 23:21:08 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] powerpc: Fix SPE Power ISA properties for e500v1 platforms Date: Fri, 2 Sep 2022 23:21:02 +0200 Message-Id: <20220902212103.22534-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Commit 2eb28006431c ("powerpc/e500v2: Add Power ISA properties to comply with ePAPR 1.1") introduced new include file e500v2_power_isa.dtsi and should have used it for all e500v2 platforms. But apparently it was used also for e500v1 platforms mpc8540, mpc8541, mpc8555 and mpc8560. e500v1 cores compared to e500v2 do not support double precision floating point SPE instructions. Hence power-isa-sp.fd should not be set on e500v1 platforms, which is in e500v2_power_isa.dtsi include file. Fix this issue by introducing a new e500v1_power_isa.dtsi include file and use it in all e500v1 device tree files. Fixes: 2eb28006431c ("powerpc/e500v2: Add Power ISA properties to comply with ePAPR 1.1") Signed-off-by: Pali Rohár --- .../dts/fsl/{e500v2_power_isa.dtsi => e500v1_power_isa.dtsi} | 3 +-- arch/powerpc/boot/dts/fsl/mpc8540ads.dts | 2 +- arch/powerpc/boot/dts/fsl/mpc8541cds.dts | 2 +- arch/powerpc/boot/dts/fsl/mpc8555cds.dts | 2 +- arch/powerpc/boot/dts/fsl/mpc8560ads.dts | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) copy arch/powerpc/boot/dts/fsl/{e500v2_power_isa.dtsi => e500v1_power_isa.dtsi} (95%) diff --git a/arch/powerpc/boot/dts/fsl/e500v2_power_isa.dtsi b/arch/powerpc/boot/dts/fsl/e500v1_power_isa.dtsi similarity index 95% copy from arch/powerpc/boot/dts/fsl/e500v2_power_isa.dtsi copy to arch/powerpc/boot/dts/fsl/e500v1_power_isa.dtsi index f4928144d2c8..7e2a90cde72e 100644 --- a/arch/powerpc/boot/dts/fsl/e500v2_power_isa.dtsi +++ b/arch/powerpc/boot/dts/fsl/e500v1_power_isa.dtsi @@ -1,5 +1,5 @@ /* - * e500v2 Power ISA Device Tree Source (include) + * e500v1 Power ISA Device Tree Source (include) * * Copyright 2012 Freescale Semiconductor Inc. * @@ -44,7 +44,6 @@ power-isa-ecl; // Embedded Cache Locking power-isa-mmc; // Memory Coherence power-isa-sp; // Signal Processing Engine - power-isa-sp.fd; // SPE.Embedded Float Scalar Double power-isa-sp.fs; // SPE.Embedded Float Scalar Single power-isa-sp.fv; // SPE.Embedded Float Vector mmu-type = "power-embedded"; diff --git a/arch/powerpc/boot/dts/fsl/mpc8540ads.dts b/arch/powerpc/boot/dts/fsl/mpc8540ads.dts index 18a885130538..e03ae130162b 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8540ads.dts +++ b/arch/powerpc/boot/dts/fsl/mpc8540ads.dts @@ -7,7 +7,7 @@ /dts-v1/; -/include/ "e500v2_power_isa.dtsi" +/include/ "e500v1_power_isa.dtsi" / { model = "MPC8540ADS"; diff --git a/arch/powerpc/boot/dts/fsl/mpc8541cds.dts b/arch/powerpc/boot/dts/fsl/mpc8541cds.dts index ac381e7b1c60..a2a6c5cf852e 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8541cds.dts +++ b/arch/powerpc/boot/dts/fsl/mpc8541cds.dts @@ -7,7 +7,7 @@ /dts-v1/; -/include/ "e500v2_power_isa.dtsi" +/include/ "e500v1_power_isa.dtsi" / { model = "MPC8541CDS"; diff --git a/arch/powerpc/boot/dts/fsl/mpc8555cds.dts b/arch/powerpc/boot/dts/fsl/mpc8555cds.dts index 9f58db2a7e66..901b6ff06dfb 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8555cds.dts +++ b/arch/powerpc/boot/dts/fsl/mpc8555cds.dts @@ -7,7 +7,7 @@ /dts-v1/; -/include/ "e500v2_power_isa.dtsi" +/include/ "e500v1_power_isa.dtsi" / { model = "MPC8555CDS"; diff --git a/arch/powerpc/boot/dts/fsl/mpc8560ads.dts b/arch/powerpc/boot/dts/fsl/mpc8560ads.dts index a24722ccaebf..c2f9aea78b29 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8560ads.dts +++ b/arch/powerpc/boot/dts/fsl/mpc8560ads.dts @@ -7,7 +7,7 @@ /dts-v1/; -/include/ "e500v2_power_isa.dtsi" +/include/ "e500v1_power_isa.dtsi" / { model = "MPC8560ADS"; -- 2.20.1