1. 30 7月, 2014 1 次提交
  2. 27 6月, 2014 1 次提交
  3. 23 5月, 2014 2 次提交
  4. 21 5月, 2014 1 次提交
  5. 30 4月, 2014 10 次提交
  6. 15 4月, 2014 1 次提交
    • X
      of: Fix the section mismatch warnings. · 5b624118
      Xiubo Li 提交于
      In tag next-20140407, building with CONFIG_DEBUG_SECTION_MISMATCH
      enabled, the following WARNING is occured:
      
      WARNING: drivers/built-in.o(.text.unlikely+0x2220): Section mismatch
      in reference from the function __reserved_mem_check_root() to the
      function .init.text:of_get_flat_dt_prop()
      The function __reserved_mem_check_root() references
      the function __init of_get_flat_dt_prop().
      This is often because __reserved_mem_check_root lacks a __init
      annotation or the annotation of of_get_flat_dt_prop is wrong.
      
      WARNING: vmlinux.o(.text.unlikely+0xb9d0): Section mismatch in reference
      from the function __reserved_mem_check_root() to the (unknown reference)
      .init.data:(unknown)
      The function __reserved_mem_check_root() references
      the (unknown reference) __initdata (unknown).
      This is often because __reserved_mem_check_root lacks a __initdata
      annotation or the annotation of (unknown) is wrong.
      
      This is cause by :
      'drivers: of: add initialization code for dynamic reserved memory'.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      5b624118
  7. 19 3月, 2014 1 次提交
    • P
      of: device_node kobject lifecycle fixes · 0829f6d1
      Pantelis Antoniou 提交于
      After the move to having device nodes be proper kobjects the lifecycle
      of the node needs to be controlled better.
      
      At first convert of_add_node() in the unflattened functions to
      of_init_node() which initializes the kobject so that of_node_get/put
      work correctly even before of_init is called.
      
      Afterwards introduce of_node_is_initialized & of_node_is_attached that
      query the underlying kobject about the state (attached means kobj
      is visible in sysfs)
      
      Using that make sure the lifecycle of the tree is correct at all
      times.
      Signed-off-by: NPantelis Antoniou <panto@antoniou-consulting.com>
      [grant.likely: moved of_node_init() calls, fixed up locking, and
                     dropped __of_populate() hunks]
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      0829f6d1
  8. 15 3月, 2014 1 次提交
  9. 12 3月, 2014 3 次提交
    • G
      of: Make device nodes kobjects so they show up in sysfs · 75b57ecf
      Grant Likely 提交于
      Device tree nodes are already treated as objects, and we already want to
      expose them to userspace which is done using the /proc filesystem today.
      Right now the kernel has to do a lot of work to keep the /proc view in
      sync with the in-kernel representation. If device_nodes are switched to
      be kobjects then the device tree code can be a whole lot simpler. It
      also turns out that switching to using /sysfs from /proc results in
      smaller code and data size, and the userspace ABI won't change if
      /proc/device-tree symlinks to /sys/firmware/devicetree/base.
      
      v7: Add missing sysfs_bin_attr_init()
      v6: Add __of_add_property() early init fixes from Pantelis
      v5: Rename firmware/ofw to firmware/devicetree
          Fix updating property values in sysfs
      v4: Fixed build error on Powerpc
          Fixed handling of dynamic nodes on powerpc
      v3: Fixed handling of duplicate attribute and child node names
      v2: switch to using sysfs bin_attributes which solve the problem of
          reporting incorrect property size.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Tested-by: NSascha Hauer <s.hauer@pengutronix.de>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      75b57ecf
    • M
      drivers: of: add initialization code for dynamic reserved memory · 3f0c8206
      Marek Szyprowski 提交于
      This patch adds support for dynamically allocated reserved memory regions
      declared in device tree. Such regions are defined by 'size', 'alignment'
      and 'alloc-ranges' properties.
      
      Based on previous code provided by Josh Cartwright <joshc@codeaurora.org>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      3f0c8206
    • M
      drivers: of: add initialization code for static reserved memory · e8d9d1f5
      Marek Szyprowski 提交于
      This patch adds support for static (defined by 'reg' property) reserved
      memory regions declared in device tree.
      
      Memory blocks can be reliably reserved only during early boot. This must
      happen before the whole memory management subsystem is initialized,
      because we need to ensure that the given contiguous blocks are not yet
      allocated by kernel. Also it must happen before kernel mappings for the
      whole low memory are created, to ensure that there will be no mappings
      (for reserved blocks). Typically, all this happens before device tree
      structures are unflattened, so we need to get reserved memory layout
      directly from fdt.
      
      Based on previous code provided by Josh Cartwright <joshc@codeaurora.org>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      e8d9d1f5
  10. 11 12月, 2013 1 次提交
  11. 14 10月, 2013 1 次提交
    • G
      Revert "of: Feed entire flattened device tree into the random pool" · b920ecc8
      Grant Likely 提交于
      This reverts commit 109b6236.
      
      Tim Bird expressed concern that this will have a bad effect on boot
      time, and while simple tests have shown it to be okay with simple tree,
      a device tree blob can potentially be quite large and
      add_device_randomness() is not a fast function. Rather than do this for
      all platforms unconditionally, I'm reverting this patch and would like
      to see it revisited. Instead of feeding the entire tree into the random
      pool, it would probably be appropriate to hash the tree and feed the
      hash result into the pool. There really isn't a lot of randomness in a
      device tree anyway. In the majority of cases only a handful of
      properties are going to be different between machines with the same
      baseboard.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      b920ecc8
  12. 10 10月, 2013 5 次提交
  13. 30 8月, 2013 3 次提交
  14. 29 8月, 2013 1 次提交
  15. 27 8月, 2013 1 次提交
  16. 22 8月, 2013 1 次提交
    • W
      of: fdt: fix memory initialization for expanded DT · 9e401275
      Wladislav Wiebe 提交于
      Already existing property flags are filled wrong for properties created from
      initial FDT. This could cause problems if this DYNAMIC device-tree functions
      are used later, i.e. properties are attached/detached/replaced. Simply dumping
      flags from the running system show, that some initial static (not allocated via
      kzmalloc()) nodes are marked as dynamic.
      
      I putted some debug extensions to property_proc_show(..) :
      ..
      +       if (OF_IS_DYNAMIC(pp))
      +               pr_err("DEBUG: xxx : OF_IS_DYNAMIC\n");
      +       if (OF_IS_DETACHED(pp))
      +               pr_err("DEBUG: xxx : OF_IS_DETACHED\n");
      
      when you operate on the nodes (e.g.: ~$ cat /proc/device-tree/*some_node*) you
      will see that those flags are filled wrong, basically in most cases it will dump
      a DYNAMIC or DETACHED status, which is in not true.
      (BTW. this OF_IS_DETACHED is a own define for debug purposes which which just
      make a test_bit(OF_DETACHED, &x->_flags)
      
      If nodes are dynamic kernel is allowed to kfree() them. But it will crash
      attempting to do so on the nodes from FDT -- they are not allocated via
      kzmalloc().
      Signed-off-by: NWladislav Wiebe <wladislav.kw@gmail.com>
      Acked-by: NAlexander Sverdlin <alexander.sverdlin@nsn.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      9e401275
  17. 24 7月, 2013 1 次提交
  18. 18 6月, 2013 1 次提交
  19. 18 12月, 2012 1 次提交
  20. 30 11月, 2012 1 次提交
  21. 21 11月, 2012 2 次提交