13 Jan, 2012

1 commit

  • For historical reasons, we allow module_param(bool) to take an int (or
    an unsigned int). That's going away.

    A few drivers really want an int: they set it to -1 and a parameter
    will set it to 0 or 1. This sucks: reading them from sysfs will give
    'Y' for both -1 and 1, but if we change it to an int, then the users
    might be broken (if they did "param" instead of "param=1").

    Use a new 'bint' parser for them.

    (ntfs has a different problem: it needs an int for debug_msgs because
    it's also exposed via sysctl.)

    Cc: Steve Glendinning
    Cc: Jean Delvare
    Cc: Guenter Roeck
    Cc: Hoang-Nam Nguyen
    Cc: Christoph Raisch
    Cc: Roland Dreier
    Cc: Sean Hefty
    Cc: Hal Rosenstock
    Cc: linux390@de.ibm.com
    Cc: Anton Altaparmakov
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Cc: lm-sensors@lm-sensors.org
    Cc: linux-rdma@vger.kernel.org
    Cc: linux-s390@vger.kernel.org
    Cc: linux-ntfs-dev@lists.sourceforge.net
    Cc: alsa-devel@alsa-project.org
    Acked-by: Takashi Iwai (For the sound part)
    Acked-by: Guenter Roeck (For the hwmon driver)
    Signed-off-by: Rusty Russell

    Rusty Russell
     

19 Dec, 2011

1 commit

  • module_param(bool) used to counter-intuitively take an int. In
    fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
    trick.

    It's time to remove the int/unsigned int option. For this version
    it'll simply give a warning, but it'll break next kernel version.

    Signed-off-by: Rusty Russell
    Signed-off-by: Takashi Iwai

    Rusty Russell
     

10 Nov, 2011

2 commits

  • Detection code improved by PCI SSID usage. VM optimization
    now enabled only for known devcices (skip host devices forwarded
    to VM by VT-d or same kind of technology).
    For debug/troubleshooting purposes optimization can be
    forced (on/off) by module parameter: "inside_vm" (boolean).

    Known devices (PCI SSID):
    1af4:1100: Reserved for KVM devices. Note this is not yet
    implemented for KVM's ICH/AC'97 emulation.
    1ab8:xxxx: Parallels ICH/AC'97 emulated sound.

    [ fixed a minor coding-style issue by tiwai]

    Signed-off-by: Konstantin Ozerkov
    Signed-off-by: Denis V. Lunev
    Signed-off-by: Takashi Iwai

    Konstantin Ozerkov
     
  • This is refactoring patch: preparation for add improved detection code.
    Now all detection code placed in one place.

    Signed-off-by: Konstantin Ozerkov
    Signed-off-by: Denis V. Lunev
    Signed-off-by: Takashi Iwai

    Konstantin Ozerkov
     

08 Nov, 2011

1 commit

  • The recently merged 228cf79376f1 looks a bit hackish while it is not.
    The change was quite simple. In a virtualized environment the
    patch unhacks old kludge introduced for old broken AC97 hardware.

    This patch adds proper comment to "unkludge" code.

    Signed-off-by: Denis V. Lunev
    Signed-off-by: Konstantin Ozerkov
    Signed-off-by: Takashi Iwai

    Denis V. Lunev
     

07 Nov, 2011

1 commit

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     

01 Nov, 2011

2 commits


31 Oct, 2011

1 commit

  • v3: detection code is x86 and KVM specific, hide it under ifdef
    v2: add detection for virtual environments (KVM and Parallels)

    This patch is intended to improve performance in virtualized environments
    like Parallels Desktop or KVM/VirtualBox/QEMU (virtual ICH/AC97 audio).

    I/O access is very time-expensive operation in virtual world: VCPU
    can be rescheduled and in the worst case we get more than 10ms delay on
    each I/O access.

    In the virtual environment loop exit rule
    (old_civ == current_civ && old_picb == current_picb) is never satisfied,
    because old_picb is never the same as current_picb due to delay inspired
    by reading current_civ. As a result loop ended by timeout and we get 10x
    more I/O operations.

    Experimental data from Prallels Desktop 7, RHEL6 guest (I/O ops per
    second):

    Original code:
    In Port Counter Callback
    f014 41550 fffff00000179d00 ac97_bm_read_civ+0x000
    f018 41387 fffff0000017a580 ac97_bm_read_picb+0x000

    With patch:
    In Port Counter Callback
    f014 4090 fffff00000179d00 ac97_bm_read_civ+0x000
    f018 1964 fffff0000017a580 ac97_bm_read_picb+0x000

    Signed-off-by: Konstantin Ozerkov
    Signed-off-by: Denis V. Lunev
    Signed-off-by: Takashi Iwai

    Konstantin Ozerkov
     

15 Jul, 2011

1 commit


10 Jun, 2011

2 commits

  • The name argument of request_irq() appears in /proc/interrupts, and
    it's quite ugly when the name entry contains a space or special letters.
    In general, it's simpler and more readable when the module name appears
    there, so let's replace all entries with KBUILD_MODNAME.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The convention for pci_driver.name entry in kernel drivers seem to be
    the module name or equivalent ones. But, so far, almost all PCI sound
    drivers use more verbose name like "ABC Xyz (12)", and these are fairly
    confusing when appearing as a file name.

    This patch converts the all pci_driver.name entries in sound/pci/* to
    use KBUILD_MODNAME for more unified appearance.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

31 Mar, 2011

1 commit


22 Nov, 2010

1 commit

  • BugLink: https://launchpad.net/bugs/669279

    The original reporter states: "The Master mixer does not change the
    volume from the headphone output (which is affected by the headphone
    mixer). Instead it only seems to control the on-board speaker volume.
    This confuses PulseAudio greatly as the Master channel is merged into
    the volume mix."

    Fix this symptom by applying the hp_only quirk for the reporter's SSID.
    The fix is applicable to all stable kernels.

    Reported-and-tested-by: Ben Gamari
    Cc: [2.6.32+]
    Signed-off-by: Daniel T Chen
    Signed-off-by: Takashi Iwai

    Daniel T Chen
     

25 Oct, 2010

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
    Update broken web addresses in arch directory.
    Update broken web addresses in the kernel.
    Revert "drivers/usb: Remove unnecessary return's from void functions" for musb gadget
    Revert "Fix typo: configuation => configuration" partially
    ida: document IDA_BITMAP_LONGS calculation
    ext2: fix a typo on comment in ext2/inode.c
    drivers/scsi: Remove unnecessary casts of private_data
    drivers/s390: Remove unnecessary casts of private_data
    net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data
    drivers/infiniband: Remove unnecessary casts of private_data
    drivers/gpu/drm: Remove unnecessary casts of private_data
    kernel/pm_qos_params.c: Remove unnecessary casts of private_data
    fs/ecryptfs: Remove unnecessary casts of private_data
    fs/seq_file.c: Remove unnecessary casts of private_data
    arm: uengine.c: remove C99 comments
    arm: scoop.c: remove C99 comments
    Fix typo configue => configure in comments
    Fix typo: configuation => configuration
    Fix typo interrest[ing|ed] => interest[ing|ed]
    Fix various typos of valid in comments
    ...

    Fix up trivial conflicts in:
    drivers/char/ipmi/ipmi_si_intf.c
    drivers/usb/gadget/rndis.c
    net/irda/irnet/irnet_ppp.c

    Linus Torvalds
     

18 Oct, 2010

1 commit

  • The patch below updates broken web addresses in the kernel

    Signed-off-by: Justin P. Mattock
    Cc: Maciej W. Rozycki
    Cc: Geert Uytterhoeven
    Cc: Finn Thain
    Cc: Randy Dunlap
    Cc: Matt Turner
    Cc: Dimitry Torokhov
    Cc: Mike Frysinger
    Acked-by: Ben Pfaff
    Acked-by: Hans J. Koch
    Reviewed-by: Finn Thain
    Signed-off-by: Jiri Kosina

    Justin P. Mattock
     

19 Aug, 2010

1 commit


09 Feb, 2010

1 commit


25 Nov, 2009

1 commit


05 Nov, 2009

1 commit


02 Oct, 2009

1 commit


01 Oct, 2009

1 commit


25 Jun, 2009

1 commit


15 Jun, 2009

1 commit

  • The PCM pointer callback sometimes returns invalid positions and this
    screws up the hw_ptr updater in PCM core. Especially since now the
    jiffies check is optional with xrun_debug, the invalid position is
    handled as is, and causes serious sound skips, etc.

    This patch simplifies the position-fix strategy in intel8x0 to be more
    robust:
    - just falls back to the last position if bogus position is detected
    - another sanity check for the backward move of the position due to
    a race of register update and the base-index update

    This patch is applicable also for 2.6.30.

    Tested-by: David Miller
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

22 Apr, 2009

1 commit


21 Apr, 2009

1 commit


16 Apr, 2009

2 commits


15 Apr, 2009

2 commits


14 Apr, 2009

2 commits


24 Mar, 2009

2 commits


05 Feb, 2009

1 commit


01 Feb, 2009

1 commit


28 Jan, 2009

2 commits


12 Jan, 2009

1 commit


29 Oct, 2008

1 commit