13 Apr, 2017

11 commits

  • Instead of having CONFIG_SANDBOX_BITS_PER_LONG in sandbox.h set to 64
    with a comment to change to 32 on a 32bit host, simply set this to 64 in
    asm/types.h and have the comment be there.

    Cc: Simon Glass
    Signed-off-by: Tom Rini

    Tom Rini
     
  • Add support for %p, %pa[p], %pM, %pm and %pI4 formats to tiny-printf.
    %pM and %pI4 are widely used by SPL networking stack and is required if
    networking support is desired in SPL.
    %p, %pa and %pap are mostly used by debug prints and hence supported
    only when DEBUG is enabled.

    Before this patch:
    $ size spl/u-boot-spl
    text data bss dec hex filename
    99325 4899 218584 322808 4ecf8 spl/u-boot-spl

    After this patch (with CONFIG_SPL_NET_SUPPORT):
    $ size spl/u-boot-spl
    text data bss dec hex filename
    99666 4899 218584 323149 4ee4d spl/u-boot-spl

    So, this patch adds ~350 bytes to code size.

    If CONFIG_SPL_NET_SUPPORT is not enabled, this adds ~25 bytes.

    If CONFIG_USE_TINY_PRINTF is disabled then:
    $ size spl/u-boot-spl
    text data bss dec hex filename
    101116 4899 218584 324599 4f3f7 spl/u-boot-spl

    So, there is still ~1.4K space saved even with support for %pM/%pI4.

    Compiler used is to build is:
    arm-linux-gnueabihf-gcc (Linaro GCC 6.2-2016.11) 6.2.1 20161016

    Signed-off-by: Vignesh R
    Reviewed-by: Tom Rini
    Reviewed-by: Simon Glass

    Vignesh R
     
  • Add 'pci regions' which lists the I/O and memory regions accessible from
    the PCI controller.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • I don't have the hardware test this, but it is almost certainly a typo
    in the code dating back to at least 2004.

    Signed-off-by: Alyssa Rosenzweig

    Alyssa Rosenzweig
     
  • This allows us to use the same DRAM init function on all archs. Add a
    dummy function for arc, which does not use DRAM init here.

    Signed-off-by: Simon Glass
    [trini: Dummy function on nios2]
    Signed-off-by: Tom Rini

    Simon Glass
     
  • This function name shadows a global name but is in fact different. This
    is very confusing. Rename it to help with the following refactoring.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Spam detection software, running on the system "lists.denx.de",
    has identified this incoming email as possible spam. The original
    message has been attached to this so you can view it or label
    similar future email. If you have any questions, see
    @@CONTACT_ADDRESS@@ for details.

    Content preview: Previous change to create _printch causes the stack to be
    used, breaking printch before stack is available. Inline _printch to prevent
    this happening. Signed-off-by: Tim Chick --- [...]

    Content analysis details: (6.3 points, 5.0 required)

    pts rule name description
    ---- ---------------------- --------------------------------------------------
    0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
    [188.29.165.105 listed in zen.spamhaus.org]
    3.6 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL
    1.6 RCVD_IN_BRBL_LASTEXT RBL: No description available.
    [188.29.165.105 listed in bb.barracudacentral.org]
    0.4 RDNS_DYNAMIC Delivered to internal network by host with
    dynamic-looking rDNS
    Previous change to create _printch causes the stack to be used,
    breaking printch before stack is available. Inline _printch to
    prevent this happening.

    Signed-off-by: Tim Chick

    tim.chick
     
  • fw_env_open allocates buffers to store the environment, but these
    buffers are never freed. This becomes quite nasty using the fw_ tools as
    library, because each access to the environment (even just reading a
    variable) generates a memory leak equal to the size of the environment.

    Fix this renaming fw_env_close() as fw_env_flush(), because the function
    really flushes the environment from RAM to storage, and add a
    fw_env_close function to free the allocated resources.

    Signed-off-by: Stefano Babic

    Stefano Babic
     
  • Changes in the environment library are difficult to tracked by programs
    using the library. Add simply an API version number that must be
    increased each time when the API is changed.

    This can be detected and a program can work with different versions of
    the library.

    Signed-off-by: Stefano Babic

    Stefano Babic
     
  • Move U-Boot private data into a separate file. This
    lets export fw_env.h to be used by external programs
    that want to change the environment using the library
    built in tools/env.

    Signed-off-by: Stefano Babic

    Stefano Babic
     
  • aes.h is a too generic name if this file can
    be exported and used by a program.
    Rename it to avoid any conflicts with
    other files (for example, from openSSL).

    Signed-off-by: Stefano Babic

    Stefano Babic
     

11 Apr, 2017

3 commits

  • As reported in STAR 9001165532, an SLC control reg read (for checking
    busy state) right after SLC invalidate command may incorrectly return
    NOT busy causing software to NOT spin-wait while operation is underway.
    (and for some reason this only happens if L1 cache is also disabled - as
    required by IOC programming model)

    Suggested workaround is to do an additional Control Reg read, which
    ensures the 2nd read gets the right status.

    Same fix made in Linux kernel:
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c70c473396cbdec1168a6eff60e13029c0916854

    Signed-off-by: Alexey Brodkin

    Alexey Brodkin
     
  • For some reason Python 3 seems to think it does not need to build
    the library. Using the --force parameter makes sure that the library
    gets built always. This is especially important since we move the
    library in the next step of the Makefile, hence forcing a rebuild
    every time the higher level Makefile triggers a rebuild is required
    to make sure the library is always there.

    Signed-off-by: Stefan Agner
    Acked-by: Simon Glass

    Stefan Agner
     
  • This a few minor changes down from upstream since the last sync.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 Apr, 2017

15 commits


09 Apr, 2017

11 commits