Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754664AbbGPIhD (ORCPT ); Thu, 16 Jul 2015 04:37:03 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:52392 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754616AbbGPIg7 (ORCPT ); Thu, 16 Jul 2015 04:36:59 -0400 Message-ID: <55A76CD0.1050000@huawei.com> Date: Thu, 16 Jul 2015 16:35:28 +0800 From: "majun (F)" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Thomas Gleixner CC: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 1/3] IRQ/Gic-V3: Add mbigen driver to support mbigen interrupt controller References: <1436166548-34920-1-git-send-email-majun258@huawei.com> <1436166548-34920-2-git-send-email-majun258@huawei.com> <559CA530.2090508@huawei.com> In-Reply-To: Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.236.124] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1727 Lines: 46 在 2015/7/8 18:44, Thomas Gleixner 写道: > On Wed, 8 Jul 2015, majun (F) wrote: >> 在 2015/7/6 20:33, Thomas Gleixner 写道: >>> Care to explain what this does? It seems for some nodes you cannot >>> write the msi message. So how is that supposed to work? How is that >>> interrupt controlled (mask/unmask ...) ? >>> >> This function is used to write irq event id into vector register.Depends on >> hardware design, write operation is permitted in some mbigen node(nid=0,5,and >7), >> For other mbigen node, this register is read only. >> >> But only vector register has this problem. Other registers are ok for read/write. > > You still fail to explain how that works if the register is not > writeable. And the code wants a proper comment explaining it. > Actually, the interrupt trigger type, device id and event id already encoded in mbigen chip. Depends on hardweare design, the device id and event id value in some mbigen nodes can't be modified, but some nodes can. For the mbigen node which event id can't be modified, we can use the default event id value (encoded in mbigen register). If the event id can be programmed, we can use this function to modify the event id value. [....] > > Aside of that, please look at the per-device MSI series Marc posted > (you were cc'ed). This is going to be where we are heading and your > driver should be based on that. Ok, i will change mbigen code based on Marc's patch. > > Thanks, > > tglx > -- 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/