[PATCH] ehea: add kdump support

2008-02-13 Thread Thomas Klein
there. The arrays are kept up-to-date during normal runtime. The crash handler fn is triggered by the recently introduced PPC crash shutdown reg/unreg functions. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h | 34 +- drivers/net/ehea/ehea_main.c | 281

[RFC] ehea: kdump support - rework

2007-12-17 Thread Thomas Klein
RFC #1: http://lkml.org/lkml/2007/12/12/241 Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp -X dontdiff linux-2.6.24-rc5/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.h --- linux-2.6.24-rc5/drivers/net/ehea/ehea.h2007-12-11 04:48:43.0 +0100

[RFC] ehea: kdump support using new shutdown hook

2007-12-12 Thread Thomas Klein
registrations. Please comment. Shutdown hook patches: http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048058.html http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048059.html Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp -X dontdiff linux-2.6.24-rc5/drivers/net/ehea/ehea.h

[PATCH 2/2][2.6.24] ehea: Reworked rcv queue handling to log only fatal errors

2007-11-21 Thread Thomas Klein
Prevent driver from brawly logging packet checksum errors. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c | 11 +-- drivers/net/ehea/ehea_qmr.h |4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff

[PATCH 1/2][2.6.24] ehea: Improve tx packets counting

2007-11-21 Thread Thomas Klein
Using own tx_packets counter instead of firmware counters. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c |9 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/ehea/ehea.h b/drivers

[PATCH] ehea: Add kdump support

2007-11-09 Thread Thomas Klein
-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c | 28 2 files changed, 29 insertions(+), 1 deletions(-) diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index f78e5bf..5935899 100644 --- a/drivers

[RESEND][PATCH 1/3] ehea: Fix workqueue handling

2007-08-06 Thread Thomas Klein
Fix: Workqueue ehea_driver_wq was not destroyed Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index

[RESEND][PATCH 2/3] ehea: Simplify resource usage check

2007-08-06 Thread Thomas Klein
Use shorter method to determine whether adapter has configured ports Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea

[RESEND][PATCH 3/3] ehea: Eliminated some compiler warnings

2007-08-06 Thread Thomas Klein
Fixed wrongly casted pointers Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c | 25 ++--- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 36ca322..9756211

[PATCH 1/3] ehea: Fix workqueue handling

2007-07-30 Thread Thomas Klein
Fix: Workqueue ehea_driver_wq was not destroyed Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index

[PATCH 2/3] ehea: Simplify resource usage check

2007-07-30 Thread Thomas Klein
Use shorter method to determine whether adapter has configured ports Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea

[PATCH 3/3] ehea: Eliminated some compiler warnings

2007-07-30 Thread Thomas Klein
Fixed wrongly casted pointers Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c | 25 ++--- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 36ca322..9756211

Re: Possible eHEA performance issue

