1. 13 3月, 2020 34 次提交
  2. 12 3月, 2020 6 次提交
    • A
      dt-bindings: soc: qcom: fix IPA binding · e6e0f093
      Alex Elder 提交于
      The definitions for the "qcom,smem-states" and "qcom,smem-state-names"
      properties need to list their "$ref" under an "allOf" keyword.
      
      In addition, fix two problems in the example at the end:
        - Use #include for header files that define needed symbolic values
        - Terminate the line that includes the "ipa-shared" register space
          name with a comma rather than a semicolon
      
      Finally, update some white space in the example for better alignment.
      Signed-off-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e6e0f093
    • D
      net: mptcp: don't hang before sending 'MP capable with data' · 767d3ded
      Davide Caratti 提交于
      the following packetdrill script
      
        socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3
        fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
        fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
        connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
        > S 0:0(0) <mss 1460,sackOK,TS val 100 ecr 0,nop,wscale 8,mpcapable v1 flags[flag_h] nokey>
        < S. 0:0(0) ack 1 win 65535 <mss 1460,sackOK,TS val 700 ecr 100,nop,wscale 8,mpcapable v1 flags[flag_h] key[skey=2]>
        > . 1:1(0) ack 1 win 256 <nop, nop, TS val 100 ecr 700,mpcapable v1 flags[flag_h] key[ckey,skey]>
        getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
        fcntl(3, F_SETFL, O_RDWR) = 0
        write(3, ..., 1000) = 1000
      
      doesn't transmit 1KB data packet after a successful three-way-handshake,
      using mp_capable with data as required by protocol v1, and write() hangs
      forever:
      
       PID: 973    TASK: ffff97dd399cae80  CPU: 1   COMMAND: "packetdrill"
        #0 [ffffa9b94062fb78] __schedule at ffffffff9c90a000
        #1 [ffffa9b94062fc08] schedule at ffffffff9c90a4a0
        #2 [ffffa9b94062fc18] schedule_timeout at ffffffff9c90e00d
        #3 [ffffa9b94062fc90] wait_woken at ffffffff9c120184
        #4 [ffffa9b94062fcb0] sk_stream_wait_connect at ffffffff9c75b064
        #5 [ffffa9b94062fd20] mptcp_sendmsg at ffffffff9c8e801c
        #6 [ffffa9b94062fdc0] sock_sendmsg at ffffffff9c747324
        #7 [ffffa9b94062fdd8] sock_write_iter at ffffffff9c7473c7
        #8 [ffffa9b94062fe48] new_sync_write at ffffffff9c302976
        #9 [ffffa9b94062fed0] vfs_write at ffffffff9c305685
       #10 [ffffa9b94062ff00] ksys_write at ffffffff9c305985
       #11 [ffffa9b94062ff38] do_syscall_64 at ffffffff9c004475
       #12 [ffffa9b94062ff50] entry_SYSCALL_64_after_hwframe at ffffffff9ca0008c
           RIP: 00007f959407eaf7  RSP: 00007ffe9e95a910  RFLAGS: 00000293
           RAX: ffffffffffffffda  RBX: 0000000000000008  RCX: 00007f959407eaf7
           RDX: 00000000000003e8  RSI: 0000000001785fe0  RDI: 0000000000000008
           RBP: 0000000001785fe0   R8: 0000000000000000   R9: 0000000000000003
           R10: 0000000000000007  R11: 0000000000000293  R12: 00000000000003e8
           R13: 00007ffe9e95ae30  R14: 0000000000000000  R15: 0000000000000000
           ORIG_RAX: 0000000000000001  CS: 0033  SS: 002b
      
      Fix it ensuring that socket state is TCP_ESTABLISHED on reception of the
      third ack.
      
      Fixes: 1954b860 ("mptcp: Check connection state before attempting send")
      Suggested-by: NPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: NDavide Caratti <dcaratti@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      767d3ded
    • C
      soc: qcom: ipa: fix spelling mistake "cahces" -> "caches" · dc3e19f4
      Colin Ian King 提交于
      There is a spelling mistake in a dev_err message. Fix it.
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc3e19f4
    • C
      net: ibm: remove set but not used variables 'err' · 9b96a3e6
      Chen Zhou 提交于
      Fixes gcc '-Wunused-but-set-variable' warning:
      
      drivers/net/ethernet/ibm/emac/core.c: In function __emac_mdio_write:
      drivers/net/ethernet/ibm/emac/core.c:875:9: warning:
      	variable err set but not used [-Wunused-but-set-variable]
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NChen Zhou <chenzhou10@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9b96a3e6
    • J
      net: Add missing annotation for *netlink_seq_start() · 64fbca01
      Jules Irenge 提交于
      Sparse reports a warning at netlink_seq_start()
      
      warning: context imbalance in netlink_seq_start() - wrong count at exit
      The root cause is the missing annotation at netlink_seq_start()
      Add the missing  __acquires(RCU) annotation
      Signed-off-by: NJules Irenge <jbi.octave@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      64fbca01
    • J
      tcp: Add missing annotation for tcp_child_process() · 734c8f75
      Jules Irenge 提交于
      Sparse reports warning at tcp_child_process()
      warning: context imbalance in tcp_child_process() - unexpected unlock
      The root cause is the missing annotation at tcp_child_process()
      
      Add the missing __releases(&((child)->sk_lock.slock)) annotation
      Signed-off-by: NJules Irenge <jbi.octave@gmail.com>
      Reviewed-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      734c8f75