11 Jul, 2005

1 commit

  • Lots of this patch is trivial code cleanups (static vars were being
    intialized to 0, etc).

    There's also some fixes for ISO transmits (max buffer handling).
    Aswell, we have a few fixes to disable IRM capabilites correctly. We've
    also disabled, by default some generally unused EXPORT symbols for the
    sake of cleanliness in the kernel. However, instead of removing them
    completely, we felt it necessary to have a config option that allowed
    them to be enabled for the many projects outside of the main kernel tree
    that use our API for driver development.

    The primary reason for this patch is to revert a MODE6->MODE10 RBC
    conversion patch from the SCSI maintainers. The new conversions handled
    directly in the scsi layer do not seem to work for SBP2. This patch
    reverts to our old working code so that users can enjoy using Firewire
    disks and dvd drives again.

    We are working with the SCSI maintainers to resolve this issue outside
    of the main kernel tree. We'll merge the patch once the SCSI layer's
    handling of the MODE10 conversion is working for us.

    Signed-off-by: Linus Torvalds

    Ben Collins
     

07 Jul, 2005

1 commit


28 Jun, 2005

1 commit

  • This patch removes CONFIG_PMAC_PBOOK (PowerBook support). This is now
    split into CONFIG_PMAC_MEDIABAY for the actual hotswap bay that some
    powerbooks have, CONFIG_PM for power management related code, and just left
    out of any CONFIG_* option for some generally useful stuff that can be used
    on non-laptops as well.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     

26 Jun, 2005

1 commit

  • 1. Establish a simple API for process freezing defined in linux/include/sched.h:

    frozen(process) Check for frozen process
    freezing(process) Check if a process is being frozen
    freeze(process) Tell a process to freeze (go to refrigerator)
    thaw_process(process) Restart process
    frozen_process(process) Process is frozen now

    2. Remove all references to PF_FREEZE and PF_FROZEN from all
    kernel sources except sched.h

    3. Fix numerous locations where try_to_freeze is manually done by a driver

    4. Remove the argument that is no longer necessary from two function calls.

    5. Some whitespace cleanup

    6. Clear potential race in refrigerator (provides an open window of PF_FREEZE
    cleared before setting PF_FROZEN, recalc_sigpending does not check
    PF_FROZEN).

    This patch does not address the problem of freeze_processes() violating the rule
    that a task may only modify its own flags by setting PF_FREEZE. This is not clean
    in an SMP environment. freeze(process) is therefore not SMP safe!

    Signed-off-by: Christoph Lameter
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     

21 Jun, 2005

3 commits


18 Jun, 2005

3 commits


17 Jun, 2005

1 commit

  • This fixed a problem that showed up in the Fedora development tree a few
    weeks before the Fedora Core 4 release, initially as slab corruption, later
    as hard crashes on boot up, when slab debugging was disabled for the
    release. More details on the history at
    https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158424

    The problem is caused by sbp2's use of scsi_host->hostdata[0] to hold a
    scsi_id, without explicitly requesting space for it. Since hostdata is
    declared as a zero-sized array, we don't get any such space by default, so
    it must be explicitly requested. The patch below implements just that.

    Signed-off-by: Alexandre Oliva
    Cc: Jody McIntyre
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexandre Oliva
     

27 May, 2005

1 commit


26 May, 2005

2 commits

  • drivers/ieee1394/sbp2.c: In function `sbp2_check_sbp2_response':
    drivers/ieee1394/sbp2.c:2154: warning: unused variable `device_type'

    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    Andrew Morton
     
  • a) TYPE_SDAD renamed to TYPE_RBC and taken to scsi.h
    b) in sbp2.c remapping of TYPE_RPB to TYPE_DISK turned off
    c) relevant places in midlayer and sd.c taught to accept TYPE_RBC
    d) sd.c::sd_read_cache_type() looks into page 6 when dealing with
    TYPE_RBC - these guys have writeback cache flag there and are not guaranteed
    to have page 8 at all.
    e) sd_read_cache_type() got an extra sanity check - it checks that
    it got the page it asked for before using its contents. And screams if
    mismatch had happened. Rationale: there are broken devices out there that
    are "helpful" enough to go for "I don't have a page you've asked for, here,
    have another one". For example, PL3507 had been caught doing just that...
    f) sbp2 sets sdev->use_10_for_rw and sdev->use_10_for_ms instead
    of bothering to remap READ6/WRITE6/MOD_SENSE, so most of the conversions
    in there are gone now.

    Incidentally, I wonder if USB storage devices that have no
    mode page 8 are simply RBC ones. I haven't touched that, but it might
    be interesting to check...

    Signed-off-by: Al Viro
    Signed-off-by: James Bottomley

    Al Viro
     

17 May, 2005

7 commits


22 Apr, 2005

2 commits

  • Fix non-legacy multichannel ISO receive, broken by Parag Wardukar's
    allocation fix. Multichannel ISO receive still sucks; it should be possible
    to use both legacy and non-legacy modes at the same time, but with this
    patch, things are no worse than they were in 2.6.11 and allocation is
    still done at the correct time.

    Signed-off-by: Jody McIntyre
    Signed-off-by: Linus Torvalds

    Jody McIntyre
     
  • - Print the correct value in the DBGMSG in dma_rcv_tasklet().
    See OHCI 1.1 section 8.7, page 103 ff.
    - Print tlabels as %d everywhere.

    Signed-off-by: Stefan Richter
    Signed-off-by: Jody McIntyre
    Signed-off-by: Linus Torvalds

    Jody McIntyre
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds