From patchwork Fri Sep 13 12:49:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 20046 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B923128EA0 for ; Fri, 13 Sep 2013 12:50:05 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1184839qec.8 for ; Fri, 13 Sep 2013 05:50:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=bVlq3+dkVfP9PA+yCLaTBLasj0OiNIs4VK7StbKem5w=; b=X1TPL0yvbxoxFbcNIPlfA2sKgvW6IJ9aeHY3RXt488G9exiSA6jIYE8wfo3YLHHnOH CJG3I9soRM4MthYRZNo7Ou4uAUd5EmIlcKt7KFg0Q5ec17v4L3aZA4r15s3y7lQvVqM4 jRS8BZVfSEN6hJvJVGT1Yt9kgX4Kqs+cbeJhpdDxl+y1Ea2Jlfou0qgjfFCHjAtznvX+ hKWP7fbcO7Icf505CXVRh2DNy+M5F7lfDtgtxv/y+N3pWUrZuhu/oWpXw/3wYqzvshoX Wv4HiwZFlmLel648A+P1gakcbGQq0VhFbyc5lk9g/fXhZJoWEeOAyrMQcUKT1ekgsZtz WHUw== X-Gm-Message-State: ALoCoQkDpPfTR8ZsuSFvuXDh5yfkxc539u//Ah0Vrw/vVJwSd4LGlZ9zAcYFuR+EHyNvHXAo2ybM X-Received: by 10.236.227.165 with SMTP id d35mr650095yhq.51.1379076605544; Fri, 13 Sep 2013 05:50:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.83 with SMTP id s19ls1163631qeu.7.gmail; Fri, 13 Sep 2013 05:50:05 -0700 (PDT) X-Received: by 10.58.119.233 with SMTP id kx9mr11775859veb.3.1379076605330; Fri, 13 Sep 2013 05:50:05 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id st7si3060565vdc.120.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 05:50:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.53; Received: by mail-vb0-f53.google.com with SMTP id i3so852970vbh.26 for ; Fri, 13 Sep 2013 05:50:05 -0700 (PDT) X-Received: by 10.52.24.4 with SMTP id q4mr575951vdf.34.1379076605211; Fri, 13 Sep 2013 05:50:05 -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 u4csp78794vcz; Fri, 13 Sep 2013 05:50:04 -0700 (PDT) X-Received: by 10.14.29.67 with SMTP id h43mr18143114eea.7.1379076604083; Fri, 13 Sep 2013 05:50:04 -0700 (PDT) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by mx.google.com with ESMTPS id e49si3772101eep.21.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 05:50:04 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.44 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.83.44; Received: by mail-ee0-f44.google.com with SMTP id b47so562258eek.3 for ; Fri, 13 Sep 2013 05:50:03 -0700 (PDT) X-Received: by 10.15.33.132 with SMTP id c4mr18372100eev.2.1379076603422; Fri, 13 Sep 2013 05:50:03 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id p5sm14678420eeg.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 05:50:02 -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 v4 21/27] xen/arm: vexpress: Blacklist a list of board specific devices Date: Fri, 13 Sep 2013 13:49:28 +0100 Message-Id: <1379076574-28316-22-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1379076574-28316-1-git-send-email-julien.grall@linaro.org> References: <1379076574-28316-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.212.53 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 blacklists the HDLCD device because Xen is unable to correctly map the framebuffer into dom0. 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 v3: - Fix typoes in commit message 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 /*