]> bbs.cooldavid.org Git - jme.git/log
12 years agojme: Don't show UDP Checksum error if HW misjudged
Guo-Fu Tseng [Sat, 12 Feb 2011 17:50:54 +0000 (01:50 +0800)]
jme: Don't show UDP Checksum error if HW misjudged

Some JMicron Chip treat 0 as error checksum for UDP packets.
Which should be "No checksum needed".

Reported-by: Adam Swift <Adam.Swift@omnitude.net>
Confirmed-by: "Aries Lee" <arieslee@jmicron.com>
12 years agojme: Refill receive unicase MAC addr after resume
Guo-Fu Tseng [Sat, 12 Feb 2011 15:34:13 +0000 (23:34 +0800)]
jme: Refill receive unicase MAC addr after resume

The value of the register which holds receive Unicast MAC Address
sometimes get messed-up after resume.
This patch refill it before enabling the hardware filter.

12 years agojme: Safer MAC processor reset sequence
Guo-Fu Tseng [Thu, 16 Dec 2010 13:49:19 +0000 (21:49 +0800)]
jme: Safer MAC processor reset sequence

Adding control to clk_rx, and makes the control of clk_{rx|tx|tcp}
with safer sequence.

12 years agojme: Fix hardware action of full-duplex
Guo-Fu Tseng [Thu, 16 Dec 2010 13:23:51 +0000 (21:23 +0800)]
jme: Fix hardware action of full-duplex

Clear Transmit Timer/Retry setting while full-duplex.

12 years agojme: Rename phyfifo function for easier understand
Guo-Fu Tseng [Thu, 16 Dec 2010 13:16:42 +0000 (21:16 +0800)]
jme: Rename phyfifo function for easier understand

12 years agojme: Fix bit typo of JMC250A2 workaround
Guo-Fu Tseng [Thu, 16 Dec 2010 13:09:33 +0000 (21:09 +0800)]
jme: Fix bit typo of JMC250A2 workaround

12 years agojme: PHY Power control for new chip
Guo-Fu Tseng [Tue, 14 Dec 2010 18:00:01 +0000 (02:00 +0800)]
jme: PHY Power control for new chip

After main chip rev 5, the hardware support more power saving
control registers.
Some Non-Linux drivers might turn off the phy power with new
interfaces, this patch makes it possible for Linux to turn it
on again.

12 years agojme: Extract main and sub chip revision
Guo-Fu Tseng [Tue, 14 Dec 2010 16:49:40 +0000 (00:49 +0800)]
jme: Extract main and sub chip revision

Get the main and sub chip revision for later workaround use.

12 years agodrivers/net/*.c: Use static const
Joe Perches [Tue, 21 Dec 2010 10:16:08 +0000 (02:16 -0800)]
drivers/net/*.c: Use static const

Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.

Signed-off-by: Joe Perches <joe@perches.com>
12 years agonet: Fix too optimistic NETIF_F_HW_CSUM features
Michał Mirosław [Tue, 30 Nov 2010 06:38:00 +0000 (06:38 +0000)]
net: Fix too optimistic NETIF_F_HW_CSUM features

some drivers miss the difference. Fix this and also fix UFO dependency
on checksumming offload as it makes the same mistake in assumptions.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agojme: fix panic on load
Eric Dumazet [Sun, 31 Oct 2010 05:46:18 +0000 (05:46 +0000)]
jme: fix panic on load

Its now illegal to call netif_stop_queue() before register_netdev()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agojme: Support WoL after shutdown 1.0.7
Guo-Fu Tseng [Fri, 22 Oct 2010 01:01:27 +0000 (09:01 +0800)]
jme: Support WoL after shutdown

Adding shutdown function that setup wake if wol is enabled.
Add jme_phy_on in jme_set_100m_half in case it is shutting down
or suspending when interface is down(phy_off by default).

Reported-and-helped-by: Сtac <Taoga@yandex.ru>
12 years agojme: Update CHANGELOG
Guo-Fu Tseng [Mon, 18 Oct 2010 23:09:14 +0000 (07:09 +0800)]
jme: Update CHANGELOG

12 years agojme: Advance version number
Guo-Fu Tseng [Mon, 18 Oct 2010 22:52:41 +0000 (06:52 +0800)]
jme: Advance version number

Advance version number and update copyright info

12 years agojme: Adding mii-tool support
Guo-Fu Tseng [Mon, 18 Oct 2010 21:39:39 +0000 (05:39 +0800)]
jme: Adding mii-tool support

Adding mii-tool support for some distribution only have mii-tool
installed by default.

12 years agojme: Prevent possible read re-order error
Guo-Fu Tseng [Mon, 18 Oct 2010 11:56:20 +0000 (19:56 +0800)]
jme: Prevent possible read re-order error

Adding read memory barrier in between flag reading and data reading of
receive descriptors. This prevents the data being read before hardware
complete writing informations.

Reported-by: Stefan Hajnoczi <stefanha@gmail.com>
12 years agojme: Add comment in jme_set_settings
Guo-Fu Tseng [Mon, 18 Oct 2010 11:52:27 +0000 (19:52 +0800)]
jme: Add comment in jme_set_settings

Explains what `fdc` variable is for.

12 years agojme: Fix PHY power-off error
Guo-Fu Tseng [Mon, 18 Oct 2010 05:58:49 +0000 (13:58 +0800)]
jme: Fix PHY power-off error

Adding phy_on in opposition to phy_off.

12 years agoAdd .gitignore
Guo-Fu Tseng [Mon, 18 Oct 2010 20:04:30 +0000 (04:04 +0800)]
Add .gitignore

12 years agodrivers/net/jme: Use pr_<level>
Joe Perches [Sat, 4 Sep 2010 22:21:05 +0000 (22:21 +0000)]
drivers/net/jme: Use pr_<level>

Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Convert jeprintk to pr_err
Remove jeprintk macro define
Remove periods from end of logging messages
Coalesce format strings

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agodrivers/net: avoid some skb->ip_summed initializations
Eric Dumazet [Thu, 2 Sep 2010 20:07:41 +0000 (13:07 -0700)]
drivers/net: avoid some skb->ip_summed initializations

fresh skbs have ip_summed set to CHECKSUM_NONE (0)

We can avoid setting again skb->ip_summed to CHECKSUM_NONE in drivers.

Introduce skb_checksum_none_assert() helper so that we keep this
assertion documented in driver sources.

Change most occurrences of :

skb->ip_summed = CHECKSUM_NONE;

by :


Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agoAdding eeprom info bash script
Guo-Fu Tseng [Tue, 17 Aug 2010 06:06:34 +0000 (14:06 +0800)]
Adding eeprom info bash script

12 years agodrivers/net: remove useless semicolons
Joe Perches [Tue, 18 May 2010 05:47:34 +0000 (22:47 -0700)]
drivers/net: remove useless semicolons

switch and while statements don't need semicolons at end of statement

[ Fixup minor conflicts with recent wimax merge... -DaveM ]

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agodrivers/net: Remove unnecessary returns from void function()s
Joe Perches [Fri, 14 May 2010 07:19:28 +0000 (00:19 -0700)]
drivers/net: Remove unnecessary returns from void function()s

This patch removes from drivers/net/ all the unnecessary
return; statements that precede the last closing brace of
void functions.

It does not remove the returns that are immediately
preceded by a label as gcc doesn't like that.

It also does not remove null void functions with return.

Done via:
$ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
  xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'

with some cleanups by hand.

Compile tested x86 allmodconfig only.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agonet: convert multicast list to list_head
Jiri Pirko [Thu, 1 Apr 2010 21:22:57 +0000 (21:22 +0000)]
net: convert multicast list to list_head

Converts the list and the core manipulating with it to be the same as uc_list.

+uses two functions for adding/removing mc address (normal and "global"
 variant) instead of a function parameter.
+removes dev_mcast.c completely.
+exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
 manipulation with lists on a sandbox (used in bonding and 80211 drivers)

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 years agoinclude cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
Tejun Heo [Wed, 24 Mar 2010 08:04:11 +0000 (17:04 +0900)]
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h

percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -> slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.


The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
12 years ago[jme] Add checklog jme-1.0.6
Guo-Fu Tseng [Tue, 3 Aug 2010 09:33:28 +0000 (17:33 +0800)]
[jme] Add checklog

12 years ago[jme] Protect vlgrp structure by pause RX actions.
Guo-Fu Tseng [Tue, 3 Aug 2010 09:28:28 +0000 (17:28 +0800)]
[jme] Protect vlgrp structure by pause RX actions.

12 years agoImport jme 1.0.6 source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:21:01 +0000 (17:21 +0800)]
Import jme 1.0.6 source

12 years agoImport jme 1.0.5 source jme-1.0.5
Guo-Fu Tseng [Tue, 3 Aug 2010 09:19:56 +0000 (17:19 +0800)]
Import jme 1.0.5 source

12 years agoImport jme 1.0.4 source jme-1.0.4
Guo-Fu Tseng [Tue, 3 Aug 2010 09:18:48 +0000 (17:18 +0800)]
Import jme 1.0.4 source

12 years agoImport jme 1.0.3 source jme-1.0.3
Guo-Fu Tseng [Tue, 3 Aug 2010 09:17:50 +0000 (17:17 +0800)]
Import jme 1.0.3 source

12 years agoImport jme 1.0.2 source jme-1.0.2
Guo-Fu Tseng [Tue, 3 Aug 2010 09:12:28 +0000 (17:12 +0800)]
Import jme 1.0.2 source

12 years agoImport jme 1.0.1 source jme-1.0.1
Guo-Fu Tseng [Tue, 3 Aug 2010 09:11:23 +0000 (17:11 +0800)]
Import jme 1.0.1 source

12 years agoImport jme 1.0 source jme-1.0
Guo-Fu Tseng [Tue, 3 Aug 2010 09:07:28 +0000 (17:07 +0800)]
Import jme 1.0 source

12 years agoImport jme 0.9e source jme-0.9e
Guo-Fu Tseng [Tue, 3 Aug 2010 08:59:25 +0000 (16:59 +0800)]
Import jme 0.9e source

12 years agoImport jme 0.9d source jme-0.9d
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:59 +0000 (16:55 +0800)]
Import jme 0.9d source

12 years agoImport jme 0.9c source jme-0.9c
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:51 +0000 (16:55 +0800)]
Import jme 0.9c source

12 years agoImport jme 0.9b source jme-0.9b
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:44 +0000 (16:55 +0800)]
Import jme 0.9b source

12 years agoImport jme 0.9a source jme-0.9a
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:36 +0000 (16:55 +0800)]
Import jme 0.9a source

12 years agoImport jme 0.9 source jme-0.9
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:18 +0000 (16:55 +0800)]
Import jme 0.9 source

12 years agoImport jme 0.8 source jme-0.8
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:10 +0000 (16:55 +0800)]
Import jme 0.8 source

12 years agoImport jme 0.7 source jme-0.7
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:57 +0000 (16:54 +0800)]
Import jme 0.7 source

12 years agoImport jme 0.6 source jme-0.6
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:48 +0000 (16:54 +0800)]
Import jme 0.6 source

12 years agoImport jme 0.5 source jme-0.5
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:40 +0000 (16:54 +0800)]
Import jme 0.5 source

12 years agoImport jme 0.4 source jme-0.4
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:32 +0000 (16:54 +0800)]
Import jme 0.4 source

12 years agoImport jme 0.3 source jme-0.3
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:20 +0000 (16:54 +0800)]
Import jme 0.3 source

12 years agoImport jme 0.2 source jme-0.2
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:07 +0000 (16:54 +0800)]
Import jme 0.2 source

12 years agoImport jme 0.1 source jme-0.1
Guo-Fu Tseng [Tue, 3 Aug 2010 08:52:12 +0000 (16:52 +0800)]
Import jme 0.1 source