1. 04 10月, 2017 7 次提交
  2. 03 10月, 2017 26 次提交
    • T
      sandbox: Enable btrfs support · 39dd65a0
      Tom Rini 提交于
      For better test coverage, enable btrfs.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      39dd65a0
    • T
      fs/btrfs: Fix warning in btrfs_check_super() · 6b7fd350
      Tom Rini 提交于
      We specifically say that the last arg is u32, so use %lu.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      6b7fd350
    • P
      sandbox: Use asm-generic/io.h · f7ae1ca3
      Paul Burton 提交于
      Convert the sandbox architecture to make use of the new asm-generic/io.h
      to provide address mapping functions. As sandbox actually performs
      non-identity mapping between physical & virtual addresses we can't
      simply make use of the generic mapping functions, but are able to
      implement phys_to_virt() & make use of it from map_physmem().
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      f7ae1ca3
    • P
      powerpc: Use asm-generic/io.h · ae07d609
      Paul Burton 提交于
      Convert the powerpc architecture to make use of the new asm-generic/io.h
      to provide address mapping functions. As powerpc can actually perform
      non-identity mapping between physical & virtual addresses we can't
      simply make use of the generic phys_to_virt() & virt_to_phys()
      functions. However since map_physmem() already effectively implemented
      the same thing as virt_to_phys() we can simply implement virt_to_phys()
      instead of map_physmem() & use the generic map_physmem(). We also drop
      the no-op unmap_physmem().
      
      This has only been build-tested, feedback from architecture maintainers
      is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Wolfgang Denk <wd@denx.de>
      ae07d609
    • P
      nios2: Use asm-generic/io.h · e16986c4
      Paul Burton 提交于
      Convert the nios2 architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As nios2 actually performs
      non-identity mapping between physical & virtual addresses we can't
      simply make use of the generic functions, with the exception of being
      able to drop our no-op unmap_physmem() and definitions of unused map
      flags.
      
      Feedback from architecture maintainers is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Thomas Chou <thomas@wytron.com.tw>
      e16986c4
    • P
      mips: Use asm-generic/io.h · d1cbeafd
      Paul Burton 提交于
      Convert the mips architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As mips actually performs
      non-identity mapping between physical & virtual addresses we can't
      simply make use of the generic functions, with the exception of being
      able to drop our no-op unmap_physmem() and definitions of unused map
      flags.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Reviewed-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Acked-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      d1cbeafd
    • P
      xtensa: Use asm-generic/io.h · e8645527
      Paul Burton 提交于
      Convert the xtensa architecture to make use of the new asm-generic/io.h
      to provide address mapping functions. As the generic implementations are
      suitable for xtensa this is primarily a matter of moving code.
      
      This has only been build-tested, feedback from architecture maintainers
      is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Acked-by: NMax Filippov <jcmvbkbc@gmail.com>
      e8645527
    • P
      x86: Use asm-generic/io.h · 6f01316f
      Paul Burton 提交于
      Convert the x86 architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As the generic implementations are
      suitable for x86 this is primarily a matter of moving code.
      
      This has only been build-tested, feedback from architecture maintainers
      is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      6f01316f
    • P
      sh: Use asm-generic/io.h · 505fe9cd
      Paul Burton 提交于
      Convert the sh architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As the generic implementations are
      suitable for sh this is primarily a matter of moving code.
      
      Feedback from architecture maintainers is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      505fe9cd
    • P
      nds32: Use asm-generic/io.h · b3666a69
      Paul Burton 提交于
      Convert the nds32 architecture to make use of the new asm-generic/io.h
      to provide address mapping functions. As the generic implementations are
      suitable for nds32 this is primarily a matter of removing code.
      
      Feedback from architecture maintainers is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      b3666a69
    • P
      microblaze: Use asm-generic/io.h · dbee7152
      Paul Burton 提交于
      Convert the microblaze architecture to make use of the new
      asm-generic/io.h to provide address mapping functions. As the generic
      implementations are suitable for microblaze this is primarily a matter
      of removing code.
      
      Feedback from architecture maintainers is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Michal Simek <monstr@monstr.eu>
      dbee7152
    • P
      m68k: Use asm-generic/io.h · 0884077b
      Paul Burton 提交于
      Convert the m68k architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As the generic implementations are
      suitable for m68k this is primarily a matter of emoving code.
      
      Feedback from architecture maintainers is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Huan Wang <alison.wang@freescale.com>
      Cc: Angelo Dureghello <angelo@sysam.it>
      Acked-by: NAngelo Dureghello <angelo@sysam.it>
      Tested-by: NAngelo Dureghello <angelo@sysam.it>
      0884077b
    • P
      arm: Use asm-generic/io.h · 8f8e6304
      Paul Burton 提交于
      Convert the arm architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As the generic implementations are
      suitable for arm this is primarily a matter of removing code.
      
      This has only been build-tested, feedback from architecture maintainers
      is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      8f8e6304
    • P
      arc: Use asm-generic/io.h · 593477c6
      Paul Burton 提交于
      Convert the arc architecture to make use of the new asm-generic/io.h to
      provide address mapping functions. As the generic implementations are
      suitable for arc this is primarily a matter of removing code.
      
      Feedback from architecture maintainers is welcome.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Acked-by: NAlexey Brodkin <abrodkin@synopsys.com>
      593477c6
    • P
      Provide a generic io.h & address mapping functions · d4150ca6
      Paul Burton 提交于
      Most architectures currently supported by U-Boot use trivial
      implementations of map_to_physmem & virt_to_phys which simply cast a
      physical address to a pointer for use a virtual address & vice-versa.
      This results in a lot of duplicate implementations of these mapping
      functions.
      
      The set of functions provided by different architectures also differs,
      with some having implementations of phys_to_virt & others not. A later
      patch will make use of phys_to_virt in architecture-neutral code, and so
      requires that it be provided for all architectures.
      
      This patch introduces an asm-generic/io.h which provides generic
      implementations of address mapping functions, allowing the duplication
      of them between architectures to be removed. Once architectures are
      converted to make use of this generic header it will also ensure that
      all of phys_to_virt, virt_to_phys, map_physmem & unmap_physmem are
      provided. The 2 families of functions differ in that map_physmem may
      create dynamic mappings whilst phys_to_virt may not & therefore is more
      limited in scope but doesn't require information such as a length &
      flags.
      
      This patch doesn't convert any architectures to make use of this generic
      header - later patches in the series will do so.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Angelo Dureghello <angelo@sysam.it>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Cc: Thomas Chou <thomas@wytron.com.tw>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: NAngelo Dureghello <angelo@sysam.it>
      Tested-by: NAngelo Dureghello <angelo@sysam.it>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      d4150ca6
    • M
      32c77863
    • M
      cmd: Add the 'btrsubvol' command to list BTRFS subvolumes · 9d845509
      Marek Behún 提交于
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 cmd/btrfs.c
      9d845509
    • M
      fs: btrfs: Add U-Boot fs handlers. · 0c936ee3
      Marek Behún 提交于
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 fs/btrfs/Kconfig
       create mode 100644 fs/btrfs/Makefile
       create mode 100644 fs/btrfs/btrfs.c
       create mode 100644 include/btrfs.h
      0c936ee3
    • M
      fs: btrfs: Add single-device read-only BTRFS implementation · 21a14fac
      Marek Behún 提交于
      This adds the proper implementation for the BTRFS filesystem.
      The implementation currently supports only read-only mode and
      the filesystem can be only on a single device.
      
      Checksums of data chunks is unimplemented.
      
      Compression is implemented (ZLIB + LZO).
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 fs/btrfs/btrfs.h
       create mode 100644 fs/btrfs/chunk-map.c
       create mode 100644 fs/btrfs/compression.c
       create mode 100644 fs/btrfs/ctree.c
       create mode 100644 fs/btrfs/dev.c
       create mode 100644 fs/btrfs/dir-item.c
       create mode 100644 fs/btrfs/extent-io.c
       create mode 100644 fs/btrfs/hash.c
       create mode 100644 fs/btrfs/inode.c
       create mode 100644 fs/btrfs/root.c
       create mode 100644 fs/btrfs/subvolume.c
       create mode 100644 fs/btrfs/super.c
      21a14fac
    • M
      fs: btrfs: Add disk-to-cpu and cpu-to-disk conversion functions · 597b4aff
      Marek Behún 提交于
      BTRFS on disk structures are stored in Little Endian. Add functions
      to convert this structures to cpu and to disk format.
      
      On Little Endian hosts, these functions do nothing.
      
      On Big Endian the CALL_MACRO_FROM_EACH from variadic-macro.h is used
      to define all the members for each structure on which cpu_to_le* or
      le*_to_cpu is to be called.
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 fs/btrfs/conv-funcs.h
      597b4aff
    • M
      fs: btrfs: Add btrfs_tree.h and ctree.h from Linux (and modified) · d4a704af
      Marek Behún 提交于
      Add btrfs_tree.h and ctree.h from Linux which contains constants
      and structures for the BTRFS filesystem.
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 fs/btrfs/btrfs_tree.h
       create mode 100644 fs/btrfs/ctree.h
      d4a704af
    • M
      include: Add a variadic macro to call a callback for all arguments · 59981e6a
      Marek Behún 提交于
      Add a header variadic-macro.h which defines the CALL_MACRO_FOR_EACH marco.
      
      This macro can be used as follows:
        #define TEST(x)
        CALL_MACRO_FOR_EACH(TEST, a, b, c, d)
      
      This will expand to
        TEST(a) TEST(b) TEST(c) TEST(d)
      
      The nice thing is that CALL_MACRO_FOR_EACH is a variadic macro, thus the
      number of arguments can vary (although it has an upper limit - in this
      implementation 32 arguments).
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 include/u-boot/variadic-macro.h
      59981e6a
    • M
      fs: Create a common fs_devread for ext4/reiserfs/zfs · 5994e8b6
      Marek Behún 提交于
      The ext4, reiserfs and zfs filesystems all have their own implementation
      of the same function, *_devread. Generalize this function into fs_devread
      and put the code into fs/fs_internal.c.
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      [trini: Move fs/fs_internal.o hunk to the end of fs/Makefile as all
      cases need it]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      5994e8b6
    • M
      lib: Add CRC32-C · 85d8bf57
      Marek Behún 提交于
      This is needed for BTRFS.
      Signed-off-by: NMarek Behun <marek.behun@nic.cz>
      
       create mode 100644 lib/crc32c.c
      85d8bf57
    • T
      Prepare v2017.11-rc1 · 43dd6dac
      Tom Rini 提交于
      Signed-off-by: NTom Rini <trini@konsulko.com>
      43dd6dac
    • B
      scripts: dtc: Add .gitignore · de163ece
      Bin Meng 提交于
      Ignore these generated files during the build of dtc.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      de163ece
  3. 02 10月, 2017 2 次提交
  4. 01 10月, 2017 5 次提交