RE: [PATCH 3/3] x86/split_lock: Align the x86_capability array to size of unsigned long

2019-09-18 Thread David Laight
From: Luck, Tony > Sent: 17 September 2019 20:14 > On Tue, Sep 17, 2019 at 08:29:28AM +, David Laight wrote: > > From: Tony Luck > > > Sent: 16 September 2019 23:40 > > > From: Fenghua Yu > > > > > > The x86_capability array in cpuinfo_x86 is defined as u32 and thus is > > > naturally aligne

Re: [PATCH 3/3] x86/split_lock: Align the x86_capability array to size of unsigned long

2019-09-17 Thread Luck, Tony
On Tue, Sep 17, 2019 at 08:29:28AM +, David Laight wrote: > From: Tony Luck > > Sent: 16 September 2019 23:40 > > From: Fenghua Yu > > > > The x86_capability array in cpuinfo_x86 is defined as u32 and thus is > > naturally aligned to 4 bytes. But, set_bit() and clear_bit() require > > the arr

RE: [PATCH 3/3] x86/split_lock: Align the x86_capability array to size of unsigned long

2019-09-17 Thread David Laight
From: Tony Luck > Sent: 16 September 2019 23:40 > From: Fenghua Yu > > The x86_capability array in cpuinfo_x86 is defined as u32 and thus is > naturally aligned to 4 bytes. But, set_bit() and clear_bit() require > the array to be aligned to size of unsigned long (i.e. 8 bytes in > 64-bit). > > T

[PATCH 3/3] x86/split_lock: Align the x86_capability array to size of unsigned long

2019-09-16 Thread Tony Luck
From: Fenghua Yu The x86_capability array in cpuinfo_x86 is defined as u32 and thus is naturally aligned to 4 bytes. But, set_bit() and clear_bit() require the array to be aligned to size of unsigned long (i.e. 8 bytes in 64-bit). To fix the alignment issue, align the x86_capability array to siz