Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4769169pxu; Wed, 21 Oct 2020 05:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt4bywmPM6wFGRsDIPaAJUtsmWShrjX+M9zQIVjz0KWqyuhz67Pdkyia+izW++pWAOk39m X-Received: by 2002:adf:82ab:: with SMTP id 40mr4288547wrc.420.1603281944695; Wed, 21 Oct 2020 05:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603281944; cv=none; d=google.com; s=arc-20160816; b=c8b10Unt64vfQuw5wsaEif/ExW544rcBGlxtVxmkt24TYwiLUQpqiVKmFn4U9uHZeS u5GLbZAtFMyGWyYYwngugE9WF6MzGEmA0sm3dTUelTwrrZx20Llx5A+mHy/UG+pkzeqE Lee37tHV3ktbCXaQ/y6vF2UiW8oTAgGpPWY0sYX5M9EKh35SVylxTdW28DMl1EzbdOcq afYqlxJ//rG221hLAmBjZhWSoMa2CAuwWzMJ+LamMDQfJHK/8B7+vaqqg0IUWLY+Y5lb xgGEBWZx5oG8CvaXkhcpnbW7l4FJPlLo+6N2TtS778isQbKcY1i489ENzkzJJESQZB29 6ZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=e8X2/Y+p5WVUIyVAwYvrxraYEosdNQjrXzQhnW7Naoo=; b=rHo6hYfMfYxGk3k3uLYeMFkiwIRrCwMUz/A0DOqZICJP2vPAZSlRUKO/jU+QHu2r/k xXycjZ7QKrJlyjL6waSazLlvbqsAgQ6U3B3gvH5Tm34Xc4GqzruL7I070HcFVK0SGEU6 Bcr7izo+xSlDBM4XwqzwjfNijyDexBlXno/C6qjtXm6HFFhbeOLdXey9JuYKlNHpbJsq hvfNKCkIdjlqNUWDCeMa9fVb791ifEuoR1FKIlrJSL0jrcV5x6M5AMwZW3x1W/BZxNWl a88Iyji3WVCXEw3K9/uHE8I09+Gq3ye8sbQY9KsDK0BCewkubw/KuM/suAmsr5WQWHn6 SkMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CHVOEEBR; 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 o24si1212795edr.567.2020.10.21.05.05.20; Wed, 21 Oct 2020 05:05:44 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=CHVOEEBR; 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 S2411208AbgJUCVd (ORCPT + 99 others); Tue, 20 Oct 2020 22:21:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:47740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411203AbgJUCVd (ORCPT ); Tue, 20 Oct 2020 22:21:33 -0400 Received: from localhost (170.sub-72-107-125.myvzw.com [72.107.125.170]) (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 8509D21707; Wed, 21 Oct 2020 02:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603246892; bh=jBI/vfiH0/foZeRbssb+AfO/KpFBjMPIAtNkj04lZZQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=CHVOEEBRb8+GY22fpajxW5NweaXT0tYmlYif03Tszyj1iEniEIA/oDsty8AM36hOj NI5W4wNuJtIyN1A6VsxRnu32TaaEj2nFBbPx5/a5fnCcjKZQz3iznuMvzfOatqqH0X hIbFS2m9N2KElQKmPMZJKFk3LG0q5AYyhVTLb/TA= Date: Tue, 20 Oct 2020 21:21:31 -0500 From: Bjorn Helgaas To: "Derrick, Jonathan" Cc: "hch@lst.de" , "x86@kernel.org" , "Shevchenko, Andriy" , "lorenzo.pieralisi@arm.com" , "andrzej.jakowski@linux.intel.com" , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "Kalakota, SushmaX" Subject: Re: [PATCH 5/6] x86/apic/msi: Use Real PCI DMA device when configuring IRTE Message-ID: <20201021022131.GA409218@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 01:20:24AM +0000, Derrick, Jonathan wrote: > On Tue, 2020-10-20 at 15:26 -0500, Bjorn Helgaas wrote: > > On Tue, Jul 28, 2020 at 01:49:44PM -0600, Jon Derrick wrote: > > > VMD retransmits child device MSI/X with the VMD endpoint's requester-id. > > > In order to support direct interrupt remapping of VMD child devices, > > > ensure that the IRTE is programmed with the VMD endpoint's requester-id > > > using pci_real_dma_dev(). > > > > > > Reviewed-by: Andy Shevchenko > > > Signed-off-by: Jon Derrick > > > > As Thomas (and Stephen) pointed out, this conflicts with 7ca435cf857d > > ("x86/irq: Cleanup the arch_*_msi_irqs() leftovers"), which removes > > native_setup_msi_irqs(). > > > > Stephen resolved the conflict by dropping this hunk. I would rather > > just drop this patch completely from the PCI tree. If I keep the > > patch, (1) Linus will have to resolve the conflict, and worse, (2) > > it's not clear what happened to the use of pci_real_dma_dev() here. > > It will just vanish into the ether with no explanation other than > > "this function was removed." > > > > Is dropping this patch the correct thing to do? Or do you need to add > > pci_real_dma_dev() elsewhere to compensate? > > It would still need the pci_real_dma_dev() for IRTE programming. > > I think at this point I would rather see 5+6 dropped and this included > for TGL enablement: > https://patchwork.kernel.org/project/linux-pci/patch/20200914190128.5114-1-jonathan.derrick@intel.com/ It's too late to add new things for v5.10. I'll drop 5 and I'll be happy to drop 6, too, if you want. I have several comments/questions on 6 anyway that I haven't finished writing up. But if you'd rather have 1-4 + 6 in v5.10 instead of just 1-4, let me know. Bjorn