login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
3
Re: x86_64: tss_struct layout does not match comments !?
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Richard Kennedy <richard@...>
To: Ingo Molnar <mingo@...>
Cc: lkml <linux-kernel@...>, the arch/x86 maintainers <x86@...>
Subject:
Re: x86_64: tss_struct layout does not match comments !?
Date: Thursday, July 3, 2008 - 7:57 am
On Thu, 2008-07-03 at 13:39 +0200, Ingo Molnar wrote:
quoted text
> * Richard Kennedy <richard@rsk.demon.co.uk> wrote: > > > Hi Ingo, > > > > the comments in the definition of tss_struct suggests is should be > > cacheline aligned ( or 256 byte aligned ? ) :- > > > > |struct tss_struct { > > |.... > > | /* > > | * Pad the TSS to be cacheline-aligned (size is 0x100): > > | */ > > | unsigned long __cacheline_filler[35]; > > | /* > > | * .. and then another 0x100 bytes for the emergency kernel stack: > > | */ > > | unsigned long stack[64]; > > | > > |} __attribute__((packed)); > > > > However on a 64 bit build the size of tss_struct is 9136, > > cacheline_filler is 280 and stack size is 512 at offset 8624. > > None of which are cacheline aligned. > > > > I'm guessing this isn't what was intended. > > > > do you know what the original intention was ? > > > > 1. struct tss_struct{...} __cacheline_aligned; > > or just > > 2. struct tss_struct { > > ... > > long stack[64] __cacheline_aligned; > > } > > #1 is the intent - because each CPU has a separate TSS. init_tss.stack > is really just an emergency static stack we have in place for very early > exceptions. > > i think the __cacheline_filler could be removed safely. Mind sending a > patch for that? > > Ingo
No problem. Richard --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
x86_64: tss_struct layout does not match comments !?
, Richard Kennedy
, (Thu Jul 3, 6:47 am)
Re: x86_64: tss_struct layout does not match comments !?
, Ingo Molnar
, (Thu Jul 3, 7:39 am)
[PATCH] x86: cacheline_align tss_struct
, Richard Kennedy
, (Fri Jul 4, 8:56 am)
Re: [PATCH] x86: cacheline_align tss_struct
, Ingo Molnar
, (Fri Jul 4, 10:48 am)
Re: x86_64: tss_struct layout does not match comments !?
, Richard Kennedy
, (Thu Jul 3, 7:57 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: Linux 2.6.25-rc4
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Artem Bityutskiy
[PATCH 11/44 take 2] [UBI] allocation unit header
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
676 guests
online.
Online users
strcmp
protectedtrusty
zainabstew21
marcusjuh
Syndicate