Re: Pending sparc patches
On Thu, Mar 08, 2007 at 02:23:42PM +0100, Emanuele Rocca wrote: > Problems on my Sunblade 2000, the workaround to boot correctly is > passing video=atyfb:off to the kernel. So, applying this patch causes a regression on Sunblade 2000? If that's the case, please mention it (along with other relevant information) in the upstream thread on sparclinux list. Thanks, -- Jurij Smakov [EMAIL PROTECTED] Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Pending sparc patches
On Thu, Mar 08, 2007 at 09:32:01AM +0100, Emanuele Rocca wrote: > Actually upstream fixes other unaligned accesses in that very file. > > Please apply the complete backport of upstream changes: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412749;msg=5;filename=eth1394-unaligned.patch;att=1 Thanks, I'll have a look. -- Jurij Smakov [EMAIL PROTECTED] Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Pending sparc patches
Hello Jurij, * Jurij Smakov <[EMAIL PROTECTED]>, [2007-03-08 8:29 +0200]: > I'd appreciate if people with affected hardware would build the > kernels with these patches included and report any problems or > regressions. Let me know if some other essential bugfix is missing. I've tested a kernel image built with a standard Debian config, some comments: > Author : Emanuele Rocca <[EMAIL PROTECTED]> > Date: Tue, 27 Feb 2007 00:23:28 +0100 > Message-ID : <[EMAIL PROTECTED]> > Status : included upstream > Description : fixes unaligned access in ether1394_reset_priv() Works fine. > Author : Doug Nazar <[EMAIL PROTECTED]> > Date: Tue, 27 Feb 2007 13:52:15 -0500 > Message-ID : <[EMAIL PROTECTED]> > Status : pushed to netdev maintainer for inclusion > Description : fixes frequent unaligned accesses in ip_rcv() and > ip_fast_csum() My system is not affected by this one (reproducible only on systems with tulip network cards IIRC). > Author : Joerg Friedrich > Date: Thu, 15 Feb 2007 22:08:55 +0100 > Message-ID : <[EMAIL PROTECTED]> > Status : acked by David Miller, pushed upstream > Description : fixes kenvctrld so it does not consume 100% CPU Works properly. > Author : David Miller > Date: Mon, 05 Mar 2007 01:11:39 -0800 (PST) > Message-ID : <[EMAIL PROTECTED]> > Status : pushed upstream > Description : fixes atyfb-related hang on Sunblade 100/150/1000 Problems on my Sunblade 2000, the workaround to boot correctly is passing video=atyfb:off to the kernel. Here's a diff between two dmesgs (without and with atyfb:off): --- /var/tmp/dmesg-bad-atyfb2007-03-08 14:01:01.0 +0100 +++ /var/tmp/dmesg-atyfb-off2007-03-08 14:10:16.0 +0100 @@ -7,7 +7,7 @@ On node 0 totalpages: 129707 DMA zone: 129707 pages, LIFO batch:15 Built 1 zonelists. Total pages: 129707 -Kernel command line: root=/dev/sda2 ro +Kernel command line: root=/dev/sda2 ro video=atyfb:off PID hash table entries: 4096 (order: 12, 32768 bytes) Console: colour dummy device 80x25 Dentry cache hash table entries: 131072 (order: 7, 1048576 bytes) @@ -45,7 +45,7 @@ TCP reno registered /[EMAIL PROTECTED],40: US3 memory controller at 0440 [ACTIVE] audit: initializing netlink socket (disabled) -audit(1173356347.228:1): initialized +audit(1173359042.228:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 8192 bytes) Initializing Cryptographic API @@ -53,10 +53,7 @@ io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) -atyfb: 3D RAGE XL (Mach64 GR, PCI-33) [0x4752 rev 0x27] -atyfb: 8M SGRAM (1:1), 29.498928 MHz XTAL, 230 MHz PLL, 83 Mhz MCLK, 63 MHz XCLK -Console: switching to colour frame buffer device 80x30 -atyfb: fb0: ATY Mach64 frame buffer device on PCI +Console: switching to colour frame buffer device 144x56 /[EMAIL PROTECTED],48/SUNW,[EMAIL PROTECTED],0: AFB at 07fa, type 35, DAC revision 10 Real Time Clock Driver v1.12ac [drm] Initialized drm 1.0.1 20051102 @@ -84,6 +81,7 @@ eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:ba:17:f3:30 eth0: Found Generic MII PHY ieee1394: Initialized config rom entry `ip1394' +ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[14] MMIO=[7fe0012-7fe001207ff] Max Packet=[2048] IR/IT contexts=[4/4] ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci_hcd 0001:00:05.3: OHCI Host Controller ohci_hcd 0001:00:05.3: new USB bus registered, assigned bus number 1 @@ -103,6 +101,7 @@ usb 1-2: configuration #1 chosen from 1 choice input: HID 0430:0005 as /class/input/input1 input: USB HID v1.00 Keyboard [HID 0430:0005] on usb-0001:00:05.3-2 +ieee1394: Host added: ID:BUS[0-00:1023] GUID[0003bafffe17f330] usb 1-3: new full speed USB device using ohci_hcd and address 4 usb 1-3: configuration #1 chosen from 1 choice eth0: Link is up at 100 Mbps, full-duplex. @@ -146,10 +145,8 @@ SCSI device sda: drive cache: write through w/ FUA sda: sda1 sda2 sda3 sd 0:0:0:0: Attached scsi disk sda -ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[14] MMIO=[7fe0012-7fe001207ff] Max Packet=[2048] IR/IT contexts=[4/4] kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. -ieee1394: Host added: ID:BUS[0-00:1023] GUID[0003bafffe17f330] Vendor: HL-DT-ST Model: DVDRAM GSA-E10N Rev: JE05 Type: CD-ROM ANSI SCSI revision: 00 usb-storage: device scan complete @@ -158,10 +155,10 @@ sr 1:0:6:0: Attached scsi CD-ROM sr0 sr1: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray sr 3:0:0:0: Attached scsi CD-ROM sr1 +eth1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0) sr 1:0:6:0: Attached scsi generic sg0 type 5 sd 0:0:0:0: Attached scsi generic sg1
Re: Pending sparc patches
Hello Jurij, * Jurij Smakov <[EMAIL PROTECTED]>, [2007-03-08 8:29 +0200]: > Author : Emanuele Rocca <[EMAIL PROTECTED]> > Date : Tue, 27 Feb 2007 00:23:28 +0100 > Message-ID : <[EMAIL PROTECTED]> > Status : included upstream > Description : fixes unaligned access in ether1394_reset_priv() > > diff -aur a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c > --- a/drivers/ieee1394/eth1394.c 2006-09-20 06:42:06.0 +0300 > +++ b/drivers/ieee1394/eth1394.c 2007-03-08 08:01:43.0 +0200 > @@ -65,6 +65,7 @@ > #include > #include > #include > +#include > #include > > #include "csr1212.h" > @@ -491,7 +492,7 @@ > int i; > struct eth1394_priv *priv = netdev_priv(dev); > struct hpsb_host *host = priv->host; > -u64 guid = *((u64*)&(host->csr.rom->bus_info_data[3])); > +u64 guid = get_unaligned(&(host->csr.rom->bus_info_data[3])); > u16 maxpayload = 1 << (host->csr.max_rec + 1); > int max_speed = IEEE1394_SPEED_MAX; Actually upstream fixes other unaligned accesses in that very file. Please apply the complete backport of upstream changes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412749;msg=5;filename=eth1394-unaligned.patch;att=1 Thanks! ciao, ema -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Pending sparc patches
Jurij Smakov napsal(a): Hi, Below is a list of patches I'm planning to commit to svn, and the patches themselves are attached. It is unlikely that they will make it into etch's initial release, most probably they will be included into the first point release. I'd appreciate if people with affected hardware would build the kernels with these patches included and report any problems or regressions. Let me know if some other essential bugfix is missing. Hi, please add this patch if possible http://marc.theaimsgroup.com/?l=linux-sparc&m=117252788931806&w=3 without this e450 on kernel > 2.6.18 boot aprox. 6 minutes or doesn't detect SCSI disks. Regards Dan Author : Emanuele Rocca <[EMAIL PROTECTED]> Date: Tue, 27 Feb 2007 00:23:28 +0100 Message-ID : <[EMAIL PROTECTED]> Status : included upstream Description : fixes unaligned access in ether1394_reset_priv() Author : Doug Nazar <[EMAIL PROTECTED]> Date: Tue, 27 Feb 2007 13:52:15 -0500 Message-ID : <[EMAIL PROTECTED]> Status : pushed to netdev maintainer for inclusion Description : fixes frequent unaligned accesses in ip_rcv() and ip_fast_csum() Author : Joerg Friedrich Date: Thu, 15 Feb 2007 22:08:55 +0100 Message-ID : <[EMAIL PROTECTED]> Status : acked by David Miller, pushed upstream Description : fixes kenvctrld so it does not consume 100% CPU Author : David Miller Date: Mon, 05 Mar 2007 01:11:39 -0800 (PST) Message-ID : <[EMAIL PROTECTED]> Status : pushed upstream Description : fixes atyfb-related hang on Sunblade 100/150/1000 Best regards, Author : Emanuele Rocca <[EMAIL PROTECTED]> Date: Tue, 27 Feb 2007 00:23:28 +0100 Message-ID : <[EMAIL PROTECTED]> Status : included upstream Description : fixes unaligned access in ether1394_reset_priv() diff -aur a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c --- a/drivers/ieee1394/eth1394.c2006-09-20 06:42:06.0 +0300 +++ b/drivers/ieee1394/eth1394.c2007-03-08 08:01:43.0 +0200 @@ -65,6 +65,7 @@ #include #include #include +#include #include #include "csr1212.h" @@ -491,7 +492,7 @@ int i; struct eth1394_priv *priv = netdev_priv(dev); struct hpsb_host *host = priv->host; - u64 guid = *((u64*)&(host->csr.rom->bus_info_data[3])); + u64 guid = get_unaligned(&(host->csr.rom->bus_info_data[3])); u16 maxpayload = 1 << (host->csr.max_rec + 1); int max_speed = IEEE1394_SPEED_MAX; Author : Doug Nazar <[EMAIL PROTECTED]> Date: Tue, 27 Feb 2007 13:52:15 -0500 Message-ID : <[EMAIL PROTECTED]> Status : pushed to netdev maintainer for inclusion Description : fixes frequent unaligned accesses in ip_rcv() and ip_fast_csum() diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c index 5a35354..e3774a5 100644 --- a/drivers/net/tulip/tulip_core.c +++ b/drivers/net/tulip/tulip_core.c @@ -67,7 +67,7 @@ const char * const medianame[32] = { /* Set the copy breakpoint for the copy-only-tiny-buffer Rx structure. */ #if defined(__alpha__) || defined(__arm__) || defined(__hppa__) \ - || defined(__sparc_) || defined(__ia64__) \ + || defined(__sparc__) || defined(__ia64__) \ || defined(__sh__) || defined(__mips__) static int rx_copybreak = 1518; #else Author : Joerg Friedrich Date: Thu, 15 Feb 2007 22:08:55 +0100 Message-ID : <[EMAIL PROTECTED]> Status : acked by David Miller, pushed upstream Description : fixes kenvctrld so it does not consume 100% CPU diff -aur a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c --- a/drivers/sbus/char/bbc_i2c.c 2006-09-20 06:42:06.0 +0300 +++ b/drivers/sbus/char/bbc_i2c.c 2007-03-08 08:14:46.0 +0200 @@ -187,19 +187,18 @@ bp->waiting = 1; add_wait_queue(&bp->wq, &wait); while (limit-- > 0) { - u8 val; + long val; - set_current_state(TASK_INTERRUPTIBLE); - *status = val = readb(bp->i2c_control_regs + 0); - if ((val & I2C_PCF_PIN) == 0) { + val = wait_event_interruptible_timeout(bp->wq, + (((*status = readb(bp->i2c_control_regs + 0)) & I2C_PCF_PIN) == 0), + msecs_to_jiffies(250)); + if ((val != -ERESTARTSYS) && (val > 0)) { ret = 0; break; } - msleep_interruptible(250); } remove_wait_queue(&bp->wq, &wai