linux-mips
[Top] [All Lists]

[PATCH v2 0/2] staging: octeon-ethernet: IRQ handling fixes

To: devel@driverdev.osuosl.org, linux-mips@linux-mips.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, David Daney <david.daney@cavium.com>
Subject: [PATCH v2 0/2] staging: octeon-ethernet: IRQ handling fixes
From: Aaro Koskinen <aaro.koskinen@iki.fi>
Date: Sun, 6 Oct 2013 23:35:14 +0300
Cc: richard@nod.at, Aaro Koskinen <aaro.koskinen@iki.fi>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,

This is a second version of two patches sent earlier:
        http://marc.info/?t=138039800600001&r=1&w=2
        http://marc.info/?t=138039800600002&r=1&w=2

The patch 1 is changed so that it won't touch the init/probe path. The
driver will still fail if CPU0 is not around, but that was not accepted
to be a bug.

The patch 2 is unmodified.

Test cases for EdgeRouter Lite:

1)
        - Start pinging Octeon from a remote host with 1 second interval.
        - Wait 10 seconds.
        - Set /proc/irq/24/smp_affinity to 2.
        - Wait 10 seconds.
        - Quit ping.

        - Expected result:
                No packet loss reported.
        - Unexpected/failed result:
                Packet loss.

2)
        - Boot Octeon with kernel parameter "octeon-ethernet.max_rx_cpus=1".
        - Saturate the Octeon with external traffic (e.g. flood ping).

        - Expected result:
                Max 50% CPU time is consumed. Second core is available for
                other tasks.
        - Unexpected/failed result:
                100% CPU time is consumed. System is unresponsive.

Aaro Koskinen (2):
  staging: octeon-ethernet: allow to set IRQ smp_affinity freely
  staging: octeon-ethernet: allow to use only 1 CPU for packet
    processing

 drivers/staging/octeon/ethernet-rx.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

-- 
1.8.4.rc3


<Prev in Thread] Current Thread [Next in Thread>