1. 17 May, 2004 5 commits
    • David Brownell's avatar
      [PATCH] USB: fix MSEC_TO_JIFFIES in usb code · fd7b635d
      David Brownell authored
      Here are some MSEC_TO_JIFFIES() fixes missed by whoever did it,
      plus a minor fix to grab root_hub->serialize() during OHCI
      suspend.  (I forgot to cut/paste those lines from resume.)
      fd7b635d
    • David Brownell's avatar
      [PATCH] USB: fix CONFIG_PM build issues · 676ab9a6
      David Brownell authored
      676ab9a6
    • Arjan van de Ven's avatar
      [PATCH] USB: fix obsolete header usage in usb storage · 469f0ab2
      Arjan van de Ven authored
      drivers/scsi/hosts.h is obsolete, <scsi/scsi_host.h> is the prefered header
      nowadays. (hosts.h is just a 1 line wrapper to include it for now anyway)
      469f0ab2
    • Zwane Mwaikambo's avatar
      [PATCH] USB: fix usb-serial serial_open oops · 14283028
      Zwane Mwaikambo authored
      No usb serial devices, just compiled in and the system has a USB controller.
      
      Unable to handle kernel NULL pointer dereference at virtual address 0000000c
       printing eip:
      c046a188
      *pde = 00000000
      Oops: 0000 [#1]
      PREEMPT SMP DEBUG_PAGEALLOC
      Modules linked in:
      CPU:    0
      EIP:    0060:[<c046a188>]    Not tainted VLI
      EFLAGS: 00010246   (2.6.6-mm3)
      EIP is at serial_open+0x38/0x170
      eax: 00000000   ebx: dc883000   ecx: c0613db8   edx: 00000000
      esi: 00000001   edi: 00000000   ebp: dc84cef0   esp: dc84cedc
      ds: 007b   es: 007b   ss: 0068
      Process serial (pid: 1073, threadinfo=dc84c000 task=ddffca50)
      Stack: 00000000 de8f4f5c ffffffed 00000100 de8f4f5c dc84cf14 c035a874 090115a0
             0bc00000 dc883000 00000000 de8f4f5c 00000001 df8a2dfc dc84cf40 c0171270
             dc84c000 00000001 00000000 de8f4f5c dbc75e94 00000000 de8f4f5c dbc75e94
      Call Trace:
       [<c01076c5>] show_stack+0x75/0x90
       [<c010781f>] show_registers+0x11f/0x180
       [<c01079c6>] die+0xb6/0x170
       [<c011af20>] do_page_fault+0x1e0/0x525
       [<c010732d>] error_code+0x2d/0x40
       [<c035a874>] tty_open+0x274/0x3b0
       [<c0171270>] chrdev_open+0x160/0x340
       [<c0166426>] dentry_open+0x156/0x230
       [<c01662cd>] filp_open+0x4d/0x50
       [<c0166858>] sys_open+0x38/0x70
       [<c0106199>] sysenter_past_esp+0x52/0x79
      
      Code: de 63 c0 89 55 f0 c7 45 ec 00 00 00 00 85 f6 0f 85 31 01 00 00 c7 83
      8c 09 00 00 00 00 00 00 8b 43 08 e8 3c fe ff ff 31 d2 89 c7 <8a> 50 0c 8b
      43 08 29 d0 8b 74 87 18 89 b3 8c 09 00 00 89 5e 04
      
      (gdb) list *serial_open+0x38
      0xc046a188 is in serial_open (drivers/usb/serial/usb-serial.c:465).
      460
      461             /* get the serial object associated with this tty pointer */
      462             serial = usb_serial_get_by_index(tty->index);
      463
      464             /* set up our port structure making the tty driver remember our port object, and us it */
      465             portNumber = tty->index - serial->minor;
      466             port = serial->port[portNumber];
      467             tty->driver_data = port;
      468
      469             port->tty = tty;
      14283028
    • Greg Kroah-Hartman's avatar
      USB: fix build error in drivers/usb/serial/console.c · 393fce22
      Greg Kroah-Hartman authored
      Thanks to Adrian Bunk <bunk@fs.tum.de> for pointing this out.
      393fce22
  2. 16 May, 2004 12 commits
  3. 15 May, 2004 23 commits
    • Jeff Garzik's avatar
      Merge redhat.com:/spare/repo/b44-2.6.5 · 170747d7
      Jeff Garzik authored
      into redhat.com:/spare/repo/net-drivers-2.6
      170747d7
    • Pekka Pietikäinen's avatar
      [netdrvr b44] better reset behavior · 694919c6
      Pekka Pietikäinen authored
      This patch makes the b44-after-bcm4400 scenario work for
      me. What was happening is that the broadcom driver sets a "power off MAC"
      bit, and we didn't remove that when initializing the chip.
      Also added some (a bit ugly, I know  ) logic to clear up the address
      filter stuff, which is what recent broadcom drivers do...
      694919c6
    • Jeff Garzik's avatar
      [libata] handle non-data ATAPI commands via interrupt · 80e00375
      Jeff Garzik authored
      It's easier to do it this way, than polling, at the moment.
      
      Also, fix a test in ata_scsi_translate that was incorrectly
      erroring-out non-data commands.
      80e00375
    • Jeff Garzik's avatar
      [libata] minor stuff · 96b2b4d7
      Jeff Garzik authored
      * now that ATAPI is close to working, making ATAPI DMA interrupts
        in ata_host_intr
      * remove unnecessary space character in printk() output (oh, the horror)
      96b2b4d7
    • Richard Henderson's avatar
      [PATCH] alpha: fix GP-load symbol linkage · 054852c4
      Richard Henderson authored
      From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      
      This skips the GP-loading function prologue (two instructions: 8 bytes)
      on BRSGP linkage correctly, fixing an oops on alpha while loading the
      aic7xxx driver.
      054852c4
    • Linus Torvalds's avatar
      We need to use "memset_io()" when accessing PCI · ed40244e
      Linus Torvalds authored
      mapped memory.
      
      A regular "memset()" may be using cache control
      instructions etc, which is not appropriate for
      memory-mapped IO.
      
      This also fixes a warning.
      ed40244e
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk · 18857d8e
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      18857d8e
    • Robin Farine's avatar
      [ARM PATCH] 1879/1: fix a few xscale "drain write & fill buffer" instructions · cd594a3b
      Robin Farine authored
      Patch from Robin Farine
      
      Fix the xscale cache handling routines that were invalidating a D 
      cache line instead of draining the write & fill buffer as intended.
      cd594a3b
    • Catalin Marinas's avatar
      [ARM PATCH] 1883/1: Bit 4 in pmd should be 0 for the ARMv6 architecture · 6ef8f0dc
      Catalin Marinas authored
      Patch from Catalin Marinas
      
      Unlike the v5 architecture, the ARM1136 requires that BIT4 is 0 in
      the first level page descriptor (ARM1136 TRM, page 6-39). It works
      at the moment but it might break future v6 cores.
      6ef8f0dc
    • Catalin Marinas's avatar
      [ARM PATCH] 1882/1: Fixes in the v6_dma_(invalidate|flush)_range functions · dc1b0aa3
      Catalin Marinas authored
      Patch from Catalin Marinas
      
      The v6_dma_invalidate_range - the "mcr" instruction for draining
      
      the write buffer requires r0 == 0. A "cmp" instruction for
      
      testing the end address is missing in the v6_dma_flush_range
      
      function.
      dc1b0aa3
    • Catalin Marinas's avatar
      [ARM PATCH] 1881/1: Illegal strex instruction generated by gcc · 2b01a2d3
      Catalin Marinas authored
      Patch from Catalin Marinas
      
      The _raw_write_(try)lock functions in include/asm-arm/spinlock.h
      
      should use the early clobber modifier (&) for the "tmp" register.
      
      A newer compiler (gcc-3.4.0) generates an "strexeq %0, %1, [%2]"
      
      instruction where %0 is the same as %2, which is illegal.
      2b01a2d3
    • Catalin Marinas's avatar
      [ARM PATCH] 1880/1: cache_type is uninitialised in the blockops_check() function · 34dadab4
      Catalin Marinas authored
      Patch from Catalin Marinas
      
      In the blockops_check() function, cache_type is uninitialised
      
      because an "mcr" instruction is used instead of "mrc".
      34dadab4
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia · 73b5d164
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      73b5d164
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.6-serial · ba1abdbf
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      ba1abdbf
    • Jan Kara's avatar
      [PATCH] Quota fix 2 · 64a3243b
      Jan Kara authored
      This fixes the problem with recursion into filesystem when inode of
      quota file needs a page + some other allocation problems.  I hope I got
      the GFP mask setting right..
      64a3243b
    • Linus Torvalds's avatar
      Merge bk://gkernel.bkbits.net/libata-2.6 · 48aa12e1
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      48aa12e1
    • Jeff Garzik's avatar
      [libata] internal cleanups · 50112a63
      Jeff Garzik authored
      Remove unused 'done_late' arg to ata_qc_complete(), which was never
      useful in 2.4, and never used at all in 2.6.
      
      This allows us to eliminate the same arg from ata_dma_complete(),
      and also make it more correct by passing the command rather than
      the ATA port structure as arg0.
      50112a63
    • Jeff Garzik's avatar
      Merge redhat.com:/spare/repo/sata-hacks/atapi-hacks-2.6 · 1ad2c4d1
      Jeff Garzik authored
      into redhat.com:/spare/repo/libata-2.6
      1ad2c4d1
    • Linus Torvalds's avatar
      Fix gidsetsize == 0 for real this time. · 78479816
      Linus Torvalds authored
      We need to always allocate at least one indirect block
      pointer, since we always fill out blocks[0] even if
      we don't have any groups.
      78479816
    • Bartlomiej Zolnierkiewicz's avatar
      [PATCH] remove bogus drivers/ide/pci/cmd640.h · 584286cc
      Bartlomiej Zolnierkiewicz authored
      Trivia.
      
      CMD640 driver doesn't use generic IDE PCI code (it doesn't even include
      this header).
      584286cc
    • Bartlomiej Zolnierkiewicz's avatar
      [PATCH] ide-disk.c: more write cache fixes · 7e33820d
      Bartlomiej Zolnierkiewicz authored
      - many Maxtor disks incorrectly claim CACHE FLUSH EXT command support,
        fix it by checking both CACHE FLUSH EXT command and LBA48 support
        (thanks to Eric D. Mudama for help in fixing this)
      
      - write_cache() was called with 'drive->id->cfs_enable_2 & 0x3000' as 'int arg'
        argument which was always truncated to zero due to 'u8 drive->wcache = arg'
        assignment so write cache was indeed enabled but drive->wcache was zero
        (thanks to Rene Herman for help in debugging this)
      
      - flush cache in idedisk_start_power_step() only if ATA-6 CACHE FLUSH (EXT)
        bits are present in disk's identify data (prevents sending unknown commands)
      
      - set drive->wcache in idedisk_setup() not idedisk_attach() (no need to check
        id->command_set_2 - we check id->cfs_enable_2 instead in write_cache() call)
      
      - use ide_cacheflush_p() in idedisk_setup()
      
      - minor cleanups
      7e33820d
    • Andi Kleen's avatar
      [PATCH] Handle empty nodes in sysfs on x86-64 · ab9e69a3
      Andi Kleen authored
      This code is shared between i386 and x86-64, and x86-64 needs to check
      for empty nodes here.  Otherwise you can get oopses at boot in some
      circumstances. 
      
      This handles empty nodes != 0; empty node zero are still broken in other
      ways.
      ab9e69a3
    • Andi Kleen's avatar
      [PATCH] x86-64: fix /dev/mem caching behaviour · f1eda416
      Andi Kleen authored
      This changes the /dev/mem caching behaviour on x86-64 to be compatible
      with i386.
      
      By default everything is set cached.
      
      This actually makes WC MTRRs on AMD systems work, which would get
      overriden by the UC PAT bits that were set earlier.  This can make DVD
      decoding with hardware support a lot faster. 
      
      It also supports O_SYNC now, like i386, although that is not really
      safe, because it allows the user to create undefined cache attribute
      conflicts that can corrupt caches in some circumstances.  I kept it for
      now.  Better would to disallow it, until Terrence Ripperda's PAT
      framework is getting merged, that can avoid these problems. 
      
      Actually it would be probably a good idea to add a printk here to catch
      broken programs for i386 and x86-64, but that is for another patch.
      f1eda416