From patchwork Wed Aug 28 14:47:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19586 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8B13F25E58 for ; Wed, 28 Aug 2013 14:48:44 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id n7sf7086913qcx.6 for ; Wed, 28 Aug 2013 07:48:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Wy+RO/TLDLGCq9cgeNHcz3fBIRAjxlQ2kKQOm0yqyrk=; b=YmCW5T9aaVuUubi3mejgRMxPUxGfQ58RWmeUnagyZqUSwGR8z4dzw+KY+3GtBB7c+v 2vJcBbKaR1MHBFfes41SMmxFX5+gXjWr32jQfqhCGvhn+e9x7w+fLuMq0iL/V88xdUJC 6HaxuPPYZT86JMUvvwskr7WemDojgZTDMsdoTojKDuh9her+5yhj2DZY7pJQguE7TbK4 gKlpUpBKJqllZjLKJtVt1HT4y0jqMdC0rDCJ4s1TG9IPEXUsElEg+vSA2xsCu1nAoDxt Sp5c9gD7qXkR+0wDylO0Bw/3TGDQWeKL9ZgGPxd5vVg6rsR+X+WKtXj7vFIlLB5A3lTK w8hQ== X-Received: by 10.236.18.196 with SMTP id l44mr5805877yhl.52.1377701324412; Wed, 28 Aug 2013 07:48:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.38.101 with SMTP id f5ls403459qek.31.gmail; Wed, 28 Aug 2013 07:48:44 -0700 (PDT) X-Received: by 10.58.155.37 with SMTP id vt5mr150568veb.41.1377701324295; Wed, 28 Aug 2013 07:48:44 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id dm3si6598119vdc.124.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id cy12so4156166veb.4 for ; Wed, 28 Aug 2013 07:48:44 -0700 (PDT) X-Gm-Message-State: ALoCoQmulo2J/1SXMoEoBf250Q3pN3O94SIS6ndZ+Hr02d24XcdLg/8Uhhh9qX4la8IZGP5hMnqD X-Received: by 10.52.35.171 with SMTP id i11mr21851449vdj.4.1377701324218; Wed, 28 Aug 2013 07:48:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp359973vcz; Wed, 28 Aug 2013 07:48:43 -0700 (PDT) X-Received: by 10.194.23.8 with SMTP id i8mr2809531wjf.68.1377701322987; Wed, 28 Aug 2013 07:48:42 -0700 (PDT) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx.google.com with ESMTPS id bq2si9491196wjb.174.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:42 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.42; Received: by mail-wg0-f42.google.com with SMTP id l18so1095447wgh.3 for ; Wed, 28 Aug 2013 07:48:42 -0700 (PDT) X-Received: by 10.194.82.229 with SMTP id l5mr1375305wjy.85.1377701322452; Wed, 28 Aug 2013 07:48:42 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id a8sm5590498wie.6.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:41 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, andre.przywara@linaro.org, Julien Grall Subject: [PATCH V1 24/29] xen/arm: vexpress: Blacklist a list of board specific devices Date: Wed, 28 Aug 2013 15:47:38 +0100 Message-Id: <1377701263-3319-25-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> References: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On Versatile there are a bunch of devices which must not be pass-through to any guest (power management and cache coherency devices). This commit also blacklist the HDLCD device because then is unable to correctly map the framebuffer. Therefore, when Linux will try to access to the framebuffer, Xen will receive a non-handled data access. Signed-off-by: Julien Grall --- Changes in v2: - Fix typoes in commit message --- xen/arch/arm/platforms/vexpress.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xen/arch/arm/platforms/vexpress.c b/xen/arch/arm/platforms/vexpress.c index 6f7dc2c..298c141 100644 --- a/xen/arch/arm/platforms/vexpress.c +++ b/xen/arch/arm/platforms/vexpress.c @@ -125,9 +125,26 @@ static const char * const vexpress_dt_compat[] __initdata = NULL }; +static const struct dt_device_match vexpress_blacklist_dev[] __initconst = +{ + /* Cache Coherent Interconnect */ + DT_MATCH_COMPATIBLE("arm,cci-400"), + DT_MATCH_COMPATIBLE("arm,cci-400-pmu"), + /* Video device + * TODO: remove it once memreserve is handled properly by Xen + */ + DT_MATCH_COMPATIBLE("arm,hdlcd"), + /* Hardware power management */ + DT_MATCH_COMPATIBLE("arm,vexpress-reset"), + DT_MATCH_COMPATIBLE("arm,vexpress-reboot"), + DT_MATCH_COMPATIBLE("arm,vexpress-shutdown"), + { /* sentinel */ }, +}; + PLATFORM_START(vexpress, "VERSATILE EXPRESS") .compatible = vexpress_dt_compat, .reset = vexpress_reset, + .blacklist_dev = vexpress_blacklist_dev, PLATFORM_END /*