Re: [PATCH v2 1/2] vfio : resume notifier

2016-07-19 Thread Chen Fan
VFIO_PCI_ERR_IRQ_INDEX, VFIO_PCI_REQ_IRQ_INDEX, + VFIO_PCI_RESUME_IRQ_INDEX, VFIO_PCI_NUM_IRQS }; -- Sincerely, Chen Fan

[PATCH 1/1] irqdesc: Add missing whitespace around operators

2016-02-16 Thread Chen Fan
Signed-off-by: Chen Fan Cc: triv...@kernel.org --- kernel/irq/irqdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 0409da0..dc0bea0 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -466,7 +466,7

Re: [PATCH v5] x86/PCI: Recognize that Interrupt Line 255 means "not connected"

2016-02-14 Thread Chen Fan
Oh, it's my fault to send this wrong patch, so sorry for that. pls ignore this patch. I has tested the new patch, it works fine on my environment. I have resent it. Thanks, Chen On 02/15/2016 11:25 AM, Chen Fan wrote: Per the x86-specific footnote to PCI spec r3.0, sec 6.2.4, the valu

[RESEND PATCH v5] x86/PCI: Recognize that Interrupt Line 255 means "not connected"

2016-02-14 Thread Chen Fan
q() fails. But we still need this patch because request_irq() may succeed or fail depending on other devices in the system. If request_irq() fails, i801_smbus will work by falling back to polling, but if it succeeds, i801_smbus won't work because it expects interrupts that it may not receiv

[PATCH v5] x86/PCI: Recognize that Interrupt Line 255 means "not connected"

2016-02-14 Thread Chen Fan
q() fails. But we still need this patch because request_irq() may succeed or fail depending on other devices in the system. If request_irq() fails, i801_smbus will work by falling back to polling, but if it succeeds, i801_smbus won't work because it expects interrupts that it may not receiv

[RESEND PATCH v4] x86/PCI: Recognize that Interrupt Line 255 means "not connected"

2016-01-28 Thread Chen Fan
q() fails. But we still need this patch because request_irq() may succeed or fail depending on other devices in the system. If request_irq() fails, i801_smbus will work by falling back to polling, but if it succeeds, i801_smbus won't work because it expects interrupts that it may not receiv

Re: [PATCH v4 1/1] pci: fix unavailable irq number 255 reported by BIOS

2016-01-28 Thread Chen Fan
On 01/29/2016 11:37 AM, Rafael J. Wysocki wrote: On Thursday, January 28, 2016 02:57:36 PM Bjorn Helgaas wrote: Hi Chen, Thanks a lot for persevering and working this all out! On Thu, Jan 28, 2016 at 09:35:46AM +0800, Chen Fan wrote: In our X86 environment, when enable Secure boot, we found

[PATCH v4 1/1] pci: fix unavailable irq number 255 reported by BIOS

2016-01-27 Thread Chen Fan
rq+0xcc/0x170 i801_probe+0x32f/0x508 [i2c_i801] local_pci_probe+0x45/0xa0 i801_smbus :00:1f.3: Failed to allocate irq 255: -16 i801_smbus: probe of :00:1f.3 failed with error -16 Signed-off-by: Chen Fan Signed-off-by: Thomas Gleixner Cc: Bjorn Helgaas --- drivers/acpi/pci_

Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS

2016-01-27 Thread Chen Fan
On 01/28/2016 06:32 AM, Bjorn Helgaas wrote: On Wed, Jan 27, 2016 at 10:13:36AM +0100, Thomas Gleixner wrote: On Tue, 26 Jan 2016, Bjorn Helgaas wrote: On Tue, Jan 26, 2016 at 04:48:25PM +0100, Thomas Gleixner wrote: Right. So we could certainly do something like this INVALID_IRQ thingy, but

[PATCH v3 2/2] i801_smbus: fix unavailable irq number 255 reported by BIOS

2016-01-26 Thread Chen Fan
rq+0xcc/0x170 i801_probe+0x32f/0x508 [i2c_i801] local_pci_probe+0x45/0xa0 i801_smbus :00:1f.3: Failed to allocate irq 255: -16 i801_smbus: probe of :00:1f.3 failed with error -16 Signed-off-by: Chen Fan --- drivers/i2c/busses/i2c-i801.c | 5 + 1 file changed, 5 insertions(+) diff --

[PATCH v3 0/2] pci: fix unavailable irq number 255 reported by BIOS

2016-01-26 Thread Chen Fan
see each patch comments. Chen Fan (2): pci: add an irq_invalid flag to specify the IRQ is not connected i801_smbus: fix unavailable irq number 255 reported by BIOS drivers/acpi/pci_irq.c| 10 ++ drivers/i2c/busses/i2c-i801.c | 5 + include/linux/pci.h | 1

[PATCH v3 1/2] pci: add an irq_invalid flag to specify the IRQ is not connected

2016-01-26 Thread Chen Fan
nd 254 are reserved." So we add an irq_invalid flag to tell driver that the device wire is not connected. then the driver could know whether it should call request_irq(). Signed-off-by: Chen Fan --- drivers/acpi/pci_irq.c | 10 ++ include/linux/pci.h| 1 + 2 files changed,

Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS

2016-01-26 Thread Chen Fan
On 01/26/2016 04:26 PM, Thomas Gleixner wrote: On Mon, 25 Jan 2016, Bjorn Helgaas wrote: On Mon, Jan 25, 2016 at 02:59:38PM +0800, Chen Fan wrote: i801_smbus :00:1f.3: PCI INT C: no GSI i801_smbus :00:1f.3: Failed to allocate irq 255: -16 i801_smbus: probe of :00:1f.3 failed with

Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS

2016-01-25 Thread Chen Fan
On 01/26/2016 04:58 AM, Bjorn Helgaas wrote: [+cc Thomas] On Mon, Jan 25, 2016 at 02:59:38PM +0800, Chen Fan wrote: In our environment, when enable Secure boot, we found an abnormal phenomenon as following call trace shows. after investigation, we found the firmware assigned an irq number 255

[PATCH v2] pci: fix unavailable irq number 255 reported by BIOS

2016-01-24 Thread Chen Fan
ed with error -16 [ 33.180145] ixgbe :5a:00.0: Multiq[ 33.240538] ixgbe :5a:00.0: (PCI Express:03:e0 [ 33.280826] ixgbe :5a:00.0: MAC: 3, PHY: 0, PBA No: 00-000 Signed-off-by: Chen Fan --- arch/x86/include/asm/irq_vectors.h | 2 ++ drivers/acpi/pci_irq.c

Re: [PATCH] pci: fix unavailable irq number 255 reported by BIOS

2016-01-21 Thread Chen Fan
On 01/21/2016 01:12 AM, Bjorn Helgaas wrote: On Wed, Jan 20, 2016 at 12:21:24PM +0800, Chen Fan wrote: On 01/20/2016 08:24 AM, Bjorn Helgaas wrote: [+cc Jiang] Hi Chen, On Tue, Jan 19, 2016 at 02:43:30PM +0100, Rafael J. Wysocki wrote: On Tuesday, January 19, 2016 09:45:13 AM Chen Fan

Re: [PATCH 0/1] ns: introduce proc_get_ns_by_fd()

2015-09-29 Thread Chen Fan
On 09/29/2015 12:37 AM, Eric W. Biederman wrote: Oleg Nesterov writes: On 09/25, Konstantin Khlebnikov wrote: +struct ns_common *proc_ns_fdget(int fd, int nstype, struct fd *fd_ref) { - struct file *file; + struct ns_common *ns; + struct fd f; - file = fget(fd); -

Re: [PATCH RFC v2] pidns: introduce syscall getvpid

2015-09-25 Thread Chen Fan
On 09/24/2015 09:53 PM, Konstantin Khlebnikov wrote: pid_t getvpid(pid_t pid, int source, int target); This syscall converts pid from source pid-namespace into pid in target pid-namespace. Namespaces are defined by file descriptors pointing to namespace entries in proc (/proc/[pid]/ns/pid). If

Re: Re: [PATCH RFC] pidns: introduce syscall getvpid

2015-09-20 Thread Chen Fan
On 09/17/2015 12:31 AM, Serge E. Hallyn wrote: On Wed, Sep 16, 2015 at 09:49:02AM -0500, Eric W. Biederman wrote: "Serge E. Hallyn" writes: On Wed, Sep 16, 2015 at 10:37:33AM +0300, Konstantin Khlebnikov wrote: On 15.09.2015 20:41, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubun

[PATCH] eventfd: fix trivial typos in function eventfd_signal() comment

2015-01-15 Thread Chen Fan
Signed-off-by: Chen Fan --- fs/eventfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 4b0a226..f550f8e 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -45,10 +45,10 @@ struct eventfd_ctx { * * This function is supposed to be

Re: [PATCH] eventfd: fix trivial typos in function eventfd_signal() comment

2015-01-05 Thread Chen, Fan
Cc: Alexander Viro On Tue, 2015-01-06 at 09:17 +0800, Chen Fan wrote: > Cc: Davide Libenzi > Signed-off-by: Chen Fan > --- > > fs/eventfd.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/eventfd.c b/fs/eventfd.c > index 4b0a226

[PATCH] eventfd: fix trivial typos in function eventfd_signal() comment

2015-01-05 Thread Chen Fan
Cc: Davide Libenzi Signed-off-by: Chen Fan --- fs/eventfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 4b0a226..f550f8e 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -45,10 +45,10 @@ struct eventfd_ctx { * * This function is

[PATCH] eventfd: fix trivial typos in function eventfd_signal() comment

2015-01-05 Thread Chen Fan
Signed-off-by: Chen Fan --- fs/eventfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 4b0a226..f550f8e 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -45,10 +45,10 @@ struct eventfd_ctx { * * This function is supposed to be called

[PATCH] kvm: x86: Fix debug typo error in lapic

2014-01-02 Thread Chen Fan
fix the 'vcpi' typos when apic_debug is enabled. Signed-off-by: Chen Fan --- arch/x86/kvm/lapic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index dec48bf..ce736ec 100644 --- a/arch/x86/kvm/lapic.c +++ b/ar