From: tip-bot for Jiang Liu <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: matt@codeblueprint.co.uk, hpa@zytor.com, yinghai@kernel.org,
tony.luck@intel.com, mingo@kernel.org, jiang.liu@linux.intel.com,
tglx@linutronix.de, linux-kernel@vger.kernel.org,
yu.c.chen@intel.com
Subject: [tip:x86/urgent] x86/irq: Use the caller provided polarity setting in mp_check_pin_attr()
Date: Thu, 30 Jul 2015 12:19:23 -0700 [thread overview]
Message-ID: <tip-646c4b75494747887f936513b669bb8a2d794459@git.kernel.org> (raw)
In-Reply-To: <1438242695-23531-1-git-send-email-jiang.liu@linux.intel.com>
Commit-ID: 646c4b75494747887f936513b669bb8a2d794459
Gitweb: http://git.kernel.org/tip/646c4b75494747887f936513b669bb8a2d794459
Author: Jiang Liu <jiang.liu@linux.intel.com>
AuthorDate: Thu, 30 Jul 2015 15:51:32 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 30 Jul 2015 21:15:29 +0200
x86/irq: Use the caller provided polarity setting in mp_check_pin_attr()
Commit d32932d02e18 ("x86/irq: Convert IOAPIC to use hierarchical
irqdomain interfaces") introduced a regression which causes
malfunction of interrupt lines.
The reason is that the conversion of mp_check_pin_attr() missed to
update the polarity selection of the interrupt pin with the caller
provided setting and instead uses a stale attribute value. That in
turn results in chosing the wrong interrupt flow handler.
Use the caller supplied setting to configure the pin correctly which
also choses the correct interrupt flow handler.
This restores the original behaviour and on the affected
machine/driver (Surface Pro 3, i2c controller) all IOAPIC IRQ
configuration are identical to v4.1.
Fixes: d32932d02e18 ("x86/irq: Convert IOAPIC to use hierarchical irqdomain interfaces")
Reported-and-tested-by: Matt Fleming <matt@codeblueprint.co.uk>
Reported-and-tested-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Chen Yu <yu.c.chen@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1438242695-23531-1-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/kernel/apic/io_apic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 845dc0d..206052e 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -943,7 +943,7 @@ static bool mp_check_pin_attr(int irq, struct irq_alloc_info *info)
*/
if (irq < nr_legacy_irqs() && data->count == 1) {
if (info->ioapic_trigger != data->trigger)
- mp_register_handler(irq, data->trigger);
+ mp_register_handler(irq, info->ioapic_trigger);
data->entry.trigger = data->trigger = info->ioapic_trigger;
data->entry.polarity = data->polarity = info->ioapic_polarity;
}
prev parent reply other threads:[~2015-07-30 19:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-27 15:21 Regression in v4.2-rc1 caused by hierarchical irqdomain changes Matt Fleming
2015-07-27 16:35 ` Jiang Liu
2015-07-27 21:15 ` Matt Fleming
2015-07-29 21:03 ` Thomas Gleixner
2015-07-30 4:08 ` Jiang Liu
2015-07-30 7:51 ` [Bugfix] x86, irq: Fix regression caused by commit d32932d02e18 Jiang Liu
2015-07-30 8:33 ` Thomas Gleixner
2015-07-30 8:55 ` Jiang Liu
2015-07-30 9:07 ` Matt Fleming
2015-07-30 9:12 ` Jiang Liu
2015-07-30 9:46 ` Matt Fleming
2015-07-30 19:19 ` tip-bot for Jiang Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-646c4b75494747887f936513b669bb8a2d794459@git.kernel.org \
--to=tipbot@zytor.com \
--cc=hpa@zytor.com \
--cc=jiang.liu@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=matt@codeblueprint.co.uk \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=yinghai@kernel.org \
--cc=yu.c.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome