xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Keir Fraser <keir@xen.org>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: backport requests for 4.x-testing
Date: Wed, 7 Mar 2012 10:44:56 +0000	[thread overview]
Message-ID: <4F573C28.1050305@citrix.com> (raw)
In-Reply-To: <CB7CDE29.3AF03%keir@xen.org>

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

On 07/03/12 09:43, Keir Fraser wrote:
> On 06/03/2012 11:04, "Andrew Cooper" <andrew.cooper3@citrix.com> wrote:
>
>> On 06/03/12 10:13, Jan Beulich wrote:
>>> For a (hopefully soon) upcoming 4.1.3 and 4.0.4, may I ask to consider
>>> the following changesets from -unstable for backporting:
>> May I add the following suggestions.  These are all patches which we
>> have cherry picked for XenServer.
> All applied except as follows:
>
>> 23936*,23937,23938*,23939,23940,23941 (Various ocaml fixes)
>> 24320 (ocaml: release global lock during some hypercalls)
>> 24414 (oxenstored: install configuration file)
> These need to be Acked or backported by a toolstack maintainer.
>
>> 24542, 24543, 24570, 24571 (xenoprof fixes)
> These changesets do not relate to xenoprof??

So they are not.  It appears that there was an off-by-6 numbering error
in our patch queue for these patches.  Apologies for that.

The numbers were in fact 24536,24537,24564,24565.

>> 24870* (IOAPIC: prevent directed EOI support trashing io_ack mode)
> Too hard to backport. Please provide your backported version.

Attached.

>  -- Keir
>
>

-- 
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com


