13 Jun, 2014

1 commit

  • Pull networking updates from David Miller:

    1) Seccomp BPF filters can now be JIT'd, from Alexei Starovoitov.

    2) Multiqueue support in xen-netback and xen-netfront, from Andrew J
    Benniston.

    3) Allow tweaking of aggregation settings in cdc_ncm driver, from Bjørn
    Mork.

    4) BPF now has a "random" opcode, from Chema Gonzalez.

    5) Add more BPF documentation and improve test framework, from Daniel
    Borkmann.

    6) Support TCP fastopen over ipv6, from Daniel Lee.

    7) Add software TSO helper functions and use them to support software
    TSO in mvneta and mv643xx_eth drivers. From Ezequiel Garcia.

    8) Support software TSO in fec driver too, from Nimrod Andy.

    9) Add Broadcom SYSTEMPORT driver, from Florian Fainelli.

    10) Handle broadcasts more gracefully over macvlan when there are large
    numbers of interfaces configured, from Herbert Xu.

    11) Allow more control over fwmark used for non-socket based responses,
    from Lorenzo Colitti.

    12) Do TCP congestion window limiting based upon measurements, from Neal
    Cardwell.

    13) Support busy polling in SCTP, from Neal Horman.

    14) Allow RSS key to be configured via ethtool, from Venkata Duvvuru.

    15) Bridge promisc mode handling improvements from Vlad Yasevich.

    16) Don't use inetpeer entries to implement ID generation any more, it
    performs poorly, from Eric Dumazet.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1522 commits)
    rtnetlink: fix userspace API breakage for iproute2 < v3.9.0
    tcp: fixing TLP's FIN recovery
    net: fec: Add software TSO support
    net: fec: Add Scatter/gather support
    net: fec: Increase buffer descriptor entry number
    net: fec: Factorize feature setting
    net: fec: Enable IP header hardware checksum
    net: fec: Factorize the .xmit transmit function
    bridge: fix compile error when compiling without IPv6 support
    bridge: fix smatch warning / potential null pointer dereference
    via-rhine: fix full-duplex with autoneg disable
    bnx2x: Enlarge the dorq threshold for VFs
    bnx2x: Check for UNDI in uncommon branch
    bnx2x: Fix 1G-baseT link
    bnx2x: Fix link for KR with swapped polarity lane
    sctp: Fix sk_ack_backlog wrap-around problem
    net/core: Add VF link state control policy
    net/fsl: xgmac_mdio is dependent on OF_MDIO
    net/fsl: Make xgmac_mdio read error message useful
    net_sched: drr: warn when qdisc is not work conserving
    ...

    Linus Torvalds
     

06 Jun, 2014

2 commits

  • Pull Microblaze updates from Michal Simek:
    - cleanup PCI and DMA handling
    - use generic device.h
    - some cleanups

    * tag 'microblaze-3.16-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: Fix typo in head.S s/substract/subtract/
    microblaze: remove check for CONFIG_XILINX_CONSOLE
    microblaze: Use generic device.h
    microblaze: Do not setup empty unmap_sg function
    microblaze: Remove device_to_mask
    microblaze: Clean device dma_ops structure
    microblaze: Cleanup PCI_DRAM_OFFSET handling
    microblaze: Do not setup pci_dma_ops
    microblaze: Return default dma operations
    microblaze: Enable SERIAL_OF_PLATFORM

    Linus Torvalds
     
  • Pull ARM updates from Russell King:

    - Major clean-up of the L2 cache support code. The existing mess was
    becoming rather unmaintainable through all the additions that others
    have done over time. This turns it into a much nicer structure, and
    implements a few performance improvements as well.

    - Clean up some of the CP15 control register tweaks for alignment
    support, moving some code and data into alignment.c

    - DMA properties for ARM, from Santosh and reviewed by DT people. This
    adds DT properties to specify bus translations we can't discover
    automatically, and to indicate whether devices are coherent.

    - Hibernation support for ARM

    - Make ftrace work with read-only text in modules

    - add suspend support for PJ4B CPUs

    - rework interrupt masking for undefined instruction handling, which
    allows us to enable interrupts earlier in the handling of these
    exceptions.

    - support for big endian page tables

    - fix stacktrace support to exclude stacktrace functions from the
    trace, and add save_stack_trace_regs() implementation so that kprobes
    can record stack traces.

    - Add support for the Cortex-A17 CPU.

    - Remove last vestiges of ARM710 support.

    - Removal of ARM "meminfo" structure, finally converting us solely to
    memblock to handle the early memory initialisation.

    * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (142 commits)
    ARM: ensure C page table setup code follows assembly code (part II)
    ARM: ensure C page table setup code follows assembly code
    ARM: consolidate last remaining open-coded alignment trap enable
    ARM: remove global cr_no_alignment
    ARM: remove CPU_CP15 conditional from alignment.c
    ARM: remove unused adjust_cr() function
    ARM: move "noalign" command line option to alignment.c
    ARM: provide common method to clear bits in CPU control register
    ARM: 8025/1: Get rid of meminfo
    ARM: 8060/1: mm: allow sub-architectures to override PCI I/O memory type
    ARM: 8066/1: correction for ARM patch 8031/2
    ARM: 8049/1: ftrace/add save_stack_trace_regs() implementation
    ARM: 8065/1: remove last use of CONFIG_CPU_ARM710
    ARM: 8062/1: Modify ldrt fixup handler to re-execute the userspace instruction
    ARM: 8047/1: rwsem: use asm-generic rwsem implementation
    ARM: l2c: trial at enabling some Cortex-A9 optimisations
    ARM: l2c: add warnings for stuff modifying aux_ctrl register values
    ARM: l2c: print a warning with L2C-310 caches if the cache size is modified
    ARM: l2c: remove old .set_debug method
    ARM: l2c: kill L2X0_AUX_CTRL_MASK before anyone else makes use of this
    ...

    Linus Torvalds
     

05 Jun, 2014

1 commit

  • …/robh/linux into next

    Pull DeviceTree updates from Rob Herring:
    - Another round of clean-up of FDT related code in architecture code.
    This removes knowledge of internal FDT details from most
    architectures except powerpc.
    - Conversion of kernel's custom FDT parsing code to use libfdt.
    - DT based initialization for generic serial earlycon. The
    introduction of generic serial earlycon support went in through the
    tty tree.
    - Improve the platform device naming for DT probed devices to ensure
    unique naming and use parent names instead of a global index.
    - Fix a race condition in of_update_property.
    - Unify the various linker section OF match tables and fix several
    function prototype errors.
    - Update platform_get_irq_byname to work in deferred probe cases.
    - 2 binding doc updates

    * tag 'devicetree-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (58 commits)
    of: handle NULL node in next_child iterators
    of/irq: provide more wrappers for !CONFIG_OF
    devicetree: bindings: Document micrel vendor prefix
    dt: bindings: dwc2: fix required value for the phy-names property
    of_pci_irq: kill useless variable in of_irq_parse_pci()
    of/irq: do irq resolution in platform_get_irq_byname()
    of: Add a testcase for of_find_node_by_path()
    of: Make of_find_node_by_path() handle /aliases
    of: Create unlocked version of for_each_child_of_node()
    lib: add glibc style strchrnul() variant
    of: Handle memory@0 node on PPC32 only
    pci/of: Remove dead code
    of: fix race between search and remove in of_update_property()
    of: Use NULL for pointers
    of: Stop naming platform_device using dcr address
    of: Ensure unique names without sacrificing determinism
    tty/serial: pl011: add DT based earlycon support
    of/fdt: add FDT serial scanning for earlycon
    of/fdt: add FDT address translation support
    serial: earlycon: add DT support
    ...

    Linus Torvalds
     

04 Jun, 2014

3 commits

  • Pull trivial tree changes from Jiri Kosina:
    "Usual pile of patches from trivial tree that make the world go round"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits)
    staging: go7007: remove reference to CONFIG_KMOD
    aic7xxx: Remove obsolete preprocessor define
    of: dma: doc fixes
    doc: fix incorrect formula to calculate CommitLimit value
    doc: Note need of bc in the kernel build from 3.10 onwards
    mm: Fix printk typo in dmapool.c
    modpost: Fix comment typo "Modules.symvers"
    Kconfig.debug: Grammar s/addition/additional/
    wimax: Spelling s/than/that/, wording s/destinatary/recipient/
    aic7xxx: Spelling s/termnation/termination/
    arm64: mm: Remove superfluous "the" in comment
    of: Spelling s/anonymouns/anonymous/
    dma: imx-sdma: Spelling s/determnine/determine/
    ath10k: Improve grammar in comments
    ath6kl: Spelling s/determnine/determine/
    of: Improve grammar for of_alias_get_id() documentation
    drm/exynos: Spelling s/contro/control/
    radio-bcm2048.c: fix wrong overflow check
    doc: printk-formats: do not mention casts for u64/s64
    doc: spelling error changes
    ...

    Linus Torvalds
     
  • Add an early check for the node argument in __of_get_next_child and
    of_get_next_available_child() to avoid dereferencing a NULL node pointer
    a few lines after.

    CC: Daniel Mack
    Signed-off-by: Florian Fainelli
    Signed-off-by: Grant Likely

    Florian Fainelli
     
  • pdev_archdata dma_mask is completely unused.
    Use generic device.h

    Signed-off-by: Michal Simek

    Michal Simek
     

03 Jun, 2014

3 commits

  • Pull ARM SoC cleanups from Olof Johansson:
    "Cleanups for 3.16. Among these are:

    - a bunch of misc cleanups for Broadcom platforms, mostly
    housekeeping
    - enabling Common Clock Framework on the older s3c24xx Samsung
    chipsets
    - cleanup of the Versatile Express system controller code, moving it
    to syscon
    - power management cleanups for OMAP platforms

    plus a handful of other cleanups across the place"

    * tag 'cleanup-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (87 commits)
    ARM: kconfig: allow PCI support to be selected with ARCH_MULTIPLATFORM
    clk: samsung: fix build error
    ARM: vexpress: refine dependencies for new code
    clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata
    cpufreq: exynos: Fix the compile error
    ARM: S3C24XX: move debug-macro.S into the common space
    ARM: S3C24XX: use generic DEBUG_UART_PHY/_VIRT in debug macro
    ARM: S3C24XX: trim down debug uart handling
    ARM: compressed/head.S: remove s3c24xx special case
    ARM: EXYNOS: Remove unnecessary inclusion of cpu.h
    ARM: EXYNOS: Migrate Exynos specific macros from plat to mach
    ARM: EXYNOS: Remove exynos_subsys registration
    ARM: EXYNOS: Remove duplicate lines in Makefile
    ARM: EXYNOS: use v7_exit_coherency_flush macro for cache disabling
    ARM: OMAP4: PRCM: remove references to cm-regbits-44xx.h from PRCM core files
    ARM: OMAP3/4: PRM: add support of late_init call to prm_ll_ops
    ARM: OMAP3/OMAP4: PRM: add prm_features flags and add IO wakeup under it
    ARM: OMAP3/4: PRM: provide io chain reconfig function through irq setup
    ARM: OMAP2+: PRM: remove unnecessary cpu_is_XXX calls from prm_init / exit
    ARM: OMAP2+: PRCM: cleanup some header includes
    ...

    Linus Torvalds
     
  • Make of_mdiobus_link_phydev externally available.
    This fixes CONFIG_OF_MDIO=m.

    Signed-off-by: Daniel Mack
    Reported-by: Stephen Rothwell
    Fixes: 86f6cf41272 ("net: of_mdio: add of_mdiobus_link_phydev()")
    Signed-off-by: David S. Miller

    Daniel Mack
     
  • Use int rather than u32 to fix the following warning:

    drivers/of/of_mdio.c:147 of_mdiobus_register() warn: unsigned 'addr' is
    never less than zero.

    Signed-off-by: Daniel Mack
    Fixes: 8f8382888cba ("net: of_mdio: factor out code to parse a phy's 'reg' property")
    Signed-off-by: David S. Miller

    Daniel Mack
     

