From patchwork Wed Oct 1 08:07:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Suthikulpanit, Suravee" X-Patchwork-Id: 38221 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B544820549 for ; Wed, 1 Oct 2014 08:10:26 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf231757wgh.10 for ; Wed, 01 Oct 2014 01:10:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=Q11djEAkQdc0go2fjmsJML68X5A2J/HxqeVm6dLo+5Y=; b=B3aewCVL9giHavWasKCGOAcNaE0AauD6shiPWJAdZ5Cpa+pA59nCKoGEfU+zMPu6vk NlMePKU7oy0bn+ZGsPiWkfwNKspIKVUuL6z6ylAHpRBD2GnuVzxVzqLbF42wgA0Jo0TH soYvVZHVv9y2ec1vqeEzbCuENmIUkCIiIK0KjRMqb9SdvCG+QvDGbi7j3MKUOoM8DIZ5 ZTXsaVTj6vpdxILMPerYR64PrRM8b8Z1IOgIjQpVHD+faFR3rQD1364Dw0mjcQSLHZkA q0lnfnR2k/b+8GTJEvAm0Comg5D45lX+0E4ufQq80KqJC86neO7cd5OZxCRW3shJYr4e 1Tkw== X-Gm-Message-State: ALoCoQmNAp5PGB0G4EEpPmD+j3jOUnr2l9DZGU9FaSgUONzu9kA1ZhEKY8r9Z7R8fLyj5hY2me7k X-Received: by 10.152.6.195 with SMTP id d3mr24527laa.10.1412151025895; Wed, 01 Oct 2014 01:10:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.100 with SMTP id z4ls133009laz.60.gmail; Wed, 01 Oct 2014 01:10:25 -0700 (PDT) X-Received: by 10.112.128.135 with SMTP id no7mr49826412lbb.74.1412151025755; Wed, 01 Oct 2014 01:10:25 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPS id iq2si320832lac.77.2014.10.01.01.10.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 01:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so274882lbv.21 for ; Wed, 01 Oct 2014 01:10:25 -0700 (PDT) X-Received: by 10.152.7.73 with SMTP id h9mr21307276laa.27.1412151025409; Wed, 01 Oct 2014 01:10:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp488102lbb; Wed, 1 Oct 2014 01:10:24 -0700 (PDT) X-Received: by 10.52.150.163 with SMTP id uj3mr33380226vdb.24.1412151024255; Wed, 01 Oct 2014 01:10:24 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id tp5si88667vcb.67.2014.10.01.01.10.23 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 01 Oct 2014 01:10:24 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XZExt-0007UW-9h; Wed, 01 Oct 2014 08:08:49 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XZExq-0007T9-Cf for xen-devel@lists.xen.org; Wed, 01 Oct 2014 08:08:46 +0000 Received: from [85.158.139.211:10629] by server-3.bemta-5.messagelabs.com id E5/1F-00307-D86BB245; Wed, 01 Oct 2014 08:08:45 +0000 X-Env-Sender: Suravee.Suthikulpanit@amd.com X-Msg-Ref: server-8.tower-206.messagelabs.com!1412150924!11263866!1 X-Originating-IP: [65.55.169.122] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24846 invoked from network); 1 Oct 2014 08:08:45 -0000 Received: from mail-bl2on0122.outbound.protection.outlook.com (HELO na01-bl2-obe.outbound.protection.outlook.com) (65.55.169.122) by server-8.tower-206.messagelabs.com with AES256-SHA encrypted SMTP; 1 Oct 2014 08:08:45 -0000 Received: from BLUPR02CA057.namprd02.prod.outlook.com (25.160.23.175) by BN1PR02MB200.namprd02.prod.outlook.com (10.242.214.156) with Microsoft SMTP Server (TLS) id 15.0.1039.15; Wed, 1 Oct 2014 08:08:41 +0000 Received: from BL2FFO11FD021.protection.gbl (2a01:111:f400:7c09::154) by BLUPR02CA057.outlook.office365.com (2a01:111:e400:8ad::47) with Microsoft SMTP Server (TLS) id 15.0.1039.15 via Frontend Transport; Wed, 1 Oct 2014 08:08:41 +0000 Received: from atltwp01.amd.com (165.204.84.221) by BL2FFO11FD021.mail.protection.outlook.com (10.173.161.100) with Microsoft SMTP Server id 15.0.1029.15 via Frontend Transport; Wed, 1 Oct 2014 08:08:41 +0000 X-WSS-ID: 0NCRAME-07-EYN-02 X-M-MSG: Received: from satlvexedge02.amd.com (satlvexedge02.amd.com [10.177.96.29]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by atltwp01.amd.com (Axway MailGate 5.3.1) with ESMTPS id 291F4CAE66B; Wed, 1 Oct 2014 03:08:38 -0500 (CDT) Received: from SATLEXDAG05.amd.com (10.181.40.11) by SATLVEXEDGE02.amd.com (10.177.96.29) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 1 Oct 2014 03:09:04 -0500 Received: from ssuthiku-fedora-lt.amd.com (10.180.168.240) by satlexdag05.amd.com (10.181.40.11) with Microsoft SMTP Server id 14.3.195.1; Wed, 1 Oct 2014 04:08:37 -0400 From: To: , , Date: Wed, 1 Oct 2014 03:07:57 -0500 Message-ID: <1412150877-4090-5-git-send-email-suravee.suthikulpanit@amd.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1412150877-4090-1-git-send-email-suravee.suthikulpanit@amd.com> References: <1412150877-4090-1-git-send-email-suravee.suthikulpanit@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.221; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(428002)(199003)(189002)(106466001)(77096002)(77156001)(85306004)(50226001)(21056001)(53416004)(85852003)(50986999)(92566001)(19580395003)(33646002)(31966008)(2201001)(92726001)(86152002)(95666004)(105586002)(97736003)(88136002)(62966002)(87286001)(104166001)(20776003)(84676001)(36756003)(19580405001)(229853001)(89996001)(86362001)(107046002)(80022003)(46102003)(87936001)(4396001)(76482002)(44976005)(10300001)(48376002)(64706001)(93916002)(68736004)(102836001)(47776003)(76176999)(50466002)(120916001)(101416001)(99396003)(2004002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR02MB200; H:atltwp01.amd.com; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR02MB200; X-Forefront-PRVS: 0351D213B3 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-OriginatorOrg: amd4.onmicrosoft.com Cc: Suravee Suthikulpanit , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH 4/4] amd/seattle: Initial revision of AMD Seattle support X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: suravee.suthikulpanit@amd.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: From: Suravee Suthikulpanit This patch add inital (minimal) platform support for AMD Seattle, which mainly just define the matching ID, and specify system_off, and sytem_reset mechanism. Initially, the firmware only support a subset of PSCI-0.2 functions, system-off and sytem-reset. The boot protocol is still using spin-table. Signed-off-by: Suravee Suthikulpanit --- xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/seattle.c | 50 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 xen/arch/arm/platforms/seattle.c diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile index 680364f..03e7a14 100644 --- a/xen/arch/arm/platforms/Makefile +++ b/xen/arch/arm/platforms/Makefile @@ -4,3 +4,4 @@ obj-$(CONFIG_ARM_32) += midway.o obj-$(CONFIG_ARM_32) += omap5.o obj-$(CONFIG_ARM_32) += sunxi.o obj-$(CONFIG_ARM_64) += xgene-storm.o +obj-$(CONFIG_ARM_64) += seattle.o diff --git a/xen/arch/arm/platforms/seattle.c b/xen/arch/arm/platforms/seattle.c new file mode 100644 index 0000000..e9a5ecf --- /dev/null +++ b/xen/arch/arm/platforms/seattle.c @@ -0,0 +1,50 @@ +/* + * xen/arch/arm/seattle.c + * + * AMD Seattle specific settings + * + * Suravee Suthikulpanit + * Copyright (c) 2014 Advance Micro Devices Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include +#include + +static const char * const seattle_dt_compat[] __initconst = +{ + "amd,seattle", + NULL +}; + +/* Seattle firmware only implement PSCI handler for + * system off and system reset. This is temporary + * until full PSCI-0.2 is supported. + */ +PLATFORM_START(seattle, "SEATTLE") + .compatible = seattle_dt_compat, + .reset = call_psci_system_reset, + .poweroff = call_psci_system_off, +PLATFORM_END + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */