1. 24 9月, 2020 2 次提交
    • S
      octeontx2-pf: Add tracepoints for PF/VF mailbox · 31a97460
      Subbaraya Sundeep 提交于
      With tracepoints support present in the mailbox
      code this patch adds tracepoints in PF and VF drivers
      at places where mailbox messages are allocated,
      sent and at message interrupts.
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      31a97460
    • S
      octeontx2-af: Introduce tracepoints for mailbox · 49142d12
      Subbaraya Sundeep 提交于
      Added tracepoints in mailbox code so that
      the mailbox operations like message allocation,
      sending message and message interrupts are traced.
      Also the mailbox errors occurred like timeout
      or wrong responses are traced.
      These will help in debugging mailbox issues.
      
      Here's an example output showing one of the mailbox
      messages sent by PF to AF and AF responding to it:
      
      ~# mount -t tracefs none /sys/kernel/tracing/
      ~# echo 1 > /sys/kernel/tracing/events/rvu/enable
      ~# ifconfig eth0 up
      ~# cat /sys/kernel/tracing/trace
      
      ~# cat /sys/kernel/tracing/trace
       tracer: nop
      
      		      _-----=> irqs-off
      		     / _----=> need-resched
      		    | / _---=> hardirq/softirq
      		    || / _--=> preempt-depth
      		    ||| /     delay
         TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
            | |       |   ||||       |         |
      ifconfig-2382  [002] ....   756.161892: otx2_msg_alloc: [0002:02:00.0] msg:(0x400) size:40
      
      ifconfig-2382  [002] ...1   756.161895: otx2_msg_send: [0002:02:00.0] sent 1 msg(s) of size:48
      
       <idle>-0     [000] d.h1   756.161902: otx2_msg_interrupt: [0002:01:00.0] mbox interrupt PF(s) to AF (0x2)
      
      kworker/u49:0-1165  [000] ....   756.162049: otx2_msg_process: [0002:01:00.0] msg:(0x400) error:0
      
      kworker/u49:0-1165  [000] ...1   756.162051: otx2_msg_send: [0002:01:00.0] sent 1 msg(s) of size:32
      
      kworker/u49:0-1165  [000] d.h.   756.162056: otx2_msg_interrupt: [0002:02:00.0] mbox interrupt AF to PF (0x1)
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      49142d12
  2. 12 9月, 2020 1 次提交
  3. 02 9月, 2020 1 次提交
  4. 25 8月, 2020 3 次提交
  5. 24 8月, 2020 1 次提交
  6. 18 8月, 2020 1 次提交
  7. 29 7月, 2020 3 次提交
  8. 19 6月, 2020 2 次提交
  9. 14 6月, 2020 1 次提交
    • M
      treewide: replace '---help---' in Kconfig files with 'help' · a7f7f624
      Masahiro Yamada 提交于
      Since commit 84af7a61 ("checkpatch: kconfig: prefer 'help' over
      '---help---'"), the number of '---help---' has been gradually
      decreasing, but there are still more than 2400 instances.
      
      This commit finishes the conversion. While I touched the lines,
      I also fixed the indentation.
      
      There are a variety of indentation styles found.
      
        a) 4 spaces + '---help---'
        b) 7 spaces + '---help---'
        c) 8 spaces + '---help---'
        d) 1 space + 1 tab + '---help---'
        e) 1 tab + '---help---'    (correct indentation)
        f) 1 tab + 1 space + '---help---'
        g) 1 tab + 2 spaces + '---help---'
      
      In order to convert all of them to 1 tab + 'help', I ran the
      following commend:
      
        $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      a7f7f624
  10. 10 5月, 2020 1 次提交
    • K
      octeontx2-pf: Use the napi_alloc_frag() to alloc the pool buffers · 7a36e491
      Kevin Hao 提交于
      In the current codes, the octeontx2 uses its own method to allocate
      the pool buffers, but there are some issues in this implementation.
      1. We have to run the otx2_get_page() for each allocation cycle and
         this is pretty error prone. As I can see there is no invocation
         of the otx2_get_page() in otx2_pool_refill_task(), this will leave
         the allocated pages have the wrong refcount and may be freed wrongly.
      2. It wastes memory. For example, if we only receive one packet in a
         NAPI RX cycle, and then allocate a 2K buffer with otx2_alloc_rbuf()
         to refill the pool buffers and leave the remain area of the allocated
         page wasted. On a kernel with 64K page, 62K area is wasted.
      
      IMHO it is really unnecessary to implement our own method for the
      buffers allocate, we can reuse the napi_alloc_frag() to simplify
      our code.
      Signed-off-by: NKevin Hao <haokexin@gmail.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      7a36e491
  11. 09 5月, 2020 1 次提交
  12. 01 5月, 2020 1 次提交
  13. 26 4月, 2020 1 次提交
  14. 26 3月, 2020 2 次提交
  15. 24 3月, 2020 8 次提交
  16. 15 3月, 2020 1 次提交
  17. 13 3月, 2020 1 次提交
  18. 04 3月, 2020 1 次提交
  19. 03 3月, 2020 7 次提交
  20. 20 2月, 2020 1 次提交