Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbdHBNyr (ORCPT ); Wed, 2 Aug 2017 09:54:47 -0400 Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:33706 "EHLO resqmta-po-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbdHBNyp (ORCPT ); Wed, 2 Aug 2017 09:54:45 -0400 Date: Wed, 2 Aug 2017 08:54:40 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: "Huang, Ying" cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Tejun Heo , Joerg Roedel , Ingo Molnar , Michael Ellerman , Borislav Petkov , Thomas Gleixner , Juergen Gross , Aaron Lu Subject: Re: [PATCH 0/3] IPI: Avoid to use 2 cache lines for one call_single_data In-Reply-To: <20170802085220.4315-1-ying.huang@intel.com> Message-ID: References: <20170802085220.4315-1-ying.huang@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfNR7sjlVFsvfrwpswGhzNvFskbQnMV+A0M0HuNdjF2sk9znSk2UH57CTW1R5PI6RZ3m7PJf4KJMGw/TKvy16wm9rQW94SwW0KEOrmsrcliO8slWyn+1i XQaCbO60J+pyR88/bzaLx7ZJi7DufSXcz+JUlDrkHwa/w5k2QBwpPtT1oVwm6/5KRDU463NmBX9udatno5/d16IdlhpEss7dBTdQ5vIdGQjU/A194n5tW07h x3wZvnZrf4OtZ5QVQizuLfwXLs2lSOzYBucIa60tD6/Sg5YrV7TE8m+w5lZqQtClPLlX5DgvZa7PLea1AnkppBG9Wjd2kCK8LNBRxzrLAEQCmkTMHXeO1kjC SUKuXiIYAEG6IkOBMz/Cu2ctU38/ao6y4wszGQc4qpE8xoDP5IhrBxbV6unei24KkQryCF9XiUgADksyoF3WrBj08cI/xw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 504 Lines: 15 On Wed, 2 Aug 2017, Huang, Ying wrote: > To allocate cache line size aligned percpu memory dynamically, > alloc_percpu_aligned() is introduced and used in iova drivers too. alloc_percpu() already aligns objects as specified when they are declared. Moreover the function is improperly named since it aligns to a cacheline(). If you want this then you would use alloc_percpu_cacheline_aligned() But then the alignment can already be requested by adding __cacheline_aligned to the per cpu definition.