31 Jul, 2007

1 commit


30 Jul, 2007

10 commits

  • They are handled in a ->compat_ioctl() handler, so it's just noise
    when compat_ioctl.c warns which occurs when they are used on non-SBUS
    framebuffer devices.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • It uses pci_dev, calls pci_map_*(), etc.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Fully unify all of the DMA ops so that subordinate bus types to
    the DMA operation providers (such as ebus, isa, of_device) can
    work transparently.

    Basically, we just make sure that for every system device we
    create, the dev->archdata 'iommu' and 'stc' fields are filled
    in.

    Then we have two platform variants of the DMA ops, one for SUN4U which
    actually programs the real hardware, and one for SUN4V which makes
    hypervisor calls.

    This also fixes the crashes in parport_pc on sparc64, reported by
    Meelis Roos.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Add in code to support an 82077 FDC on sun4c systems. There is a
    problem with spurious interrupts but it does apear to work.

    Testing on my SS2 (82072A FDC) shows that the floppy driver is not
    100% with sun4c any way (any spurious interrupt kills it, requiring a
    reboot to recover).

    Signed-off-by: Mark Fortescue
    Signed-off-by: David S. Miller

    Mark
     
  • Correct the Solaris x86 number of partitions (slices) is a way that is
    backward compatible with the earlier size.

    This works without a new VTOC structure definition as the timestamp
    and v_asciilabel fields in the VTOC are not used by the kernel yet.

    Signed-off-by: Mark Fortescue
    Signed-off-by: David S. Miller

    Mark
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (28 commits)
    [SCSI] mpt fusion: Changes in mptctl.c for logging support
    [SCSI] mpt fusion: Changes in mptfc.c mptlan.c mptsas.c and mptspi.c for logging support
    [SCSI] mpt fusion: Changes in mptscsih.c for logging support
    [SCSI] mpt fusion: Changes in mptbase.c for logging support
    [SCSI] mpt fusion: logging support in Kconfig, Makefile, mptbase.h and addition of mptdebug.h
    [SCSI] libsas: Fix potential NULL dereference in sas_smp_get_phy_events()
    [SCSI] bsg: Fix build for CONFIG_BLOCK=n
    [SCSI] aacraid: fix Sunrise Lake reset handling
    [SCSI] aacraid: add SCSI SYNCHONIZE_CACHE range checking
    [SCSI] add easyRAID to the no report luns blacklist
    [SCSI] advansys: lindent and other large, uninteresting changes
    [SCSI] aic79xx, aic7xxx: Fix incorrect width setting
    [SCSI] qla2xxx: fix to honor ignored parameters in sysfs attributes
    [SCSI] aacraid: draw line in sand, sundry cleanup and version update
    [SCSI] iscsi_tcp: Turn off bounce buffers
    [SCSI] libiscsi: fix cmd seqeunce number checking
    [SCSI] iscsi_tcp, ib_iser Enable module refcounting for iscsi host template
    [SCSI] libiscsi: make sure session is not blocked when removing host
    [SCSI] libsas: Remove PCI dependencies
    [SCSI] simscsi: convert to use the data buffer accessors
    ...

    Linus Torvalds
     
  • Remove fs.h from mm.h. For this,
    1) Uninline vma_wants_writenotify(). It's pretty huge anyway.
    2) Add back fs.h or less bloated headers (err.h) to files that need it.

    As result, on x86_64 allyesconfig, fs.h dependencies cut down from 3929 files
    rebuilt down to 3444 (-12.3%).

    Cross-compile tested without regressions on my two usual configs and (sigh):

    alpha arm-mx1ads mips-bigsur powerpc-ebony
    alpha-allnoconfig arm-neponset mips-capcella powerpc-g5
    alpha-defconfig arm-netwinder mips-cobalt powerpc-holly
    alpha-up arm-netx mips-db1000 powerpc-iseries
    arm arm-ns9xxx mips-db1100 powerpc-linkstation
    arm-assabet arm-omap_h2_1610 mips-db1200 powerpc-lite5200
    arm-at91rm9200dk arm-onearm mips-db1500 powerpc-maple
    arm-at91rm9200ek arm-picotux200 mips-db1550 powerpc-mpc7448_hpc2
    arm-at91sam9260ek arm-pleb mips-ddb5477 powerpc-mpc8272_ads
    arm-at91sam9261ek arm-pnx4008 mips-decstation powerpc-mpc8313_rdb
    arm-at91sam9263ek arm-pxa255-idp mips-e55 powerpc-mpc832x_mds
    arm-at91sam9rlek arm-realview mips-emma2rh powerpc-mpc832x_rdb
    arm-ateb9200 arm-realview-smp mips-excite powerpc-mpc834x_itx
    arm-badge4 arm-rpc mips-fulong powerpc-mpc834x_itxgp
    arm-carmeva arm-s3c2410 mips-ip22 powerpc-mpc834x_mds
    arm-cerfcube arm-shannon mips-ip27 powerpc-mpc836x_mds
    arm-clps7500 arm-shark mips-ip32 powerpc-mpc8540_ads
    arm-collie arm-simpad mips-jazz powerpc-mpc8544_ds
    arm-corgi arm-spitz mips-jmr3927 powerpc-mpc8560_ads
    arm-csb337 arm-trizeps4 mips-malta powerpc-mpc8568mds
    arm-csb637 arm-versatile mips-mipssim powerpc-mpc85xx_cds
    arm-ebsa110 i386 mips-mpc30x powerpc-mpc8641_hpcn
    arm-edb7211 i386-allnoconfig mips-msp71xx powerpc-mpc866_ads
    arm-em_x270 i386-defconfig mips-ocelot powerpc-mpc885_ads
    arm-ep93xx i386-up mips-pb1100 powerpc-pasemi
    arm-footbridge ia64 mips-pb1500 powerpc-pmac32
    arm-fortunet ia64-allnoconfig mips-pb1550 powerpc-ppc64
    arm-h3600 ia64-bigsur mips-pnx8550-jbs powerpc-prpmc2800
    arm-h7201 ia64-defconfig mips-pnx8550-stb810 powerpc-ps3
    arm-h7202 ia64-gensparse mips-qemu powerpc-pseries
    arm-hackkit ia64-sim mips-rbhma4200 powerpc-up
    arm-integrator ia64-sn2 mips-rbhma4500 s390
    arm-iop13xx ia64-tiger mips-rm200 s390-allnoconfig
    arm-iop32x ia64-up mips-sb1250-swarm s390-defconfig
    arm-iop33x ia64-zx1 mips-sead s390-up
    arm-ixp2000 m68k mips-tb0219 sparc
    arm-ixp23xx m68k-amiga mips-tb0226 sparc-allnoconfig
    arm-ixp4xx m68k-apollo mips-tb0287 sparc-defconfig
    arm-jornada720 m68k-atari mips-workpad sparc-up
    arm-kafa m68k-bvme6000 mips-wrppmc sparc64
    arm-kb9202 m68k-hp300 mips-yosemite sparc64-allnoconfig
    arm-ks8695 m68k-mac parisc sparc64-defconfig
    arm-lart m68k-mvme147 parisc-allnoconfig sparc64-up
    arm-lpd270 m68k-mvme16x parisc-defconfig um-x86_64
    arm-lpd7a400 m68k-q40 parisc-up x86_64
    arm-lpd7a404 m68k-sun3 powerpc x86_64-allnoconfig
    arm-lubbock m68k-sun3x powerpc-cell x86_64-defconfig
    arm-lusl7200 mips powerpc-celleb x86_64-up
    arm-mainstone mips-atlas powerpc-chrp32

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Restore the 2.6.22 CONFIG_ACPI_SLEEP build option, but now shadowing the
    new CONFIG_PM_SLEEP option.

    Signed-off-by: Len Brown
    [ Modified to work with the PM config setup changes. ]
    Signed-off-by: Linus Torvalds

    Len Brown
     
  • Introduce CONFIG_SUSPEND representing the ability to enter system sleep
    states, such as the ACPI S3 state, and allow the user to choose SUSPEND
    and HIBERNATION independently of each other.

    Make HOTPLUG_CPU be selected automatically if SUSPEND or HIBERNATION has
    been chosen and the kernel is intended for SMP systems.

    Also, introduce CONFIG_PM_SLEEP which is automatically selected if
    CONFIG_SUSPEND or CONFIG_HIBERNATION is set and use it to select the
    code needed for both suspend and hibernation.

    The top-level power management headers and the ACPI code related to
    suspend and hibernation are modified to use the new definitions (the
    changes in drivers/acpi/sleep/main.c are, mostly, moving code to reduce
    the number of ifdefs).

    There are many other files in which CONFIG_PM can be replaced with
    CONFIG_PM_SLEEP or even with CONFIG_SUSPEND, but they can be updated in
    the future.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION to avoid
    confusion (among other things, with CONFIG_SUSPEND introduced in the
    next patch).

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

