Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6103850yba; Tue, 14 May 2019 01:34:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcORKxYnN+uuFzeTAlaTBwbwWOQoEFA0/D6D6IrQpFXSycyVOExX9frlLAyviz0rXkhKgk X-Received: by 2002:a62:14d6:: with SMTP id 205mr39161171pfu.4.1557822857132; Tue, 14 May 2019 01:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557822857; cv=none; d=google.com; s=arc-20160816; b=T0kEU+tviSXR+hjRmO44l7fiAHOCyxJ4N48yt2EDAxlksc+ip9vVfIXKiBHUIR0o2C 8ivwTa8jHelnNmk5Z0XPM/Bw/KfRjfyFnlRMYtjbZVJUwzDoL4/XCVa5Dw9Yq5FrmR9L L5mDrYnvyblBUCWTzi1QNYjKKw96+Ux6Pr91EzpC7uOhocTxx6jvx1s3NlMa7PN/xKQf CZRfPK9Nxdx6skesWdBEpX2XSi9vOIrb9lZC2qbdw/zuFpPb+w7IB4fMQFf6rau331WJ Cztqxel5GM/voW0GVOaxvDW2xgKYNQmjYqRQb0mlXFn5+wUM+2kGequ55RwiDInfS6q5 dN8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=oMs/Oz9pXGUH5ZNlnEr5mhjsqI9k+f9eKQF4cd4w5x0=; b=OKHj8se9KXAXCNkvEhhZQLaO3e8xhqOdQkJ00kBTmIFBtKG50Blci5Owy+ACoplffu BaC94q5Adue9ZLYH+o/1D35f4SeKoWecZSKLqCUYBa6AFdvAWR9ghLQ5rkm7xKXEHQoS JQDPwZpXd5k1mi5u6Eo1cAkd1Ll61k4BkrwAw8m9MoCwmP/TJX/zTcbHosdK2covUI5+ 3PocbE+vEtzng+8rF2ubEipigAzD2gITz95wq+EdDB7+5dJNapw6J+Q5dp3x7KppXO34 +lVpDkyDVmizjzi/6giHauegZabBKWbOxuNVL+DWs2thn1RYDqiTSHZX6LRTHvouGUEh r8tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=QAeNnARi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si16294125pgv.67.2019.05.14.01.34.02; Tue, 14 May 2019 01:34:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=QAeNnARi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbfENIbg (ORCPT + 99 others); Tue, 14 May 2019 04:31:36 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:38195 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbfENIbf (ORCPT ); Tue, 14 May 2019 04:31:35 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4539rh4DRpz9tyy5; Tue, 14 May 2019 10:31:32 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=QAeNnARi; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id dl0lU7J_GCu4; Tue, 14 May 2019 10:31:32 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4539rh3947z9tyy4; Tue, 14 May 2019 10:31:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1557822692; bh=oMs/Oz9pXGUH5ZNlnEr5mhjsqI9k+f9eKQF4cd4w5x0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=QAeNnARiPonyZr1RyKXAdky1MBPh6QFeM+J+pPaMw7OFEqow4DrNzICELjFrTZ4xv rDHbrlv3RwtLcC/QzrFAAVVFO2p0CSgaUyxJxXuk4FzNHqBqF7RU1DKNpzX6IK1Zj9 XhYUQFM3OnGxp494cj8/P9BKb+Hid2cTHtxLizSY= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 7D1248B8A6; Tue, 14 May 2019 10:31:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 6uGeJKMw1Adf; Tue, 14 May 2019 10:31:33 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id CB05D8B7C1; Tue, 14 May 2019 10:31:32 +0200 (CEST) Subject: Re: [PATCH 2/2] powerpc/8xx: Add microcode patch to move SMC parameter RAM. To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Vitaly Bordug , Scott Wood Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <35488171038e3d40e7680b8513dfbd52ff7b6ef2.1557487355.git.christophe.leroy@c-s.fr> <87a7fptth7.fsf@concordia.ellerman.id.au> From: Christophe Leroy Message-ID: <73ea3141-e48a-5647-aabc-370fe57585bc@c-s.fr> Date: Tue, 14 May 2019 10:31:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <87a7fptth7.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 14/05/2019 à 08:56, Michael Ellerman a écrit : > Christophe Leroy writes: > >> Some SCC functions like the QMC requires an extended parameter RAM. >> On modern 8xx (ie 866 and 885), SPI area can already be relocated, >> allowing the use of those functions on SCC2. But SCC3 and SCC4 >> parameter RAM collide with SMC1 and SMC2 parameter RAMs. >> >> This patch adds microcode to allow the relocation of both SMC1 and >> SMC2, and relocate them at offsets 0x1ec0 and 0x1fc0. >> Those offsets are by default for the CPM1 DSP1 and DSP2, but there >> is no kernel driver using them at the moment so this area can be >> reused. >> >> Signed-off-by: Christophe Leroy >> --- >> arch/powerpc/platforms/8xx/Kconfig | 7 ++ >> arch/powerpc/platforms/8xx/micropatch.c | 109 +++++++++++++++++++++++++++++++- >> 2 files changed, 114 insertions(+), 2 deletions(-) >> >> diff --git a/arch/powerpc/platforms/8xx/micropatch.c b/arch/powerpc/platforms/8xx/micropatch.c >> index 33a9042fca80..dc4423daf7d4 100644 >> --- a/arch/powerpc/platforms/8xx/micropatch.c >> +++ b/arch/powerpc/platforms/8xx/micropatch.c >> @@ -622,6 +622,86 @@ static uint patch_2f00[] __initdata = { >> }; >> #endif >> >> +/* >> + * SMC relocation patch arrays. >> + */ >> + >> +#ifdef CONFIG_SMC_UCODE_PATCH >> + >> +static uint patch_2000[] __initdata = { >> + 0x3fff0000, 0x3ffd0000, 0x3ffb0000, 0x3ff90000, >> + 0x5fefeff8, 0x5f91eff8, 0x3ff30000, 0x3ff10000, >> + 0x3a11e710, 0xedf0ccb9, 0xf318ed66, 0x7f0e5fe2, > > Do we have any doc on what these values are? No we don't > > I get that it's microcode but do we have any more detail than that? > What's the source etc? > There is an Engineering Bulletin (EB662) dated 2006 from Freescale which slightly describe things and there are associated S-Record files containing those values. And an old related message in the mailing list https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg46038.html Christophe