From patchwork Fri Aug 16 21:05:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19268 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D77CD248E6 for ; Fri, 16 Aug 2013 21:06:41 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r14sf1661066yen.7 for ; Fri, 16 Aug 2013 14:06:41 -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=55YojC8XzhhSAIR5a3XUdi5I6LvQiKgy4dCnPJL8J9M=; b=kxwzYnbq/2NJYndgfHAi/5hEVZpt6xKxFN4xfH/1e7m/4pzCO0ZbGGVTTX0mrUJAqu K0nbglbpAtYuPobNyj+xqcFH8S1Z7f7vPkH/JVyh6oyREpjHm+9TeKIcwos5/g4ZN6QB RMjK4AoyUybm2lT+enFCjkAkul20iSbJa8ZxOqYOVaL7BalobVFe6vWcY2wfbQQ8tPFK XzXOVzB69rEju72zfJUdxxL4IgEqMEVw4sQ/d0YP4Qkh1J4TSEx2/B4Fe0Ft0CM3+fna FJPFScbWsI60fC9pI1HwDbkhnF/fuBN4wQQiVkip348wjR1dkv7gcdLCXKRx2C5l/4PJ U9hw== X-Received: by 10.236.54.68 with SMTP id h44mr1261884yhc.21.1376687201416; Fri, 16 Aug 2013 14:06:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.12.166 with SMTP id z6ls907212qeb.18.gmail; Fri, 16 Aug 2013 14:06:41 -0700 (PDT) X-Received: by 10.220.75.73 with SMTP id x9mr14883vcj.38.1376687201285; Fri, 16 Aug 2013 14:06:41 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id c11si781867vej.52.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ia10so1789008vcb.34 for ; Fri, 16 Aug 2013 14:06:40 -0700 (PDT) X-Gm-Message-State: ALoCoQnOEYqAMdWeG7ed9fnE2rKph7K/dHzJHABZdgazXNrd/ZUk0nBagV+AHsTzYX9Ay2Po4aU+ X-Received: by 10.220.166.19 with SMTP id k19mr12439vcy.42.1376687200587; Fri, 16 Aug 2013 14:06:40 -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 u4csp89469vcz; Fri, 16 Aug 2013 14:06:39 -0700 (PDT) X-Received: by 10.180.182.228 with SMTP id eh4mr555858wic.45.1376687199089; Fri, 16 Aug 2013 14:06:39 -0700 (PDT) Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by mx.google.com with ESMTPS id wn2si1290946wjc.80.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:39 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.179 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.179; Received: by mail-we0-f179.google.com with SMTP id t57so2117154wes.10 for ; Fri, 16 Aug 2013 14:06:38 -0700 (PDT) X-Received: by 10.194.240.197 with SMTP id wc5mr2631187wjc.23.1376687198474; Fri, 16 Aug 2013 14:06:38 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id b13sm797327wic.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:37 -0700 (PDT) From: Julien Grall To: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com Cc: patches@linaro.org, andre.przywara@linaro.org, xen-devel@lists.xen.org, Julien Grall Subject: [RFC 21/24] xen/arm: vexpress: Blacklist a list of board specific devices Date: Fri, 16 Aug 2013 22:05:53 +0100 Message-Id: <1376687156-6737-22-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> References: <1376687156-6737-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.220.175 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 is a bunch of devices that must not 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 --- 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 8fc30c4..ece7bd9 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 /*