Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932171AbbGTHyf (ORCPT ); Mon, 20 Jul 2015 03:54:35 -0400 Received: from foss.arm.com ([217.140.101.70]:54402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755047AbbGTHye (ORCPT ); Mon, 20 Jul 2015 03:54:34 -0400 Message-ID: <55ACA936.3060800@arm.com> Date: Mon, 20 Jul 2015 08:54:30 +0100 From: Marc Zyngier Organization: ARM Ltd User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: "majun (F)" , Bjorn Helgaas , Thomas Gleixner , Jiang Liu , Jason Cooper CC: "linux-arm-kernel@lists.infradead.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Yijing Wang , Lorenzo Pieralisi , Duc Dang Subject: Re: [PATCH v4 09/19] drivers: base: Add MSI domain support for non-PCI devices References: <1436962613-17359-1-git-send-email-marc.zyngier@arm.com> <1436962613-17359-10-git-send-email-marc.zyngier@arm.com> <55AC5DF3.8090502@huawei.com> In-Reply-To: <55AC5DF3.8090502@huawei.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1821 Lines: 62 On 20/07/15 03:33, majun (F) wrote: > > > ?? 2015/7/15 20:16, Marc Zyngier ะด??: >> With the msi_list and the msi_domain properties now being at the >> generic device level, it is starting to be relatively easy to offer >> a generic way of providing non-PCI MSIs. >> > [...] >> diff --git a/include/linux/msi.h b/include/linux/msi.h >> index c10ec56..b55cf63 100644 >> --- a/include/linux/msi.h >> +++ b/include/linux/msi.h >> @@ -18,6 +18,11 @@ struct pci_dev; >> void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg); >> void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); >> >> +typedef void (*irq_write_msi_msg_t)(struct msi_desc *desc, >> + struct msi_msg *msg); >> + >> +struct platform_msi_priv_data; >> + >> struct msi_desc { >> struct list_head list; >> unsigned int irq; >> @@ -42,6 +47,10 @@ struct msi_desc { >> void __iomem *mask_base; >> }; >> }; >> + struct { >> + struct platform_msi_priv_data *platform_msi_priv_data; >> + u16 msi_index; >> + }; >> }; >> }; >> > When I add this patch in linux 4.2.rc2, this part is rejected. So I added this part > myself. But there is compiling errors. [...] Did you read this crucial part of the cover letter: [...] Patches are on top of 4.2-rc2 and Jiang Liu's series, and available at: git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/npci-msi-v2 Without Jiang Liu's series as a prerequisite, it is not surprising nothing applies, let alone compile... M. -- Jazz is not dead. It just smells funny... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/