From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751549AbdJHIjt (ORCPT ); Sun, 8 Oct 2017 04:39:49 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43157 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbdJHIjs (ORCPT ); Sun, 8 Oct 2017 04:39:48 -0400 Date: Sun, 8 Oct 2017 10:39:32 +0200 (CEST) From: Thomas Gleixner To: Joerg Roedel cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Joerg Roedel Subject: Re: [PATCH 1/2] iommu/amd: Add align parameter to alloc_irq_index() In-Reply-To: <1507289652-30166-2-git-send-email-joro@8bytes.org> Message-ID: References: <1507289652-30166-1-git-send-email-joro@8bytes.org> <1507289652-30166-2-git-send-email-joro@8bytes.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Oct 2017, Joerg Roedel wrote: > From: Joerg Roedel > > For multi-MSI IRQ ranges the IRQ index needs to be aligned > to the power-of-two of the requested IRQ count. Extend the > alloc_irq_index() function to allow such an allocation. > > Reported-by: Thomas Gleixner > Fixes: 2b324506341cb ('iommu/amd: Add routines to manage irq remapping tables') > Signed-off-by: Joerg Roedel Reviewed-by: Thomas Gleixner