1. 03 Jan, 2009 13 commits
  2. 02 Jan, 2009 27 commits
    • Linus Torvalds's avatar
      Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6 · 8e3bda08
      Linus Torvalds authored
      * 'linux-next' of git://git.infradead.org/ubifs-2.6: (33 commits)
        UBIFS: add more useful debugging prints
        UBIFS: print debugging messages properly
        UBIFS: fix numerous spelling mistakes
        UBIFS: allow mounting when short of space
        UBIFS: fix writing uncompressed files
        UBIFS: fix checkpatch.pl warnings
        UBIFS: fix sparse warnings
        UBIFS: simplify make_free_space
        UBIFS: do not lie about used blocks
        UBIFS: restore budg_uncommitted_idx
        UBIFS: always commit on unmount
        UBIFS: use ubi_sync
        UBIFS: always commit in sync_fs
        UBIFS: fix file-system synchronization
        UBIFS: fix constants initialization
        UBIFS: avoid unnecessary calculations
        UBIFS: re-calculate min_idx_size after the commit
        UBIFS: use nicer 64-bit math
        UBIFS: fix available blocks count
        UBIFS: various comment improvements and fixes
        ...
      8e3bda08
    • Linus Torvalds's avatar
      Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6 · 574c3fda
      Linus Torvalds authored
      * 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6:
        UBI: fix checkpatch.pl warnings
        UBI: simplify PEB protection code
        UBI: prepare for protection tree improvements
        UBI: return -ENOMEM upon failing vmalloc
        UBI: document UBI ioctls
        UBI: handle write errors in WL worker
        UBI: fix error path
        UBI: some code re-structuring
        UBI: fix deadlock
        UBI: fix warnings when debugging is enabled
      574c3fda
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next · 56635f7e
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next:
        kbuild: ignore a few files in headers_check
        kbuild: add checks for include of linux/types in userspace headers
        kbuild: drop debugging leftover in tags.sh
        kbuild: document environment variables
        kbuild: make *config usage docs
        kbuild: disable sparse warning "returning void-valued expression"
        kbuild: in headers_install autoconvert asm/inline/volatile to __xxx__
        kbuild: check for leaked CONFIG_ symbols to userspace
        headers_check.pl: disallow extern's
        kconfig: improve error messages for bad source statements
        kconfig: struct property commented
        kconfig: add comments to symbol flags
        kconfig: explain symbol value defaults
        m68k: fix recursive dependency in Kconfig
      56635f7e
    • Linus Torvalds's avatar
      Merge branch 'x86-fixes-for-linus' of... · a8e78234
      Linus Torvalds authored
      Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (27 commits)
        x86: mpparse.c fix style problems
        x86: nmi.c fix style problems
        x86: ldt.c fix style problems
        x86: cpuid.c fix style problems
        x86, UV: remove erroneous BAU initialization
        x86: fix incorrect __read_mostly on _boot_cpu_pda
        x86: convert permanent_kmaps_init() from macro to inline
        x86: early_printk - use sizeof instead of hardcoded number
        x86: xsave.c: restore_user_xstate should be static
        x86: uv_bau.h: fix dubious bitfield
        x86: apic.c: xapic_icr_read and x2apic_icr_read should be static
        x86: bios_uv.c: uv_systab should be static
        x86: genx2apic_phys.c: x2apic_send_IPI_self and init_x2apic_ldr should be static
        x86: amd_iommu.c: prealloc_protection_domains should be static
        x86: amd_iommu_init.c: iommu_enable and iommu_enable_event_logging should be static
        x86, pci: move arch/x86/pci/pci.h to arch/x86/include/asm/pci_x86.h
        x86_64: pci-gart_64.c iommu_fullflush should be static
        x86: efi.c declare add_efi_memmap before they get used
        x86: io_apic.c io_apic_sync should be static
        x86: apic.c declare pic_mode before they get used
        ...
      a8e78234
    • Ingo Molnar's avatar
    • Ingo Molnar's avatar
      Merge branch 'linus' into x86/cleanups · 923a789b
      Ingo Molnar authored
      Conflicts:
      	arch/x86/kernel/reboot.c
      923a789b
    • Ingo Molnar's avatar
      Disallow gcc versions 3.{0,1} · 6680598b
      Ingo Molnar authored
      GCC 3.0 and 3.1 are too old to build a working kernel.
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      [ This check got dropped as obsolete when I simplified the gcc header
        inclusion mess in f153b821, but Willy
        Tarreau reports actually having those old versions still..  -Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6680598b
    • Linus Torvalds's avatar
      Merge branch 'cpus4096-for-linus-2' of... · b840d796
      Linus Torvalds authored
      Merge branch 'cpus4096-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'cpus4096-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (66 commits)
        x86: export vector_used_by_percpu_irq
        x86: use logical apicid in x2apic_cluster's x2apic_cpu_mask_to_apicid_and()
        sched: nominate preferred wakeup cpu, fix
        x86: fix lguest used_vectors breakage, -v2
        x86: fix warning in arch/x86/kernel/io_apic.c
        sched: fix warning in kernel/sched.c
        sched: move test_sd_parent() to an SMP section of sched.h
        sched: add SD_BALANCE_NEWIDLE at MC and CPU level for sched_mc>0
        sched: activate active load balancing in new idle cpus
        sched: bias task wakeups to preferred semi-idle packages
        sched: nominate preferred wakeup cpu
        sched: favour lower logical cpu number for sched_mc balance
        sched: framework for sched_mc/smt_power_savings=N
        sched: convert BALANCE_FOR_xx_POWER to inline functions
        x86: use possible_cpus=NUM to extend the possible cpus allowed
        x86: fix cpu_mask_to_apicid_and to include cpu_online_mask
        x86: update io_apic.c to the new cpumask code
        x86: Introduce topology_core_cpumask()/topology_thread_cpumask()
        x86: xen: use smp_call_function_many()
        x86: use work_on_cpu in x86/kernel/cpu/mcheck/mce_amd_64.c
        ...
      
      Fixed up trivial conflict in kernel/time/tick-sched.c manually
      b840d796
    • Sam Ravnborg's avatar
      kbuild: ignore a few files in headers_check · b67ff8ce
      Sam Ravnborg authored
      The new check for asm/types.h and linux/types.h had
      a few false positives.
      
      o We cannot let linux/types.h include linux/types.h
      o The int-ll64.h and int-ll64.h define the types
        and are included by linux/types.h
      
      Handle this by hardcoding the filenames in the headers_check script.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      b67ff8ce
    • Sam Ravnborg's avatar
      kbuild: add checks for include of linux/types in userspace headers · 483b4121
      Sam Ravnborg authored
      If we see __[us](8|16|32|64) then we must include <linux/types.h>
      If wee see include of <asm/types.h> then we recommend <linux/types.h>
      
      Original script from Mike but modified by me.
      
      Cc: Mike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      483b4121
    • Sam Ravnborg's avatar
      kbuild: drop debugging leftover in tags.sh · 521b0c77
      Sam Ravnborg authored
      Noticed by Jike.
      Reported-by: default avatar"Jike Song" <albcamus@gmail.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      521b0c77
    • Sam Ravnborg's avatar
      kbuild: document environment variables · acc08b51
      Sam Ravnborg authored
      Add kbuild.txt to Documentation/kbuild
      More stuff can be added later - at least we have
      som of the varous environment variables documented now.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      acc08b51
    • Randy Dunlap's avatar
      kbuild: make *config usage docs · 2af238e4
      Randy Dunlap authored
      Create a kconfig user assistance guide, with a few tips and hints
      about using menuconfig, xconfig, and gconfig.
      
      Mostly contains user interface, environment variables, and search topics,
      along with mini.config/custom.config usage.
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      2af238e4
    • Hannes Eder's avatar
      kbuild: disable sparse warning "returning void-valued expression" · 80a7d1d9
      Hannes Eder authored
      The sparse warning -Wreturn-void ("returning void-valued expression")
      is off by default, but it is enabled with -Wall, so add
      -Wno-return-void to CHECKFLAGS to disable it.
      Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      80a7d1d9
    • Mike Frysinger's avatar
      kbuild: in headers_install autoconvert asm/inline/volatile to __xxx__ · 4307184f
      Mike Frysinger authored
      Headers in userspace should be using the __xxx__ form of the asm, inline,
      and volatile keywords.  Since people like to revert these things without
      realizing what's going on, have the headers install step autoconvert these
      keywords.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      4307184f
    • Sam Ravnborg's avatar
      7e557a25
    • Mike Frysinger's avatar
      headers_check.pl: disallow extern's · 46b8af50
      Mike Frysinger authored
      Since prototypes with "extern" refer to kernel functions, they make no
      sense in userspace, so reject them automatically.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      [sam: made it into a warning]
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      46b8af50
    • Sam Ravnborg's avatar
      kconfig: improve error messages for bad source statements · 7826005e
      Sam Ravnborg authored
      We now say where we detect the second source of a file,
      and where we detect a recursively source of the same file.
      This makes it easier to fix such errors.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      7826005e
    • Sam Ravnborg's avatar
      kconfig: struct property commented · cf82607a
      Sam Ravnborg authored
      No functional changes
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      cf82607a
    • Sam Ravnborg's avatar
      kconfig: add comments to symbol flags · 5b2cf365
      Sam Ravnborg authored
      No functional changes - only comments.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      5b2cf365
    • Sam Ravnborg's avatar
      kconfig: explain symbol value defaults · eaa2a874
      Sam Ravnborg authored
      Added a few comments - no functional change.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      eaa2a874
    • Sam Ravnborg's avatar
      m68k: fix recursive dependency in Kconfig · cfb2a494
      Sam Ravnborg authored
      We had a recursive dependency between MMU_MOTOROLA and MMU_SUN3
      Fix it by dropping the unused dependencies on MMU_MOTOROLA.
      
      MMU_MOTOROLA is set to y only using select so any dependencies
      are anyway ignored.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      cfb2a494
    • Linus Torvalds's avatar
      Merge branch 'kvm-updates/2.6.29' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm · 597b0d21
      Linus Torvalds authored
      * 'kvm-updates/2.6.29' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm: (140 commits)
        KVM: MMU: handle large host sptes on invlpg/resync
        KVM: Add locking to virtual i8259 interrupt controller
        KVM: MMU: Don't treat a global pte as such if cr4.pge is cleared
        MAINTAINERS: Maintainership changes for kvm/ia64
        KVM: ia64: Fix kvm_arch_vcpu_ioctl_[gs]et_regs()
        KVM: x86: Rework user space NMI injection as KVM_CAP_USER_NMI
        KVM: VMX: Fix pending NMI-vs.-IRQ race for user space irqchip
        KVM: fix handling of ACK from shared guest IRQ
        KVM: MMU: check for present pdptr shadow page in walk_shadow
        KVM: Consolidate userspace memory capability reporting into common code
        KVM: Advertise the bug in memory region destruction as fixed
        KVM: use cpumask_var_t for cpus_hardware_enabled
        KVM: use modern cpumask primitives, no cpumask_t on stack
        KVM: Extract core of kvm_flush_remote_tlbs/kvm_reload_remote_mmus
        KVM: set owner of cpu and vm file operations
        anon_inodes: use fops->owner for module refcount
        x86: KVM guest: kvm_get_tsc_khz: return khz, not lpj
        KVM: MMU: prepopulate the shadow on invlpg
        KVM: MMU: skip global pgtables on sync due to cr3 switch
        KVM: MMU: collapse remote TLB flushes on root sync
        ...
      597b0d21
    • Michael Krufky's avatar
      V4L/DVB (10170): tuner-simple: prevent possible OOPS caused by divide by zero error · 6b55009e
      Michael Krufky authored
      A user reported the following OOPS with his pcHDTV HD5500 card, which
      uses a cx88 PCI bridge with a LG-TDVS-H06xF frontend module, made up
      of a TUA6034 tuner, TDA988x IF demod, and LG DT3303 ATSC/QAM demod.
      
      Somehow, tuner-core gets loaded before the digital driver configures
      the tuner, and tuner-core somehow incorrectly sets the tuner type to
      LG NTSC (TAPE series) instead of LG TDVS-H06xF.  This tuner type does
      not have the tuning stepsize defined, so an OOPS occurs during the
      digital tune function.
      
      We still dont know how the type gets set incorrectly in the first place.
      The user has a tainted kernel with a binary nividia module, which COULD
      have something to do with this, but it's hard to say for sure.
      
      Nevertheless, to avoid this division by zero, we should check that
      stepsize is defined.  If stepsize is not defined, print an error and
      bail out on the tune request.
      
      cx8800 0000:05:01.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
      cx88[0]: subsystem: 7063:5500, board: pcHDTV HD5500 HDTV [card=47,autodetected], frontend(s): 1
      cx88[0]: TV tuner type 47, Radio tuner type -1
      tuner' 2-0043: chip found @ 0x86 (cx88[0])
      tda9887 2-0043: creating new instance
      tda9887 2-0043: tda988[5/6/7] found
      tuner' 2-0061: chip found @ 0xc2 (cx88[0])
      tuner-simple 2-0061: creating new instance
      tuner-simple 2-0061: type set to 47 (LG NTSC (TAPE series))
      cx88[0]/0: found at 0000:05:01.0, rev: 5, irq: 19, latency: 32, mmio: 0xea000000
      cx88[0]/0: registered device video1 [v4l2]
      cx88[0]/0: registered device vbi1
      cx88_audio 0000:05:01.1: PCI INT A -> GSI 19 (level, low) -> IRQ 19
      cx88[0]/1: CX88x/0: ALSA support for cx2388x boards
      cx88[0]/2: cx2388x 8802 Driver Manager
      cx88-mpeg driver manager 0000:05:01.2: PCI INT A -> GSI 19 (level, low) -> IRQ 19
      cx88[0]/2: found at 0000:05:01.2, rev: 5, irq: 19, latency: 32, mmio: 0xec000000
      cx8802_probe() allocating 1 frontend(s)
      cx88/2: cx2388x dvb driver version 0.0.6 loaded
      cx88/2: registering cx8802 driver, type: dvb access: shared
      cx88[0]/2: subsystem: 7063:5500, board: pcHDTV HD5500 HDTV [card=47]
      cx88[0]/2: cx2388x based DVB/ATSC card
      tuner-simple 2-0061: attaching existing instance
      tuner-simple 2-0061: type set to 64 (LG NTSC (TAPE series))
      tda9887 2-0043: attaching existing instance
      DVB: registering new adapter (cx88[0])
      DVB: registering adapter 0 frontend 0 (LG Electronics LGDT3303 VSB/QAM Frontend)...
      [snip]
      stepsize=0
      divide error: 0000 [1] SMP
      CPU 1
      Modules linked in: nls_utf8 fuse sco bridge stp bnep l2cap bluetooth sunrpc nf_conntrack_netbios_ns nf_conntrack_ftp ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 cpufreq_ondemand acpi_cpufreq freq_table xfs lgdt330x dm_multipath cx88_dvb cx88_vp3054_i2c uinput tda9887 tda8290 snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul tuner_simple tuner_types tuner msp3400 cx8800 cx88_alsa cx8802 snd_emu10k1 cx88xx snd_rawmidi snd_ac97_codec ir_common ac97_bus saa7115 snd_seq_dummy snd_seq_oss snd_seq_midi_event videobuf_dvb snd_seq dvb_core snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_device videobuf_dma_sg ppdev parport_pc snd_timer videobuf_core snd_page_alloc btcx_risc emu10k1_gp ivtv i2c_algo_bit cx2341x snd_util_mem snd_hwdep nvidia(P) gameport v4l2_common i2c_i801 snd soundcore parport videodev v4l1_compat v4l2_compat_ioctl32 tveeprom i2c_core pcspkr iTCO_wdt iTCO_vendor_support sky2 joydev floppy shpchp ata_generic pata_acpi pata_jmicron [last unloaded: microcode]
      Pid: 3553, comm: kdvb-ad-0-fe-0 Tainted: P          2.6.27.9-159.fc10.x86_64 #1
      RIP: 0010:[<ffffffffa09bc37a>]  [<ffffffffa09bc37a>] simple_dvb_calc_regs+0xab/0x281 [tuner_simple]
      RSP: 0018:ffff8800605dfd30  EFLAGS: 00010246
      RAX: 000000000365c040 RBX: ffff8800605dfdb0 RCX: ffff88007acb8c10
      RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000246
      RBP: ffff8800605dfda0 R08: ffff8800605dfba0 R09: 0000000000000082
      R10: 00000010e73c9df1 R11: 0000000100000000 R12: ffff88007ac29c00
      R13: ffff88007ac29c00 R14: ffff88007acbb408 R15: ffffffffa09b6fb0
      FS:  0000000000000000(0000) GS:ffff88007f804880(0000) knlGS:0000000000000000
      CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
      CR2: 00000000004e8f40 CR3: 000000007114e000 CR4: 00000000000006e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      Process kdvb-ad-0-fe-0 (pid: 3553, threadinfo ffff8800605de000, task ffff88006fca0000)
      Stack:  ffff8800605dfd40 00000000ffffffa1 ffff88007c055860 0000000000000001
       ffff8800605dfda0 ffff8800605dfda0 ffff88007acb8c10 ffffffffa004e48c
       8e01880000000390 ffff88007acb8c10 ffff88007ac29c00 0000000000000000
      Call Trace:
       [<ffffffffa004e48c>] ? i2c_transfer+0x80/0x8b [i2c_core]
       [<ffffffffa09bc768>] simple_dvb_set_params+0x3e/0x9b [tuner_simple]
       [<ffffffffa0a0335a>] lgdt330x_set_parameters+0x188/0x1b9 [lgdt330x]
       [<ffffffffa08c9116>] dvb_frontend_swzigzag_autotune+0x18e/0x1b5 [dvb_core]
       [<ffffffffa08c9f6a>] dvb_frontend_swzigzag+0x1bc/0x21e [dvb_core]
       [<ffffffffa08ca4f4>] dvb_frontend_thread+0x528/0x62b [dvb_core]
       [<ffffffff810551e1>] ? autoremove_wake_function+0x0/0x38
       [<ffffffffa08c9fcc>] ? dvb_frontend_thread+0x0/0x62b [dvb_core]
       [<ffffffff81054e9b>] kthread+0x49/0x76
       [<ffffffff810116e9>] child_rip+0xa/0x11
       [<ffffffff81010a07>] ? restore_args+0x0/0x30
       [<ffffffff81054e52>] ? kthread+0x0/0x76
       [<ffffffff810116df>] ? child_rip+0x0/0x11
      
      Code: 48 8b 05 2a 4e 00 00 41 8b 77 1c 31 d2 0f b7 40 0a 89 f1 03 45 d0 d1 e9 03 0d 23 4e 00 00 69 c0 24 f4 00 00 8d 04 01 48 8b 4d c0 <f7> f6 8a 55 d6 88 53 04 41 89 c4 c1 e8 08 88 43 01 8a 45 d7 44
      RIP  [<ffffffffa09bc37a>] simple_dvb_calc_regs+0xab/0x281 [tuner_simple]
       RSP <ffff8800605dfd30>
      Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      6b55009e
    • Michael Krufky's avatar
      V4L/DVB (10168): sms1xxx: fix inverted gpio for lna control on tiger r2 · f4c82548
      Michael Krufky authored
      The GPIO logic for LNA control on the Tiger r2 devices was inverted.
      This patch corrects the problem.
      Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      f4c82548
    • Michael Krufky's avatar
      V4L/DVB (10167): sms1xxx: add support for inverted gpio · dd72f31b
      Michael Krufky authored
      negative gpio values signify inverted polarity
      Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      dd72f31b
    • Mauro Carvalho Chehab's avatar