Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2073296ybt; Thu, 2 Jul 2020 23:30:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzHkoi9G/Hsty/06EH80WyR4je92jE6+Yf1OcMoYjzz61aoazvD6RtSEiNUXSRci9FcUz5 X-Received: by 2002:a17:906:d78f:: with SMTP id pj15mr32487191ejb.283.1593757801578; Thu, 02 Jul 2020 23:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593757801; cv=none; d=google.com; s=arc-20160816; b=ty7RK8H0E2xS4azqwc4b4vwHlL+xcgE9vaQjo1FRXu9jAOL5APRNeG9ej/SFvFmZlu CpVpXVE5HlYhk5un+oNOMa/mxF2Za8nvq3JMLMFIG3VaHmvxGxhbn+kGRc6ap9QCrF3d J3pFWoeAyGknI3fNLYksolb0eL3tHPFqh3QVq21nroI+WcCi3JW6zDo2G68P3fRoQ3eT yL7V4KgUIMIVhJQD3XErW/zs2ORSzqvZ/GlnlJauiaU3aFypLAOVWO2GsVPaf+ICmxN8 wio7PkYXnLGwRrHTggaFJnD80y+sZqoxslHiPkadRjL4An4g9dhhhUl59C68eY65B1Mp kf+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=bt5K9XtO4LmaNxjZqwWNBKUIx68FUKBArV0VTR0P1tY=; b=MIU+kZyXpWlbaW3ukVSgqNBK4RvLa8UaWS4tuCDkkOiyLaLc4s1VBoVYeAbjra2A+w HPzbTdDOWJhHDbIGpbNhyIs5B4ysJpEUSYi/QiESLsalL+v1LHU8a0UTuIepGyN3gxTv 10FOhACNcxJAKoj3WUd3PxZaW2nNijYZYcpqA7TQfLkLc8MhNTu/tNzliqDcIjLkrdv/ kY9pa1TR6EToXkyg2+xU78pGdLhCAYxoomlpvpfBZyO2C0FfYzQgWuhEw57gnGDdWtjV NTrUu6cSK5fNiHAmdMi1PUQz02qx/0PwBfBe6bG3bqtjExBlxPvGdQ5aN2tgCnJgBOy6 nTwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m1MRi+xr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj11si7567868edb.279.2020.07.02.23.29.38; Thu, 02 Jul 2020 23:30:01 -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=@gmail.com header.s=20161025 header.b=m1MRi+xr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726285AbgGCG1O (ORCPT + 99 others); Fri, 3 Jul 2020 02:27:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgGCG1N (ORCPT ); Fri, 3 Jul 2020 02:27:13 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F000BC08C5C1 for ; Thu, 2 Jul 2020 23:27:12 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id e12so23154292qtr.9 for ; Thu, 02 Jul 2020 23:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:user-agent:mime-version:content-transfer-encoding; bh=bt5K9XtO4LmaNxjZqwWNBKUIx68FUKBArV0VTR0P1tY=; b=m1MRi+xr0n+zOnLQxXEmEVq+ZcH6RpRlw8z74GuOZAGBPWvWm9fm1xfXrGo/M/Iyjx 5/3tlXePjZODGcMmpSG0qjYLz5YpBQEul5CWIRPjBVI+y63ZEIVkPHvFt4vUQ9sAw7se izukHid+jBmwTICNAksbWgdQ1C4qJMQ3YgFXveggrGwIyeaujoFb10R4i+YxzW7cW3R3 GavY6hZgyllhtZBIT1tAV3AJA3lfh4yrDuX030m+EXIQemQV1Y+9kUmzpBAVrNO1+vrS PydCHu8K89X6mHVSfYkKIrPNKWPhO4VJbI2xLDYRnYRM1VL2hRTd5H7VrTWrOaeVLhiy GpVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:organization:user-agent:mime-version :content-transfer-encoding; bh=bt5K9XtO4LmaNxjZqwWNBKUIx68FUKBArV0VTR0P1tY=; b=qNJkZtwybIc/HxIKObObwPNfpTN64X7Muk1Rcufz1RYOyeW0iLjufomtuWGUz+IaTv 6og4rW+jjwY+Mej8Ax9PKmRd834pQR0YuV4C494Fl6KYoAVDSntvxkSL7jZBlNmSamUR Iv6+hU83Ir5Pnxrbqf8m4bQKnZXg9hfuHXr4HaGnX75fCW9aL62SE4V1E0YrDbvsunv1 kBYvhet89RH3OeCwgojdaxIdw7NasPikBLAkFTrykr6wImwc2MmqqdxBZ7Zf8PskTG3M OIUXaSKEHLwUyoU1eTgWdQy7RUhvO7QZmH5gA9LW8a5H2EOygPbe5RFZF27qsyponKJ8 PLFQ== X-Gm-Message-State: AOAM533Gh4FkmxCGKU5FgYcqPPDJdoBXUYeC+10MwuH0Lh/4dzqWGmtZ 900gs/3kmRUuFBT6vGK2Anw= X-Received: by 2002:ac8:408c:: with SMTP id p12mr34184171qtl.332.1593757632167; Thu, 02 Jul 2020 23:27:12 -0700 (PDT) Received: from LeoBras (200-236-245-17.dynamic.desktop.com.br. [200.236.245.17]) by smtp.gmail.com with ESMTPSA id h197sm10113548qke.51.2020.07.02.23.27.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 23:27:11 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 5/6] powerpc/pseries/iommu: Make use of DDW even if it does not map the partition From: Leonardo Bras To: Alexey Kardashevskiy , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Thiago Jung Bauermann , Ram Pai Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Fri, 03 Jul 2020 03:27:05 -0300 In-Reply-To: <2c5dc8d2-f379-5a5f-844a-f4eea233f265@ozlabs.ru> References: <20200624062411.367796-1-leobras.c@gmail.com> <20200624062411.367796-6-leobras.c@gmail.com> <18df09c0-ef83-a0d8-1143-1cb4d50bf6b7@ozlabs.ru> <0e8bcc38614ec80c7816c07dd4dc70854c2b901d.camel@gmail.com> <0c3de45dfb612745aa2ee4126b3935303d8e8704.camel@gmail.com> <2c5dc8d2-f379-5a5f-844a-f4eea233f265@ozlabs.ru> Organization: IBM Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-07-02 at 10:31 +1000, Alexey Kardashevskiy wrote: > > On 02/07/2020 09:48, Leonardo Bras wrote: > > On Wed, 2020-07-01 at 16:57 -0300, Leonardo Bras wrote: > > > > It is not necessarily "direct" anymore as the name suggests, you may > > > > want to change that. DMA64_PROPNAME, may be. Thanks, > > > > > > > > > > Yeah, you are right. > > > I will change this for next version, also changing the string name to > > > reflect this. > > > > > > -#define DIRECT64_PROPNAME "linux,direct64-ddr-window-info" > > > +#define DMA64_PROPNAME "linux,dma64-ddr-window-info" > > > > > > Is that ok? > > > > > > Thank you for helping! > > > > In fact, there is a lot of places in this file where it's called direct > > window. Should I replace everything? > > Should it be in a separated patch? > > If it looks simple and you write a nice commit log explaining all that > and why you are not reusing the existing ibm,dma-window property (to > provide a clue what "reset" will reset to? is there any other reason?) > for that - sure, do it :) > v3 available here: http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=187348&state=%2A&archive=both Best regards, Leonardo