]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: lpfc: Properly set WC for DPP mapping
authorMathias Krause <minipli@grsecurity.net>
Thu, 12 Feb 2026 19:23:27 +0000 (11:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 18 Feb 2026 02:10:29 +0000 (21:10 -0500)
commitbffda93a51b40afd67c11bf558dc5aae83ca0943
tree6a38cd91fd0755880a76551a1919ecb18147c80c
parent1982257570b84dc33753d536dd969fd357a014e9
scsi: lpfc: Properly set WC for DPP mapping

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: 1351e69fc6db ("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>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c
drivers/scsi/lpfc/lpfc_sli4.h