From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79408C4332F for ; Fri, 18 Nov 2022 12:20:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241160AbiKRMUB (ORCPT ); Fri, 18 Nov 2022 07:20:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241630AbiKRMTz (ORCPT ); Fri, 18 Nov 2022 07:19:55 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB4A697353; Fri, 18 Nov 2022 04:19:49 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668773987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WhwsHEanhWlPM5Bzweid0/1/mRw2xWqkE+tJM2n22fk=; b=VV2lDm4JJjwYE/2GMczR4Mz3fiiKXicayezNfoLoysRgw53paE/+ph82V6nA5SW1yuYX8A gqyf0MutVGYJSGrpkj2XqGHF9uJGfhP113D40Tw4KAnxztYxcrT28dWoXBU1e6L+F7iCOK 3AwLrDJxXBA2HbPYZOPe6PODVYmAuJ5DUBNSSXNU1khrjI3Qdr9uecdkbuV2KGON79aCh/ jrIcJEI1H8EH3VUnvDJCB1QHjHxBX9csO7M8fp4O61sCO/uUTrdSLhbxIAw/3jcSmVBR8G JKyRDRPwaLjbBbbBP8J9xamGN08yYnZZmezPQskNSr4IjiUlDZ1jgsjUM8Q5/w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668773987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WhwsHEanhWlPM5Bzweid0/1/mRw2xWqkE+tJM2n22fk=; b=xaRugJgOXc58D7WTJ/dDyPI0h75WqGErGRGwLTVJz9g8bkGyX+V/sVf9dEWSeCVPMJgz71 HoQVJ2dzTSrHMtDA== To: "Tian, Kevin" , LKML Cc: "x86@kernel.org" , Joerg Roedel , Will Deacon , "linux-pci@vger.kernel.org" , Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , "Jiang, Dave" , Alex Williamson , "Williams, Dan J" , Logan Gunthorpe , "Raj, Ashok" , Jon Mason , Allen Hubbe , "Ahmed S. Darwish" , "Chatre, Reinette" Subject: RE: [patch 11/20] genirq/msi: Make descriptor allocation device domain aware In-Reply-To: References: <20221111131813.914374272@linutronix.de> <20221111132706.670241974@linutronix.de> Date: Fri, 18 Nov 2022 13:19:47 +0100 Message-ID: <87o7t4jvz0.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18 2022 at 08:10, Kevin Tian wrote: >> From: Thomas Gleixner >> + if (WARN_ON_ONCE(first_index >= MSI_MAX_INDEX || last_index >= >> MSI_MAX_INDEX)) >> + return; >> + >> lockdep_assert_held(&dev->msi.data->mutex); >> >> xa_for_each_range(xa, idx, desc, first_index, last_index) { > > this doesn't belong to allocation. and next patch will convert it to > domid aware plus a formal check. Probably can just remove it > from this patch. I added this just for paranoia sake so I could catch my conversion error. So yes and no.