29 Jul, 2007

11 commits

  • A non-periodic clock_event_device and the "jiffies" clock don't mix well:
    tick_handle_periodic() can go into an infinite loop.

    Currently lguest guests use the jiffies clock when the TSC is
    unusable. Instead, make the Host write the current time into the lguest
    page on every interrupt. This doesn't cost much but is more precise
    and at least as accurate as the jiffies clock. It also gets rid of
    the GET_WALLCLOCK hypercall.

    Also, delay setting sched_clock until our clock is set up, otherwise
    the early printk timestamps can go backwards (not harmful, just ugly).

    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Removed unused dead crap from machdep.h header.

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Greg Ungerer
     
  • Make declaration of mach_sched_init match definition
    (which is in arch/m68knommu/kernel/setup.c).

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Greg Ungerer
     
  • Signed-off-by: Al Viro
    Acked-by: Jeff Garzik
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • #x blocks expansion of macro argument, but it won't do you any
    good if it's already been expanded... As it is, RFALSE(cond, ....)
    ended up with stringified _expanded_ cond. Real fun when cond contains
    something like le32_to_cpu() and you are on a big-endian box...

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • ... because somebody had added preempt.h -> list.h, resulting in
    asm/system.h -> hardirq.h -> preempt.h -> list.h -> asm/system.h on m68k,
    with smp_wmb() used in list.h and defined in asm/system.h below the include
    of hardirq.h.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] Fix sclp_vt220 error handling.
    [S390] cio: Reorganize initialization.
    [S390] cio: Make CIO_* macros safe if dbfs are not available.
    [S390] cio: Clean up messages.
    [S390] Fix IRQ tracing.
    [S390] vmur: fix diag14_read.
    [S390] Wire up sys_fallocate.
    [S390] add types.h include to s390_ext.h
    [S390] cio: Remove deprecated rdc/rcd.
    [S390] Get rid of new section mismatch warnings.
    [S390] sclp: kill unused SCLP config option.
    [S390] cio: Remove remains of _ccw_device_get_device_number().
    [S390] cio: css_sch_device_register() can be made static.
    [S390] Improve __smp_call_function_map.
    [S390] Convert to smp_call_function_single.

    Linus Torvalds
     
  • * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
    Input Serio: Blackfin doesnt support I8042 - make sure it doesnt get selected
    Blackfin arch: add BF54x I2C/TWI TWI0 driver support
    Blackfin On-Chip RTC driver update for supporting BF54x
    Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case L1/uncached memory alloc fails)
    Blackfin arch: add error message when IRQ no available
    Blackfin arch: Initialize the exception vectors early in the boot process
    Blackfin arch: fix a compiling warning about dma-mapping
    Blackfin arch: switch to using proper defines this time THREAD_SIZE and PAGE_SIZE instead of just PAGE_SIZE everywhere
    Blackfin arch: fix bug which unaligns the init thread's stack and causes the current macro to fail.
    Blackfin arch: Load P0 before storing through it
    Blackfin arch: fix KGDB bug, dont forget last parameter.
    Blackfin arch: add selections for BF544 and BF542
    Blackfin arch: use bfin_read_SWRST() now that BF561 provides it
    Blackfin arch: setup aliases for some core Core A MMRs

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    docbook: add pipes, other fixes
    blktrace: use cpu_clock() instead of sched_clock()
    bsg: Fix build for CONFIG_BLOCK=n
    [patch] QUEUE_FLAG_READFULL QUEUE_FLAG_WRITEFULL comment fix

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] 4527/1: pxa: fix pxa27x ac97 cold reset in ASoC due to CKEN change
    [ARM] 4530/1: MXC: fix elf_hwcap compile breakage as in iop13xx
    [ARM] 4529/1: [HP Jornada 7XX] - Fix jornada720.c to use SSP driver
    [ARM] 4528/1: [HP Jornada 7XX] - Fix typo in jornada720_ssp.c
    [ARM] Remove CONFIG_IGNORE_FIQ
    [ARM] 4526/1: pxa: make ARCH_PXA select GENERIC_CLOCKEVENTS
    [ARM] setup_profiling_timer must not be __init

    Linus Torvalds
     
  • MXC needs the same change as IOP. See [ARM] 4494/1
    or commit 7dea1b20066cd30fb54da7e686b16b5e38b46b2d

    An undefined reference to elf_hwcap prevents linkage, due
    to changes made by f884b1cf578e079f01682514ae1ae64c74586602
    and d1cbbd6b413510c6512f4f80ffd48db1a8dd554a

    Removing processor.h removes the extern definition of
    elf_hwcap, which fixes the link issue, but forgets cpu_relax().
    So, instead, we'll call barrier() directly.

    Cc: Lennert Buytenhek
    Cc: Catalin Marinas
    Acked-by: Ross Wille
    Signed-off-by: Quinn Jensen
    Signed-off-by: Russell King

    Quinn Jensen
     

27 Jul, 2007

18 commits

  • We should not be checking the cmd windown for just handling r2t responses.
    And if the window closes in on us, always have scsi-ml requeue the command
    from our queuecommand function.

    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Mike Christie
     
  • This patch implements support of fallocate system call on s390(x)
    platform. A wrapper is added to address the issue which s390 ABI has with
    the arguments of this system call.

    Signed-off-by: Martin Schwidefsky

    Martin Schwidefsky
     
  • The header file for external interrupts uses the _u16 type. Make sure
    that _u16 is defined by including linux/types.h. This prevents compile
    failures, if asm/s390_ext.h is the first include file.

    Signed-off-by: Christian Borntraeger
    Signed-off-by: Martin Schwidefsky

    Christian Borntraeger
     
  • http://marc.info/?l=linux-kernel&m=118481061928246&w=2 seems to
    indicate disfavour of "deprecated", so let's just kill it now.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • smp_call_function_single now has the same semantics as s390's
    smp_call_function_on. Therefore convert to the *single variant
    and get rid of some architecture specific code.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • The two comments were transposed.

    Signed-off-by: Qi Yong
    Signed-off-by: Jens Axboe

    Qi Yong
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
    drivers/mmc/core/: make 3 functions static
    mmc: add missing printk levels
    mmc: remove redundant debug information from sdhci and wbsd
    mmc: proper debugging output in core
    mmc: be more verbose about card insertions/removal
    mmc: Don't hold lock when releasing an added card
    mmc: add a might_sleep() to mmc_claim_host()
    mmc: update kerneldoc
    mmc: update header file paths
    sdhci: add support to ENE-CB714
    mmc: check error bits before command completion

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (21 commits)
    [POWERPC] spusched: Fix initial timeslice calculation
    [POWERPC] spufs: Fix incorrect initialization of cbe_spu_info.spus
    [POWERPC] Fix Maple platform ISA bus
    [POWERPC] Make pci_iounmap actually unmap things
    [POWERPC] Add function to check if address is an IO port
    [POWERPC] Fix Pegasos keyboard detection
    [POWERPC] iSeries: Fix section mismatch warning in lpevents
    [POWERPC] iSeries: Fix section mismatch warnings
    [POWERPC] iSeries: We need vio_enable_interrupts
    [POWERPC] Fix RTC and device tree on linkstation machines
    [POWERPC] Add of_register_i2c_devices()
    [POWERPC] Fix loop with unsigned long counter variable
    [POWERPC] Fix register labels on show_regs() message for 4xx/Book-E
    [POWERPC] Only allow building of BootX text support on PPC_MULTIPLATFORM
    [POWERPC] Fix the ability to reset on MPC8544 DS and MPC8568 MDS boards
    [POWERPC] Fix mpc7448hpc2 tsi108 device_type bug
    [POWREPC] Fixup a number of modpost warnings on ppc32
    [POWERPC] Fix ethernet PHY support on MPC8544 DS
    [POWERPC] Don't try to allocate resources for a Freescale POWERPC PHB
    Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
    [PATCH] sched: debug feature - make the sched-domains tree runtime-tweakable
    [PATCH] sched: add above_background_load() function
    [PATCH] sched: update Documentation/sched-stats.txt
    [PATCH] sched: mark sysrq_sched_debug_show() static
    [PATCH] sched: make cpu_clock() not use the rq clock
    [PATCH] sched: remove unused rq->load_balance_class
    [PATCH] sched: arch preempt notifier mechanism
    [PATCH] sched: increase SCHED_LOAD_SCALE_FUZZ

    Linus Torvalds
     
  • Commit bd804eba1c8597cbb7cd5a5f9fe886aae16a079a ("PM: Introduce
    pm_power_off_prepare") caused problems in the poweroff path, as reported by
    YOSHIFUJI Hideaki / 吉藤英明.

    Generally, sysdev_shutdown() should be called after the ACPI preparation for
    powering the system off. To make it happen, we can separate sysdev_shutdown()
    from device_shutdown() and call it directly wherever necessary.

    Signed-off-by: Rafael J. Wysocki
    Tested-by: YOSHIFUJI Hideaki / 吉藤英明
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • These are manual fixups after running Lindent. No functional change.

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Run Lindent on all PNP source files.

    Produced by:

    $ quilt new pnp-lindent
    $ find drivers/pnp -name \*.[ch] | xargs quilt add
    $ quilt add include/linux/{pnp.h,pnpbios.h}
    $ scripts/Lindent drivers/pnp/*.c drivers/pnp/*/*.c include/linux/pnp*.h
    $ quilt refresh --sort

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • EDAC has a foundation to perform software memory scrubbing, but it requires a
    per architecture (atomic_scrub) function for performing an atomic update
    operation. Under X86, this is done with a

    lock: add [addr],0

    in the file asm-x86/edac.h

    This patch provides the MIPS arch with that atomic function, atomic_scrub() in

    asm-mips/edac.h

    Cc: Alan Cox
    Cc: Ralf Baechle
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • Nathan Lynch reported:
    2.6.23-rc1 breaks the build for 64-bit powerpc for me (using
    maple_defconfig):

    LD vmlinux.o
    powerpc64-unknown-linux-gnu-ld: dynreloc miscount for
    kernel/built-in.o, section .opd
    powerpc64-unknown-linux-gnu-ld: can not edit opd Bad value
    make: *** [vmlinux.o] Error 1

    However, I see a possibly related binutils patch:
    http://article.gmane.org/gmane.comp.gnu.binutils/33650

    It was tracked down to be caused by the weak prototype
    declaration in mm.h:
    __attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma);

    But there is no need to make the declaration weak - only the definition
    needs to be marked weak. So drop the weak declaration. And in the process
    drop the duplicate definition in page.h for powerpc.

    Note: the arch_vma_name fix for x86_64 needs to be applied first to avoid
    breaking x86_64

    Signed-off-by: Sam Ravnborg
    Cc: Nathan Lynch
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • Documentation: The Drivers

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Guest

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Fix:
    linux/include/xen/page.h: In function mfn_pte:
    linux/include/xen/page.h:149: error: __supported_pte_mask undeclared (first use in this function)
    linux/include/xen/page.h:149: error: (Each undeclared identifier is reported only once
    linux/include/xen/page.h:149: error: for each function it appears in.)

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeremy Fitzhardinge
     
  • A dummy inline function of register_nosave_region_late was accidentally
    removed by the recent PM patch that introduced suspend notifiers.
    This elimination causes the following compiler error on PPC machines.

    CC arch/powerpc/sysdev/dart_iommu.o
    arch/powerpc/sysdev/dart_iommu.c: In function 'iommu_init_late_dart':
    arch/powerpc/sysdev/dart_iommu.c:376: error: implicit declaration of function
    'register_nosave_region_late'
    make[1]: *** [arch/powerpc/sysdev/dart_iommu.o] Error 1
    make: *** [arch/powerpc/sysdev] Error 2

    This patch fixes the problem.

    Signed-off-by: Ryusuke Konishi
    Acked-by: Rafael J. Wysocki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi