public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sathyanarayanan Kuppuswamy  <sathyanarayanan.kuppuswamy@linux.intel.com>
To: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H . Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org,
	"Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>,
	"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
	Tony Luck <tony.luck@intel.com>
Subject: Re: [PATCH v2] x86/apic: Do apic driver probe for "nosmp" use case
Date: Thu, 7 Apr 2022 20:54:56 -0700	[thread overview]
Message-ID: <8d6789ba-85d3-3482-4bbb-3693073bea06@linux.intel.com> (raw)
In-Reply-To: <87mtgxzuzz.ffs@tglx>



On 4/6/22 3:50 PM, Thomas Gleixner wrote:
> On Wed, Apr 06 2022 at 18:54, Kuppuswamy Sathyanarayanan wrote:
>> diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
>> index b70344bf6600..79b8b521981c 100644
>> --- a/arch/x86/kernel/apic/apic.c
>> +++ b/arch/x86/kernel/apic/apic.c
>> @@ -1419,22 +1419,22 @@ void __init apic_intr_mode_init(void)
>>   		return;
>>   	case APIC_VIRTUAL_WIRE:
>>   		pr_info("APIC: Switch to virtual wire mode setup\n");
>> -		default_setup_apic_routing();
>>   		break;
>>   	case APIC_VIRTUAL_WIRE_NO_CONFIG:
>>   		pr_info("APIC: Switch to virtual wire mode setup with no configuration\n");
>>   		upmode = true;
>> -		default_setup_apic_routing();
>>   		break;
>>   	case APIC_SYMMETRIC_IO:
>>   		pr_info("APIC: Switch to symmetric I/O mode setup\n");
>> -		default_setup_apic_routing();
>>   		break;
>>   	case APIC_SYMMETRIC_IO_NO_ROUTING:
>>   		pr_info("APIC: Switch to symmetric I/O mode setup in no SMP routine\n");
>> +		upmode = true;
> 
> Why? The changelog tells nothing about this change.
> 
> And it's not correct because the APIC configuration is there, otherwise
> __apic_intr_mode_select() would have returned APIC_VIRTUAL_WIRE_NO_CONFIG.

Makes sense. I initially thought since APIC_SYMMETRIC_IO_NO_ROUTING is
only used in non-smp case (setup_max_cpus == 0), we can force
uniprocessor mode. But checking again, my assumption is incorrect. It
will only be used in non MADT/MP case. I will remove the upmode change 
in next version.

> 
> Thanks,
> 
>          tglx

-- 
Sathyanarayanan Kuppuswamy
Linux Kernel Developer

      reply	other threads:[~2022-04-08  3:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 18:54 [PATCH v2] x86/apic: Do apic driver probe for "nosmp" use case Kuppuswamy Sathyanarayanan
2022-04-06 22:50 ` Thomas Gleixner
2022-04-08  3:54   ` Sathyanarayanan Kuppuswamy [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=8d6789ba-85d3-3482-4bbb-3693073bea06@linux.intel.com \
    --to=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.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