Skip to content
  1. Oct 12, 2015
    • Vincent Donnefort's avatar
      ARM: mvebu: add DT support for Seagate NAS 2 and 4-Bay · 85a9efcd
      Vincent Donnefort authored
      
      
      This patch adds DT support for the Seagate NAS 2 and 4-Bay.
      
      Here are some information allowing to identify these devices:
      
      Product name                 | Seagate NAS 2-Bay | Seagate NAS 4-Bay
      Code name (board/PCB)        | Dart 2-Bay        | Dart 4-Bay
      Model name (case sticker)    | SRPD20            | SRPD40
      Material desc (product spec) | STCTxxxxxxx       | STCUxxxxxxx
      
      Chipset list (common):
      - SoC Marvell Armada 370 88F6707, CPU @1.2GHz
      - SDRAM memory: 512MB DDR3 600MHz (16-bits bandwidth)
      - NAND flash 256MB, 8-bits (Micron MT29F2G08AAB or Hinyx H27U2G8F2CTR-BC)
      - 2 SATA II ports (SoC)
      - 1 Ethernet Gigabit ports (PHY Marvell 88E1518)
      - 2 USB3 host ports (PCIe controller ASM1042)
      - GPIO fan (4 speeds)
      - External I2C RTC (MCP7940NT)
      - 3 push buttons (power, backup and reset)
      - 2 SATA LEDs (bi-color, blue and red)
      - 1 power LED (bi-color, blue and red)
      
      Only on 4-Bay models:
      - 2 extra SATA III ports (PCIe AHCI controller Marvell 88SE9170)
      - 1 extra Ethernet Gigabit ports (PHY Marvell 88E1518)
      - I2C GPIO expander (PCA9554A)
      - 2 extra SATA LEDs (bi-color, blue and red)
      
      Note that support for the white SATA LEDs associated with HDDs 0 and 1
      is missing. A dedicated LED driver is needed.
      
      Signed-off-by: default avatarVincent Donnefort <vdonnefort@gmail.com>
      Acked-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      85a9efcd
  2. Oct 09, 2015
  3. Sep 29, 2015
  4. Sep 11, 2015
    • Yinghai Lu's avatar
      lib/decompressors: use real out buf size for gunzip with kernel · 2d3862d2
      Yinghai Lu authored
      When loading x86 64bit kernel above 4GiB with patched grub2, got kernel
      gunzip error.
      
      | early console in decompress_kernel
      | decompress_kernel:
      |       input: [0x807f2143b4-0x807ff61aee]
      |      output: [0x807cc00000-0x807f3ea29b] 0x027ea29c: output_len
      | boot via startup_64
      | KASLR using RDTSC...
      |  new output: [0x46fe000000-0x470138cfff] 0x0338d000: output_run_size
      |  decompress: [0x46fe000000-0x47007ea29b] <=== [0x807f2143b4-0x807ff61aee]
      |
      | Decompressing Linux... gz...
      |
      | uncompression error
      |
      | -- System halted
      
      the new buffer is at 0x46fe000000ULL, decompressor_gzip is using
      0xffffffb901ffffff as out_len.  gunzip in lib/zlib_inflate/inflate.c cap
      that len to 0x01ffffff and decompress fails later.
      
      We could hit this problem with crashkernel booting that uses kexec loading
      kernel above 4GiB.
      
      We have decompress_* support:
          1. inbuf[]/outbuf[] for kernel preboot.
          2. inbuf[]/flush() for initramfs
          3. fill()/flush() for initrd.
      This bug only affect kernel preboot path that use outbuf[].
      
      Add __decompress and take real out_buf_len for gunzip instead of guessing
      wrong buf size.
      
      Fixes: 1431574a
      
       (lib/decompressors: fix "no limit" output buffer length)
      Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
      Cc: Alexandre Courbot <acourbot@nvidia.com>
      Cc: Jon Medhurst <tixy@linaro.org>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2d3862d2
  5. Sep 10, 2015
  6. Sep 06, 2015
  7. Aug 28, 2015
  8. Aug 25, 2015
  9. Aug 22, 2015
  10. Aug 21, 2015