16 Jul, 2007

3 commits

  • This patch removes some code that became dead code after the ATARI_ACSI
    removal.

    It also indirectly fixes the following bug introduced by
    commit c2bcf3b8978c291e1b7f6499475c8403a259d4d6:

    config ATARI_SLM
    tristate "Atari SLM laser printer support"
    - depends on ATARI && ATARI_ACSI!=n
    + depends on ATARI

    Acked-by: Geert Uytterhoeven
    Signed-off-by: Adrian Bunk
    Signed-off-by: Jens Axboe

    Adrian Bunk
     
  • This patch removes the documentation for the removed legacy CDROM drivers.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Jens Axboe

    Adrian Bunk
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (166 commits)
    [SCSI] ibmvscsi: convert to use the data buffer accessors
    [SCSI] dc395x: convert to use the data buffer accessors
    [SCSI] ncr53c8xx: convert to use the data buffer accessors
    [SCSI] sym53c8xx: convert to use the data buffer accessors
    [SCSI] ppa: coding police and printk levels
    [SCSI] aic7xxx_old: remove redundant GFP_ATOMIC from kmalloc
    [SCSI] i2o: remove redundant GFP_ATOMIC from kmalloc from device.c
    [SCSI] remove the dead CYBERSTORMIII_SCSI option
    [SCSI] don't build scsi_dma_{map,unmap} for !HAS_DMA
    [SCSI] Clean up scsi_add_lun a bit
    [SCSI] 53c700: Remove printk, which triggers because of low scsi clock on SNI RMs
    [SCSI] sni_53c710: Cleanup
    [SCSI] qla4xxx: Fix underrun/overrun conditions
    [SCSI] megaraid_mbox: use mutex instead of semaphore
    [SCSI] aacraid: add 51245, 51645 and 52245 adapters to documentation.
    [SCSI] qla2xxx: update version to 8.02.00-k1.
    [SCSI] qla2xxx: add support for NPIV
    [SCSI] stex: use resid for xfer len information
    [SCSI] Add Brownie 1200U3P to blacklist
    [SCSI] scsi.c: convert to use the data buffer accessors
    ...

    Linus Torvalds
     

15 Jul, 2007

2 commits


14 Jul, 2007

2 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] Fix typos in powernow-k8 printk's.
    [CPUFREQ] Restore previously used governor on a hot-replugged CPU
    [CPUFREQ] bugfix cpufreq in combination with performance governor
    [CPUFREQ] powernow-k8 compile fix.
    [CPUFREQ] the overdue removal of X86_SPEEDSTEP_CENTRINO_ACPI
    [CPUFREQ] Longhaul - Option to disable ACPI C3 support

    Fixed up arch/i386/kernel/cpu/cpufreq/powernow-k8.c due to revert that
    got fixed differently in the cpufreq branch.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'ioat-md-accel-for-linus' of git://lost.foo-projects.org/~dwillia2/git/iop: (28 commits)
    ioatdma: add the unisys "i/oat" pci vendor/device id
    ARM: Add drivers/dma to arch/arm/Kconfig
    iop3xx: surface the iop3xx DMA and AAU units to the iop-adma driver
    iop13xx: surface the iop13xx adma units to the iop-adma driver
    dmaengine: driver for the iop32x, iop33x, and iop13xx raid engines
    md: remove raid5 compute_block and compute_parity5
    md: handle_stripe5 - request io processing in raid5_run_ops
    md: handle_stripe5 - add request/completion logic for async expand ops
    md: handle_stripe5 - add request/completion logic for async read ops
    md: handle_stripe5 - add request/completion logic for async check ops
    md: handle_stripe5 - add request/completion logic for async compute ops
    md: handle_stripe5 - add request/completion logic for async write ops
    md: common infrastructure for running operations with raid5_run_ops
    md: raid5_run_ops - run stripe operations outside sh->lock
    raid5: replace custom debug PRINTKs with standard pr_debug
    raid5: refactor handle_stripe5 and handle_stripe6 (v3)
    async_tx: add the async_tx api
    xor: make 'xor_blocks' a library routine for use with async_tx
    dmaengine: make clients responsible for managing channels
    dmaengine: refactor dmaengine around dma_async_tx_descriptor
    ...

    Linus Torvalds
     

13 Jul, 2007

14 commits

  • This patch contains the overdue removal of X86_SPEEDSTEP_CENTRINO_ACPI.

    Signed-off-by: Adrian Bunk
    Acked-by: Venkatesh Pallipadi
    Signed-off-by: Dave Jones

    Adrian Bunk
     
  • This patch updates some of the documentation about DMA buffer management
    for USB, and ways to avoid extra copying. Our understanding of the issues
    has improved over time.

    - Most drivers should *avoid* the dma-coherent allocators. There are
    a few exceptions (like the HID driver).

    - Some methods are currently commented out; it seems folk writing
    USB drivers aren't doing performance tuning at that level yet.

    - Just avoid highmem; there's no good way to pass an "I can do highmem
    DMA" capability through a driver stack. This is easy, everything
    already avoids highmem. But it'd be nice if x86_32 systems with much
    physical memory could use it directly with network adapters and mass
    storage devices. (Patch, anyone?)

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • This patch (as920) adds an extra level of protection to the
    USB-Persist facility. Now it will apply by default only to hubs; for
    all other devices the user must enable it explicitly by setting the
    power/persist device attribute.

    The disconnect_all_children() routine in hub.c has been removed and
    its code placed inline. This is the way it was originally as part of
    hub_pre_reset(); the revised usage in hub_reset_resume() is
    sufficiently different that the code can no longer be shared.
    Likewise, mark_children_for_reset() is now inline as part of
    hub_reset_resume(). The end result looks much cleaner than before.

    The sysfs interface is updated to add the new attribute file, and
    there are corresponding documentation updates.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as886) adds the controversial USB-persist facility,
    allowing USB devices to persist across a power loss during system
    suspend.

    The facility is controlled by a new Kconfig option (with appropriate
    warnings about the potential dangers); when the option is off the
    behavior will remain the same as it is now. But when the option is
    on, people will be able to use suspend-to-disk and keep their USB
    filesystems intact -- something particularly valuable for small
    machines where the root filesystem is on a USB device!

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
    security: unexport mmap_min_addr
    SELinux: use SECINITSID_NETMSG instead of SECINITSID_UNLABELED for NetLabel
    security: Protection for exploiting null dereference using mmap
    SELinux: Use %lu for inode->i_no when printing avc
    SELinux: allow preemption between transition permission checks
    selinux: introduce schedule points in policydb_destroy()
    selinux: add selinuxfs structure for object class discovery
    selinux: change sel_make_dir() to specify inode counter.
    selinux: rename sel_remove_bools() for more general usage.
    selinux: add support for querying object classes and permissions from the running policy

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] Support multiple CPUs going through OS_MCA
    [IA64] silence GCC ia64 unused variable warnings
    [IA64] prevent MCA when performing MMIO mmap to PCI config space
    [IA64] add sn_register_pmi_handler oemcall
    [IA64] Stop bit for brl instruction
    [IA64] SN: Correct ROM resource length for BIOS copy
    [IA64] Don't set psr.ic and psr.i simultaneously

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6: (34 commits)
    PCI: Only build PCI syscalls on architectures that want them
    PCI: limit pci_get_bus_and_slot to domain 0
    PCI: hotplug: acpiphp: avoid acpiphp "cannot get bridge info" PCI hotplug failure
    PCI: hotplug: acpiphp: remove hot plug parameter write to PCI host bridge
    PCI: hotplug: acpiphp: fix slot poweroff problem on systems without _PS3
    PCI: hotplug: pciehp: wait for 1 second after power off slot
    PCI: pci_set_power_state(): check for PM capabilities earlier
    PCI: cpci_hotplug: Convert to use the kthread API
    PCI: add pci_try_set_mwi
    PCI: pcie: remove SPIN_LOCK_UNLOCKED
    PCI: ROUND_UP macro cleanup in drivers/pci
    PCI: remove pci_dac_dma_... APIs
    PCI: pci-x-pci-express-read-control-interfaces cleanups
    PCI: Fix typo in include/linux/pci.h
    PCI: pci_ids, remove double or more empty lines
    PCI: pci_ids, add atheros and 3com_2 vendors
    PCI: pci_ids, reorder some entries
    PCI: i386: traps, change VENDOR to DEVICE
    PCI: ATM: lanai, change VENDOR to DEVICE
    PCI: Change all drivers to use pci_device->revision
    ...

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (61 commits)
    sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes
    sysfs: make directory dentries and inodes reclaimable
    sysfs: implement sysfs_get_dentry()
    sysfs: move sysfs_drop_dentry() to dir.c and make it static
    sysfs: restructure add/remove paths and fix inode update
    sysfs: use sysfs_mutex to protect the sysfs_dirent tree
    sysfs: consolidate sysfs spinlocks
    sysfs: make kobj point to sysfs_dirent instead of dentry
    sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()
    sysfs: implement SYSFS_FLAG_REMOVED flag
    sysfs: rename sysfs_dirent->s_type to s_flags and make room for flags
    sysfs: make sysfs_drop_dentry() access inodes using ilookup()
    sysfs: Fix oops in sysfs_drop_dentry on x86_64
    sysfs: use singly-linked list for sysfs_dirent tree
    sysfs: slim down sysfs_dirent->s_active
    sysfs: move s_active functions to fs/sysfs/dir.c
    sysfs: fix root sysfs_dirent -> root dentry association
    sysfs: use iget_locked() instead of new_inode()
    sysfs: reorganize sysfs_new_indoe() and sysfs_create()
    sysfs: fix parent refcounting during rename and move
    ...

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (183 commits)
    [TG3]: Update version to 3.78.
    [TG3]: Add missing NVRAM strapping.
    [TG3]: Enable auto MDI.
    [TG3]: Fix the polarity bit.
    [TG3]: Fix irq_sync race condition.
    [NET_SCHED]: ematch: module autoloading
    [TCP]: tcp probe wraparound handling and other changes
    [RTNETLINK]: rtnl_link: allow specifying initial device address
    [RTNETLINK]: rtnl_link API simplification
    [VLAN]: Fix MAC address handling
    [ETH]: Validate address in eth_mac_addr
    [NET]: Fix races in net_rx_action vs netpoll.
    [AF_UNIX]: Rewrite garbage collector, fixes race.
    [NETFILTER]: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr dereference (CVE-2007-2876)
    [NET]: Make all initialized struct seq_operations const.
    [UDP]: Fix length check.
    [IPV6]: Remove unneeded pointer idev from addrconf_cleanup().
    [DECNET]: Another unnecessary net/tcp.h inclusion in net/dn.h
    [IPV6]: Make IPV6_{RECV,2292}RTHDR boolean options.
    [IPV6]: Do not send RH0 anymore.
    ...

    Fixed up trivial conflict in Documentation/feature-removal-schedule.txt
    manually.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: (30 commits)
    Blackfin serial driver: supporting BF548-EZKIT serial port
    Video Console: Blackfin doesnt support VGA console
    Blackfin arch: Add peripheral io API to gpio header file
    Blackfin arch: set up gpio interrupt IRQ_PJ9 for BF54x ATAPI PATA driver
    Blackfin arch: add missing CONFIG_LARGE_ALLOCS when upstream merging
    Blackfin arch: as pointed out by Robert P. J. Day, update the CPU_FREQ name to match current Kconfig
    Blackfin arch: extract the entry point from the linked kernel
    Blackfin arch: clean up some coding style issues
    Blackfin arch: combine the common code of free_initrd_mem and free_initmem
    Blackfin arch: Add Support for Peripheral PortMux and resouce allocation
    Blackfin arch: use PAGE_SIZE when doing aligns rather than hardcoded values
    Blackfin arch: fix bug set dma_address properly in dma_map_sg
    Blackfin arch: Disable CACHELINE_ALIGNED_L1 for BF54x by default
    Blackfin arch: Port the dm9000 driver to Blackfin by using the correct low-level io routines
    Blackfin arch: There is no CDPRIO Bit in the EBIU_AMGCTL Register of BF54x arch
    Blackfin arch: scrub dead code
    Blackfin arch: Fix Warning add some defines in BF54x header file
    Blackfin arch: add BF54x missing GPIO access functions
    Blackfin arch: Some memory and code optimizations - Fix SYS_IRQS
    Blackfin arch: Enable BF54x PIN/GPIO interrupts
    ...

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6: (26 commits)
    i2c-rpx: Remove
    i2c-mpc: work around missing-9th-clock-pulse bug
    i2c: New PMC MSP71xx TWI bus driver
    i2c-savage4: Delete many unused defines
    i2c/tsl2550: Speed up initialization
    i2c: New bus driver for the TAOS evaluation modules
    i2c-i801: Use the internal 32-byte buffer on ICH4+
    i2c-i801: Various cleanups
    i2c: Add support for the TSL2550
    i2c-pxa: Support new-style I2C drivers
    i2c-gpio: Make some internal functions static
    i2c-gpio: Add support for new-style clients
    i2c-iop3xx: Switch to static adapter numbering
    i2c-sis5595: Resolve resource conflict with sis5595
    matroxfb: Clean-up i2c header inclusions
    i2c-nforce2: Add support for SMBus block transactions
    i2c-mpc: Use i2c_add_numbered_adapter
    i2c-mv64xxx: Use i2c_add_numbered_adapter
    i2c-piix4: Add support for the ATI SB700
    i2c: New DS1682 chip driver
    ...

    Linus Torvalds
     
  • Generic code to walk through the fields in a radiotap header, accounting
    for nasties like extended "field present" bitfields and alignment rules

    Signed-off-by: Andy Green
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Andy Green
     
  • Add monitor mode radiotap injection docs.

    Signed-off-by: Andy Green
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Andy Green
     
  • The relocatable kernel code needs a scratch field for the decompressor
    to determine its own location. It was using a location inside
    struct screen_info; reserve a free location and document it as scratch
    instead.

    Signed-off-by: H. Peter Anvin
    Signed-off-by: Linus Torvalds

    H. Peter Anvin
     

12 Jul, 2007

16 commits

  • This driver has been broken forever. It depends on i2c-algo-8xx which
    has never been in the mainline kernel.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • This is a new I2C bus driver for the TAOS evaluation modules. Developped
    and tested on the TAOS TSL2550 EVM.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Add an ability to utilize the internal SRAM buffer on ICH4
    and newer host controllers to speed up execution of block operations.

    I've split the code so that it is more clear which block transaction is
    performed.

    First of all the host controller's type is identified. isich4 is set when
    we think that the controller has the internal buffer. Then, before every
    block transaction, if isich4 is set, we attempt to enable the E32B bit in
    SMBAUXCTL register.

    Signed-off-by: Oleg Ryjkov
    Signed-off-by: Jean Delvare

    Oleg Ryjkov
     
  • Add the SMBus device ID for ATI SB700.

    Signed-off-by: Henry Su
    Signed-off-by: Jean Delvare

    Henry Su
     
  • Let the drivers specify how many bytes they want to read with
    i2c_smbus_read_i2c_block_data(). So far, the block count was
    hard-coded to I2C_SMBUS_BLOCK_MAX (32), which did not make much sense.
    Many driver authors complained about this before, and I believe it's
    about time to fix it. Right now, authors have to do technically stupid
    things, such as individual byte reads or full-fledged I2C messaging,
    to work around the problem. We do not want to encourage that.

    I even found that some bus drivers (e.g. i2c-amd8111) already
    implemented I2C block read the "right" way, that is, they didn't
    follow the old, broken standard. The fact that it was never noticed
    before just shows how little i2c_smbus_read_i2c_block_data() was used,
    which isn't that surprising given how broken its prototype was so far.

    There are some obvious compatiblity considerations:
    * This changes the i2c_smbus_read_i2c_block_data() prototype. Users
    outside the kernel tree will notice at compilation time, and will
    have to update their code.
    * User-space has access to i2c_smbus_xfer() directly using i2c-dev, so
    the changed expectations would affect tools such as i2cdump. In order
    to preserve binary compatibility, we give I2C_SMBUS_I2C_BLOCK_DATA
    a new numeric value, and define I2C_SMBUS_I2C_BLOCK_BROKEN with the
    old numeric value. When i2c-dev receives a transaction with the
    old value, it can convert it to the new format on the fly.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • We have a new RTC subsystem with better drivers.

    Legacy driver status:
    * ds1337: The DS1337 and DS1339 are now supported by the rtc-ds1307
    driver, so it looks to me like we could even delete the ds1337
    driver right away.
    * ds1374: Will soon be replaced with Scott Wood's rtc-ds1374 driver.
    * m41t00: The M41T00 is supported by the rtc-ds1307 driver. For the
    M41T81 and M41T85, the rtc-m41t80 driver written by Atsushi Nemoto
    should work.

    Signed-off-by: Jean Delvare
    Cc: Alessandro Zummo
    Acked-by: Mark A. Greer
    Acked-by: James Chapman
    Cc: Randy Vinson

    Jean Delvare
     
  • The x1205 driver moved to the RTC subsystem and was significantly
    modified since then, so just delete the outdated documentation.

    Signed-off-by: Jean Delvare
    Cc: Alessandro Zummo

    Jean Delvare
     
  • Generate I2C kerneldoc; fix various glitches and add "context" sections to
    that documentation. Most I2C and SMBus functions still have no kerneldoc.

    Let me suggest providing kerneldoc for all the i2c_smbus_*() functions as
    a small and mostly self-contained project for anyone so inclined. :)

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • Add a new security check on mmap operations to see if the user is attempting
    to mmap to low area of the address space. The amount of space protected is
    indicated by the new proc tunable /proc/sys/vm/mmap_min_addr and defaults to
    0, preserving existing behavior.

    This patch uses a new SELinux security class "memprotect." Policy already
    contains a number of allow rules like a_t self:process * (unconfined_t being
    one of them) which mean that putting this check in the process class (its
    best current fit) would make it useless as all user processes, which we also
    want to protect against, would be allowed. By taking the memprotect name of
    the new class it will also make it possible for us to move some of the other
    memory protect permissions out of 'process' and into the new class next time
    we bump the policy version number (which I also think is a good future idea)

    Acked-by: Stephen Smalley
    Acked-by: Chris Wright
    Signed-off-by: Eric Paris
    Signed-off-by: James Morris

    Eric Paris
     
  • Well, first of all, I don't want to change so many files either.

    What I do:
    Adding a new parameter "struct bin_attribute *" in the
    .read/.write methods for the sysfs binary attributes.

    In fact, only the four lines change in fs/sysfs/bin.c and
    include/linux/sysfs.h do the real work.
    But I have to update all the files that use binary attributes
    to make them compatible with the new .read and .write methods.
    I'm not sure if I missed any. :(

    Why I do this:
    For a sysfs attribute, we can get a pointer pointing to the
    struct attribute in the .show/.store method,
    while we can't do this for the binary attributes.
    I don't know why this is different, but this does make it not
    so handy to use the binary attributes as the regular ones.
    So I think this patch is reasonable. :)

    Who benefits from it:
    The patch that exposes ACPI tables in sysfs
    requires such an improvement.
    All the table binary attributes share the same .read method.
    Parameter "struct bin_attribute *" is used to get
    the table signature and instance number which are used to
    distinguish different ACPI table binary attributes.

    Without this parameter, we need to offer different .read methods
    for different ACPI table binary attributes.
    This is impossible as there are various ACPI tables on different
    platforms, and we don't know what they are until they are loaded.

    Signed-off-by: Zhang Rui
    Signed-off-by: Greg Kroah-Hartman

    Zhang Rui
     
  • Here's a document to help clear things up.

    Signed-off-by: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • As suggested by Andrew, add pci_try_set_mwi(), which does not require
    return-value checking.

    - add pci_try_set_mwi() without __must_check
    - make it return 0 on success, errno if the "try" failed or error
    - review callers

    Signed-off-by: Randy Dunlap
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Based on replies to a respective query, remove the pci_dac_dma_...() APIs
    (except for pci_dac_dma_supported() on Alpha, where this function is used
    in non-DAC PCI DMA code).

    Signed-off-by: Jan Beulich
    Cc: Andi Kleen
    Cc: Jesse Barnes
    Cc: Christoph Hellwig
    Acked-by: David Miller
    Cc: Jeff Garzik
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jan Beulich
     
  • Remove pointless and never-called enable_wake() hook from pci_driver and
    from documentation. Evidently this was introduced in the 2.4.6 kernel,
    but there's no evidence it was ever called; and it was rarely implemented.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • Signed-off-by: Chris Leech

    Chris Leech
     
  • Example memory map (HP rx7640 with 'default' acpiconfig setting, VGA disabled):
    0x00000000 - 0x3FFFBFFF supports only WB (cacheable) access

    If a user attempts to perform an MMIO mmap (using the PCIIOC_MMAP_IS_MEM ioctl)
    to PCI config space (like mmap'ing and accessing memory at 0xA0000),
    we will MCA because the kernel will attempt to use a mapping with the UC
    attribute.

    So check the memory attribute in kern_mmap and the EFI memmap. If WC is
    requested, and WC or UC access is supported for the region, allow it.
    Otherwise, use the same attribute the kernel uses.

    Updates documentation and test cases as well.

    Signed-off-by: Alex Chiang
    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Tony Luck

    Alex Chiang
     

11 Jul, 2007

3 commits