Bug#521944: linux-image-2.6.29-1-686: Excessive number of interrupts from hrtimer_start_expires

2010-02-02 Thread Renato S. Yamane

Em 02-02-2010 19:16, maximilian attems escreveu:

Squeeze will release with 2.6.32 can anyone of you still
reproduce this?

also please make sure to use latest powertop, aka
ii  powertop   1.13~pre201001 Linux tool to find out what is using power


$ uname -a
Linux mandachuva 2.6.30-2-686 #1 SMP Fri Dec 4 00:53:20 UTC 2009 i686 
GNU/Linux


Where is Linux-Kernel 2.6.32?

$ dpkg -l | grep powertop
ii  powertop 1.11-1

And yes, this bug is still present.

Powertop show me 210W power used (maybe ten times higher??) and my 
battery goes from 96% to 82% in only 17min (I use a 9 cell battery, wich 
be enough by ~4h, but using Debian Lenny it's fully eated in only ~2h).




--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521944: linux-image-2.6.29-1-686: Excessive number of interrupts from hrtimer_start_expires

2009-11-26 Thread Renato S . Yamane

​So sorry, but someone taking a looking here?
This bug make me lost an important time, because battery is drained very faster.

Regards,
Renato S. Yamane



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521944: Not found on 2.6.30.5 VANILA Kernel (Re: linux-image-2.6.29-1-686: Excessive number of interrupts from hrtimer_start_expires)

2009-11-17 Thread Renato S. Yamane
I compiled 2.6.30.5 vanila kernel by my hand and don't find this 
problem, so I think that something is wrong with Debian Kernel.


With Debian Kernel my battery is drained in ~2h, with Vanilla Kernel the 
battery is drained in ~3,25h.


Best regards
Renato S. Yamane



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521944: linux-image-2.6.29-1-686: Excessive number of interrupts from hrtimer_start_expires

2009-09-19 Thread Renato S . Yamane

I have seem this bug on my Lenovo 3000-V200 laptop too!
Battery is drained very fast!

With Lenny, my battery go to 10% after ~3,5h but with Squeeze the battery go to 
10% after 2,5h.

And powertop show me a strange value:
Uso de energia (estimado por ACPI): 191,6 W (0,2 horas)

191,6W??

$ dpkg -l | grep linux-image
ii  linux-image-2.6-686  2.6.30+20
ii  linux-image-2.6.30-1-686 2.6.30-6




-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546041: linux-image-2.6.30-1-amd64: DHCP client started by ifup -a even though no Ethernet cable has been plugged in

2009-09-11 Thread Renato S. Yamane

On 2009-09-11 01:40:29 +0100, Ben Hutchings wrote:
 These drivers have mostly been fixed in 2.6.31, and e1000e certainly
 has. We probably will not update 2.6.30 to fix this.

In the mean time, you can try e1000e driver from Intel Staff:
http://sourceforge.net/projects/e1000/files/e1000e%20stable/1.0.2.5/e1000e-1.0.2.5.tar.gz/download

--
Regards,
Renato S. Yamane
www.diamondcut.com.br



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Kernel 2.6.27.x (is a good idea to Lenny?)

2009-01-20 Thread Renato S. Yamane
OK, I know that Lenny is froozen, but Kernel 2.6.27 will be supported by
a very long time as we can see in:
http://lkml.org/lkml/2009/1/19/316

I think that is a good idea use this release in Lenny, because it will
be up-to-date by a long time (by Kernel developers).

2.6.27 make easy maintain it.
2.6.26 is not so easy.

Best regards,
Renato S. Yamane
Brazil


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#481493: [Bug #481493] Fixed by, maybe, #494546

2008-10-25 Thread Renato S. Yamane
notfound 481493 2.6.26-7
thanks

This bug (#481493) is fixed to me in last Kernel Update in Lenny.
I think that root cause is:

* Fix ACPI EC GPE storm detection. (closes: #494546)

How we can see in Fabio message (LKML), some battery issues is reported about
this:
http://lkml.org/lkml/2008/7/19/19

Best regards,
Renato




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481493: battery: After power off, something not turn-off and consume power

2008-10-22 Thread Renato S. Yamane
Can someone test with Kernel 2.6.26-8 from Debian Lenny?
It fix this problem to me.
After 24h in poweroff mode, my battery charge is not changed. Still 100%
full!

Wating more people to test:
http://bugzilla.kernel.org/show_bug.cgi?id=10797
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784

Best regards,
Renato



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Processed: gcc-x86_64-has-stack-protector.sh missing

2008-08-27 Thread Renato S. Yamane
Bastian Blank escreveu:
 On Wed, Aug 27, 2008 at 11:24:06AM +, Debian Bug Tracking System wrote:
 found 494435 linux-headers-2.6.25-2-686
 
 This is no valid version. Please fix it.

Why not?

# aptitude update

# aptitude search linux-headers-2.6.25 | grep 686
i   linux-headers-2.6.25-2-686

Best regards,
Renato S. Yamane


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Processed: gcc-x86_64-has-stack-protector.sh missing

2008-08-27 Thread Renato S. Yamane
notfound 494435 linux-headers-2.6.25-2-686
found 494435 2.6.25-7
thanks


dann frazier wrote:
 hey Renato,
  'linux-headers-2.6.25-2-686' is actually a binary package name, not a
 version.

So sorry for this mistake!

Best regards,
Renato


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#494435: linux-headers-2.6.26-1-amd64: scripts/gcc-x86_64-has-stack-protector.sh

2008-08-10 Thread Renato S. Yamane
Only to let you kwnown, the same problem is present in Lenny too (Kernell
2.6.25-2-686)

Best regards,
Renato S. Yamane




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486834: xserver crash with linux-image-2.6.25-2-686 on startup

2008-07-16 Thread Renato S. Yamane
No problem here.


$ uname -a
Linux mandachuva 2.6.25-2-686 #1 SMP Fri Jun 27 03:23:20 UTC 2008 i686
GNU/Linux

ii  xorg1:7.3+12
ii  xserver-xorg-video-intel2:2.3.2-2

00:02.0 VGA compatible controller: Intel Corporation Mobile
915GM/GMS/910GML Express Graphics Controller (rev 03)



/etc/X11/xorg.conf (sniped)

Section Device
Identifier  Intel Corporation Mobile 915GM/GMS/910GML
Express Graphics Controller
Driver  intel
BusID   PCI:0:2:0
Option  AccelMethod EXA
Option  ExaNoComposite false
Option  MigrationHeuristic greedy
EndSection


/etc/environment
INTEL_BATCH=1



Best regards,
Renato S. Yamane



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481493: [Bug #481493] Confirmed at Ubuntu too

2008-06-26 Thread Renato S. Yamane
The same problem was commented in Ubuntu users:
https://bugs.launchpad.net/ubuntu/+bug/110784

Best regards,
Renato S. Yamane



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[RT73] SIOCIFFLAGS: invalid argument

2008-06-19 Thread Renato S. Yamane
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi for all,
we have a problem with rt73 module over Kernel 2.6.24-1.

# ifconfig wlan0 up:
SIOCSIFFLAGS: Invalid Argument

Patch is available here (read *all* messages from Vern and Daniel):
http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?t=4379start=61

Best regards,
Renato S. Yamane
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIWlY/rf2L358fCLsRAjM5AJ9Z6YL62TspLcKnw99P8OdKMlUW8ACeOmX4
X292m33JMCUSRHcJTeaMgM8=
=BAKv
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481493: battery: After power off, something not turn-off and consume power

2008-05-28 Thread Renato S. Yamane
I test two times as commented in [1] and I can see that this problem 
don't hapen if, before shutdown, I close LCD Display (activing LID to 
hibernate).


[1] http://bugzilla.kernel.org/show_bug.cgi?id=10797#c1

So, to shutdown laptop with no battery change, is necessary:

1) Active LID (closing LCD Display). With this, my laptop will 
hibernate, so is necessary wake-up again.

2) Shutdown

Regards,
Renato S. Yamane



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481493: battery: After power off, something not turn-off and consume power

2008-05-25 Thread Renato S. Yamane

maximilian attems wrote:

thanks for quick feedback, please report upstream in bugzilla.kernel.org
and let us know the bug number.


Here is:
http://bugzilla.kernel.org/show_bug.cgi?id=10797

I add you in CC on Kernel Bug Tracker.

Best regards,
Renato



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481493: battery: After power off, something not turn-off and consume power

2008-05-24 Thread Renato S. Yamane

found 481493 2.6.24-1
found 481493 2.6.25-2
thanks

maximilian attems wrote:
 Renato S. Yamane wrote:
 Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)

 try out 2.6.25 from unstable just installs fin in testing.
 can you reproduce there?

I try linux-image 2.6.25-2 and found the same problem.
I check that DebianEeePC have a similar problem[1] and the responsible 
is snd_hda_intel driver. But I don't have this sound driver loaded.


[1] 
http://wiki.debian.org/DebianEeePC/HowTo/Troubleshooting#head-84d9d8a97c9ce198c59edd9cd93a05ab24fd1ff8


$lsmod
# lsmod
Module  Size  Used by
omnibook   55220  0
i915   27648  2
drm72280  3 i915
rfcomm 36336  0
l2cap  22784  5 rfcomm
bluetooth  52900  4 rfcomm,l2cap
ipv6  241956  12
ppdev   8676  0
parport_pc 25860  0
lp 11012  0
parport33868  3 ppdev,parport_pc,lp
acpi_cpufreq9228  0
cpufreq_userspace   3812  0
cpufreq_ondemand8428  1
cpufreq_stats   5216  0
freq_table  4512  3 acpi_cpufreq,cpufreq_ondemand,cpufreq_stats
cpufreq_conservative 7432  0
cpufreq_powersave   1856  0
loop   16708  0
firewire_sbp2  15956  0
joydev 11328  0
snd_intel8x0   31740  1
snd_seq_dummy   3780  0
snd_seq_oss28544  0
snd_intel8x0m  16684  1
pcmcia 36044  0
ipw2200   130760  0
snd_seq_midi8064  0
snd_rawmidi22528  1 snd_seq_midi
ieee80211  30632  1 ipw2200
ieee80211_crypt 5860  1 ieee80211
snd_ac97_codec 91300  2 snd_intel8x0,snd_intel8x0m
snd_seq_midi_event  6976  2 snd_seq_oss,snd_seq_midi
snd_seq45872  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event

sdhci  16428  0
ac97_bus1952  1 snd_ac97_codec
snd_pcm_oss37824  0
snd_mixer_oss  14880  1 snd_pcm_oss
snd_pcm68228  4 
snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss

psmouse35920  0
snd_seq_device  7564  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq

pcspkr  3136  0
rtc14272  0
iTCO_wdt   11204  0
snd_timer  21320  2 snd_seq,snd_pcm
tifm_7xx1   7456  0
serio_raw   6532  0
mmc_core   43740  1 sdhci
firmware_class  9088  2 pcmcia,ipw2200
tifm_core   9788  1 tifm_7xx1
yenta_socket   24300  1
rsrc_nonstatic 11584  1 yenta_socket
pcmcia_core36436  3 pcmcia,yenta_socket,rsrc_nonstatic
snd48772  15 
snd_intel8x0,snd_seq_oss,snd_intel8x0m,snd_rawmidi,snd_ac97_codec,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_device,snd_timer

soundcore   7488  1 snd
snd_page_alloc  9992  3 snd_intel8x0,snd_intel8x0m,snd_pcm
rng_core4900  0
container   4736  0
video  19728  0
output  3712  1 video
battery 8448  0
ac  4448  0
button  8240  0
intel_agp  25084  1
agpgart31720  3 drm,intel_agp
evdev  11328  7
ext3  120264  2
jbd43444  1 ext3
mbcache 8260  1 ext3
sg 33140  0
sr_mod 16804  0
cdrom  31872  1 sr_mod
sd_mod 26072  4
ide_pci_generic 4228  0 [permanent]
ide_core  100312  1 ide_pci_generic
ahci   27336  0
usbhid 40192  0
hid36032  1 usbhid
ff_memless  5384  1 usbhid
ata_piix   20004  3
ata_generic 8004  0
libata142032  3 ahci,ata_piix,ata_generic
scsi_mod  138508  5 firewire_sbp2,sg,sr_mod,sd_mod,libata
firewire_ohci  20836  0
firewire_core  35680  2 firewire_sbp2,firewire_ohci
crc_itu_t   2176  1 firewire_core
ehci_hcd   32620  0
uhci_hcd   22352  0
usbcore   130032  4 usbhid,ehci_hcd,uhci_hcd
sky2   42500  0
dock   10448  1 libata
thermal19100  0
processor  39660  3 acpi_cpufreq,thermal
fan 5636  0

Best regards,
Renato S. Yamane



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481493: battery: After power off, something not turn-off and consume power.

2008-05-16 Thread Renato S. Yamane

Raphael Hertzog wrote:

On Fri, 16 May 2008, Renato S. Yamane wrote:

When I poweroff my laptop Toshiba M45-S355 I can see that something is
not fully power-off because when I start laptop is possible check in
battery LED that is not full (I poweroff my laptop when battery is
100%).

After 1 day, I loss 3% of battery.

This same laptop have WindowsXP and when I poweroff it by Windows,
nothing happenned with battery. If it have 100% when I poweroff, it have
the same charge when I turn-on.


How do you verify the battery level in each case?


On Lenny, I check by Kpowersave, by /proc/acpi/battery/BAT1/state, and 
by LED of my laptop that show me different collors (blue is full 
charged, and yellow is not fully charged).


On Windows I check it in Control Pannel and with LED of my laptop.


And in general, I can't see how acpi-support has anything to do with this
problem. Are you suspending to disk when you say poweroff? How are you
doing it?


K Menu -- Close section -- Shutdown.
NOT suspending.


Have you tried on sid/lenny with an etch kernel? Because if anything is
responsible of this, it would rather be the kernel...


No, I use only Kernel available on Lenny.

Regards,
Renato



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#404107: [linux-image-2.6.18-3-686] sky2 crashes on boot or resume

2007-04-04 Thread Renato S. Yamane
Florian,
please, test this patch below As Soon As Possible.
A big hug to Stephen Hemminger!

-- 
Renato S. Yamane
Fingerprint: 68AE A381 938A F4B9 8A23  D11A E351 5030 D420 515A
PGP Server: http://pgp.mit.edu/ -- KeyID: 0xD420515A
http://www.renatoyamane.com




---
 drivers/net/sky2.c |5 +
 1 file changed, 5 insertions(+)

--- net-2.6.22.orig/drivers/net/sky2.c  2007-04-03 10:57:48.0 -0700
+++ net-2.6.22/drivers/net/sky2.c   2007-04-03 13:08:45.0 -0700
@@ -3770,6 +3770,11 @@
goto out;

pci_enable_wake(pdev, PCI_D0, 0);
+
+   /* Renable clocks */
+   if (hw-chip_id == CHIP_ID_YUKON_EX || hw-chip_id == 
CHIP_ID_YUKON_EC_U)
+   sky2_pci_write32(hw, PCI_DEV_REG3, 0);
+
sky2_reset(hw);

sky2_write32(hw, B0_IMSK, Y2_IS_BASE);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#404107: [PATCH] [linux-image-2.6.18-3-686] sky2 crashes on boot or resume

2007-03-22 Thread Renato S. Yamane
Please, test this patch below.
Thanks to Stephen Hemminger!

-- 
Renato S. Yamane
Fingerprint: 68AE A381 938A F4B9 8A23  D11A E351 5030 D420 515A
PGP Server: http://pgp.mit.edu/ -- KeyID: 0xD420515A
http://www.renatoyamane.com



---
 drivers/net/sky2.c |   11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

--- sky2-dev.orig/drivers/net/sky2.c2007-03-19 14:28:00.0 -0700
+++ sky2-dev/drivers/net/sky2.c 2007-03-19 15:24:16.0 -0700
@@ -2489,9 +2489,13 @@
 {
u8 t8;

+   hw-chip_id = sky2_read8(hw, B2_CHIP_ID);
+   /* Make sure and enable all clocks */
+   if (hw-chip_id == CHIP_ID_YUKON_EX || hw-chip_id == 
CHIP_ID_YUKON_EC_U)
+   sky2_pci_write32(hw, PCI_DEV_REG3, 0);
+
sky2_write8(hw, B0_CTST, CS_RST_CLR);

-   hw-chip_id = sky2_read8(hw, B2_CHIP_ID);
if (hw-chip_id  CHIP_ID_YUKON_XL || hw-chip_id  CHIP_ID_YUKON_FE) {
dev_err(hw-pdev-dev, unsupported chip type 0x%x\n,
hw-chip_id);
@@ -2501,11 +2505,6 @@
if (hw-chip_id == CHIP_ID_YUKON_EX)
dev_warn(hw-pdev-dev, this driver not yet tested on this 
chip type\n
 Please report success or failure to 
netdev@vger.kernel.org\n);
-
-   /* Make sure and enable all clocks */
-   if (hw-chip_id == CHIP_ID_YUKON_EX || hw-chip_id == 
CHIP_ID_YUKON_EC_U)
-   sky2_pci_write32(hw, PCI_DEV_REG3, 0);
-
hw-chip_rev = (sky2_read8(hw, B2_MAC_CFG)  CFG_CHIP_R_MSK)  4;

/* This rev is really old, and requires untested workarounds */



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#404107: [linux-image-2.6.18-3-686] sky2 crashes on boot or resume

2007-03-19 Thread Renato S. Yamane
Hi,
Between 2.6.18 and 2.6.21-rc, sky2 module received a lot of patches!
Florian, is possible compile a new Kernel (as 2.6.21-rc4 available in
www.kernel.org)?

Best regards,

-- 
Renato S. Yamane
Fingerprint: 68AE A381 938A F4B9 8A23  D11A E351 5030 D420 515A
PGP Server: http://pgp.mit.edu/ -- KeyID: 0xD420515A
http://www.renatoyamane.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400477: [critical] sky2 patch is applied?

2007-02-22 Thread Renato S. Yamane
Package: linux-2.6
Severity: critical
Tags: patch

I don't see patch about Yukon FE ram buffer initialization (sky2
module) in Debian Kernel changelog:
http://packages.debian.org/changelogs/pool/main/l/linux-2.6/current/changelog

Please, this patch[1] is very important and is present in stable
2.6.18.2 Kernel as comment in:
http://bugzilla.kernel.org/show_bug.cgi?id=6839

[1] http://bugzilla.kernel.org/attachment.cgi?id=9313action=view

Best regards,
Renato S. Yamane
-- 
Renato S. Yamane
Fingerprint: 68AE A381 938A F4B9 8A23  D11A E351 5030 D420 515A
PGP Server: http://pgp.mit.edu/ -- KeyID: 0xD420515A
http://www.renatoyamane.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#411115: sky2 module

2007-02-21 Thread Renato S. Yamane
Patchs available to 2.6.20 stable Kernel comment by Stephen is attached.

 sky2-pause-flush.patch
 sky2-tx-timeout-deadlock.patchSubject: sky2: don't flush good pause frames

Don't mark pause frames as errors. This problem caused transmitter not
to pause and would effectively take out a gigabit switch because the
it can't handle overrun. 

Signed-off-by: Stephen Hemminger [EMAIL PROTECTED]

---
 drivers/net/sky2.h |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.20.orig/drivers/net/sky2.h	2007-02-04 10:44:54.0 -0800
+++ linux-2.6.20/drivers/net/sky2.h	2007-02-14 16:33:23.0 -0800
@@ -1579,7 +1579,7 @@
 
 	GMR_FS_ANY_ERR	= GMR_FS_RX_FF_OV | GMR_FS_CRC_ERR |
 			  GMR_FS_FRAGMENT | GMR_FS_LONG_ERR |
-		  	  GMR_FS_MII_ERR | GMR_FS_GOOD_FC | GMR_FS_BAD_FC |
+		  	  GMR_FS_MII_ERR | GMR_FS_BAD_FC |
 			  GMR_FS_UN_SIZE | GMR_FS_JABBER,
 };
 Subject: sky2: transmit timeout deadlock

The code in transmit timeout incorrectly assumed that netif_tx_lock
was not set.

Signed-off-by: Stephen Hemminger [EMAIL PROTECTED]

--- linux-2.6.20.orig/drivers/net/sky2.c	2007-02-14 16:32:34.0 -0800
+++ linux-2.6.20/drivers/net/sky2.c	2007-02-14 16:33:03.0 -0800
@@ -1796,6 +1796,7 @@
 
 /* Transmit timeout is only called if we are running, carries is up
  * and tx queue is full (stopped).
+ * Called with netif_tx_lock held.
  */
 static void sky2_tx_timeout(struct net_device *dev)
 {
@@ -1821,17 +1822,14 @@
 		sky2_write8(hw, STAT_TX_TIMER_CTRL, TIM_START);
 	} else if (report != sky2-tx_cons) {
 		printk(KERN_INFO PFX status report lost?\n);
-
-		netif_tx_lock_bh(dev);
 		sky2_tx_complete(sky2, report);
-		netif_tx_unlock_bh(dev);
 	} else {
 		printk(KERN_INFO PFX hardware hung? flushing\n);
 
 		sky2_write32(hw, Q_ADDR(txq, Q_CSR), BMU_STOP);
 		sky2_write32(hw, Y2_QADDR(txq, PREF_UNIT_CTRL), PREF_UNIT_RST_SET);
 
-		sky2_tx_clean(dev);
+		sky2_tx_complete(sky2, sky2-tx_prod);
 
 		sky2_qset(hw, txq);
 		sky2_prefetch_init(hw, txq, sky2-tx_le_map, TX_RING_SIZE - 1);

Bug#411115: sky2 module

2007-02-16 Thread Renato S. Yamane
Package: Kernel
Version: 2.6.18-4

Stephen Hemminger post some patchs to sky2 module in:

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/11.html
[PATCH 0/6]
This set of patches fixes all the problems observed so far on
my machines. The biggest one was not doing transmit flow control
correctly.

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/12.html
[PATCH 1/6]
An embedded and charset-unspecified text was scrubbed...
Name: sky2-pause-flush.patch

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/14.html
[PATCH 2/6]
An embedded and charset-unspecified text was scrubbed...
Name: sky2-no-asym-down.patch

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/13.html
[PATCH 3/6]
An embedded and charset-unspecified text was scrubbed...
Name: sky2-fe-fc.patch

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/17.html
[PATCH 4/6]
An embedded and charset-unspecified text was scrubbed...
Name: sky2-timeout3.patch

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/16.html
[PATCH 5/6]
An embedded and charset-unspecified text was scrubbed...
Name: sky2-rx-error-handle.patch

https://lists.osdl.org/mailman/private/sk-drivers/2007-February/15.html
[PATCH 6/6]
An embedded and charset-unspecified text was scrubbed...
Name: sky2-v1.13.patch

Patchs is attached, please use it.

-- 
Renato S. Yamane
Fingerprint: 68AE A381 938A F4B9 8A23  D11A E351 5030 D420 515A
PGP Server: http://pgp.mit.edu/ -- KeyID: 0xD420515A
http://www.renatoyamane.com
The Yukon-FE chip doesn't do gigabit and has a differen PHY internally.
On this chip, phy status register doesn't properly reflect the result
of flow control negotiation. To workaround the problem and avoid having
to have so much chip dependent code; compute the result of flow control
by looking at the local and remote advertised bits.

Signed-off-by: Stephen Hemmminger [EMAIL PROTECTED]

--- sky2-dev.orig/drivers/net/sky2.c	2007-02-14 10:01:41.0 -0800
+++ sky2-dev/drivers/net/sky2.c	2007-02-14 13:32:00.0 -0800
@@ -1766,10 +1766,10 @@
 {
 	struct sky2_hw *hw = sky2-hw;
 	unsigned port = sky2-port;
-	u16 lpa;
+	u16 advert, lpa;
 
+	advert = gm_phy_read(hw, port, PHY_MARV_AUNE_ADV);
 	lpa = gm_phy_read(hw, port, PHY_MARV_AUNE_LP);
-
 	if (lpa  PHY_M_AN_RF) {
 		printk(KERN_ERR PFX %s: remote fault, sky2-netdev-name);
 		return -1;
@@ -1784,20 +1784,40 @@
 	sky2-speed = sky2_phy_speed(hw, aux);
 	sky2-duplex = (aux  PHY_M_PS_FULL_DUP) ? DUPLEX_FULL : DUPLEX_HALF;
 
-	/* Pause bits are offset (9..8) */
-	if (hw-chip_id == CHIP_ID_YUKON_XL
-	|| hw-chip_id == CHIP_ID_YUKON_EC_U
-	|| hw-chip_id == CHIP_ID_YUKON_EX)
-		aux = 6;
-
-	sky2-flow_status = sky2_flow(aux  PHY_M_PS_RX_P_EN,
-  aux  PHY_M_PS_TX_P_EN);
+	/* Since the pause result bits seem to in different positions on
+	 * different chips. look at registers.
+	 */
+	if (!sky2_is_copper(hw)) {
+		/* Shift for bits in fiber PHY */
+		advert = ~(ADVERTISE_PAUSE_CAP|ADVERTISE_PAUSE_ASYM);
+		lpa = ~(LPA_PAUSE_CAP|LPA_PAUSE_ASYM);
+
+		if (advert  ADVERTISE_1000XPAUSE)
+			advert |= ADVERTISE_PAUSE_CAP;
+		if (advert  ADVERTISE_1000XPSE_ASYM)
+			advert |= ADVERTISE_PAUSE_ASYM;
+		if (lpa  LPA_1000XPAUSE)
+			lpa |= LPA_PAUSE_CAP;
+		if (lpa  LPA_1000XPAUSE_ASYM)
+			lpa |= LPA_PAUSE_ASYM;
+	}
+
+	sky2-flow_status = FC_NONE;
+	if (advert  ADVERTISE_PAUSE_CAP) {
+		if (lpa  LPA_PAUSE_CAP)
+			sky2-flow_status = FC_BOTH;
+		else if (advert  ADVERTISE_PAUSE_ASYM)
+			sky2-flow_status = FC_RX;
+	} else if (advert  ADVERTISE_PAUSE_ASYM) {
+		if ((lpa  LPA_PAUSE_CAP)  (lpa  LPA_PAUSE_ASYM))
+			sky2-flow_status = FC_TX;
+	}
 
 	if (sky2-duplex == DUPLEX_HALF  sky2-speed  SPEED_1000
 	 !(hw-chip_id == CHIP_ID_YUKON_EC_U || hw-chip_id == CHIP_ID_YUKON_EX))
 		sky2-flow_status = FC_NONE;
 
-	if (aux  PHY_M_PS_RX_P_EN)
+	if (sky2-flow_status  FC_TX)
 		sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_ON);
 	else
 		sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF);

--
Stephen Hemminger [EMAIL PROTECTED]

___
Sk-drivers mailing list
[EMAIL PROTECTED]
https://lists.osdl.org/mailman/listinfo/sk-drivers
Resetting the pause bits on shutdown is not necessary.
The code was inherited from the vendor driver, and it is currently #ifdef'd
out there as well.

Signed-off-by: Stephen Hemminger [EMAIL PROTECTED]

--- sky2-dev.orig/drivers/net/sky2.c	2007-02-13 15:08:31.0 -0800
+++ sky2-dev/drivers/net/sky2.c	2007-02-13 15:13:03.0 -0800
@@ -1742,13 +1742,6 @@
 	reg = ~(GM_GPCR_RX_ENA | GM_GPCR_TX_ENA);
 	gma_write16(hw, port, GM_GP_CTRL, reg);
 
-	if (sky2-flow_status == FC_RX) {
-		/* restore Asymmetric Pause bit */
-		gm_phy_write(hw, port, PHY_MARV_AUNE_ADV,
-			 gm_phy_read(hw, port, PHY_MARV_AUNE_ADV)
-			 | PHY_M_AN_ASP);
-	}
-
 	netif_carrier_off(sky2-netdev);
 	netif_stop_queue(sky2-netdev);
 

--
Stephen Hemminger [EMAIL PROTECTED

Bug#400477: sky2 module (patch available)

2006-11-26 Thread Renato S. Yamane
Package: sky2.c
Version: 1.5
Severity: critical
Tags: patch

Sky2 module available in Kernel =2.6.18.1 have a critical bug on
88E803X chips, made impossible send files to another computers:
http://bugzilla.kernel.org/show_bug.cgi?id=6839

Patch is available in:
http://bugzilla.kernel.org/attachment.cgi?id=9313action=view

This problem is solved on Kernel =2.6.18.2

Please, don't release Etch without this patch.

-- 
Renato S. Yamane
Fingerprint: 68AE A381 938A F4B9 8A23  D11A E351 5030 D420 515A
PGP Server: http://pgp.mit.edu/ -- KeyID: 0xD420515A
http://www.renatoyamane.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]