Commit 29fe7a1
octeontx2-af: Fix truncation of smq in CN10K NIX AQ enqueue mbox handler
The smq value used in the CN10K NIX AQ instruction enqueue mailbox
handler was truncated to 9-bit value from 10-bit value because of
typecasting the CN10K mbox request structure to the CN9K structure.
Though this hasn't caused any problems when programming the NIX SQ
context to the HW because the context structure is the same size.
However, this causes a problem when accessing the structure parameters.
This patch reads the right smq value for each platform.
Fixes: 30077d2 ("octeontx2-af: cn10k: Update NIX/NPA context structure")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent c3b704d commit 29fe7a1
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
849 | 864 | | |
850 | 865 | | |
851 | 866 | | |
| |||
857 | 872 | | |
858 | 873 | | |
859 | 874 | | |
| 875 | + | |
860 | 876 | | |
861 | 877 | | |
862 | 878 | | |
| |||
928 | 944 | | |
929 | 945 | | |
930 | 946 | | |
| 947 | + | |
931 | 948 | | |
932 | 949 | | |
933 | 950 | | |
934 | 951 | | |
935 | | - | |
| 952 | + | |
936 | 953 | | |
937 | | - | |
| 954 | + | |
938 | 955 | | |
939 | 956 | | |
940 | 957 | | |
| |||
0 commit comments