30 May, 2014

3 commits


29 May, 2014

1 commit


27 May, 2014

1 commit


26 May, 2014

1 commit

  • Commit de906af1 (net: phy: make of_set_phy_supported work with genphy driver)
    removed the last user of variable 'max_speed' in function
    of_mdiobus_register_phy(), leading to compile warning "unused variable
    ‘max_speed’ [-Wunused-variable]". Thus remove it.

    Signed-off-by: Christian Engelmayer
    Acked-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Christian Engelmayer
     

24 May, 2014

1 commit

  • Conflicts:
    drivers/net/bonding/bond_alb.c
    drivers/net/ethernet/altera/altera_msgdma.c
    drivers/net/ethernet/altera/altera_sgdma.c
    net/ipv6/xfrm6_output.c

    Several cases of overlapping changes.

    The xfrm6_output.c has a bug fix which overlaps the renaming
    of skb->local_df to skb->ignore_df.

    In the Altera TSE driver cases, the register access cleanups
    in net-next overlapped with bug fixes done in net.

    Similarly a bug fix to send ALB packets in the bonding driver using
    the right source address overlaps with cleanups in net-next.

    Signed-off-by: David S. Miller

    David S. Miller
     

23 May, 2014

13 commits

  • …el/git/ssantosh/linux-keystone into devel-stable

    DT support for 'dma-ranges'and 'dma-coherent' properties with ARM updates

    - The 'dma-ranges' helps to take care of few DMAable system memory
    restrictions by use of dma_pfn_offset which is maintained per
    device. Arch code then uses it for dma address translations for such
    cases. We update the dma_pfn_offset accordingly during DT the device
    creation process.
    - The 'dma-coherent' property is used to setup arch's coherent dma_ops.

    Russell King
     
  • The commit 9ec36cafe43bf835f8f29273597a5b0cbc8267ef
    "of/irq: do irq resolution in platform_get_irq" from Rob Herring -
    moves resolving of the interrupt resources in platform_get_irq().
    But this solution isn't complete because platform_get_irq_byname()
    need to be modified the same way.

    Hence, fix it by adding interrupt resolution code at the
    platform_get_irq_byname() function too.

    Cc: Russell King
    Cc: Rob Herring
    Cc: Tony Lindgren
    Cc: Grant Likely
    Cc: Thierry Reding

    Signed-off-by: Grygorii Strashko
    Signed-off-by: Grant Likely

    Grygorii Strashko
     
  • Add a testcase for the find_node_by_path() function to make sure it
    handles all the valid scenarios.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • Make of_find_node_by_path() handle aliases as prefixes. To make this
    work the name search is refactored to search by path component instead
    of by full string. This should be a more efficient search, and it makes
    it possible to start a search at a subnode of a tree.

    Signed-off-by: David Daney
    Signed-off-by: Pantelis Antoniou
    [grant.likely: Rework to not require allocating at runtime]
    Acked-by: Rob Herring
    Signed-off-by: Grant Likely

    Grant Likely
     
  • When iterating over nodes, sometimes it needs to be done when the DT
    lock is already held. This patch makes an unlocked version of the
    for_each_child_of_node() macro.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • In order to deal with an firmware bug on a specific ppc32 platform
    (longtrail), early_init_dt_scan_memory() looks for a node called
    memory@0 on all platforms. Restrict this quirk to ppc32 kernels only.

    Signed-off-by: Leif Lindholm
    Cc: linuxppc-dev@lists.ozlabs.org
    Cc: Grant Likely
    Cc: Mark Rutland
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org

    Leif Lindholm
     
  • Commit 98d9f30c820d509145757e6ecbc36013aa02f7bc
    "pci/of: Match PCI devices to OF nodes dynamically" introduced a lot of code
    derived from the PPC PCI code, including some likes which were redundant.

    Remove these lines.

    Reviewed-by: William Towle
    Signed-off-by: Ian Molton
    Signed-off-by: Grant Likely

    Ian Molton
     
  • The of_update_property() is intented to update a property in a node
    and if the property does not exist, will add it.

    The second search of the property is possibly won't be found, that
    maybe removed by other thread just before the second search begain.

    Using the __of_find_property() and __of_add_property() instead and
    move them into lock operations.

    Signed-off-by: Xiubo Li
    [grant.likely: conflict with another change in same function]
    Signed-off-by: Grant Likely

    Xiubo Li
     
  • Commit 4485681939b9 (of/fdt: Clean up casting in unflattening path)
    modified unflatten_dt_node() to take a void * for the mem parameter
    instead of an unsigned long. One of the call sites wasn't updated.

    Signed-off-by: Thierry Reding
    Signed-off-by: Grant Likely

    Conflicts:
    drivers/of/fdt.c

    Thierry Reding
     
  • There is now a way to ensure all platform devices get a unique name when
    populated from the device tree, and the DCR_NATIVE code path is broken
    anyway. PowerPC Cell (PS3) is the only platform that actually uses this
    path. Most likely nobody will notice if it is killed. Remove the code
    and associated ugly #ifdef.

    The user-visible impact of this patch is that any DCR device on Cell
    will get a new name in the /sys/devices hierarchy.

    Signed-off-by: Grant Likely
    Cc: Rob Herring
    Cc: Benjamin Herrenschmidt

    Grant Likely
     
  • The way the driver core is implemented, every device using the same bus
    type is required to have a unique name because a symlink to each device
    is created in the appropriate /sys/bus/*/devices directory, and two
    identical names causes a collision.

    The current code handles the requirement by using an globally
    incremented counter that is appended to the device name. It works, but
    it means any change to device registration will change the assigned
    numbers. Instead, if we build up the name by using information from the
    parent nodes, then it can be guaranteed to be unique without adding a
    random number to the end of it.

    Signed-off-by: Grant Likely
    Cc: Ezequiel Garcia
    Cc: Rob Herring

    Grant Likely
     
  • of_set_phy_supported allows overwiting hardware capabilities of
    a phy with values from the devicetree. of_set_phy_supported is
    called right after phy_device_register in the assumption that
    phy_probe is called from phy_device_register and the features
    of the phy are already initialized. For the genphy driver this
    is not true, here phy_probe is called later during phy_connect
    time. phy_probe will then overwrite all settings done from
    of_set_phy_supported
    Fix this by moving of_set_phy_supported to the core phy code
    and calling it from phy_probe.

    Signed-off-by: Sascha Hauer
    Signed-off-by: David S. Miller

    Sascha Hauer
     
  • All in-tree drivers have been converted to use the new pair of
    functions: of_is_fixed_phy_link() plus of_phy_register_fixed_link(), we
    can now safely remove of_phy_connect_fixed_link.

    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     

21 May, 2014

3 commits

  • This adds FDT parsing of {linux,}stdout-path to setup an early serial
    console. Enabling of the early console is triggered with "earlycon"
    (with no options) on the kernel command line.

    Platforms must either have fixmap permanent mapping support,
    have a functioning ioremap when early params are parsed, or explicitly
    call early_init_dt_scan_chosen_serial from architecture code.

    Signed-off-by: Rob Herring
    Acked-by: Grant Likely

    Rob Herring
     
  • Copy u-boot's FDT address translation code from common/fdt_support. This
    code was originally based on the kernel's unflattened DT address parsing
    code.

    This commit can be reverted once relicensing of this code to GPLv2/BSD
    is done and it is added to libfdt.

    Signed-off-by: Rob Herring
    Acked-by: Grant Likely

    Rob Herring
     
  • All the parameters for RESERVEDMEM_OF_DECLARE function callbacks are
    members of struct reserved_mem, so just pass the struct ptr to callback
    functions so the function callback is more in line with other OF match
    table callbacks.

    Acked-by: Marek Szyprowski
    Acked-by: Grant Likely
    Signed-off-by: Rob Herring

    Rob Herring
     

17 May, 2014

1 commit

  • Some Ethernet MACs have a "fixed link", and are not connected to a
    normal MDIO-managed PHY device. For those situations, a Device Tree
    binding allows to describe a "fixed link" using a special PHY node.

    This patch adds:

    * A documentation for the fixed PHY Device Tree binding.

    * An of_phy_is_fixed_link() function that an Ethernet driver can call
    on its PHY phandle to find out whether it's a fixed link PHY or
    not. It should typically be used to know if
    of_phy_register_fixed_link() should be called.

    * An of_phy_register_fixed_link() function that instantiates the
    fixed PHY into the PHY subsystem, so that when the driver calls
    of_phy_connect(), the PHY device associated to the OF node will be
    found.

    These two additional functions also support the old fixed-link Device
    Tree binding used on PowerPC platforms, so that ultimately, the
    network device drivers for those platforms could be converted to use
    of_phy_is_fixed_link() and of_phy_register_fixed_link() instead of
    of_phy_connect_fixed_link(), while keeping compatibility with their
    respective Device Tree bindings.

    Signed-off-by: Thomas Petazzoni
    Reviewed-by: Florian Fainelli
    Tested-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Thomas Petazzoni
     

16 May, 2014

1 commit

  • In "Device Tree powered" systems, platform devices are usually massively
    populated with of_platform_populate() call, executed at some level of
    initcalls, either by generic architecture or by platform-specific code.

    There are situations though where certain devices must be created (and
    bound with drivers) before all the others. This presents a challenge,
    as devices created explicitly would be created again by
    of_platform_populate().

    This patch tries to solve that issue in a generic way, adding a
    "populated" flag for a DT node description. Subsequent
    of_platform_populate() will skip such nodes (and its children) in
    a similar way to the non-available ones.

    This patch also adds of_platform_depopulate() as an operation
    complementary to the _populate() one. It removes a platform or an amba
    device populated from the Device Tree, together with its all children
    (leaving, however, devices without associated of_node untouched)
    clearing the "populated" flag on the way.

    Signed-off-by: Pawel Moll
    Reviewed-by: Rob Herring
    Acked-by: Grant Likely

    Pawel Moll
     

14 May, 2014

5 commits

  • Commit 75b57ecf9d1d1e17d099ab13b8f48e6e038676be ('of: Make device
    nodes kobjects so they show up in sysfs') has turned Device Tree nodes
    in kobjects and added a sysfs based representation for Device Tree
    nodes. Since the sysfs logic is only available after the execution of
    a core_initcall(), the patch took precautions in of_add_property() and
    of_remove_property() to not do any sysfs related manipulation early in
    the boot process.

    However, it forgot to do the same for of_update_property(), which if
    used early in the boot process (before core_initcalls have been
    called), tries to call sysfs_remove_bin_file(), and crashes:

    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 0 at /home/thomas/projets/linux-2.6/fs/kernfs/dir.c:1216 kernfs_remove_by_name_ns+0x80/0x88()
    kernfs: can not remove '(null)', no directory
    Modules linked in:
    CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.0-rc1-00127-g1d7e7b2-dirty #423
    [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [] (show_stack) from [] (dump_stack+0x84/0x94)
    [] (dump_stack) from [] (warn_slowpath_common+0x6c/0x88)
    [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40)
    [] (warn_slowpath_fmt) from [] (kernfs_remove_by_name_ns+0x80/0x88)
    [] (kernfs_remove_by_name_ns) from [] (of_update_property+0xc0/0xf0)
    [] (of_update_property) from [] (mvebu_timer_and_clk_init+0xfc/0x194)
    [] (mvebu_timer_and_clk_init) from [] (start_kernel+0x218/0x350)
    [] (start_kernel) from [] (0x8070)
    ---[ end trace 3406ff24bd97382e ]---
    Unable to handle kernel NULL pointer dereference at virtual address 0000003c
    pgd = c0004000
    [0000003c] *pgd=00000000
    Internal error: Oops: 5 [#1] SMP ARM
    Modules linked in:
    CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.15.0-rc1-00127-g1d7e7b2-dirty #423
    task: c10ad4d8 ti: c10a2000 task.ti: c10a2000
    PC is at kernfs_find_ns+0x8/0xf0
    LR is at kernfs_find_and_get_ns+0x30/0x48
    pc : [] lr : [] psr: 600001d3
    sp : c10a3f34 ip : 00000073 fp : 00000000
    r10: 00000000 r9 : cfffc240 r8 : cfdf2980
    r7 : cf812c00 r6 : 00000000 r5 : 00000000 r4 : c10b45e0
    r3 : c10ad4d8 r2 : 00000000 r1 : cf812c00 r0 : 00000000
    Flags: nZCv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel
    Control: 10c53c7d Table: 0000404a DAC: 00000015
    Process swapper/0 (pid: 0, stack limit = 0xc10a2240)
    Stack: (0xc10a3f34 to 0xc10a4000)
    3f20: c10b45e0 00000000 00000000
    3f40: cf812c00 c010394c 00000063 cf812c00 00000001 cf812c00 cfdf29ac c03932cc
    3f60: 00000063 cf812bc0 cfdf29ac cf812c00 ffffffff c03943f8 cfdf2980 c0104468
    3f80: cfdf2a04 cfdf2980 cf812bc0 c06634b0 c10aa3c0 c0394da4 c10f74dc cfdf2980
    3fa0: cf812bc0 c0647248 c10aa3c0 ffffffff c10de940 c10aa3c0 ffffffff c0640934
    3fc0: ffffffff ffffffff c06404ec 00000000 00000000 c06634b0 00000000 10c53c7d
    3fe0: c10aa434 c06634ac c10ae4c8 0000406a 414fc091 00008070 00000000 00000000
    [] (kernfs_find_ns) from [] (0x1)
    Code: e5c89001 eaffffcf e92d40f0 e1a06002 (e1d023bc)
    ---[ end trace 3406ff24bd97382f ]---
    Kernel panic - not syncing: Attempted to kill the idle task!
    ---[ end Kernel panic - not syncing: Attempted to kill the idle task!

    To fix this problem, we simply skip the sysfs related calls in
    of_update_property(), and rely on of_init() to fix up things when it
    will be called, exactly as is done in of_add_property() and
    of_remove_property().

    Signed-off-by: Thomas Petazzoni
    Fixes: 75b57ecf9d1d ("of: Make device nodes kobjects so they show up in sysfs")
    Signed-off-by: Grant Likely

    Thomas Petazzoni
     
  • Rob Herring
     
  • Add a test case for nodes which have the same name and same
    non-translatable unit address.

    Signed-off-by: Rob Herring
    Reviewed-by: Grant Likely
    Reviewed-by: Frank Rowand

    Rob Herring
     
  • Move the pass/fail checks into selftest() calls instead of a separate if
    condition. Unconditionally calling pass was wrong.

    Signed-off-by: Rob Herring
    Cc: Grant Likely

    Rob Herring
     
  • of_can_translate_address only checks some conditions for address
    translation, but does not check other conditions like having range
    properties. The checks it does do are redundant with
    __of_address_translate. The only difference is printing a message or
    not. Since we only have a single caller that does the full translation
    anyway, just remove of_can_translate_address and quiet the error
    message.

    Cc: Grant Likely
    Signed-off-by: Rob Herring
    Tested-by: Frank Rowand
    Reviewed-by: Frank Rowand

    Rob Herring