From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758312AbbAIU6w (ORCPT ); Fri, 9 Jan 2015 15:58:52 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:25469 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbbAIU6u (ORCPT ); Fri, 9 Jan 2015 15:58:50 -0500 To: Sreekanth Reddy Cc: martin.petersen@oracle.com, jejb@kernel.org, hch@infradead.org, linux-scsi@vger.kernel.org, JBottomley@Parallels.com, Sathya.Prakash@avagotech.com, Nagalakshmi.Nandigama@avagotech.com, linux-kernel@vger.kernel.org, Elliott@hp.com Subject: Re: [PATCH 09/22] [SCSI] mpt2sas, mpt3sas: Added a support to set cpu affinity for each MSIX vector enabled by the HBA From: "Martin K. Petersen" Organization: Oracle References: <1420635329-2268-1-git-send-email-Sreekanth.Reddy@avagotech.com> Date: Fri, 09 Jan 2015 15:58:16 -0500 In-Reply-To: <1420635329-2268-1-git-send-email-Sreekanth.Reddy@avagotech.com> (Sreekanth Reddy's message of "Wed, 7 Jan 2015 18:25:29 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Sreekanth" == Sreekanth Reddy writes: Sreekanth> Change_set: 1. Added affinity_hint varable of type Sreekanth> cpumask_var_t in adapter_reply_queue structure. And allocated Sreekanth> a memory for this varable by calling alloc_cpumask_var. Sreekanth> 2. Call the API irq_set_affinity_hint for each MSIx vector to Sreekanth> affiniate it with calculated cpus at driver inilization time. Sreekanth> 3. While freeing the MSIX vector, call this same API to Sreekanth> release the cpu affinity mask for each MSIx vector by Sreekanth> providing the NULL value in cpumask argument. 4. then call Sreekanth> the free_cpumask_var API to free the memory allocated in step Sreekanth> 2. (Still dreaming of a combined mpt2sas and mpt3sas so I wouldn't have to review everything twice). Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering