Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp451661pxk; Wed, 9 Sep 2020 09:31:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5n1Y9kd+4PJOL5I38Ptj1X3EYw/tkANp0y/WUOw7DLOjatCYj3Xx6h7BIE5ctVIbkctAr X-Received: by 2002:a17:906:2458:: with SMTP id a24mr4617278ejb.353.1599669085456; Wed, 09 Sep 2020 09:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599669085; cv=none; d=google.com; s=arc-20160816; b=wwIdgKCcg6zPGTtVPVLHlxjhqvSE8gEViu9vSyXSkncL+PRP0vF9xnd7PFpijVDHye 9HmOqC9e6La0NBPmkH2/k9cApolMUGHx9qGKDvdG7VGg+ZyRPuehFuQRoE5f6m0I45+q edfjL2k7h/nYzJQE4D8OeGAmxEsfOlK3W8T+ydvxET4w5aR2ARkp7ffSdq8XrMexhOvn EH+tLwLq5BGg933T0WwlXYwqKyeewyTZD37QX7sZH2pTgJs/Hjkq8E8rdMbVtrUmYsw0 wCv/j/xEk0abR/aEcGqM0ii+JLezDYg8uEgjqiIdBRTzymuejepZTbKRAT43w6x0OIdm tqPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=2LgYunBYEEkAZ5GibTWj0N1mtJpxqQN2j2Ee96nhZjE=; b=VaAcbfqownW3Da5pisbWvJ7oqGOJftkZCDXqqqkG0ayl6DXlPc9PYf4/Wr23n2+5L7 CfB6EK8pZHPAksioXl+CdjX200Ww4q+V5CgEMtDC2oJn8UlbXaIJetK7Khx9nxS5xGgG MMy3vg5qjocshG1TkflCyJOSlry9s4yzxaL1FOQCKQjMvchv+3DZKXJGZ4JbNNRxZiKR rAaZ80dzKVaj90OsnSplOz5bLXwHQaQSlFLXmBj7j+jF6SGFWYbSj2mK6MRoUkHLoFiJ UGEhcGWwZAaLqNVlY5Ilwy/O1ehBIxFHCEC0l9xM5mGRLbEyqdn1Spds6OQKwCnjliSw MhQA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fw23si1907556ejb.402.2020.09.09.09.31.01; Wed, 09 Sep 2020 09:31:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731072AbgIIQ2b (ORCPT + 99 others); Wed, 9 Sep 2020 12:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731132AbgIIQ1k (ORCPT ); Wed, 9 Sep 2020 12:27:40 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5383BC0617A3 for ; Wed, 9 Sep 2020 06:28:56 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4BmjWF5Pj0z9sVR; Wed, 9 Sep 2020 23:27:53 +1000 (AEST) From: Michael Ellerman To: Leonardo Bras , Murilo Fossa Vicentini , Michael Ellerman , Alexey Kardashevskiy , David Dai , Ram Pai , Thiago Jung Bauermann , Paul Mackerras , Benjamin Herrenschmidt , Brian King Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20200805030455.123024-1-leobras.c@gmail.com> References: <20200805030455.123024-1-leobras.c@gmail.com> Subject: Re: [PATCH v5 0/4] Allow bigger 64bit window by removing default DMA window Message-Id: <159965717483.808686.14535897310310541742.b4-ty@ellerman.id.au> Date: Wed, 9 Sep 2020 23:27:53 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Aug 2020 00:04:51 -0300, Leonardo Bras wrote: > There are some devices in which a hypervisor may only allow 1 DMA window > to exist at a time, and in those cases, a DDW is never created to them, > since the default DMA window keeps using this resource. > > LoPAR recommends this procedure: > 1. Remove the default DMA window, > 2. Query for which configs the DDW can be created, > 3. Create a DDW. > > [...] Applied to powerpc/next. [1/4] powerpc/pseries/iommu: Create defines for operations in ibm, ddw-applicable https://git.kernel.org/powerpc/c/cac3e629086f1b2e31c87a6c9b0130d29843ae86 [2/4] powerpc/pseries/iommu: Update call to ibm, query-pe-dma-windows https://git.kernel.org/powerpc/c/80f0251231131d164eddab78d2b6c1b8e37d0093 [3/4] powerpc/pseries/iommu: Move window-removing part of remove_ddw into remove_dma_window https://git.kernel.org/powerpc/c/74d0b3994e147a2b503170b5e02f1d07dc086586 [4/4] powerpc/pseries/iommu: Allow bigger 64bit window by removing default DMA window https://git.kernel.org/powerpc/c/8c0d51592f6f0123953633d1ecf21e843fce0bfd cheers