Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6030001yba; Mon, 13 May 2019 23:57:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmzsh0lT+jGl9cxr/MTBdSGrv3HeP62bHFASph9FIC8ZoqMzs/F4jdBwURF6RznX49+Bor X-Received: by 2002:a62:544:: with SMTP id 65mr38684844pff.46.1557817038652; Mon, 13 May 2019 23:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557817038; cv=none; d=google.com; s=arc-20160816; b=NLX5/lvwe6emYCjilXxYvtPwarBZyE9Dz/FNZG49465nxIO7u/jF/k4GG9WFz2ayvc jXQFMCM+j4b3Z8KM0S+03DxhllHnnjOeF6mXaThy1mz6UiOLRi9vjpzd9z+MR+b4MbMP A0JotmeRFSMPs7zwTTWZ/S/AXA3RLQp3RBTCtZFOX3bHtkifg7s1xZYklc8TABNkalN6 rn5fTO6gvubIBD5ej7HHO7g8QR5ggg6RCmqLu9pDsAvra1xJkctnrUBeXS1608L2iTcG 3ZT79EQB7Y6NVkyI7H9SM+9NoFjO6MsSZqFOoxMT3XaQUYlCUSHZY48LLuslKxG9ZD8+ Z78w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=D+Gb60Hn84DrRd5oXrFnHghLW5On/vKVORrnNAXPOhk=; b=x4e6vsQcPo7VekCkM/gVeh2/JoGMNy7fsskMCWe1J8Ydit+SYvS5s9jNQFpmXjF7Up 1Fz94lzqWgu9cpnXuwDk1COJsveEDVm/Qsrc79JW3ncuSBH94aBwNn61I1ylwU4RH1yZ SsJiZqKVqxKyYuhR6IRUdGzHUdQvLCBMjusZXXSVmKh/tyY+bCRecZ6gUnnJ/3mvBrHu cZw0LnGNn7O8bsx1nwkkJdxyMC2T2KuXXfiRjIhl1XAwV8h0/0mS6zAGSYFTayv4NZDX vBTg7h6l9oBcfuEjsgSg8z4L9zjP0WAjFV8urEe3k57dTud/dHlzPQhXzSvIXzH454A4 M+Tg== ARC-Authentication-Results: i=1; mx.google.com; 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 y23si20466420pfn.287.2019.05.13.23.57.02; Mon, 13 May 2019 23:57:18 -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; 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 S1726363AbfENG4H (ORCPT + 99 others); Tue, 14 May 2019 02:56:07 -0400 Received: from ozlabs.org ([203.11.71.1]:56853 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfENG4H (ORCPT ); Tue, 14 May 2019 02:56:07 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4537kY0Mcqz9sML; Tue, 14 May 2019 16:56:05 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Vitaly Bordug , Scott Wood Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 2/2] powerpc/8xx: Add microcode patch to move SMC parameter RAM. In-Reply-To: References: <35488171038e3d40e7680b8513dfbd52ff7b6ef2.1557487355.git.christophe.leroy@c-s.fr> Date: Tue, 14 May 2019 16:56:04 +1000 Message-ID: <87a7fptth7.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? I get that it's microcode but do we have any more detail than that? What's the source etc? cheers