15 Oct, 2012

19 commits

  • Retrieve MEM and IRQ from resources rather than directly using the
    value by including machine header.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann
    Cc: Vinod Koul

    Shawn Guo
     
  • It changes the driver to use platform_device_id rather than cpu_is_xxx
    to determine the controller type, and updates the platform code
    accordingly.

    As the result, mach/hardware.h inclusion gets removed from the driver.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann
    Cc: Andrew Morton
    Cc: rtc-linux@googlegroups.com

    Shawn Guo
     
  • It changes the driver to use platform_device_id rather than cpu_is_xxx
    to determine the controller type, and updates the platform code
    accordingly.

    As the result, mach/hardware.h inclusion gets removed from the driver.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann
    Cc: Artem Bityutskiy
    Cc: linux-mtd@lists.infradead.org

    Shawn Guo
     
  • This is some amount of work left/forgot from device tree conversion.
    Instead of checking cpu_is_xxx to determine the controller type, the
    driver should use platform_device_id, which should match the device
    tree compatible string.

    The patch changes the driver to use platform_device_id rather than
    cpu_is_xxx to determine the controller type/version. It also updates
    the platform code and device tree source accordingly.

    As the result, mach/hardware.h inclusion gets removed from the driver.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann
    Cc: Wolfram Sang
    Cc: linux-i2c@vger.kernel.org

    Shawn Guo
     
  • The header ipu.h really belongs to dma subsystem rather than imx
    platform. Rename it to ipu-dma.h and put it into include/linux/dma/.

    Signed-off-by: Shawn Guo
    Acked-by: Guennadi Liakhovetski
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann
    Cc: Vinod Koul
    Cc: Florian Tobias Schandinat
    Cc: linux-media@vger.kernel.org
    Cc: linux-fbdev@vger.kernel.org

    Shawn Guo
     
  • The header mach/dma-mx1-mx2.h is used nowhere. Remove it.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • Rename mach-imx/include/mach/ulpi.h to mach-imx/ulpi.h, and update
    users to include ulpi.h rather than mach/ulpi.h.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • Rename mach-imx/include/mach/iram.h to mach-imx/iram.h, and update users
    to include iram.h rather than mach/iram.h.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • Rename mach-imx/include/mach/iim.h to mach-imx/iim.h, and update users
    to include iim.h rather than mach/iim.h.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • Rename mach-imx/include/mach/cpuidle.h to mach-imx/cpuidle.h, and
    update users to include cpuidle.h rather than mach/cpuidle.h.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • Rename mach-imx/include/mach/common.h to mach-imx/common.h and update
    all users to include common.h rather than mach/common.h.

    It also removes an unneeded inclusion to common.h in
    mach-imx/devices/devices.c.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • It's really unnecessary to have plat-mxc, and let's merge it into
    mach-imx. It's pretty much just a bunch of file renaming and
    Kconfig/Makefile merge.

    To make the change less invasive, we keep using Kconfig symbol
    CONFIG_ARCH_MXC for mach-imx sub-architecture.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • It moves platform device code from plat-mxc into mach-imx. Along with
    that, header devices-common.h gets moved from plat-mxc/include/mach/
    into mach-imx/devices/.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • There is no need for device-imx*.h to include .h. Remove them
    and fix one indirect inclusion in mach-mx31ads.c.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • The board files in mach-imx are the only users of iomux drivers and
    headers. Move them into mach-imx from plat-mxc.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • The headers that are only used by board files do not necessarily
    need to be in plat-mxc/include/mach. Move them to the same place
    as those board files.

    Signed-off-by: Shawn Guo
    Acked-by: Sascha Hauer
    Acked-by: Arnd Bergmann

    Shawn Guo
     
  • Pull MIPS update from Ralf Baechle:
    "Cleanups and fixes for breakage that occured earlier during this merge
    phase. Also a few patches that didn't make the first pull request.
    Of those is the Alchemy work that merges code for many of the SOCs and
    evaluation boards thus among other code shrinkage, reduces the number
    of MIPS defconfigs by 5."

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (22 commits)
    MIPS: SNI: Switch RM400 serial to SCCNXP driver
    MIPS: Remove unused empty_bad_pmd_table[] declaration.
    MIPS: MT: Remove kspd.
    MIPS: Malta: Fix section mismatch.
    MIPS: asm-offset.c: Delete unused irq_cpustat_t struct offsets.
    MIPS: Alchemy: Merge PB1100/1500 support into DB1000 code.
    MIPS: Alchemy: merge PB1550 support into DB1550 code
    MIPS: Alchemy: Single kernel for DB1200/1300/1550
    MIPS: Optimize TLB refill for RI/XI configurations.
    MIPS: proc: Cleanup printing of ASEs.
    MIPS: Hardwire detection of DSP ASE Rev 2 for systems, as required.
    MIPS: Add detection of DSP ASE Revision 2.
    MIPS: Optimize pgd_init and pmd_init
    MIPS: perf: Add perf functionality for BMIPS5000
    MIPS: perf: Split the Kconfig option CONFIG_MIPS_MT_SMP
    MIPS: perf: Remove unnecessary #ifdef
    MIPS: perf: Add cpu feature bit for PCI (performance counter interrupt)
    MIPS: perf: Change the "mips_perf_event" table unsupported indicator.
    MIPS: Align swapper_pg_dir to 64K for better TLB Refill code.
    vmlinux.lds.h: Allow architectures to add sections to the front of .bss
    ...

    Linus Torvalds
     
  • Pull module signing support from Rusty Russell:
    "module signing is the highlight, but it's an all-over David Howells frenzy..."

    Hmm "Magrathea: Glacier signing key". Somebody has been reading too much HHGTTG.

    * 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: (37 commits)
    X.509: Fix indefinite length element skip error handling
    X.509: Convert some printk calls to pr_devel
    asymmetric keys: fix printk format warning
    MODSIGN: Fix 32-bit overflow in X.509 certificate validity date checking
    MODSIGN: Make mrproper should remove generated files.
    MODSIGN: Use utf8 strings in signer's name in autogenerated X.509 certs
    MODSIGN: Use the same digest for the autogen key sig as for the module sig
    MODSIGN: Sign modules during the build process
    MODSIGN: Provide a script for generating a key ID from an X.509 cert
    MODSIGN: Implement module signature checking
    MODSIGN: Provide module signing public keys to the kernel
    MODSIGN: Automatically generate module signing keys if missing
    MODSIGN: Provide Kconfig options
    MODSIGN: Provide gitignore and make clean rules for extra files
    MODSIGN: Add FIPS policy
    module: signature checking hook
    X.509: Add a crypto key parser for binary (DER) X.509 certificates
    MPILIB: Provide a function to read raw data into an MPI
    X.509: Add an ASN.1 decoder
    X.509: Add simple ASN.1 grammar compiler
    ...

    Linus Torvalds
     
  • The hostprogs need access to the CONFIG_* symbols found in
    include/generated/autoconf.h. But commit abbf1590de22 ("UAPI: Partition
    the header include path sets and add uapi/ header directories") replaced
    $(LINUXINCLUDE) with $(USERINCLUDE) which doesn't contain the necessary
    include paths.

    This has the undesirable effect of breaking the EFI boot stub because
    the #ifdef CONFIG_EFI_STUB code in arch/x86/boot/tools/build.c is
    never compiled.

    It should also be noted that because $(USERINCLUDE) isn't exported by
    the top-level Makefile it's actually empty in arch/x86/boot/Makefile.

    Cc: H. Peter Anvin
    Cc: Ingo Molnar
    Acked-by: David Howells
    Signed-off-by: Matt Fleming
    Signed-off-by: Linus Torvalds

    Matt Fleming
     

14 Oct, 2012

4 commits

  • Pull ARM update from Russell King:
    "This is the final round of stuff for ARM, left until the end of the
    merge window to reduce the number of conflicts. This set contains the
    ARM part of David Howells UAPI changes, and a fix to the ordering of
    'select' statements in ARM Kconfig files (see the appropriate commit
    for why this happened - thanks to Andrew Morton for pointing out the
    problem.)

    I've left this as long as I dare for this window to avoid conflicts,
    and I regenerated the config patch yesterday, posting it to our
    mailing list for review and testing. I have several acks which
    include successful test reports for it.

    However, today I notice we've got new conflicts with previously unseen
    code... though that conflict should be trivial (it's my changes vs a
    one liner.)"

    * 'late-for-linus' of git://git.linaro.org/people/rmk/linux-arm:
    ARM: config: make sure that platforms are ordered by option string
    ARM: config: sort select statements alphanumerically
    UAPI: (Scripted) Disintegrate arch/arm/include/asm

    Fix up fairly conflict in arch/arm/Kconfig (the select re-organization
    vs recent addition of GENERIC_KERNEL_EXECVE)

    Linus Torvalds
     
  • Russell King
     
  • The large platform selection choice should be sorted by option string
    so it's easy to find the platform you're looking for. Fix the few
    options which are out of this order.

    Acked-by: Tony Lindgren
    Signed-off-by: Russell King

    Russell King
     
  • As suggested by Andrew Morton:

    This is a pet peeve of mine. Any time there's a long list of items
    (header file inclusions, kconfig entries, array initalisers, etc) and
    someone wants to add a new item, they *always* go and stick it at the
    end of the list.

    Guys, don't do this. Either put the new item into a randomly-chosen
    position or, probably better, alphanumerically sort the list.

    lets sort all our select statements alphanumerically. This commit was
    created by the following perl:

    while (<>) {
    while (/\\\s*$/) {
    $_ .= <>;
    }
    undef %selects if /^\s*config\s+/;
    if (/^\s+select\s+(\w+).*/) {
    if (defined($selects{$1})) {
    if ($selects{$1} eq $_) {
    print STDERR "Warning: removing duplicated $1 entry\n";
    } else {
    print STDERR "Error: $1 differently selected\n".
    "\tOld: $selects{$1}\n".
    "\tNew: $_\n";
    exit 1;
    }
    }
    $selects{$1} = $_;
    next;
    }
    if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or
    /^endif/ or /^endchoice/)) {
    foreach $k (sort (keys %selects)) {
    print "$selects{$k}";
    }
    undef %selects;
    }
    print;
    }
    if (%selects) {
    foreach $k (sort (keys %selects)) {
    print "$selects{$k}";
    }
    }

    It found two duplicates:

    Warning: removing duplicated S5P_SETUP_MIPIPHY entry
    Warning: removing duplicated HARDIRQS_SW_RESEND entry

    and they are identical duplicates, hence the shrinkage in the diffstat
    of two lines.

    We have four testers reporting success of this change (Tony, Stephen,
    Linus and Sekhar.)

    Acked-by: Jason Cooper
    Acked-by: Tony Lindgren
    Acked-by: Stephen Warren
    Acked-by: Linus Walleij
    Acked-by: Sekhar Nori
    Signed-off-by: Russell King

    Russell King
     

13 Oct, 2012

17 commits

  • UAPI Disintegration 2012-10-09

    * tag 'disintegrate-openrisc-20121009' of git://git.infradead.org/users/dhowells/linux-headers:
    UAPI: (Scripted) Disintegrate arch/openrisc/include/asm

    Jonas Bonn
     
  • Pull OpenRISC updates from Jonas Bonn:
    "Fixups for some corner cases, build issues, and some obvious bugs in
    IRQ handling. No major changes."

    * tag 'for-3.7' of git://openrisc.net/jonas/linux:
    openrisc: mask interrupts in irq_mask_ack function
    openrisc: fix typos in comments and warnings
    openrisc: PIC should act on domain-local irqs
    openrisc: Make cpu_relax() invoke barrier()
    audit: define AUDIT_ARCH_OPENRISC
    openrisc: delay: fix handling of counter overflow
    openrisc: delay: fix loops calculation for __const_udelay

    Linus Torvalds
     
  • …howells/linux-headers

    Pull UAPI disintegration for misc arches from David Howells:
    "UAPI disintegration for MN10300, FRV and AVR32 arches"

    * tag 'disintegrate-misc-arches-20121010' of git://git.infradead.org/users/dhowells/linux-headers:
    UAPI: (Scripted) Disintegrate arch/mn10300/include/asm
    UAPI: (Scripted) Disintegrate arch/frv/include/asm
    UAPI: (Scripted) Disintegrate arch/avr32/include/asm

    Linus Torvalds
     
  • Pull powerpc uapi disintegration from Benjamin Herrenschmidt.

    * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    UAPI: (Scripted) Disintegrate arch/powerpc/include/asm

    Linus Torvalds
     
  • Pull arm64 uapi disintegration from Catalin Marinas:
    "UAPI headers for arm64 together with some clean-up to make it
    possible:
    - Do not export the COMPAT_* definitions to user
    - Simplify the compat unistd32.h definitions and remove the
    __SYSCALL_COMPAT guard
    - Disintegrate the arch/arm64/include/asm/* headers"

    * tag 'arm64-uapi' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64:
    UAPI: (Scripted) Disintegrate arch/arm64/include/asm
    arm64: Do not export the compat-specific definitions to the user
    arm64: Do not include asm/unistd32.h in asm/unistd.h
    arm64: Remove unused definitions from asm/unistd32.h

    Linus Torvalds
     
  • Pull C6X UAPI disintegration from Mark Salter:

    - scripted UAPI disintegration by David Howells.

    * tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming:
    UAPI: (Scripted) Disintegrate arch/c6x/include/asm

    Linus Torvalds
     
  • Pull KGDB/KDB fixes and cleanups from Jason Wessel:
    "Cleanups
    - Clean up compile warnings in kgdboc.c and x86/kernel/kgdb.c
    - Add module event hooks for simplified debugging with gdb
    Fixes
    - Fix kdb to stop paging with 'q' on bta and dmesg
    - Fix for data that scrolls off the vga console due to line wrapping
    when using the kdb pager
    New
    - The debug core registers for kernel module events which allows a
    kernel aware gdb to automatically load symbols and break on entry
    to a kernel module
    - Allow kgdboc=kdb to setup kdb on the vga console"

    * tag 'for_linus-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb:
    tty/console: fix warnings in drivers/tty/serial/kgdboc.c
    kdb,vt_console: Fix missed data due to pager overruns
    kdb: Fix dmesg/bta scroll to quit with 'q'
    kgdboc: Accept either kbd or kdb to activate the vga + keyboard kdb shell
    kgdb,x86: fix warning about unused variable
    mips,kgdb: fix recursive page fault with CONFIG_KPROBES
    kgdb: Add module event hooks

    Linus Torvalds
     
  • Pull Sparc updates from David Miller:

    1) Updated syscall tracing fix from Al Viro.

    2) SUN4V error reporting was deficient in several areas.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
    sparc64: fix ptrace interaction with force_successful_syscall_return()
    sparc64: Fix deficiencies in sun4v error reporting.

    Linus Torvalds
     
  • Pull tile arch update from Chris Metcalf:
    "The bulk of this change is the tile uapi disintegration. There is
    also a one-line change in here to enable interrupts in
    do_work_pending() to avoid a WARN_ON in _local_bh_enable_ip()."

    * git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
    arch/tile: enable interrupts in do_work_pending()
    UAPI: (Scripted) Disintegrate arch/tile/include/asm
    UAPI: (Scripted) Disintegrate arch/tile/include/arch

    Linus Torvalds
     
  • Pull ia64 UAPI changes from Tony Luck:
    "ia64 pieces of David Howells great UAPI include file move"

    * tag 'please-pull-dhowells-uapi' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux:
    UAPI: (Scripted) Disintegrate arch/ia64/include/asm

    Linus Torvalds
     
  • Pull perf updates from Ingo Molnar:
    "This tree includes some late late perf items that missed the first
    round:

    tools:

    - Bash auto completion improvements, now we can auto complete the
    tools long options, tracepoint event names, etc, from Namhyung Kim.

    - Look up thread using tid instead of pid in 'perf sched'.

    - Move global variables into a perf_kvm struct, from David Ahern.

    - Hists refactorings, preparatory for improved 'diff' command, from
    Jiri Olsa.

    - Hists refactorings, preparatory for event group viewieng work, from
    Namhyung Kim.

    - Remove double negation on optional feature macro definitions, from
    Namhyung Kim.

    - Remove several cases of needless global variables, on most
    builtins.

    - misc fixes

    kernel:

    - sysfs support for IBS on AMD CPUs, from Robert Richter.

    - Support for an upcoming Intel CPU, the Xeon-Phi / Knights Corner
    HPC blade PMU, from Vince Weaver.

    - misc fixes"

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (46 commits)
    perf: Fix perf_cgroup_switch for sw-events
    perf: Clarify perf_cpu_context::active_pmu usage by renaming it to ::unique_pmu
    perf/AMD/IBS: Add sysfs support
    perf hists: Add more helpers for hist entry stat
    perf hists: Move he->stat.nr_events initialization to a template
    perf hists: Introduce struct he_stat
    perf diff: Removing the total_period argument from output code
    perf tool: Add hpp interface to enable/disable hpp column
    perf tools: Removing hists pair argument from output path
    perf hists: Separate overhead and baseline columns
    perf diff: Refactor diff displacement possition info
    perf hists: Add struct hists pointer to struct hist_entry
    perf tools: Complete tracepoint event names
    perf/x86: Add support for Intel Xeon-Phi Knights Corner PMU
    perf evlist: Remove some unused methods
    perf evlist: Introduce add_newtp method
    perf kvm: Move global variables into a perf_kvm struct
    perf tools: Convert to BACKTRACE_SUPPORT
    perf tools: Long option completion support for each subcommands
    perf tools: Complete long option names of perf command
    ...

    Linus Torvalds
     
  • Pull third pile of kernel_execve() patches from Al Viro:
    "The last bits of infrastructure for kernel_thread() et.al., with
    alpha/arm/x86 use of those. Plus sanitizing the asm glue and
    do_notify_resume() on alpha, fixing the "disabled irq while running
    task_work stuff" breakage there.

    At that point the rest of kernel_thread/kernel_execve/sys_execve work
    can be done independently for different architectures. The only
    pending bits that do depend on having all architectures converted are
    restrictred to fs/* and kernel/* - that'll obviously have to wait for
    the next cycle.

    I thought we'd have to wait for all of them done before we start
    eliminating the longjump-style insanity in kernel_execve(), but it
    turned out there's a very simple way to do that without flagday-style
    changes."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal:
    alpha: switch to saner kernel_execve() semantics
    arm: switch to saner kernel_execve() semantics
    x86, um: convert to saner kernel_execve() semantics
    infrastructure for saner ret_from_kernel_thread semantics
    make sure that kernel_thread() callbacks call do_exit() themselves
    make sure that we always have a return path from kernel_execve()
    ppc: eeh_event should just use kthread_run()
    don't bother with kernel_thread/kernel_execve for launching linuxrc
    alpha: get rid of switch_stack argument of do_work_pending()
    alpha: don't bother passing switch_stack separately from regs
    alpha: take SIGPENDING/NOTIFY_RESUME loop into signal.c
    alpha: simplify TIF_NEED_RESCHED handling

    Linus Torvalds
     
  • Pull third pile of VFS updates from Al Viro:
    "Stuff from Jeff Layton, mostly. Sanitizing interplay between audit
    and namei, removing a lot of insanity from audit_inode() mess and
    getting things ready for his ESTALE patchset."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    procfs: don't need a PATH_MAX allocation to hold a string representation of an int
    vfs: embed struct filename inside of names_cache allocation if possible
    audit: make audit_inode take struct filename
    vfs: make path_openat take a struct filename pointer
    vfs: turn do_path_lookup into wrapper around struct filename variant
    audit: allow audit code to satisfy getname requests from its names_list
    vfs: define struct filename and have getname() return it
    vfs: unexport getname and putname symbols
    acct: constify the name arg to acct_on
    vfs: allocate page instead of names_cache buffer in mount_block_root
    audit: overhaul __audit_inode_child to accomodate retrying
    audit: optimize audit_compare_dname_path
    audit: make audit_compare_dname_path use parent_len helper
    audit: remove dirlen argument to audit_compare_dname_path
    audit: set the name_len in audit_inode for parent lookups
    audit: add a new "type" field to audit_names struct
    audit: reverse arguments to audit_inode_child
    audit: no need to walk list in audit_inode if name is NULL
    audit: pass in dentry to audit_copy_inode wherever possible
    audit: remove unnecessary NULL ptr checks from do_path_lookup

    Linus Torvalds
     
  • getname() is intended to copy pathname strings from userspace into a
    kernel buffer. The result is just a string in kernel space. It would
    however be quite helpful to be able to attach some ancillary info to
    the string.

    For instance, we could attach some audit-related info to reduce the
    amount of audit-related processing needed. When auditing is enabled,
    we could also call getname() on the string more than once and not
    need to recopy it from userspace.

    This patchset converts the getname()/putname() interfaces to return
    a struct instead of a string. For now, the struct just tracks the
    string in kernel space and the original userland pointer for it.

    Later, we'll add other information to the struct as it becomes
    convenient.

    Signed-off-by: Jeff Layton
    Signed-off-by: Al Viro

    Jeff Layton
     
  • All the called functions expect interrupts to be enabled, and
    now one of them has started to warn about it, so make it correct.

    Signed-off-by: Chris Metcalf

    Chris Metcalf
     
  • UAPI Disintegration 2012-10-09

    Chris Metcalf
     
  • Signed-off-by: Al Viro

    Al Viro