26 Mar, 2016

1 commit

  • Kernel zero day testing warned about address space confusion. A virtual
    iomem address was used where a physical address is expected. The
    offending functions implement an optional part of the api, so they are
    removed. They can be added later, after testing.

    Fixes: a1b3695820aa490e58915d720a1438069813008b

    Signed-off-by: Allen Hubbe
    Acked-by: Xiangliang Yu
    Signed-off-by: Jon Mason

    Allen Hubbe
     

22 Jan, 2016

2 commits

  • If the parameter given to the macro is replaced throughout the macro as
    it is evaluated. The intent is that the macro parameter should replace
    the only the first parameter to container_of(). However, the way the
    macro was written, it would also inadvertantly replace a structure field
    name. If a parameter of any other name is given to the macro, it will
    fail to compile, if the structure does not contain a field of the same
    name. At worst, it will compile, and hide improper access of an
    unintended field in the structure.

    Change the macro parameter name, so it does not conflict with the
    structure field name.

    Signed-off-by: Allen Hubbe
    Acked-by: Dave Jiang
    Signed-off-by: Jon Mason

    Allen Hubbe
     
  • This adds support for AMD's PCI-Express Non-Transparent Bridge
    (NTB) device on the Zeppelin platform. The driver connnects to the
    standard NTB sub-system interface, with modification to add hooks
    for power management in a separate patch. The AMD NTB device has 3
    memory windows, 16 doorbell, 16 scratch-pad registers, and supports
    up to 16 PCIe lanes running a Gen3 speeds.

    Signed-off-by: Xiangliang Yu
    Reviewed-by: Allen Hubbe
    Signed-off-by: Jon Mason

    Xiangliang Yu
     

11 Jan, 2016

1 commit

  • The lower bits read from a BAR register will contain property bits
    that we do not care about. Clear those so that we can use the BAR
    values for limit and xlat registers.

    Reported-by: Conrad Meyer
    Signed-off-by: Dave Jiang
    Signed-off-by: Jon Mason

    Dave Jiang
     

09 Nov, 2015

1 commit

  • There is no need for the upstream and downstream addresses to be different
    for the NTB configs. Go to using a single set of address. It is still
    possible to configure them differently using module parameter override
    however.

    Signed-off-by: Dave Jiang
    Acked and Tested-by: Allen Hubbe
    Signed-off-by: Jon Mason

    Dave Jiang
     

08 Sep, 2015

3 commits


05 Jul, 2015

9 commits


02 Jul, 2015

1 commit

  • This patch only moves files to their new locations, before applying the
    next two patches adding the NTB Abstraction layer. Splitting this patch
    from the next is intended make distinct which code is changed only due
    to moving the files, versus which are substantial code changes in adding
    the NTB Abstraction layer.

    Signed-off-by: Allen Hubbe
    Signed-off-by: Jon Mason

    Allen Hubbe