30 Jan, 2016

1 commit

  • In a couple places we are not converting to/from the Linux
    block layer 512 bytes sectors.

    1.

    The request queue values and what we do are a mismatch of
    things:

    max_discard_sectors - This is in linux block layer 512 byte
    sectors. We are just copying this to max_unmap_lba_count.

    discard_granularity - This is in bytes. We are converting it
    to Linux block layer 512 byte sectors.

    discard_alignment - This is in bytes. We are just copying
    this over.

    The problem is that the core LIO code exports these values in
    spc_emulate_evpd_b0 and we use them to test request arguments
    in sbc_execute_unmap, but we never convert to the block size
    we export to the initiator. If we are not using 512 byte sectors
    then we are exporting the wrong values or are checks are off.
    And, for the discard_alignment/bytes case we are just plain messed
    up.

    2.

    blkdev_issue_discard's start and number of sector arguments
    are supposed to be in linux block layer 512 byte sectors. We are
    currently passing in the values we get from the initiator which
    might be based on some other sector size.

    There is a similar problem in iblock_execute_write_same where
    the bio functions want values in 512 byte sectors but we are
    passing in what we got from the initiator.

    Signed-off-by: Mike Christie
    Cc: stable@vger.kernel.org # 3.10+
    Signed-off-by: Nicholas Bellinger

    Mike Christie
     

25 Jan, 2016