[-- Attachment #2: xen-unstable.hg-24870.9bf3ec036bef-ported.patch --]
[-- Type: text/x-patch, Size: 2550 bytes --]


# HG changeset patch
# User Andrew Cooper <andrew.cooper3@citrix.com>
# Date 1329991127 0
# Node ID 9bf3ec036bef2b67338bf5685423e26de69bd031
# Parent c0412e6399fdc5048b4eeefa6a45822890309c72
IO-APIC: Prevent using EOI broadcast suppression if user specified ioapic_ack=new on the command line.

Currently, if EOI broadcast suppression is advertised on the BSP
LAPIC, Xen will discard any user specified option regarding IO-APIC
ack mode.

This patch introduces a check which prevents EOI Broadcast suppression
from forcing the IO-APIC ack mode to old if the user has explicitly
asked for the new ack mode on the command line.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>

diff -r c0412e6399fd xen/arch/x86/apic.c
--- a/xen/arch/x86/apic.c
+++ b/xen/arch/x86/apic.c
@@ -437,9 +437,15 @@ int __init verify_local_APIC(void)
      */
     if ( reg0 & APIC_LVR_DIRECTED_EOI )
     {
-        ioapic_ack_new = 0;
-        directed_eoi_enabled = 1;
-        printk("Enabled directed EOI with ioapic_ack_old on!\n");
+        if ( ioapic_ack_new == 1 && ioapic_ack_forced == 1 )
+            printk("Not enabling directed EOI because ioapic_ack_new has been "
+                   "forced on the command line\n");
+        else
+        {
+            ioapic_ack_new = 0;
+            directed_eoi_enabled = 1;
+            printk("Enabled directed EOI with ioapic_ack_old on!\n");
+        }
     }
 
     /*
diff -r c0412e6399fd xen/arch/x86/io_apic.c
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -44,6 +44,7 @@ static struct { int pin, apic; } ioapic_
 static DEFINE_SPINLOCK(ioapic_lock);
 
 bool_t __read_mostly skip_ioapic_setup;
+bool_t __read_mostly ioapic_ack_forced = 0;
 
 #ifndef sis_apic_bug
 /*
@@ -1664,9 +1665,15 @@ int __read_mostly ioapic_ack_new = 1;
 static void setup_ioapic_ack(char *s)
 {
     if ( !strcmp(s, "old") )
+    {
         ioapic_ack_new = 0;
+        ioapic_ack_forced = 1;
+    }
     else if ( !strcmp(s, "new") )
+    {
         ioapic_ack_new = 1;
+        ioapic_ack_forced = 1;
+    }
     else
         printk("Unknown ioapic_ack value specified: '%s'\n", s);
 }
diff -r c0412e6399fd xen/include/asm-x86/io_apic.h
--- a/xen/include/asm-x86/io_apic.h
+++ b/xen/include/asm-x86/io_apic.h
@@ -179,6 +179,7 @@ static inline void io_apic_modify(unsign
 
 /* 1 if "noapic" boot option passed */
 extern bool_t skip_ioapic_setup;
+extern bool_t ioapic_ack_forced;
 
 #ifdef CONFIG_ACPI_BOOT
 extern int io_apic_get_unique_id (int ioapic, int apic_id);

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2012-03-07 10:44 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06 10:13 backport requests for 4.x-testing Jan Beulich
2012-03-06 10:38 ` Keir Fraser
2012-03-06 11:04 ` Andrew Cooper
2012-03-07  7:25   ` Roderick Colenbrander
2012-03-07  9:43     ` Keir Fraser
2012-03-13 16:50     ` Ian Jackson
2012-03-13 17:25       ` Teck Choon Giam
2012-03-13 17:52         ` Teck Choon Giam
2012-03-13 18:23           ` Teck Choon Giam
2012-03-14 10:03             ` Ian Jackson
2012-03-14  9:58           ` Ian Jackson
2012-03-14 11:37         ` Ian Jackson
2012-03-14 23:08           ` Teck Choon Giam
2012-03-19 14:22             ` Teck Choon Giam
2012-04-03 15:04               ` Ian Jackson
2012-03-07  9:43   ` Keir Fraser
2012-03-07 10:44     ` Andrew Cooper [this message]
2012-03-07 10:59       ` Keir Fraser
2012-03-07 11:06         ` Jan Beulich
2012-03-07 11:08           ` Andrew Cooper
2012-03-07 19:38       ` Ian Campbell
2012-03-08 10:38         ` Andrew Cooper
2012-03-08 10:42           ` Keir Fraser
2012-03-13 16:52     ` Ian Jackson
2012-03-24 17:27   ` Konrad Rzeszutek Wilk
2012-03-29  9:22     ` Keir Fraser
2012-03-29 11:32       ` Teck Choon Giam
2012-03-29 11:42         ` Teck Choon Giam
2012-03-29 15:11         ` Konrad Rzeszutek Wilk
2012-03-29 15:26           ` Teck Choon Giam
2012-03-29 15:56             ` Konrad Rzeszutek Wilk
2012-03-29 16:20               ` Teck Choon Giam
2012-03-29 16:23                 ` Konrad Rzeszutek Wilk
2012-03-29 16:39                   ` Teck Choon Giam
2012-03-29 11:55     ` Stefano Stabellini
2012-03-29 15:31       ` Jan Beulich
2012-03-29 17:06         ` Stefano Stabellini
2012-03-30  8:23           ` Keir Fraser
2012-03-30  9:59             ` Stefano Stabellini
2012-04-03 15:08     ` Ian Jackson
2012-04-03 15:15       ` Teck Choon Giam
2012-04-03 16:58         ` Ian Jackson
2012-04-03 19:50           ` Teck Choon Giam
2012-04-03 20:02             ` Teck Choon Giam
2012-04-04 10:22               ` Ian Jackson
2012-04-04 12:54                 ` Teck Choon Giam
2012-04-04 15:09                   ` Ian Jackson
2012-03-07  9:18 ` Keir Fraser
2012-03-07 10:10   ` Jan Beulich
2012-03-08 10:00   ` Jan Beulich
2012-03-08 10:05     ` Keir Fraser
2012-03-08 10:45   ` Jan Beulich
2012-03-08 11:00     ` Keir Fraser

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=4F573C28.1050305@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xen.org \
    /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;
as well as URLs for NNTP newsgroup(s).