Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1749878pxb; Sat, 23 Jan 2021 04:36:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQnTogi5Fa61jSgoKjVaLW+LtOo05kjXB47OlE3XbPyR4CiU0DmcXmE1R0MkM85Y1+I/NK X-Received: by 2002:aa7:cad5:: with SMTP id l21mr33336edt.96.1611405391915; Sat, 23 Jan 2021 04:36:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611405391; cv=none; d=google.com; s=arc-20160816; b=uo48RPhGYR5xf8jhPSaeEdXndNFzXTsIjvjwy9gc59nxSw8zWcl6wOTxMxBdGfJHUL gsDp7hFgh60Qi9XKQVSR6odME4x9aXne1XhrThpzy576No3vVOteTZlTSDtWOrWsarFA Ro6iGatFWzgaIQmC7Qte/jt4F+WyPDcOUt8nnXUf8uHIVZSMD9k0Xhm1vizgww1kBjhU j7qRE8nPcD3yhkNyZCNFH88NRJpreecrUDrPf3DR3ccjODhxkgouHsjCHem4/aMPgPzK WK1zfnPtRJInQPohvNNtzViXoWc+1gv4+g5A70+f75rLsC3ze0l4qic2CqE/D6Orbn0i EAnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=dEv7mno4rhvbwsViH/lVmY1sirYjtcgm5+d3Vu36IoM=; b=XsafbwfbfKAPXbnYniBeDdl0AgUH/ci5tzs0KwNyYF6u/Kl/F507tYd2MjEEeSeKXZ ubOgWMl3jhm6XBnjJ0jMGCTcdzGvDOi0MTnZAHE/Oird+kx5Nn9L0LwPr1vuCoqu6d+E +lmA1txlYP3MMOxLJ81nXApl+urmktAlVU3VWAvo1T52Cpv43E3zmJ4UX4BlKTCZLk1x G6MeIrkYfzJAm4pyaNPrHisMg5qStMBTceUVrVlZc0FKihzH8n3StkqSpoz72n2N1ey1 PrdTH4wc91NlMDPdpnDk2lj8vdpP0/NwVIGQUeD/n6c6toj4m1OJp6lO/z7rk0mSYBnt k5cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si1614222ejb.197.2021.01.23.04.36.08; Sat, 23 Jan 2021 04:36:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbhAWMdh (ORCPT + 99 others); Sat, 23 Jan 2021 07:33:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:41748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbhAWMdg (ORCPT ); Sat, 23 Jan 2021 07:33:36 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9591222BE8; Sat, 23 Jan 2021 12:32:55 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1l3I61-009bUV-Lv; Sat, 23 Jan 2021 12:32:53 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 23 Jan 2021 12:32:53 +0000 From: Marc Zyngier To: Shameerali Kolothum Thodi Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eric.auger@redhat.com, tglx@linutronix.de, linuxarm@openeuler.org, "Zengtao (B)" , "Wangzhou (B)" Subject: Re: [PATCH] genirq/msi: Make sure early activation of all PCI MSIs In-Reply-To: References: <20210121110247.20320-1-shameerali.kolothum.thodi@huawei.com> <87o8hij83d.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.10 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: shameerali.kolothum.thodi@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eric.auger@redhat.com, tglx@linutronix.de, linuxarm@openeuler.org, prime.zeng@hisilicon.com, wangzhou1@hisilicon.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shameer, On 2021-01-22 09:21, Shameerali Kolothum Thodi wrote: > Hi Marc, > [...] >> I find this pretty complicated, and the I'd like to avoid injecting >> the PCI >> MSI-vs-MSI-X concept in something that is supposed to be bus-agnostic. > > Agree. That’s mainly because I was very skeptical(TBH, very limited in > my knowledge > on this msi core code) about changing the MSI-X activation logic here > and just thought > of limiting the impact to MSI case as a first attempt. > >> What's wrong with the following (untested) patch, which looks much >> simpler? > > Yes, had tried this as one of the early fix, but as said above was not > very sure of > the impact on other platforms. Tested this again and it works. > > Please send it. Actually, there is a better way, which is to have a proper iterator on vectors instead of descriptors. With that and a bit of cleanup, the patch[1] looks pretty neat. Please give it a go. Thanks, M. [1] https://lore.kernel.org/r/20210123122759.1781359-1-maz@kernel.org -- Jazz is not dead. It just smells funny...