Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp102130pxj; Thu, 10 Jun 2021 16:07:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeHfVrcChAxgB7IEQLPUOiq7c6skt96L/EF+slf4ivDhGYOcSo4a9hrA1jo7vRhQM/Xeyz X-Received: by 2002:a17:906:b141:: with SMTP id bt1mr753340ejb.498.1623366457957; Thu, 10 Jun 2021 16:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623366457; cv=none; d=google.com; s=arc-20160816; b=piPWLM4d4rMwMfDO0Ic8FaenEL3/6/thD81Us3vFwjqp9Q9iEQSX8t0VmlLQo41dAQ fvLHsFtpzI10J6Esi1AH/aYvE0iS9Xtu5SpACiFRMfhBFyELctui3MrMkCuXadSQ/DEi uY7mk/NdZb9Gn0u2dXR1XUENyNXpzylKliqU65v3hdvbOdmTc+ylnv5BXKhhVOt9RuSF 8ibaOS5MwCXpXlt2E2wqBHPjVaI5LRQjZijTOKQCt+/VGcCLzubOuN7CnIzHqZGAmbGJ ZfSIdCkTfxDTOycQVTALhSjuiAH4EPVVXmeGnP2qbQIKtQMpBRTBTzdskPK56xxwFKTy zoaA== 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=gzgRLG/dCQJJqL2t9bsjAuUllfXf3NB5ZUt8k65O6n8=; b=hSfM6dIBCr9jbs4fBkA2mxMltQkeesMTWeHLWTubENy1bMnDYvLAXbBo3isCYMn7I4 sI3477Uvcx37+/QuK1webmUFgh6tlipiKXPHxEOD3FP6Mr8DAlBn7/rPTtie8Lms8TuE qblqNeCIqUZ1TDqTteZAtC0P19IvMQ67/lRgnpdJWAj9wqMbST/zsEQigp08Ih2nxbRl WfszKvY/d9zo9y0+LzGK6GP2VsLGYGSqsFv4cJPIXSFEzNvk7oVlUCSa8N/M66cNt2Ku 5bEHuJ06T9YoiKT/HbccFBDdBVdU1+I5N4AOOJSt56nBmnZ1OLhquwMeAiW/NpnS7ujO 01+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mfXtI71H; 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 c15si3430004edr.280.2021.06.10.16.07.14; Thu, 10 Jun 2021 16:07:37 -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=k20201202 header.b=mfXtI71H; 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 S231250AbhFJXGZ (ORCPT + 99 others); Thu, 10 Jun 2021 19:06:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:46170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231158AbhFJXGW (ORCPT ); Thu, 10 Jun 2021 19:06:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8597C613D9; Thu, 10 Jun 2021 23:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623366265; bh=YiMzLln/KGaA2CDeQfkZ0cx2ivCi8D7ujNBrsZB2MF0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mfXtI71H1KIcfu1YbIj4XUI3FPHSx/j7tE3GuLawZD6OGK89jA4m0TUt/Xx69lzSW fKniEBOYvZZdYGAu+HxcPMZ8MvJf/BsVpHRdULWAfMYtivx590g8j+OJVV0pYzVV0U IPgMW8kuM+eJC+T4bZbCXaozlHhV+dAT7SXdmq91SEj8ECHY6QgKW9+/anOYLpMLhP gZzM2vydAAyZUHOt5XEnRe1J3Jw9X9TkiO0br46L71tJT2gWLPv7YLoJ9SxgV+VqgI Bk0UEEDJ4x0MXfhWmlfTO9t6VOe5C5Ck9aM1w/iG6iNRSwukJLeq7sH6UKMvv4P4mL QatIdGOx2AU1Q== Date: Thu, 10 Jun 2021 18:04:24 -0500 From: Bjorn Helgaas To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Stephen Bates , Christoph Hellwig , Dan Williams , Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , John Hubbard , Don Dutile Subject: Re: [PATCH v1 0/6] P2PDMA Cleanup Message-ID: <20210610230424.GA2791113@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610160609.28447-1-logang@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 10:06:03AM -0600, Logan Gunthorpe wrote: > Hi Bjorn, > > This patch series consists of the P2PDMA cleanup and prep patches based > on feedback from my P2PDMA mapping operations series (most recently > posted at [1]). I've reduced the recipient list of this series to those > that I thought would be interested or have provided the feedback that > inspired these patches. > > Please consider taking these patches in the near term ahead of my mapping > ops series. These patches are largely cleanup and other minor fixes. The only > functional change is Patch 4 which adds a new warning that was suggested by > Don. > > Patch 6 arguably isn't necessary yet as we don't care about sleeping > yet -- but it'd be a nice to have to reduce the number of prep patches for my > other series. However, if you don't want to take this patch now, I can > carry it in my other series. > > I'm happy to make further fixes and update this series if anyone finds any > additional issues on review. > > Thanks, > > Logan > > [1] https://lore.kernel.org/linux-block/20210513223203.5542-1-logang@deltatee.com/ > > -- > > Logan Gunthorpe (6): > PCI/P2PDMA: Rename upstream_bridge_distance() and rework documentation > PCI/P2PDMA: Use a buffer on the stack for collecting the acs list > PCI/P2PDMA: Cleanup type for return value of calc_map_type_and_dist() > PCI/P2PDMA: Print a warning if the host bridge is not in the whitelist > PCI/P2PDMA: Refactor pci_p2pdma_map_type() to take pagemap and device > PCI/P2PDMA: Avoid pci_get_slot() which sleeps > > drivers/pci/p2pdma.c | 157 +++++++++++++++++++++++++------------------ > 1 file changed, 92 insertions(+), 65 deletions(-) Applied all 6 to pci/p2pdma for v5.14, thanks! 6389d4374522 ("PCI/P2PDMA: Rename upstream_bridge_distance() and rework doc") e4ece59abd70 ("PCI/P2PDMA: Collect acs list in stack buffer to avoid sleeping") f9c125b9eb30 ("PCI/P2PDMA: Use correct calc_map_type_and_dist() return type") cf201bfe8cdc ("PCI/P2PDMA: Warn if host bridge not in whitelist") 7e2faa1710c4 ("PCI/P2PDMA: Refactor pci_p2pdma_map_type()") 3ec0c3ec2d92 ("PCI/P2PDMA: Avoid pci_get_slot(), which may sleep")