24 Oct, 2017

15 commits

  • Provide a Kconfig option that we can use as dependency for
    features that are broken. This allows to easily disable them
    without removing the code.

    As no short text is supplied the option will not appear in
    menuconfig.

    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Simon Glass

    Heinrich Schuchardt
     
  • As you see in crypto_algos in common/image-sig.c, the algorithm
    should be either "rsa2048" or "rsa4096". "rs2048" is a typo.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     
  • Both "conf_name" and "sig_name" point to the name of config node.
    The latter should be the name of the signature node.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     
  • Signed-off-by: Masahiro Yamada
    Reviewed-by: Stephen Warren

    Masahiro Yamada
     
  • don't use prettyprint_part_size() in create_gpt_partitions_list()
    that avoid to align offset and size to 1 MiB and increase precision for
    start and size.
    This patch avoid the risk to change partition size and lost data during
    rename or swap.

    Signed-off-by: Patrick Delaunay
    Acked-by: Stephen Warren
    Tested-by: Stephen Warren

    Patrick Delaunay
     
  • Add test of first and last LBA in gpt for rename and swap.
    Only the name is expected to change, so test 3 columns
    for part command
    1: first LBA (start)
    2: last LBA (end)
    3: partition name

    After rename, the last LBA change and it is a error in current U-Boot code
    + "first" = 0x7ff : invalid value ( size increasing !

    Acked-by: Stephen Warren
    Tested-by: Stephen Warren
    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • + test write for one partition on all the device (size=0)
    + test write with disk uuid and 2 partitions

    Acked-by: Stephen Warren
    Tested-by: Stephen Warren
    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • the partition starting at 0x4400 is refused with overlap error:
    $> gpt write mmc 0 "name=test,start=0x4400,size=0"
    Writing GPT: Partition overlap
    error!

    even if the 0x4400 is the first available offset for LBA35 with default
    value:
    - MBR=LBA1
    - GPT header=LBA2
    - PTE= 32 LBAs (128 entry), 3 to 34

    And the command to have one partition for all the disk failed also :
    $> gpt write mmc 0 "name=test,size=0"

    After the patch :

    $> gpt write mmc 0 "name=test,size=0"
    Writing GPT: success!
    $> part list mmc 0

    Partition Map for MMC device 0 -- Partition Type: EFI

    Part Start LBA End LBA Name
    Attributes
    Type GUID
    Partition GUID
    1 0x00000022 0x01ce9fde "test"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    type: data
    guid: b4b84b8a-04e3-4000-0036-aff5c9c495b1

    And 0x22 = 34 LBA => offset = 0x4400 is accepted as expected

    Reviewed-by: Łukasz Majewski
    Tested-by: Stephen Warren
    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • add sandbox test for some gpt sub-command
    - gpt read / part list : read the gpt partition created by sgdisk on host
    test start, size, LBA and name output
    - gpt verify : verify the gpt partition create by sgdisk on host

    PS: persistent data test_gpt_disk_image.bin are udpated

    Acked-by: Stephen Warren
    Tested-by: Stephen Warren
    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • copy the persistent gpt binary file as it can be modified during the test
    that avoid issue if the test fail: the test always restart with clean file

    Acked-by: Stephen Warren
    Tested-by: Stephen Warren
    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • RTC_CONFIG_D register contains the day within the month to generate
    an alarm, not the month. This corrects the printf to indicate it.

    Signed-off-by: Bin Meng

    Bin Meng
     
  • Remove hardcoded ftd file name from environment variables.
    Use CONFIG_DEFAULT_FDT_FILE macro instead.

    Signed-off-by: Michal Oleszczyk

    Michal Oleszczyk
     
  • No global pointer is used in this file.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Bin Meng

    Masahiro Yamada
     
  • All users of this macro have been converted. Remove MTDDEBUG and
    related CONFIG options.

    ubifs_dbg_msg_key() is kept. It is silent unless DEBUG is defined.

    I am not touching scripts/config_whitelist.txt. The deprecated options
    will be dropped by the next resync.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • In old days, the MTD subsystem in Linux had debug facility like
    DEBUG(MTD_DEBUG_LEVEL1, ...).

    They were all replaced with pr_debug() until Linux 3.2. See Linux
    commit 289c05222172 ("mtd: replace DEBUG() with pr_debug()").

    U-Boot still uses similar macros. Covert all of them for easier sync.

    Done with the help of Coccinelle.

    The semantic patch I used is as follows:

    //
    @@
    expression e1, e2;
    @@
    -MTDDEBUG(e1, e2)
    +pr_debug(e2)
    @@
    expression e1, e2;
    @@
    -MTDDEBUG(e1, e2,
    +pr_debug(e2,
    ...)
    //

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

23 Oct, 2017

9 commits


21 Oct, 2017

3 commits


19 Oct, 2017

9 commits

  • Tom Rini
     
  • I've missed to add the ACPI resume support to this x86 build target.
    This patch adds the ACPI resume support enabling S3 suspend /
    resume.

    Signed-off-by: Stefan Roese
    Cc: Bin Meng
    Cc: Simon Glass
    Reviewed-by: Bin Meng

    Stefan Roese
     
  • Up to now we depended on an exported variable to build u-boot.rom.
    We should be able to specify it in the configuration file, too.

    With this patch this becomes possible using the new Kconfig option
    CONFIG_BUILD_ROM.

    This option depends on CONFIG_X86 and is selected in
    qemu-x86_defconfig and qemu-x86_64_defconfig.

    Cc: Simon Glass
    Cc: Bin Meng
    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Bin Meng

    Heinrich Schuchardt
     
  • Azalia configuration may be different across boards, hence it's not
    appropriate to do that in the SoC level. Instead, let's make the
    SoC update_fsp_azalia_configs() routine as a weak version, and do
    the actual work in the board codes.

    So far it seems only som-db5800-som-6867 board enables the Azalia.
    Move the original codes into som-db5800-som-6867.c.

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese

    Bin Meng
     
  • At present we directly pass the Azalia config pointer to the FSP UPD.
    This updates to use a function to do the stuff, like Braswell does.

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese

    Bin Meng
     
  • So far there are two copies of Azalia struct defines with one in
    baytrail and the other one in braswell. This consolidates these
    two into one, put it in the common place, and remove the prefix
    pch_ to these structs to make their names more generic.

    This also corrects reset_wait_timer from us to ms.

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese

    Bin Meng
     
  • This is only needed when graphics console is used. For kernel with
    native graphics driver, this can be turned off to speed up.

    Change this option's default to n in the Kconfig.

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese

    Bin Meng
     
  • It was observed that when booting a Ubuntu 16.04 kernel, doing ACPI
    S3 suspend/resume sometimes causes the Ubuntu kernel hang forever.
    The issue is however not reproduced with a kernel built from i386/
    x86_64 defconfig configuration.

    The unstability is actually caused by unexpected interrupts being
    generated during the S3 resume. For some unknown reason, FSP (gold4)
    for BayTrail configures the GPIO DFX5 PAD to enable level interrupt
    (bit 24 and 25). As this pin keeps generating interrupts during an
    S3 resume, and there is no IRQ requester in the kernel to handle it,
    the kernel seems to hang and does not continue resuming.

    Clear the mysterious interrupt bits for this pin.

    Reported-by: Stefan Roese
    Signed-off-by: Bin Meng
    Tested-by: Stefan Roese
    Reviewed-by: Stefan Roese

    Bin Meng
     
  • Adjust VGA rom address to 0xfffb0000 so that u-boot.rom image
    can be built again.

    Signed-off-by: Bin Meng
    Reviewed-by: Stefan Roese

    Bin Meng
     

18 Oct, 2017

2 commits


17 Oct, 2017

2 commits