11 commits

  • Linus Torvalds
     
  • Pull MIPS updates from Ralf Baechle:
    "This is the main pull request for MIPS for 4.5 plus some 4.4 fixes.

    The executive summary:

    - ATH79 platform improvments, use DT bindings for the ATH79 USB PHY.
    - Avoid useless rebuilds for zboot.
    - jz4780: Add NEMC, BCH and NAND device tree nodes
    - Initial support for the MicroChip's DT platform. As all the device
    drivers are missing this is still of limited use.
    - Some Loongson3 cleanups.
    - The unavoidable whitespace polishing.
    - Reduce clock skew when synchronizing the CPU cycle counters on CPU
    startup.
    - Add MIPS R6 fixes.
    - Lots of cleanups across arch/mips as fallout from KVM.
    - Lots of minor fixes and changes for IEEE 754-2008 support to the
    FPU emulator / fp-assist software.
    - Minor Ralink, BCM47xx and bcm963xx platform support improvments.
    - Support SMP on BCM63168"

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (84 commits)
    MIPS: zboot: Add support for serial debug using the PROM
    MIPS: zboot: Avoid useless rebuilds
    MIPS: BMIPS: Enable ARCH_WANT_OPTIONAL_GPIOLIB
    MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function
    MIPS: bcm963xx: Update bcm_tag field image_sequence
    MIPS: bcm963xx: Move extended flash address to bcm_tag header file
    MIPS: bcm963xx: Move Broadcom BCM963xx image tag data structure
    MIPS: bcm63xx: nvram: Use nvram structure definition from header file
    MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure
    MAINTAINERS: Add KVM for MIPS entry
    MIPS: KVM: Add missing newline to kvm_err()
    MIPS: Move KVM specific opcodes into asm/inst.h
    MIPS: KVM: Use cacheops.h definitions
    MIPS: Break down cacheops.h definitions
    MIPS: Use EXCCODE_ constants with set_except_vector()
    MIPS: Update trap codes
    MIPS: Move Cause.ExcCode trap codes to mipsregs.h
    MIPS: KVM: Make kvm_mips_{init,exit}() static
    MIPS: KVM: Refactor added offsetof()s
    MIPS: KVM: Convert EXPORT_SYMBOL to _GPL
    ...

    Linus Torvalds
     
  • …linux-platform-drivers-x86

    Pull x86 platform driver updates from Darren Hart:
    "Emergency travel prevented me from completing my final testing on this
    until today. Nothing here that couldn't wait until RC1 fixes, but I
    thought it best to get it out sooner rather than later as it does
    contain a build warning fix.

    Summary:

    A build warning fix, MAINTAINERS cleanup, and a new DMI quirk:

    ideapad-laptop:
    - Add Lenovo Yoga 700 to no_hw_rfkill dmi list

    MAINTAINERS:
    - Combine multiple telemetry entries

    intel_telemetry_debugfs:
    - Fix unused warnings in telemetry debugfs"

    * tag 'platform-drivers-x86-v4.5-2' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86:
    ideapad-laptop: Add Lenovo Yoga 700 to no_hw_rfkill dmi list
    MAINTAINERS: Combine multiple telemetry entries
    intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs

    Linus Torvalds
     
  • Pull thermal management updates from Zhang Rui:
    "The top merge commit was re-generated yesterday because two topic
    branches were dropped from this pull request in the last minute due to
    some unaddressed comments. All the other material has been in
    linux-next for quite a while.

    Specifics:

    - Enhance thermal core to handle unexpected device cooling states
    after fresh boot and system resume. From Zhang Rui and Chen Yu.

    - Several fixes and cleanups on Rockchip and RCAR thermal drivers.
    From Caesar Wang and Kuninori Morimoto.

    - Add Broxton support for Intel processor thermal reporting device
    driver. From Amy Wiles"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
    thermal: trip_point_temp_store() calls thermal_zone_device_update()
    thermal: rcar: rcar_thermal_get_temp() return error if strange temp
    thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()
    thermal: rcar: check every rcar_thermal_update_temp() return value
    thermal: rcar: move rcar_thermal_dt_ids to upside
    thermal: rockchip: Support the RK3399 SoCs in thermal driver
    thermal: rockchip: Support the RK3228 SoCs in thermal driver
    dt-bindings: rockchip-thermal: Support the RK3228/RK3399 SoCs compatible
    thermal: rockchip: fix a trivial typo
    Thermal: Enable Broxton SoC thermal reporting device
    thermal: constify pch_dev_ops structure
    Thermal: do thermal zone update after a cooling device registered
    Thermal: handle thermal zone device properly during system sleep
    Thermal: initialize thermal zone device correctly

    Linus Torvalds
     
  • Pull 9p updates from Eric Van Hensbergen:
    "Sorry for the last minute pull request, there's was a change that
    didn't get pulled into for-next until two weeks ago and I wanted to
    give it some bake time.

    Summary:

    Rework and error handling fixes, primarily in the fscatch and fd
    transports"

    * tag 'for-linus-4.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
    fs/9p: use fscache mutex rather than spinlock
    9p: trans_fd, bail out if recv fcall if missing
    9p: trans_fd, read rework to use p9_parse_header
    net/9p: Add device name details on error

    Linus Torvalds
     
  • Pull Ceph updates from Sage Weil:
    "The two main changes are aio support in CephFS, and a series that
    fixes several issues in the authentication key timeout/renewal code.

    On top of that are a variety of cleanups and minor bug fixes"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
    libceph: remove outdated comment
    libceph: kill off ceph_x_ticket_handler::validity
    libceph: invalidate AUTH in addition to a service ticket
    libceph: fix authorizer invalidation, take 2
    libceph: clear messenger auth_retry flag if we fault
    libceph: fix ceph_msg_revoke()
    libceph: use list_for_each_entry_safe
    ceph: use i_size_{read,write} to get/set i_size
    ceph: re-send AIO write request when getting -EOLDSNAP error
    ceph: Asynchronous IO support
    ceph: Avoid to propagate the invalid page point
    ceph: fix double page_unlock() in page_mkwrite()
    rbd: delete an unnecessary check before rbd_dev_destroy()
    libceph: use list_next_entry instead of list_entry_next
    ceph: ceph_frag_contains_value can be boolean
    ceph: remove unused functions in ceph_frag.h

    Linus Torvalds
     
  • Pull SMB3 fixes from Steve French:
    "A collection of CIFS/SMB3 fixes.

    It includes a couple bug fixes, a few for improved debugging of
    cifs.ko and some improvements to the way cifs does key generation.

    I do have some additional bug fixes I expect in the next week or two
    (to address a problem found by xfstest, and some fixes for SMB3.11
    dialect, and a couple patches that just came in yesterday that I am
    reviewing)"

    * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
    cifs_dbg() outputs an uninitialized buffer in cifs_readdir()
    cifs: fix race between call_async() and reconnect()
    Prepare for encryption support (first part). Add decryption and encryption key generation. Thanks to Metze for helping with this.
    cifs: Allow using O_DIRECT with cache=loose
    cifs: Make echo interval tunable
    cifs: Check uniqueid for SMB2+ and return -ESTALE if necessary
    Print IP address of unresponsive server
    cifs: Ratelimit kernel log messages

    Linus Torvalds
     
  • Like the Yoga 900 models the Lenovo Yoga 700 does not have a
    hw rfkill switch, and trying to read the hw rfkill switch through the
    ideapad module causes it to always reported blocking breaking wifi.

    This commit adds the Lenovo Yoga 700 to the no_hw_rfkill dmi list, fixing
    the wifi breakage.

    BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1295272
    Tested-by:
    Cc: stable@vger.kernel.org
    Signed-off-by: Josh Boyer
    Signed-off-by: Darren Hart

    Josh Boyer
     
  • This patch combines all the telemetry file entries in MAINTAINERS via
    wildcard.

    Signed-off-by: Souvik Kumar Chakravarty
    Signed-off-by: Darren Hart

    Souvik Kumar Chakravarty
     
  • This patch fixes compile time warnings when CONFIG_PM_SLEEP
    is undefined. In this case sleep related counters are unused.

    Signed-off-by: Souvik Kumar Chakravarty
    Signed-off-by: Darren Hart

    Souvik Kumar Chakravarty
     
  • If we detect that there is nothing to do just set the flag and do not
    check if it was already set before. Races really do not matter. If the
    flag is set by any code then the shepherd will start dealing with the
    situation and reenable the vmstat workers when necessary again.

    Since commit 0eb77e988032 ("vmstat: make vmstat_updater deferrable again
    and shut down on idle") quiet_vmstat might update cpu_stat_off and mark
    a particular cpu to be handled by vmstat_shepherd. This might trigger a
    VM_BUG_ON in vmstat_update because the work item might have been
    sleeping during the idle period and see the cpu_stat_off updated after
    the wake up. The VM_BUG_ON is therefore misleading and no more
    appropriate. Moreover it doesn't really suite any protection from real
    bugs because vmstat_shepherd will simply reschedule the vmstat_work
    anytime it sees a particular cpu set or vmstat_update would do the same
    from the worker context directly. Even when the two would race the
    result wouldn't be incorrect as the counters update is fully idempotent.

    Reported-by: Sasha Levin
    Signed-off-by: Christoph Lameter
    Acked-by: Michal Hocko
    Cc: Johannes Weiner
    Cc: Tetsuo Handa
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     

24 Jan, 2016

28 commits

  • Ralf Baechle
     
  • As most platforms implement the PROM serial interface prom_putchar()
    add a simple bridge to allow re-using this code for zboot.

    Signed-off-by: Alban Bedel
    Cc: Alex Smith
    Cc: Andrew Bresticker
    Cc: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11811/
    Signed-off-by: Ralf Baechle

    Alban Bedel
     
  • Add dummy.o to the targets list, and fill targets automatically from
    $(vmlinuzobjs) to avoid having to maintain two lists.

    When building with XZ compression copy ashldi3.c to the build
    directory to use a different object file for the kernel and zboot.
    Without this the same object file need to be build with different
    flags which cause a rebuild at every run.

    Signed-off-by: Alban Bedel
    Cc: linux-mips@linux-mips.org
    Cc: Alex Smith
    Cc: Wu Zhangjin
    Cc: Andrew Bresticker
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11810/
    Signed-off-by: Ralf Baechle

    Alban Bedel
     
  • Allow BMIPS_GENERIC supported platforms to build GPIO controller
    drivers.

    Signed-off-by: Florian Fainelli
    Reviewed-by: Dragan Stancevic
    Cc: cernekee@gmail.com
    Cc: jaedon.shin@gmail.com
    Cc: gregory.0xf0@gmail.com
    Cc: Florian Fainelli
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/12019/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     
  • Remove bcm63xx_nvram_get_psi_size() as it now has no users.

    Signed-off-by: Simon Arlott
    Cc: David Woodhouse
    Cc: Brian Norris
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Jonas Gorski
    Cc: Linux Kernel Mailing List
    Cc: MIPS Mailing List
    Cc: MTD Maling List
    Patchwork: https://patchwork.linux-mips.org/patch/11836/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     
  • The "dual_image" and "inactive_flag" fields should be merged into a single
    "image_sequence" field.

    Signed-off-by: Simon Arlott
    Cc: David Woodhouse
    Cc: Brian Norris
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Jonas Gorski
    Cc: Linux Kernel Mailing List
    Cc: MIPS Mailing List
    Cc: MTD Maling List
    Patchwork: https://patchwork.linux-mips.org/patch/11834/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     
  • The extended flash address needs to be subtracted from bcm_tag flash
    image offsets. Move this value to the bcm_tag header file.

    Renamed define name to consistently use bcm963xx for flash layout
    which should be considered a property of the board and not the SoC
    (i.e. bcm63xx could theoretically be used on a board without CFE
    or any flash).

    Signed-off-by: Simon Arlott
    Cc: David Woodhouse
    Cc: Brian Norris
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Jonas Gorski
    Cc: Linux Kernel Mailing List
    Cc: MIPS Mailing List
    Cc: MTD Maling List
    Patchwork: https://patchwork.linux-mips.org/patch/11833/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     
  • Move Broadcom BCM963xx image tag data structure to include/linux/
    so that drivers outside of mach-bcm63xx can use it.

    Signed-off-by: Simon Arlott
    Cc: David Woodhouse
    Cc: Brian Norris
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Jonas Gorski
    Cc: Linux Kernel Mailing List
    Cc: MIPS Mailing List
    Cc: MTD Maling List
    Patchwork: https://patchwork.linux-mips.org/patch/11832/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     
  • Use the common definition of the nvram structure from the header file
    include/linux/bcm963xx_nvram.h instead of maintaining a separate copy.

    Read the version 5 size of nvram data from memory and then call the
    new checksum verification function from the header file.

    Signed-off-by: Simon Arlott
    Cc: David Woodhouse
    Cc: Brian Norris
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Jonas Gorski
    Cc: Linux Kernel Mailing List
    Cc: MIPS Mailing List
    Cc: MTD Maling List
    Patchwork: https://patchwork.linux-mips.org/patch/11831/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     
  • Broadcom BCM963xx boards have multiple nvram variants across different
    SoCs with additional checksum fields added whenever the size of the
    nvram was extended.

    Add this structure as a header file so that multiple drivers can use it.

    Signed-off-by: Simon Arlott
    Cc: David Woodhouse
    Cc: Brian Norris
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Jonas Gorski
    Cc: Linux Kernel Mailing List
    Cc: MIPS Mailing List
    Cc: MTD Maling List
    Patchwork: https://patchwork.linux-mips.org/patch/11830/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     
  • Pull rdma updates from Doug Ledford:
    "Initial roundup of 4.5 merge window patches

    - Remove usage of ib_query_device and instead store attributes in
    ib_device struct

    - Move iopoll out of block and into lib, rename to irqpoll, and use
    in several places in the rdma stack as our new completion queue
    polling library mechanism. Update the other block drivers that
    already used iopoll to use the new mechanism too.

    - Replace the per-entry GID table locks with a single GID table lock

    - IPoIB multicast cleanup

    - Cleanups to the IB MR facility

    - Add support for 64bit extended IB counters

    - Fix for netlink oops while parsing RDMA nl messages

    - RoCEv2 support for the core IB code

    - mlx4 RoCEv2 support

    - mlx5 RoCEv2 support

    - Cross Channel support for mlx5

    - Timestamp support for mlx5

    - Atomic support for mlx5

    - Raw QP support for mlx5

    - MAINTAINERS update for mlx4/mlx5

    - Misc ocrdma, qib, nes, usNIC, cxgb3, cxgb4, mlx4, mlx5 updates

    - Add support for remote invalidate to the iSER driver (pushed
    through the RDMA tree due to dependencies, acknowledged by nab)

    - Update to NFSoRDMA (pushed through the RDMA tree due to
    dependencies, acknowledged by Bruce)"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (169 commits)
    IB/mlx5: Unify CQ create flags check
    IB/mlx5: Expose Raw Packet QP to user space consumers
    {IB, net}/mlx5: Move the modify QP operation table to mlx5_ib
    IB/mlx5: Support setting Ethernet priority for Raw Packet QPs
    IB/mlx5: Add Raw Packet QP query functionality
    IB/mlx5: Add create and destroy functionality for Raw Packet QP
    IB/mlx5: Refactor mlx5_ib_qp to accommodate other QP types
    IB/mlx5: Allocate a Transport Domain for each ucontext
    net/mlx5_core: Warn on unsupported events of QP/RQ/SQ
    net/mlx5_core: Add RQ and SQ event handling
    net/mlx5_core: Export transport objects
    IB/mlx5: Expose CQE version to user-space
    IB/mlx5: Add CQE version 1 support to user QPs and SRQs
    IB/mlx5: Fix data validation in mlx5_ib_alloc_ucontext
    IB/sa: Fix netlink local service GFP crash
    IB/srpt: Remove redundant wc array
    IB/qib: Improve ipoib UD performance
    IB/mlx4: Advertise RoCE v2 support
    IB/mlx4: Create and use another QP1 for RoCEv2
    IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers
    ...

    Linus Torvalds
     
  • I've pretty much been maintaining KVM for MIPS for a while now. Lets
    make it more official (and make sure I get Cc'd on relevant patches).

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11898/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Add missing newline to end of kvm_err string when guest PMAP couldn't be
    allocated.

    Signed-off-by: James Hogan
    Cc: Gleb Natapov
    Cc: Paolo Bonzini
    Cc: kvm@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/11896/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • The header arch/mips/kvm/opcode.h defines a few extra opcodes which
    aren't in arch/mips/include/uapi/asm/inst.h. There's nothing KVM
    specific about them, so lets move them into inst.h where they belong and
    delete the header.

    Note that mfmcz_op is renamed to mfmc0_op to match the instruction set
    manual, and wait_op was already added to inst.h in commit b0a3eae2b943
    ("MIPS: inst.h: define COP0 wait op"), merged in v3.16-rc1.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11895/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Drop the custom cache operation code definitions used by KVM for
    emulating guest CACHE instructions, and switch to use the existing
    definitions in .

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: kvm@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/11893/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Most of the cache op codes defined in cacheops.h are split into a 2-bit
    cache identifier, and a 3-bit cache op code which does largely the same
    thing semantically regardless of the cache identifier.

    To allow the use of these definitions by KVM for decoding cache ops,
    break the definitions down into parts where it makes sense to do so, and
    add masks for the Cache and Op field within the cache op.

    Signed-off-by: James Hogan
    Cc: linux-mips@linux-mips.org
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11892/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • The first argument to set_except_vector is the ExcCode, which we now
    have definitions for. Lets make use of them.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11894/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Add a few missing trap codes.

    [ralf@linux-mips.org: Drop removal of exception codes. I don't care what
    the incomplete architecture spec says; it can't change existing hardware
    and VCEI is supported indeed.]

    Signed-off-by: James Hogan
    Cc: linux-mips@linux-mips.org
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11890/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Move the Cause.ExcCode trap code definitions from kvm_host.h to
    mipsregs.h, since they describe architectural bits rather than KVM
    specific constants, and change the prefix from T_ to EXCCODE_.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11891/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • The module init and exit functions have no need to be global, so make
    them static.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: kvm@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/11889/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • When calculating the offsets into the commpage for dynamically
    translated mtc0/mfc0 guest instructions, multiple offsetof()s are added
    together to find the offset of the specific register in the mips_coproc,
    within the commpage.

    Simplify each of these cases to a single offsetof() to find the offset
    of the specific register within the commpage.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11888/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Export symbols only to GPL modules to match other KVM symbols in
    virt/kvm/ and arch/*/kvm/.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11887/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • The function kvm_mips_host_tlb_inv_index() is unused, so drop it
    completely.

    Signed-off-by: James Hogan
    Cc: Ralf Baechle
    Cc: Gleb Natapov
    Cc: Paolo Bonzini
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11886/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • The CAUSEB_DC and CAUSEF_DC definitions used by KVM are defined in
    asm/kvm_host.h, but all the other Cause register field definitions are
    found in asm/mipsregs.h.

    Lets reunite the DC bit definitions with its friends in mipsregs.h.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/11885/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • Some definitions in the MIPS asm/kvm_host.h are completely unused, so
    lets drop them.

    MS_TO_NS is no longer used since commit e30492bbe95a ("MIPS: KVM:
    Rewrite count/compare timer emulation"). The others don't appear ever to
    have been used.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Gleb Natapov
    Cc: kvm@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/11884/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • A bunch of misc whitespace and style fixes within arch/mips/kvm/.

    Signed-off-by: James Hogan
    Cc: Paolo Bonzini
    Cc: Ralf Baechle
    Cc: Gleb Natapov
    Cc: kvm@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/11883/
    Signed-off-by: Ralf Baechle

    James Hogan
     
  • This adds an initial default config that enables all available PIC32
    drivers and is enough for booting a PIC32MZDA Starter Kit.

    Signed-off-by: Joshua Henderson
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/12105/
    Signed-off-by: Ralf Baechle

    Joshua Henderson
     
  • This adds basic DTS configuration for the PIC32MZDA chip and in turn the
    PIC32MZDA Starter Kit.

    Signed-off-by: Joshua Henderson
    Cc: Rob Herring
    Cc: Pawel Moll
    Cc: Mark Rutland
    Cc: Ian Campbell
    Cc: Kumar Gala
    Cc: Andrew Bresticker
    Cc: Paul Burton
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/12104/
    Signed-off-by: Ralf Baechle

    Joshua Henderson