From patchwork Tue Feb 4 16:20:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 24126 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4F0F5202FA for ; Tue, 4 Feb 2014 16:22:07 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf35191465obb.4 for ; Tue, 04 Feb 2014 08:22:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:in-reply-to:message-id :references:user-agent: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=hljD3GrGqJrOSaTVzfJXJjTQF+RT7rgJyTW/9TGOcZs=; b=YUpoxKsCbzC9VR90OvRKuxAwUEALIZKdK89RCy0I+fPfr/BS7mzzg9K8n14NPId/61 uA14uKGlGo9n7gdWaUMTRwDHFB7aIcyXO+Npen4qDoS9GdCV3AExWCp/pnmTNuavC6ee WrsPmXItcukdbU4TVl6P+GKEbpegjJ4ePaH9Zv81ETqDT8+LJGsiPijpjEU0t9BpU9gg GQFeAU/bFCjS3aFgSxf6nGXKK/SI6Xh4yD1EyK8OM/zG14AuFyNgNb02rsg7YVLuY6N5 Zp6nWZY/pXZYZFM8C+4/nV++xBH6rDMfTdLti+u5Dyv5PXDjwySB0Y40sFOxL7/Yqk68 efEw== X-Gm-Message-State: ALoCoQkYIqdEKfw0umid3cU/9PgjCYGQ3Rz975QvP7o6YaATJuFKiQllzi7x6bbA/8ZQ4KC9TLFp X-Received: by 10.50.112.10 with SMTP id im10mr8460056igb.1.1391530926397; Tue, 04 Feb 2014 08:22:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.215 with SMTP id 81ls2322647qgr.14.gmail; Tue, 04 Feb 2014 08:22:06 -0800 (PST) X-Received: by 10.220.110.210 with SMTP id o18mr456718vcp.49.1391530926325; Tue, 04 Feb 2014 08:22:06 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id xe7si8352034vec.2.2014.02.04.08.22.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 08:22:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.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.220.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so5856420vcb.4 for ; Tue, 04 Feb 2014 08:22:06 -0800 (PST) X-Received: by 10.58.170.106 with SMTP id al10mr109678vec.61.1391530926254; Tue, 04 Feb 2014 08:22:06 -0800 (PST) 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.220.174.196 with SMTP id u4csp247677vcz; Tue, 4 Feb 2014 08:22:05 -0800 (PST) X-Received: by 10.52.155.66 with SMTP id vu2mr542367vdb.50.1391530925765; Tue, 04 Feb 2014 08:22:05 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id sq4si8368263vdc.2.2014.02.04.08.22.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 08:22:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) 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 1WAijY-00032Z-2F; Tue, 04 Feb 2014 16:20:24 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WAijW-00032R-N6 for xen-devel@lists.xen.org; Tue, 04 Feb 2014 16:20:22 +0000 Received: from [193.109.254.147:4279] by server-10.bemta-14.messagelabs.com id 5C/50-10711-64311F25; Tue, 04 Feb 2014 16:20:22 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-4.tower-27.messagelabs.com!1391530820!1963906!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12424 invoked from network); 4 Feb 2014 16:20:21 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 4 Feb 2014 16:20:21 -0000 X-IronPort-AV: E=Sophos;i="4.95,780,1384300800"; d="scan'208";a="99722642" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 04 Feb 2014 16:20:19 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.2.342.4; Tue, 4 Feb 2014 11:20:19 -0500 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WAijT-0003op-51; Tue, 04 Feb 2014 16:20:19 +0000 Date: Tue, 4 Feb 2014 16:20:09 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Stefano Stabellini In-Reply-To: Message-ID: References: <1390844023-23123-1-git-send-email-oleksandr.tyshchenko@globallogic.com> <52E69CBC.3090207@linaro.org> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-DLP: MIA2 Cc: Oleksandr Tyshchenko , George Dunlap , Julien Grall , Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH] xen/arm: route irqs to cpu0 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: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: gic_route_irq_to_guest routes all IRQs to cpumask_of(smp_processor_id()), but actually it always called on cpu0. To avoid confusion and possible issues in case someone modified the code and reassigned a particular irq to a cpu other than cpu0, hardcode cpumask_of(0). Signed-off-by: Stefano Stabellini Acked-by: Julien Grall diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index e6257a7..8854800 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -776,8 +776,8 @@ int gic_route_irq_to_guest(struct domain *d, const struct dt_irq *irq, level = dt_irq_is_level_triggered(irq); - gic_set_irq_properties(irq->irq, level, cpumask_of(smp_processor_id()), - 0xa0); + /* TODO: handle routing irqs to cpus != cpu0 */ + gic_set_irq_properties(irq->irq, level, cpumask_of(0), 0xa0); retval = __setup_irq(desc, irq->irq, action); if (retval) {