From patchwork Tue Sep 10 14:49:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19923 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B4123246A4 for ; Tue, 10 Sep 2013 14:49:53 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id i72sf9514545yha.5 for ; Tue, 10 Sep 2013 07:49:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; 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=bVlq3+dkVfP9PA+yCLaTBLasj0OiNIs4VK7StbKem5w=; b=lIZ+qZxHMk9taOwmgS+7KSWd+df6ouymNzcfcgh4xGvdbDBSBkPic6I5WB+uvSKtQS +SgyzuKOwlxuQ6W6rks+xsCigczGJUAOFD99k6V17VyrRApAiIw1hRrUPmRFBNqsbBh5 5uZrvrNKqdf4cXvHZe46zbrrRr8toR/55/Xp5FC9y+2es6E2OE5fxKcZ4HZjJvQ8PkFn sbnBdB6Y++N3MTtx6TYCYXbMyJ4Opf19gSPrdjMuPkrlIaBRtbvIpp85YOwfeGt3CGOW jUF7qKDqEkm5L90yR4desRdNSXp3A46gBEcXdntnma5oBeahiu+eKdZav33+ZCfy9B1h hUJQ== X-Received: by 10.236.63.165 with SMTP id a25mr8528999yhd.43.1378824593549; Tue, 10 Sep 2013 07:49:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.85.200 with SMTP id j8ls2129405qez.6.gmail; Tue, 10 Sep 2013 07:49:53 -0700 (PDT) X-Received: by 10.52.170.111 with SMTP id al15mr149607vdc.43.1378824593300; Tue, 10 Sep 2013 07:49:53 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id he13si4541536veb.7.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 07:49:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id m17so5041442vca.17 for ; Tue, 10 Sep 2013 07:49:53 -0700 (PDT) X-Gm-Message-State: ALoCoQnR2rslUxKp3brp/mOWsUGZ0oehBizaUVydT9hXKNLMn+JkN5HOv5lW4U0qihx2ShigfCgu X-Received: by 10.52.165.237 with SMTP id zb13mr1490355vdb.28.1378824593222; Tue, 10 Sep 2013 07:49:53 -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 u4csp4675vcz; Tue, 10 Sep 2013 07:49:52 -0700 (PDT) X-Received: by 10.14.42.3 with SMTP id i3mr333765eeb.95.1378824591945; Tue, 10 Sep 2013 07:49:51 -0700 (PDT) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by mx.google.com with ESMTPS id u46si15304304eeg.196.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 07:49:51 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.53 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.83.53; Received: by mail-ee0-f53.google.com with SMTP id b15so3961403eek.40 for ; Tue, 10 Sep 2013 07:49:51 -0700 (PDT) X-Received: by 10.15.67.131 with SMTP id u3mr39266519eex.34.1378824591309; Tue, 10 Sep 2013 07:49:51 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id i1sm31911644eeg.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 07:49:50 -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 v3 21/27] xen/arm: vexpress: Blacklist a list of board specific devices Date: Tue, 10 Sep 2013 15:49:09 +0100 Message-Id: <1378824555-16564-22-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1378824555-16564-1-git-send-email-julien.grall@linaro.org> References: <1378824555-16564-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.172 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 /*