ferruhy

Untitled

Nov 3rd, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. commit d0ce87e41cdc9094310b05d7f00c1a350cc95673 (tag: t_fail, refs/bisect/bad)
  2. Author: Timothy McDaniel <[email protected]>
  3. Date: Mon Jun 13 15:39:11 2022 -0500
  4.  
  5. event/dlb2: support single 512B write of 4 QEs
  6.  
  7. On Xeon, 512b accesses are available, so movdir64 instruction is able to
  8. perform 512b read and write to DLB producer port. In order for movdir64
  9. to be able to pull its data from store buffers (store-buffer-forwarding)
  10. (before actual write), data should be in single 512b write format.
  11. This commit add change when code is built for Xeon with 512b AVX support
  12. to make single 512b write of all 4 QEs instead of 4x64b writes.
  13.  
  14. Signed-off-by: Timothy McDaniel <[email protected]>
  15. Acked-by: Kent Wires <[email protected]>
  16.  
  17.  
  18.  
  19. Following fixes meson, with command `meson -Dc_args='-Werror' build` ::
  20.  
  21. diff --git a/drivers/event/dlb2/meson.build b/drivers/event/dlb2/meson.build
  22. index 20ef159ab327..c231df83b1a7 100644
  23. --- a/drivers/event/dlb2/meson.build
  24. +++ b/drivers/event/dlb2/meson.build
  25. @@ -23,7 +23,7 @@ sources = files(
  26. # we are building 64-bit binary (checked above) AND binutils
  27. # can generate proper code
  28.  
  29. -if binutils_ok
  30. +#if binutils_ok
  31.  
  32. # compile AVX512 version if either:
  33. # a. we have AVX512VL supported in minimum instruction set
  34. @@ -37,30 +37,30 @@ if binutils_ok
  35. # linked into main lib.
  36.  
  37. # check if all required flags already enabled (variant a).
  38. - dlb2_avx512_on = false
  39. - if cc.get_define(f, args: machine_args) == '__AVX512VL__'
  40. - dlb2_avx512_on = true
  41. - endif
  42. +# dlb2_avx512_on = false
  43. +# if cc.get_define(f, args: machine_args) == '__AVX512VL__'
  44. +# dlb2_avx512_on = true
  45. +# endif
  46.  
  47. - if dlb2_avx512_on == true
  48. +# if dlb2_avx512_on == true
  49.  
  50. - sources += files('dlb2_avx512.c')
  51. - cflags += '-DCC_AVX512_SUPPORT'
  52. +# sources += files('dlb2_avx512.c')
  53. +# cflags += '-DCC_AVX512_SUPPORT'
  54.  
  55. - elif cc.has_multi_arguments('-mavx512vl')
  56. +# elif cc.has_multi_arguments('-mavx512vl')
  57.  
  58. - cflags += '-DCC_AVX512_SUPPORT'
  59. - avx512_tmplib = static_library('avx512_tmp',
  60. - 'dlb2_avx512.c',
  61. - dependencies: [static_rte_eal, static_rte_eventdev],
  62. - c_args: cflags + ['-mavx512vl'])
  63. - objs += avx512_tmplib.extract_objects('dlb2_avx512.c')
  64. - else
  65. +# cflags += '-DCC_AVX512_SUPPORT'
  66. +# avx512_tmplib = static_library('avx512_tmp',
  67. +# 'dlb2_avx512.c',
  68. +# dependencies: [static_rte_eal, static_rte_eventdev],
  69. +# c_args: cflags + ['-mavx512vl'])
  70. +# objs += avx512_tmplib.extract_objects('dlb2_avx512.c')
  71. +# else
  72. +# sources += files('dlb2_sse.c')
  73. +# endif
  74. +#else
  75. sources += files('dlb2_sse.c')
  76. - endif
  77. -else
  78. - sources += files('dlb2_sse.c')
  79. -endif
  80. +#endif
  81.  
  82. headers = files('rte_pmd_dlb2.h')
  83.  
  84.  
Advertisement
Add Comment
Please, Sign In to add comment