19 Aug, 2008

3 commits

  • This patch should fix TOC handling for cdroms that can not play audio. It
    extends commit af744e3294d09d706c4eae26cffaaa68a8d40337 ("cdrom: don't
    check CDC_PLAY_AUDIO in cdrom_count_tracks()") with a safety check and
    non-audio ioctls support.

    Since CDC_PLAY_AUDIO flag was used not only to check ability to play audio
    but also to ensure that audio_ioctl was not NULL, all TOC-related
    operations had to use it.

    As far as I understand, now audio_ioctl is never NULL, so a sanity check
    during device registration should be sufficient.

    It was tested on Optiarc AD7203A device, that has no ability to play
    audio.

    Cc: Tejun Heo
    Cc: Jens Axboe
    Cc: Borislav Petkov
    Signed-off-by: Andrew Morton
    [bart: remove now unneeded ->audio_ioctl check (noticed by Borislav)]
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Alexander Inyukhin
     
  • Make sure audio_ioctl is always defined even if being a dummy function
    since the cdrom_ioctl interface assumes its existence and we don't
    want to BUG on null ptr on some ioctls like, e.g. CDROMREADTOCENTRY,
    CDROMREADTOCHDR etc. when we fix CDC_PLAY_AUDIO checking in cdrom.c.

    Signed-off-by: Borislav Petkov
    Acked-by: Adrian McMenamin
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • Make sure audio_ioctl is always defined even if being a dummy function
    since the cdrom_ioctl interface assumes its existence and we don't
    want to BUG on null ptr on some ioctls like, e.g. CDROMREADTOCENTRY,
    CDROMREADTOCHDR etc. when we fix CDC_PLAY_AUDIO checking in cdrom.c.

    Signed-off-by: Borislav Petkov
    Acked-by: Stephen Rothwell
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     

06 Aug, 2008

1 commit

  • According to MMC-3 (or any later versions) READ TOCs are mandatory
    commands and have nothing to do with CDC_PLAY_AUDIO. I have no idea why
    the check was put there in the first place but it now only breaks
    automatic actions on certain drives.

    Note that this test was only effective when ide-cdrom was being used
    as sr didn't mask CDC_PLAY_AUDIO according to the capabilities.

    Signed-off-by: Tejun Heo
    Acked-by: Jens Axboe
    Cc: Borislav Petkov
    Signed-off-by: Andrew Morton
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Tejun Heo
     

29 Jul, 2008

1 commit


04 Jul, 2008

1 commit

  • The commit 22a9189fd073db3d03a4cf8b8c098aa207602de1 (cdrom: use
    kmalloced buffers instead of buffers on stack) is introduced to use
    kmalloced buffers for packet commands to avoid stack corruption on non
    coherent platforms.

    SCSI cdrom uses blk_rq_map_kern, which properly avoids DMA on the
    stack by using the bounce buffers. IDE cdrom also has the mechnism to
    avoids DMA on the stack. So we don't need this extra complexitiy in
    cdrom.c, such as allocating just 8 bytes. The lower layers can handle
    it.

    Signed-off-by: FUJITA Tomonori
    Cc: Thomas Bogendoerfer
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Thomas Bogendoerfer
    Cc: Tejun Heo
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Jens Axboe

    FUJITA Tomonori
     

23 May, 2008

1 commit


29 Apr, 2008

3 commits

  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    block: Skip I/O merges when disabled
    block: add large command support
    block: replace sizeof(rq->cmd) with BLK_MAX_CDB
    ide: use blk_rq_init() to initialize the request
    block: use blk_rq_init() to initialize the request
    block: rename and export rq_init()
    block: no need to initialize rq->cmd with blk_get_request
    block: no need to initialize rq->cmd in prepare_flush_fn hook
    block/blk-barrier.c:blk_ordered_cur_seq() mustn't be inline
    block/elevator.c:elv_rq_merge_ok() mustn't be inline
    block: make queue flags non-atomic
    block: add dma alignment and padding support to blk_rq_map_kern
    unexport blk_max_pfn
    ps3disk: Remove superfluous cast
    block: make rq_init() do a full memset()
    relay: fix splice problem

    Linus Torvalds
     
  • Use proc_create()/proc_create_data() to make sure that ->proc_fops and ->data
    be setup before gluing PDE to main tree.

    Signed-off-by: Denis V. Lunev
    Cc: Greg Kroah-Hartman
    Cc: Alexey Dobriyan
    Cc: "Eric W. Biederman"
    Cc: Peter Osterlund
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Dmitry Torokhov
    Cc: Neil Brown
    Cc: Mauro Carvalho Chehab
    Cc: Bjorn Helgaas
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Denis V. Lunev
     
  • blk_get_request initializes rq->cmd (rq_init does) so the users don't
    need to do that.

    The purpose of this patch is to remove sizeof(rq->cmd) and &rq->cmd,
    as a preparation for large command support, which changes rq->cmd from
    the static array to a pointer. sizeof(rq->cmd) will not make sense and
    &rq->cmd won't work.

    Signed-off-by: FUJITA Tomonori
    Cc: James Bottomley
    Cc: Alasdair G Kergon
    Cc: Jens Axboe
    Signed-off-by: Jens Axboe

    FUJITA Tomonori
     

21 Apr, 2008

6 commits


04 Mar, 2008

1 commit


08 Feb, 2008

1 commit

  • * 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (69 commits)
    [POWERPC] Add SPE registers to core dumps
    [POWERPC] Use regset code for compat PTRACE_*REGS* calls
    [POWERPC] Use generic compat_sys_ptrace
    [POWERPC] Use generic compat_ptrace_request
    [POWERPC] Use generic ptrace peekdata/pokedata
    [POWERPC] Use regset code for PTRACE_*REGS* requests
    [POWERPC] Switch to generic compat_binfmt_elf code
    [POWERPC] Switch to using user_regset-based core dumps
    [POWERPC] Add user_regset compat support
    [POWERPC] Add user_regset_view definitions
    [POWERPC] Use user_regset accessors for GPRs
    [POWERPC] ptrace accessors for special regs MSR and TRAP
    [POWERPC] Use user_regset accessors for SPE regs
    [POWERPC] Use user_regset accessors for altivec regs
    [POWERPC] Use user_regset accessors for FP regs
    [POWERPC] mpc52xx: fix compile error introduce when rebasing patch
    [POWERPC] 4xx: PCIe indirect DCR spinlock fix.
    [POWERPC] Add missing native dcr dcr_ind_lock spinlock
    [POWERPC] 4xx: Fix offset value on Warp board
    [POWERPC] 4xx: Add 440EPx Sequoia ehci dts entry
    ...

    Linus Torvalds
     

07 Feb, 2008

1 commit


06 Feb, 2008

1 commit


02 Feb, 2008

1 commit


29 Jan, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (197 commits)
    sh: add spi header and r2d platform data V3
    sh: update r7780rp interrupt code
    sh: remove consistent alloc stuff from the machine vector
    sh: use declared coherent memory for dreamcast pci ethernet adapter
    sh: declared coherent memory support V2
    sh: Add support for SDK7780 board.
    sh: constify function pointer tables
    sh: Kill off -traditional for linker script.
    cdrom: Add support for Sega Dreamcast GD-ROM.
    sh: Kill off hs7751rvoip reference from arch/sh/Kconfig.
    sh: Drop r7780rp_defconfig, use r7780mp_defconfig as kbuild default.
    sh: Kill off dead HS771RVoIP board support.
    sh: r7785rp: Fix up DECLARE_INTC_DESC() arg mismatch.
    sh: r7785rp: Hook up the rest of the HL7785 FPGA IRQ vectors.
    sh: r2d - enable sm501 usb host function
    sh: remove voyagergx
    sh: r2d - add lcd planel timings to sm501 platform data
    sh: Add OHCI and UDC platform devices for SH7720.
    sh: intc - remove default interrupt priority tables
    sh: Correct pte size mismatch for X2 TLB.
    ...

    Linus Torvalds
     

28 Jan, 2008

2 commits

  • This patch converts viocd to use blk_end_request interfaces.
    Related 'uptodate' arguments are converted to 'error'.

    As a result, the interface of internal function, viocd_end_request(),
    is changed.

    Cc: Stephen Rothwell
    Signed-off-by: Kiyoshi Ueda
    Signed-off-by: Jun'ichi Nomura
    Signed-off-by: Jens Axboe

    Kiyoshi Ueda
     
  • This patch adds support for the GD-Rom drive, SEGA's proprietary
    implementation of an IDE CD Rom for the SEGA Dreamcast. This driver
    implements Sega's Packet Interface (SPI) - at least partially. It will
    also read disks in SEGA's propreitary GD format.

    Unlike previous drivers (which were never in mainline) this uses DMA and
    not PIO to read disks. It is a new driver, not a refactoring of old
    drivers.

    Signed-off by: Adrian McMenamin
    Acked-by: Jens Axboe
    Signed-off-by: Paul Mundt

    Adrian McMenamin
     

24 Oct, 2007

1 commit


20 Oct, 2007

1 commit

  • The task_struct->pid member is going to be deprecated, so start
    using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in
    the kernel.

    The first thing to start with is the pid, printed to dmesg - in
    this case we may safely use task_pid_nr(). Besides, printks produce
    more (much more) than a half of all the explicit pid usage.

    [akpm@linux-foundation.org: git-drm went and changed lots of stuff]
    Signed-off-by: Pavel Emelyanov
    Cc: Dave Airlie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Emelyanov
     

19 Oct, 2007

1 commit

  • The binary interface for the cdrom sysctls can't possilby work. So remove the
    binary sysctls and update the test for finding out which sysctl table entry we
    are dealy with to use the procname and not the ctl_name (which I am removing).

    Signed-off-by: Eric W. Biederman
    Cc: Alexey Dobriyan
    Cc: Jens Axboe
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

11 Oct, 2007

3 commits


26 Sep, 2007

1 commit


24 Jul, 2007

1 commit

  • Some of the code has been gradually transitioned to using the proper
    struct request_queue, but there's lots left. So do a full sweet of
    the kernel and get rid of this typedef and replace its uses with
    the proper type.

    Signed-off-by: Jens Axboe

    Jens Axboe
     

16 Jul, 2007

1 commit

  • bsg uses scsi_cmd_ioctl() for some SCSI/sg ioctl
    commands. scsi_cmd_ioctl() gets a request queue from a gendisk
    arguement. This prevents bsg being bound to SCSI devices that don't
    have a gendisk (like OSD). This adds a request_queue argument to
    scsi_cmd_ioctl(). The SCSI/sg ioctl commands doesn't use a gendisk so
    it's safe for any SCSI devices to use scsi_cmd_ioctl().

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: Jens Axboe

    FUJITA Tomonori
     

10 Jul, 2007

3 commits

  • They are all broken beyond repair. Given that nobody has complained
    about them (most haven't worked in 2.6 AT ALL), remove them from the
    tree.

    A new mitsumi driver that actually works is in progress, it'll get
    added when completed.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • - I have unearthed very old bugs in stale drivers that still
    used request->cmd as a READ|WRITE int
    - This patch is maybe a proof that these drivers have not been
    used for a long time. Should they be removed completely?

    Drivers that currently do not work for sure:
    drivers/acorn/block/fd1772.c | 2 +-
    drivers/acorn/block/mfmhd.c | 8 ++++----
    drivers/cdrom/aztcd.c | 2 +-
    drivers/cdrom/cm206.c | 2 +-
    drivers/cdrom/gscd.c | 2 +-
    drivers/cdrom/mcdx.c | 2 +-
    drivers/cdrom/optcd.c | 2 +-
    drivers/cdrom/sjcd.c | 2 +-

    Drivers with cosmetic fixes only:
    b/drivers/block/amiflop.c
    b/drivers/block/nbd.c
    b/drivers/ide/legacy/hd.c

    Signed-off-by: Boaz Harrosh
    Signed-off-by: Jens Axboe

    Boaz Harrosh
     
  • Fix the cdrom_sysctl_info possible buffer overwrite bug. Also
    fix the locking of accessing topCdromPtr pointer.

    Signed-off-by: Dave Young
    Signed-off-by: Jens Axboe

    Dave Young
     

09 Jun, 2007

1 commit

  • Fix various bits of obviously-busted code which we're not happening to
    compile, due to ifdefs.

    Signed-off-by: Yoann Padioleau
    Cc: Andi Kleen
    Cc: Paul Mackerras
    Acked-by: Paul Mundt
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

08 May, 2007

1 commit

  • Remove the destroy_dirty_buffers argument from invalidate_bdev(), it hasn't
    been used in 6 years (so akpm says).

    find * -name \*.[ch] | xargs grep -l invalidate_bdev |
    while read file; do
    quilt add $file;
    sed -ie 's/invalidate_bdev(\([^,]*\),[^)]*)/invalidate_bdev(\1)/g' $file;
    done

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     

05 Mar, 2007

1 commit

  • Fix soft lockup with iSeries viocd driver, caused by eventually calling
    end_that_request_first() with nr_bytes 0.

    Some versions of hald do an SG_IO ioctl on the viocd device which becomes a
    request with hard_nr_sectors and hard_cur_sectors set to zero. Passing zero
    as the number of sectors to end_request() (which calls
    end_that_request_first()) causes an infinite loop when the bio is being freed.

    This patch makes sure that the zero is never passed. It only requires some
    number larger the the request size the terminate the loop.

    The lockup is triggered by hald, interrogating the device.

    Signed-off-by: Tony Breeds
    Signed-off-by: Jens Axboe
    Cc: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tony Breeds
     

15 Feb, 2007

1 commit

  • The semantic effect of insert_at_head is that it would allow new registered
    sysctl entries to override existing sysctl entries of the same name. Which is
    pain for caching and the proc interface never implemented.

    I have done an audit and discovered that none of the current users of
    register_sysctl care as (excpet for directories) they do not register
    duplicate sysctl entries.

    So this patch simply removes the support for overriding existing entries in
    the sys_sysctl interface since no one uses it or cares and it makes future
    enhancments harder.

    Signed-off-by: Eric W. Biederman
    Acked-by: Ralf Baechle
    Acked-by: Martin Schwidefsky
    Cc: Russell King
    Cc: David Howells
    Cc: "Luck, Tony"
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Martin Schwidefsky
    Cc: Andi Kleen
    Cc: Jens Axboe
    Cc: Corey Minyard
    Cc: Neil Brown
    Cc: "John W. Linville"
    Cc: James Bottomley
    Cc: Jan Kara
    Cc: Trond Myklebust
    Cc: Mark Fasheh
    Cc: David Chinner
    Cc: "David S. Miller"
    Cc: Patrick McHardy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman