Commit 5af28da
scsi: lpfc: Properly set WC for DPP mapping
[ Upstream commit bffda93 ]
Using set_memory_wc() to enable write-combining for the DPP portion of
the MMIO mapping is wrong as set_memory_*() is meant to operate on RAM
only, not MMIO mappings. In fact, as used currently triggers a BUG_ON()
with enabled CONFIG_DEBUG_VIRTUAL.
Simply map the DPP region separately and in addition to the already
existing mappings, avoiding any possible negative side effects for
these.
Fixes: 1351e69 ("scsi: lpfc: Add push-to-adapter support to sli4")
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Reviewed-by: Mathias Krause <minipli@grsecurity.net>
Link: https://patch.msgid.link/20260212192327.141104-1-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent f611791 commit 5af28da
3 files changed
+35
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12034 | 12034 | | |
12035 | 12035 | | |
12036 | 12036 | | |
| 12037 | + | |
| 12038 | + | |
12037 | 12039 | | |
12038 | 12040 | | |
12039 | 12041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15981 | 15981 | | |
15982 | 15982 | | |
15983 | 15983 | | |
| 15984 | + | |
| 15985 | + | |
| 15986 | + | |
| 15987 | + | |
| 15988 | + | |
| 15989 | + | |
| 15990 | + | |
| 15991 | + | |
| 15992 | + | |
| 15993 | + | |
| 15994 | + | |
| 15995 | + | |
| 15996 | + | |
| 15997 | + | |
| 15998 | + | |
| 15999 | + | |
| 16000 | + | |
| 16001 | + | |
| 16002 | + | |
| 16003 | + | |
| 16004 | + | |
| 16005 | + | |
| 16006 | + | |
| 16007 | + | |
| 16008 | + | |
| 16009 | + | |
15984 | 16010 | | |
15985 | 16011 | | |
15986 | 16012 | | |
| |||
16944 | 16970 | | |
16945 | 16971 | | |
16946 | 16972 | | |
16947 | | - | |
16948 | | - | |
16949 | | - | |
16950 | 16973 | | |
16951 | 16974 | | |
16952 | 16975 | | |
| |||
17132 | 17155 | | |
17133 | 17156 | | |
17134 | 17157 | | |
17135 | | - | |
17136 | | - | |
17137 | | - | |
| 17158 | + | |
| 17159 | + | |
17138 | 17160 | | |
17139 | 17161 | | |
17140 | 17162 | | |
17141 | 17163 | | |
17142 | 17164 | | |
| 17165 | + | |
| 17166 | + | |
17143 | 17167 | | |
17144 | 17168 | | |
17145 | 17169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
788 | 791 | | |
789 | 792 | | |
790 | 793 | | |
| |||
0 commit comments