Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
- drivers/iommu/intel-iommu-debugfs.c | 11 ++++++++++-
- drivers/iommu/intel-iommu.c | 4 +++-
+ drivers/iommu/intel-iommu-debugfs.c | 11 ++++++++++-
+ drivers/iommu/intel-iommu.c | 4 +++-
2 files changed, 13 insertions(+), 2 deletions(-)
-diff --git a/drivers/iommu/intel-iommu-debugfs.c b/drivers/iommu/intel-iommu-debugfs.c
-index 80378c10dd77a..bdf095e9dbe03 100644
--- a/drivers/iommu/intel-iommu-debugfs.c
+++ b/drivers/iommu/intel-iommu-debugfs.c
-@@ -281,9 +281,16 @@ static int dmar_translation_struct_show(struct seq_file *m, void *unused)
+@@ -281,9 +281,16 @@ static int dmar_translation_struct_show(
{
struct dmar_drhd_unit *drhd;
struct intel_iommu *iommu;
root_tbl_walk(m, iommu);
seq_putc(m, '\n');
}
-@@ -353,6 +360,7 @@ static int ir_translation_struct_show(struct seq_file *m, void *unused)
+@@ -353,6 +360,7 @@ static int ir_translation_struct_show(st
struct dmar_drhd_unit *drhd;
struct intel_iommu *iommu;
u64 irta;
rcu_read_lock();
for_each_active_iommu(iommu, drhd) {
-@@ -362,7 +370,8 @@ static int ir_translation_struct_show(struct seq_file *m, void *unused)
+@@ -362,7 +370,8 @@ static int ir_translation_struct_show(st
seq_printf(m, "Remapped Interrupt supported on IOMMU: %s\n",
iommu->name);
irta = virt_to_phys(iommu->ir_table->base);
seq_printf(m, " IR table address:%llx\n", irta);
ir_tbl_remap_entry_show(m, iommu);
-diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
-index 1c2b3e78056f4..9d47b227e5578 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -4961,6 +4961,9 @@ int __init intel_iommu_init(void)
return 0;
---
-2.20.1
-
--- /dev/null
+From 7937fd3227055892e169f4b34d21157e57d919e2 Mon Sep 17 00:00:00 2001
+From: Johannes Berg <johannes.berg@intel.com>
+Date: Fri, 15 Nov 2019 09:28:31 +0200
+Subject: iwlwifi: mvm: fix non-ACPI function
+
+From: Johannes Berg <johannes.berg@intel.com>
+
+commit 7937fd3227055892e169f4b34d21157e57d919e2 upstream.
+
+The code now compiles without ACPI, but there's a warning since
+iwl_mvm_get_ppag_table() isn't used, and iwl_mvm_ppag_init() must
+not unconditionally fail but return success instead.
+
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
+Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
+[Drop hunk removing iwl_mvm_get_ppag_table() since it doesn't exist in
+5.4]
+Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
++++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+@@ -1181,7 +1181,7 @@ int iwl_mvm_ppag_send_cmd(struct iwl_mvm
+
+ static int iwl_mvm_ppag_init(struct iwl_mvm *mvm)
+ {
+- return -ENOENT;
++ return 0;
+ }
+ #endif /* CONFIG_ACPI */
+