[Top] [All Lists]

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

To:,, Greg Kroah-Hartman <>, David Daney <>
Subject: [PATCH v2 0/2] staging: octeon-ethernet: IRQ handling fixes
From: Aaro Koskinen <>
Date: Sun, 6 Oct 2013 23:35:14 +0300
Cc:, Aaro Koskinen <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;

This is a second version of two patches sent earlier:

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:

        - 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.

        - 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

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


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