1. 12 1月, 2007 14 次提交
  2. 11 1月, 2007 25 次提交
    • L
      Merge branch 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6 · 0404f87f
      Linus Torvalds 提交于
      * 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6:
        [PATCH] x86-64: Fix warnings in ia32_aout.c
        [PATCH] i386: Convert some functions to __init to avoid MODPOST warnings
        [PATCH] i386: Fix memory hotplug related MODPOST generated warning
        [PATCH] x86-64: tighten up printks
        [PATCH] x86-64: - Ignore long SMI interrupts in clock calibration
        [PATCH] x86-64: pci quirks MODPOST warning fix
        [PATCH] x86-64: Modpost whitelist reference to more symbols (pattern 3)
        [PATCH] x86-64: modpost add more symbols to whitelist pattern2
        [PATCH] i386: make apic probe function non-init
        [PATCH] i386: cpu hotplug/smpboot misc MODPOST warning fixes
        [PATCH] x86-64: Use different constraint for gcc < 4.1 in bitops.h
        [PATCH] x86-64: Make noirqdebug_setup function non init to fix modpost warning
        [PATCH] i386: Update defconfig
        [PATCH] x86-64: Update defconfig
      0404f87f
    • A
      [PATCH] x86-64: Fix warnings in ia32_aout.c · 74019699
      Andi Kleen 提交于
      Fix
      
      linux/arch/x86_64/ia32/ia32_aout.c: In function ‘create_aout_tables’:
      linux/arch/x86_64/ia32/ia32_aout.c:244: warning: cast from pointer to integer of different size
      linux/arch/x86_64/ia32/ia32_aout.c:253: warning: cast from pointer to integer of different size
      
      with gcc 4.3
      Signed-off-by: NAndi Kleen <ak@suse.de>
      74019699
    • V
      [PATCH] i386: Convert some functions to __init to avoid MODPOST warnings · 88d20328
      Vivek Goyal 提交于
      o Some functions which should have been in init sections as they are called
        only once. Put them in init sections. Otherwise MODPOST generates warning
        as these functions are placed in .text and they end up accessing something
        in init sections.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init
      from .text between 'do_pre_smp_initcalls' (at offset 0xc01000d1) and
      'run_init_process'
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      88d20328
    • V
      [PATCH] i386: Fix memory hotplug related MODPOST generated warning · 0e0be25d
      Vivek Goyal 提交于
      o Fix modpost generated warning.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text: from .text
      between 'add_one_highpage_hotplug' (at offset 0xc0113d3f) and 'online_page'
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      0e0be25d
    • M
      [PATCH] x86-64: tighten up printks · b92cc559
      Muli Ben-Yehuda 提交于
      Signed-off-by: NMuli Ben-Yehuda <muli@il.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      b92cc559
    • J
      [PATCH] x86-64: - Ignore long SMI interrupts in clock calibration · ed5316d4
      Jack Steiner 提交于
      Ensure that no SMI interrupts occur between the read of the HPET & TSC
      in the clock calibration loop.
      
      I noticed that a 2.66GHz system incorrectly detected the processor
      clock speed about 1/7 of the time:
      
      	time.c: Detected 2660.005 MHz processor.	(most of the time)
      	time.c: Detected 2988.203 MHz processor.	(sometime)
      
      The problem is caused by an SMI interrupt occuring in hpet_calibrate_tsc()
      between the read of the HPET & TSC. Prior to switching the BIOS into
      ACPI mode, it appears that every 27msec an SMI interrupt occurs. The
      SMI interrupt takes 4.8 msec to process.
      
      Note: On my test system, TICK_MIN had to be >380. I picked 5000
      to minimize risk of having a value that is too small for other
      platforms.
      Signed-off-by: NJack Steiner <steiner@sgi.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      
       arch/x86_64/kernel/time.c |   25 +++++++++++++++++++++----
       1 file changed, 21 insertions(+), 4 deletions(-)
      ed5316d4
    • V
      [PATCH] x86-64: pci quirks MODPOST warning fix · 9d24a81e
      Vivek Goyal 提交于
      o MODPOST generates warnings for i386 if kernel is compiled with
        CONFIG_RELOCATABLE=y
      
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'asus_hides_smbus_lpc_ich6' (at offset 0xc0217d58) and 'quirk_cardbus_legacy'
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'asus_hides_smbus_lpc' (at offset 0xc0217fd9) and 'pci_match_id'
      
      o Two quirk functions which are non __init, are accessing data which is
        of type __init.
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      9d24a81e
    • V
      [PATCH] x86-64: Modpost whitelist reference to more symbols (pattern 3) · ee6a8545
      Vivek Goyal 提交于
      o MODPOST generates warning on i386 if kernel is compiled with
        CONFIG_RELOCATABLE=y.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text:__init_begin from .text between 'free_initmem' (at offset 0xc0114fd3) and 'do_test_wp_bit'
      WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'core_kernel_text' (at offset 0xc012aeae) and 'kernel_text_address'
      WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'core_kernel_text' (at offset 0xc012aeb7) and 'kernel_text_address'
      WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0xc0135776) and 'reset_iter'
      WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'get_symbol_pos' (at offset 0xc013577d) and 'reset_iter'
      
      o These symbols (__init_begin, _sinittext, _einittext) belong to init
        section and generally represent a section boundary. These are special
        symbols in the sense that their size is zero and no memory is allocated
        for them in init section. Their addr and value are same. So even if
        we free the init section, it is ok to reference them.
      
      o Whitelist access to such select symbols in MODPOST.
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      ee6a8545
    • V
      [PATCH] x86-64: modpost add more symbols to whitelist pattern2 · 118c0ace
      Vivek Goyal 提交于
      o MODPOST generates warning for i386 if compiled with CONFIG_RELOCATABLE=y
        and serial console support is enabled.
      
      o Serial console setup function, serial8250_console_setup(), is a non __init
        function and it calls functions which are of type __init().
        (uart_parse_options() and uart_set_options()). Assuming, setup will
        be called during init time, changing serial8250_console_setup() to __init.
      
      o Adding one more pattern to modpost whitelist. Console drivers might
        have *_console structures containing references to setup functions which
        can be of __init type. Don't generate warnings for those.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'serial8250_console' (at offset 0xc05a33d8) and 'serial8250_reg'
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      118c0ace
    • V
      [PATCH] i386: make apic probe function non-init · e96763d6
      Vivek Goyal 提交于
      o struct genapic contains pointer to probe() function which is of type
        __init. Hence MODPOST generates warning if kernel is compiled with
        CONFIG_RELOCATABLE=y for i386.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'apic_summit' (at offset 0xc058b504) and 'apic_bigsmp'
      WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'apic_bigsmp' (at offset 0xc058b5a4) and 'cpu.4471'
      WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'apic_es7000' (at offset 0xc058b644) and 'apic_default'
      WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'apic_default' (at offset 0xc058b6e4) and 'interrupt'
      
      o One of the possible options is to put special case check in MODPOST to
        not emit warnings for this case but I think it is not a very good option
        in terms of maintenance.
      
      o Another option is to make probe() function non __init. Anyway this function
        is really small so not freeing this memory after init is not a big deal.
        Secondly, from a programming perspective, probably genapic should not
        provide pointers to functions which have been freed as genapic is non
        __init and is used even after initialization is complete.
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      e96763d6
    • V
      [PATCH] i386: cpu hotplug/smpboot misc MODPOST warning fixes · 4a5d107a
      Vivek Goyal 提交于
      o Misc smpboot/cpu hotplug path cleanups. I did those to supress the
        warnings generated by MODPOST. These warnings are visible only
        if CONFIG_RELOCATABLE=y.
      
      o CONFIG_RELOCATABLE compiles the kernel with --emit-relocs option. This
        option retains relocation information in vmlinux file and MODPOST
        is quick to spit out "Section mismatch" warnings.
      
      o This patch fixes some of those warnings. Many of the functions in
        smpboot case are __devinit type and they in turn accesses text/data which
        if of type __cpuinit. Now if CONFIG_HOTPLUG=y and CONFIG_HOTPLUG_CPU=n
        then we end up in cases where a function in .text segment is calling
        another function in .init.text segment and MODPOST emits warning.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text:identify_cpu from .text between 'smp_store_cpu_info' (at offset 0xc011020d) and 'do_boot_cpu'
      WARNING: vmlinux - Section mismatch: reference to .init.text:init_gdt from .text between 'do_boot_cpu' (at offset 0xc01102ca) and '__cpu_up'
      WARNING: vmlinux - Section mismatch: reference to .init.text:print_cpu_info from .text between 'do_boot_cpu' (at offset 0xc01105d0) and '__cpu_up'
      
      o It also fixes the issues where CONFIG_HOTPLUG_CPU=y and start_secondary()
        is calling smp_callin() which in-turn calls synchronize_tsc_ap() which is
        of type __init. This should have meant broken CPU hotplug.
      
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'start_secondary' (at offset 0xc011603f) and 'initialize_secondary'
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'MP_processor_info' (at offset 0xc0116a4f) and 'mp_register_lapic'
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'MP_processor_info' (at offset 0xc0116a4f) and 'mp_register_lapic'
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      4a5d107a
    • A
      [PATCH] x86-64: Use different constraint for gcc < 4.1 in bitops.h · 24420760
      Andi Kleen 提交于
      +m is really correct for a RMW instruction, but some older gccs
      error out. I finally gave in and ifdefed it.
      
      This fixes compilation errors with some compiler version.
      Signed-off-by: NAndi Kleen <ak@suse.de>
      24420760
    • V
      [PATCH] x86-64: Make noirqdebug_setup function non init to fix modpost warning · 343cde51
      Vivek Goyal 提交于
      o noirqdebug_setup() is __init but it is being called by
        quirk_intel_irqbalance() which if of type __devinit. If CONFIG_HOTPLUG=y,
        quirk_intel_irqbalance() is put into text section and it is wrong to
        call a function in __init section.
      
      o MODPOST flags this on i386 if CONFIG_RELOCATABLE=y
      
      WARNING: vmlinux - Section mismatch: reference to .init.text:noirqdebug_setup from .text between 'quirk_intel_irqbalance' (at offset 0xc010969e) and 'i8237A_suspend'
      
      o Make noirqdebug_setup() non-init.
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      343cde51
    • A
      [PATCH] i386: Update defconfig · 7c8809ae
      Andi Kleen 提交于
      Signed-off-by: NAndi Kleen <ak@suse.de>
      7c8809ae
    • A
      [PATCH] x86-64: Update defconfig · 03c3cc61
      Andi Kleen 提交于
      Signed-off-by: NAndi Kleen <ak@suse.de>
      03c3cc61
    • L
      2d9819e3
    • L
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · 40e38d30
      Linus Torvalds 提交于
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
            [MIPS] Alchemy:  Fix PCI-memory access
        [MIPS] Fix N32 SysV IPC routines
        [MIPS] PNX8550: Fix system timer initialization
      40e38d30
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc · c70a1ce8
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
        MMC: at91 mmc linkage updates
        ARM: OMAP: fix MMC workqueue changes
      c70a1ce8
    • A
      [MIPS] Alchemy: Fix PCI-memory access · 8a93c496
      Alexander Bigga 提交于
          
          The problem was introduced in 2.6.18.3 with the casting of some
          36bit-defines (PCI memory) in au1000.h to resource_size_t which may be
          u32 or u64 depending on the experimental CONFIG_RESOURCES_64BIT.
          
          With unset CONFIG_RESOURCES_64BIT, the pci-memory cannot be accessed
          because the ioremap in arch/mips/au1000/common/pci.c already used the
          truncated addresses.
          With set CONFIG_RESOURCES_64BIT, things get even worse, because PCI-scan
          aborts, due to resource conflict: request_resource() in arch/mips/pci/pci.c
          fails because the maximum iomem-address is 0xffffffff (32bit) but the
          pci-memory-start-address is 0x440000000 (36bit).
          
          To get pci working again, I propose the following patch:
          
          1. remove the resource_size_t-casting from au1000.h again
          2. make the casting in arch/mips/au1000/common/pci.c (it's allowed and
          necessary here. The 36bit-handling will be done in __fixup_bigphys_addr).
          
          With this patch pci works again like in 2.6.18.2, the gcc-compile warnings
          in pci.c are gone and it doesn't depend on CONFIG_EXPERIMENTAL.
      Signed-off-by: NAlexander Bigga <ab@mycable.de>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
      ---
      8a93c496
    • A
      [MIPS] Fix N32 SysV IPC routines · e16d8df0
      Atsushi Nemoto 提交于
      Add wrappers for N32 msg{snd,rcv}.  compat_sys_msg{snd,rcv} can not not be
      used as system call entries as is.  This fix is based on Kaz Kylheku's
      patch.
      
      Also change a type of last argument of sysn32_semctl to match its true
      size.
      Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e16d8df0
    • A
      6b4cd275
    • S
      ieee1394: sbp2: fix probing of some DVD-ROM/RWs · 1a74bc68
      Stefan Richter 提交于
      Since commit 98e238cd in Linux 2.6.19,
      "ieee1394: sbp2: don't prefer MODE SENSE 10", some FireWire DVD-ROMs and
      DVD-RWs were mistaken as CD-ROM because sr_mod now sent MODE SENSE 6.
      The MMC command set includes only MODE SENSE 10.
      http://bugzilla.kernel.org/show_bug.cgi?id=7800
      
      This fix lets sbp2 switch scsi_device.use_10_for_rw on for MMC LUs.
      This should rather be done in the command set driver sr_mod, not in the
      sbp2 transport driver, and an according patch will follow for a next
      Linux release.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      1a74bc68
    • R
      [PATCH] fix linux banner format string · 3eb3c740
      Roman Zippel 提交于
      Revert previous attempts at messing with the linux banner string and
      simply use a separate format string for proc.
      Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
      Acked-by: NOlaf Hering <olaf@aepfle.de>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      Cc: Andrey Borzenkov <arvidjaar@mail.ru>
      Cc: Andrew Morton <akpm@osdl.org>
      Cc: Andy Whitcroft <apw@shadowen.org>
      Cc: Herbert Poetzl <herbert@13thfloor.at>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3eb3c740
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 · 8edf51a5
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
        [IPV4] devinet: inetdev_init out label moved after RCU assignment
        [INET]: style updates for the inet_sock->is_icsk assignment fix
        [SCTP]: Fix err_hdr assignment in sctp_init_cause.
        [NETFILTER]: tcp conntrack: fix IP_CT_TCP_FLAG_CLOSE_INIT value
        [NETFILTER]: nf_nat: fix hanging connections when loading the NAT module
        [NETFILTER]: arp_tables: fix userspace compilation
        [NETFILTER]: nf_conntrack_ipv6: fix crash when handling fragments
      8edf51a5
    • M
      [PATCH] MAINTAINERS: maintainer for sata_promise · b3277dfa
      Mikael Pettersson 提交于
      This patch adds myself as maintainer of the sata_promise
      libata driver.
      Signed-off-by: NMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b3277dfa
  3. 10 1月, 2007 1 次提交
    • L
      Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband · f3a2c3ee
      Linus Torvalds 提交于
      * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband:
        IB/mthca: Don't execute QUERY_QP firmware command for QP in RESET state
        IB/ehca: Use proper GFP_ flags for get_zeroed_page()
        IB/mthca: Fix PRM compliance problem in atomic-send completions
        RDMA/ucma: Don't report events with invalid user context
        RDMA/ucma: Fix struct ucma_event leak when backlog is full
        RDMA/iwcm: iWARP connection timeouts shouldn't be reported as rejects
        IB/iser: Return error code when PDUs may not be sent
        IB/mthca: Fix off-by-one in FMR handling on memfree
      f3a2c3ee