2007-07-20 Thread Thomas Klein
Michael Neuling wrote: From ehea_start_xmit in ehea_main.c we have: if (unlikely(atomic_read(pr-swqe_avail) = 1)) { spin_lock_irqsave(pr-netif_queue, flags); if (unlikely(atomic_read(pr-swqe_avail) = 1)) { pr-p_stats.queue_stopped++;

[PATCH] eHEA: Fix bonding support

2007-07-18 Thread Thomas Klein
and down functions to the port resources setup functions. Additionally the missing update of the last_rx member of the netdev structure was added. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c | 37

[PATCH 1/1] eHEA: Introducing support vor DLPAR memory add

2007-07-11 Thread Thomas Klein
performs a rebuild of the mapping table and a re-registration of the global memory region. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h | 23 +-- drivers/net/ehea/ehea_main.c | 144 +++ drivers/net/ehea/ehea_phyp.h |3

[PATCH 2.6.22-rc4] ehea: Fixed possible kernel panic on VLAN packet recv

2007-06-06 Thread Thomas Klein
This patch fixes a possible kernel panic due to not checking the vlan group when processing received VLAN packets and a malfunction in VLAN/hypervisor registration. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp -X dontdiff linux-2.6.22-rc4/drivers/net/ehea/ehea.h patched_kernel

[PATCH 1/2] ehea: Whitespace cleanup

2007-05-31 Thread Thomas Klein
This patch fixes several whitespace issues. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp -X dontdiff linux-2.6.22-rc3/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.h --- linux-2.6.22-rc3/drivers/net/ehea/ehea.h2007-05-30 12:13:36.0 +0200

[PATCH 2/2] ehea: Receive SKB Aggregation

2007-05-31 Thread Thomas Klein
operation. We currently consider this as experimental until further review and tests have been passed. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp -X dontdiff linux-2.6.22-rc3/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.h --- linux-2.6.22-rc3/drivers/net/ehea/ehea.h

[PATCH 2.6.22-rc3] ehea: Fixed multi queue RX bug

2007-05-30 Thread Thomas Klein
Must access the respective queue's dummy netdev instead of the port's netdev. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index 602872d..e85a933 100644 --- a/drivers/net/ehea/ehea.h +++ b/drivers/net/ehea/ehea.h @@ -39,7 +39,7

[PATCH] ehea: Receive SKB Aggregation

2007-05-08 Thread Thomas Klein
this in the mainline driver? Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp -X dontdiff linux-2.6.22pre/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.h --- linux-2.6.22pre/drivers/net/ehea/ehea.h 2007-05-07 15:55:43.0 +0200 +++ patched_kernel/drivers/net/ehea/ehea.h

[PATCH 1/2] ehea: fix for sysfs entries

2007-04-26 Thread Thomas Klein
Create symbolic link from each logical port to ehea driver Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- This patch applies on top of the netdev upstream branch for 2.6.22 diff -Nurp -X dontdiff linux-2.6.21/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.h --- linux-2.6.21

[PATCH 2/2] ehea: fix for dlpar support

2007-04-26 Thread Thomas Klein
Certain resources may only be allocated when first logical port is available, and must be removed when last logical port has been removed. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- This patch applies on top of the netdev upstream branch for 2.6.22 diff -Nurp -X dontdiff linux-2.6.21

[PATCH 2.6.20-rc6 1/2] ehea: Fixed wrong jumbo frames status query

2007-01-29 Thread Thomas Klein
This patch fixes the wrong query and logging of the per interface jumbo frames enabled/disabled status. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c | 30 +++--- 2 files changed, 24 insertions

[PATCH 2.6.20-rc6 2/2] ehea: Fixed missing tasklet_kill() call

2007-01-29 Thread Thomas Klein
NEQ-Tasklet wasn't killed when module is removed. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c |1 + 1 files changed, 1 insertion(+) diff -Nurp -X dontdiff linux-2.6.20-rc6/drivers/net/ehea/ehea_main.c patched_kernel/drivers/net/ehea/ehea_main.c

[PATCH 2.6.20-rc5 1/7] ehea: Fixed wrong dereferencation

2007-01-22 Thread Thomas Klein
Not only check the pointer against 0 but also the dereferenced value Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c |6 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff -Nurp -X dontdiff linux-2.6.20-rc5

[PATCH 2.6.20-rc5 2/7] ehea: Fixing firmware queue config issue

2007-01-22 Thread Thomas Klein
Fix to use exactly one queue for incoming packets in all firmware configurations Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nurp -X dontdiff linux-2.6.20-rc5/drivers/net/ehea/ehea_main.c

[PATCH 2.6.20-rc5 3/7] ehea: Modified initial autoneg state determination

2007-01-22 Thread Thomas Klein
Logical partitions are not allowed to (try to) set the autonegotiation status. This patch removes the respective function call from the port setup function. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH 2.6.20-rc5 4/7] ehea: New method to determine number of available ports

2007-01-22 Thread Thomas Klein
Count OFDT nodes to determine the number of available ports instead of using the possibly outdated value from the hypervisor Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletion(-) diff -Nurp -X

[PATCH 2.6.20-rc5 5/7] ehea: Improved logging of permission issues

2007-01-22 Thread Thomas Klein
Disabled dump of hcall regs on some permission issues and fixed appropriate misleading logmessages Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c | 16 +++- drivers/net/ehea/ehea_phyp.c | 10 -- 2 files changed, 15 insertions(+), 11

[PATCH 2.6.20-rc5 7/7] ehea: Fixed possible nullpointer access

2007-01-22 Thread Thomas Klein
Fixed possible nullpointer access in event queue processing Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- drivers/net/ehea/ehea_main.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -Nurp -X dontdiff linux-2.6.20-rc5/drivers/net/ehea/ehea_main.c patched_kernel

[PATCH 2.6.19-rc4 2/3] ehea: Removed redundant define

2006-11-03 Thread Thomas Klein
Removed define H_CB_ALIGNMENT which is already defined in include/asm-powerpc/hvcall.h Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp git.netdev-2.6.base/drivers/net/ehea/ehea.h git.netdev-2.6/drivers/net/ehea/ehea.h --- git.netdev-2.6.base/drivers/net/ehea/ehea.h 2006-11-03 14

[PATCH 2.6.19-rc4 1/3] ehea: Nullpointer dereferencation fix

2006-11-03 Thread Thomas Klein
Fix: Must check for nullpointer before dereferencing it - not afterwards. Signed-off-by: Thomas Klein [EMAIL PROTECTED] --- diff -Nurp git.netdev-2.6.base/drivers/net/ehea/ehea_qmr.c git.netdev-2.6/drivers/net/ehea/ehea_qmr.c --- git.netdev-2.6.base/drivers/net/ehea/ehea_qmr.c 2006-11-03

[PATCH 2.6.19-rc4 3/3] ehea: 64K page support fix

2006-11-03 Thread Thomas Klein
This patch fixes 64k page support by using PAGE_MASK and appropriate pagesize defines in several places. Signed-off-by: Thomas Klein [EMAIL PROTECTED] drivers/net/ehea/ehea_ethtool.c |2 +- drivers/net/ehea/ehea_main.c| 26 +- drivers/net/ehea/ehea_phyp.c

Re: [2.6.19 PATCH 1/7] ehea: interface to network stack

2006-09-05 Thread Thomas Klein
Hi Francois, thanks for your review and your comments. See below our answers. Regards Thomas Francois Romieu wrote: +cb2 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL); +if (!cb2) { +ehea_error(no mem for cb2); +goto kzalloc_failed; It's better when the label

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-21 Thread Thomas Klein
Stephen Hemminger wrote: On Fri, 18 Aug 2006 17:41:26 +0200 Thomas Klein [EMAIL PROTECTED] wrote: Hi Alexey, first of all thanks a lot for the extensive review. Alexey Dobriyan wrote: + u64 hret = H_HARDWARE; Useless assignment here and everywhere. Initializing returncodes

Re: [2.6.19 PATCH 2/7] ehea: pHYP interface

2006-08-21 Thread Thomas Klein
Alexey Dobriyan wrote: On Fri, Aug 18, 2006 at 01:30:21PM +0200, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_phyp.c +++ kernel/drivers/net/ehea/ehea_phyp.c + hret = ehea_h_register_rpage(hcp_adapter_handle, pagesize, queue_type, +

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-21 Thread Thomas Klein
Alexey Dobriyan wrote: On Fri, Aug 18, 2006 at 01:33:22PM +0200, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_ethtool.c +++ kernel/drivers/net/ehea/ehea_ethtool.c +{ +strncpy(info-driver, DRV_NAME, sizeof(info-driver) - 1); +strncpy(info-version,

Re: [2.6.19 PATCH 5/7] ehea: main header files

2006-08-21 Thread Thomas Klein
Michael Neuling wrote: +static inline void ehea_update_sqa(struct ehea_qp *qp, u16 nr_wqes) +{ +struct h_epa epa = qp-epas.kernel; +epa_store_acc(epa, QPTEMM_OFFSET(qpx_sqa), + EHEA_BMASK_SET(QPX_SQA_VALUE, nr_wqes)); +} + +static inline void

Re: [2.6.19 PATCH 7/7] ehea: Makefile Kconfig

2006-08-21 Thread Thomas Klein
Alexey Dobriyan wrote: On Fri, Aug 18, 2006 at 01:37:44PM +0200, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4/drivers/net/Kconfig +++ patched_kernel/drivers/net/Kconfig @@ -2277,6 +2277,12 @@ config CHELSIO_T1 To compile this driver as a module, choose M here: the module

Re: [2.6.19 PATCH 1/7] ehea: interface to network stack

2006-08-21 Thread Thomas Klein
Alexey Dobriyan wrote: On Fri, Aug 18, 2006 at 01:29:01PM +0200, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_main.c +++ kernel/drivers/net/ehea/ehea_main.c +static inline int ehea_refill_rq3_def(struct ehea_port_res *pr, int nr_of_wqes) This one looks too big

Re: [2.6.19 PATCH 3/7] ehea: queue management

2006-08-18 Thread Thomas Klein
Arjan van de Ven wrote: + queue-queue_length = nr_of_pages * pagesize; + queue-queue_pages = vmalloc(nr_of_pages * sizeof(void *)); wow... is this really so large that it warrants a vmalloc()??? Agreed: Replaced with kmalloc() Regards Thomas - To unsubscribe from this list:

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-18 Thread Thomas Klein
Hi Alexey, first of all thanks a lot for the extensive review. Alexey Dobriyan wrote: + u64 hret = H_HARDWARE; Useless assignment here and everywhere. Initializing returncodes to errorstate is a cheap way to prevent accidentally returning (uninitalized) success returncodes which

Re: [PATCH 3/6] ehea: queue management

2006-08-12 Thread Thomas Klein
Anton Blanchard wrote: Hi, --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_ethtool.c 1969-12-31 +static void netdev_get_pauseparam(struct net_device *dev, + struct ethtool_pauseparam *pauseparam) +{ + printk(get pauseparam\n); +} There

Re: [PATCH 4/6] ehea: header files

2006-08-12 Thread Thomas Klein
Anton Blanchard wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea.h 1969-12-31 +extern void exit(int); Should be able to remove that prototype :) Anton Indeed :-) It's gone. Thomas - To unsubscribe from this list: send the line unsubscribe netdev in the body of a

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Thomas Klein
Michael Neuling wrote: +static inline u32 map_swqe_size(u8 swqe_enc_size) +{ + return 128 swqe_enc_size; +}^ + | +static inline u32|map_rwqe_size(u8 rwqe_enc_size) +{| + return 128 rwqe_enc_size;

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Thomas Klein
+ * + * (C) Copyright IBM Corp. 2006 + * + * Authors: + * Christoph Raisch [EMAIL PROTECTED] + * Jan-Bernd Themann [EMAIL PROTECTED] + * Heiko-Joerg Schick [EMAIL PROTECTED] + * Thomas Klein [EMAIL PROTECTED] + * + * + * This program is free software; you can redistribute

Re: [PATCH 5/6] ehea: makefile

2006-08-10 Thread Thomas Klein
Sam Ravnborg wrote: On Wed, Aug 09, 2006 at 10:40:20AM +0200, Jan-Bernd Themann wrote: Signed-off-by: Jan-Bernd Themann [EMAIL PROTECTED] drivers/net/ehea/Makefile |7 +++ 1 file changed, 7 insertions(+) --- linux-2.6.18-rc4-orig/drivers/net/ehea/Makefile 1969-12-31

Re: [PATCH 2/6] ehea: pHYP interface

2006-08-10 Thread Thomas Klein
Arnd Bergmann wrote: On Wednesday 09 August 2006 10:38, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_hcall.h 1969-12-31 16:00:00.0 -0800 +++ kernel/drivers/net/ehea/ehea_hcall.h2006-08-08 23:59:38.111462960 -0700 @@ -0,0 +1,52 @@ + +/** + * This