Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp667201ybi; Fri, 12 Jul 2019 02:43:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyvLtK161nd+2+ChEUhjfbLBOXIX2wQYJXeQziS/MIdN4qzGkvBZRU0CX3mPXblYyUuIFu X-Received: by 2002:a17:902:aa41:: with SMTP id c1mr10162861plr.201.1562924602841; Fri, 12 Jul 2019 02:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562924602; cv=none; d=google.com; s=arc-20160816; b=uTTQP8q8UargEh622jsSTtRE/soiIoVgqvlcHG7oxjSY6hCi32BJq+ldS7Q5lWU/pD K42ptznlc4Gpbe5Uk8GPaqTBu2Ys2arneL8JSVHe9+0bkeqI+wfcNfke5Zu1WhxhHyqW Fr8o/029EeiTw8pyR0BL1veqQ5hEvu1nNhB8ffiew400EuCP0thQublQ0Wu+ErTCUwus V5BmfbnMsfnY0/ny+NYCF7kFYmYYB4fVBRsLH0cpyIELOLtGNU95EWQWX58pTyXAIRw2 SjUvAEC7/6SSYGZnmfsVDNAfU8E+5wxkq5OhSvLpwpRM+J0+/DssLf1nu/q/msDnAOB/ U1Ag== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=PP9T1+gtHUwxVhVZ5rDjgJsT2BnVoNucdyhPBjT/6f0=; b=nx7BmR6j+RRejsvx0WWSvDijIFm1sh/sDo4Y5ZaTlDGUa3YTQJ9yexZno4f7VsCUXo t9/cqsd6hrU6XwUh4K9CU3UsildTqACIQTR8tDW0i/WuE/PVlVwWpHHG9vmd2Gqv4VqH 44nV1t9b1gHFGgfLm+vOM4QnvlXyuJjzEenkkFOGc1+8enz+0GDHz3q0sda/V/QU0uuU 8OD7bElfS+VuqR5CKqT5SRzwY8OLJ6ifJ40TqU+wbZBBK+otMAPxZmCrt2HAdjnEmquv WJ1auf4wlD3oXaYEaUKsjJbnJh8GoSYAljRkmufQug56ykxzwZ/psA8NmO/Y1w3KKTt1 wUJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs-ru.20150623.gappssmtp.com header.s=20150623 header.b=CI1u2237; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si7300131plx.344.2019.07.12.02.43.07; Fri, 12 Jul 2019 02:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ozlabs-ru.20150623.gappssmtp.com header.s=20150623 header.b=CI1u2237; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbfGLJl5 (ORCPT + 99 others); Fri, 12 Jul 2019 05:41:57 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42569 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfGLJl5 (ORCPT ); Fri, 12 Jul 2019 05:41:57 -0400 Received: by mail-pg1-f196.google.com with SMTP id t132so4286704pgb.9 for ; Fri, 12 Jul 2019 02:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ozlabs-ru.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PP9T1+gtHUwxVhVZ5rDjgJsT2BnVoNucdyhPBjT/6f0=; b=CI1u2237xitj/L1j9ySUZXA7nWKaxBQgnFzZ2ApZHyyeCSE35oZeFYBgsxzhS/Q4wY u7BHHCgq2pFiG0ZEXxSE+yg8noBjcgH7FZGLxbdYDq9U6BVfpFzhzHZa584Sam1RV0dx PgibEnp9hNzOBvL5V3Ic3oebvW8ZQ9aHYG8yZuZeI0RrXjdoAXq9r3U7Ty+/HjKGwNjK /VoULQcv75GLyYJzuZ8snYqq+9veFQMitkqWOAq6wRnvdkExT0JeZi3p2XxL+Qq7d855 9ZP2r6YuWOf/oF9Kp5hSJSTCnC4V2YPLjy2nBsm1hIGW2unZG6ewYmrOfP32LY+4qc1r g5fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PP9T1+gtHUwxVhVZ5rDjgJsT2BnVoNucdyhPBjT/6f0=; b=CiIIWqbpOT0YcXbg3hi+eA/boCGVZUPBYTPknRf3IvLELVviiN/mAoB5IOWz6jVa5j ih4AiitBbgd9hZ3Kpcdd0+hs7bY97vp1iR4EVnZKwsi34ET6l1Av461hAewTNUY3gDUh Z30fWV8R5pxxwe8VRUxVJ2WCqh6wWUxj7yMqoUtaQq/F2H/E6wu/sZzt51KpydnMAvMD l7PspWT99hre3dTuzMsc7uwqnDtjGtSqPrBO9D1E8zAL2eADMtzHV6CFiEDkuiy3e19y iJGClU9K6KpJt8xXLHW4IuGEqQM5D4Z364W8PI45+NYhHGmu6T45Ge3C0p1zEtbH9wUx +gZA== X-Gm-Message-State: APjAAAWrlj+AIq0ee8Ct+SyxEQJ7nWbPwgMeOGSSXnNzqnLGWSZmb9+v g3YYPyY2iyYnU0iDjKbiQudPtsZX X-Received: by 2002:a63:e807:: with SMTP id s7mr9392362pgh.194.1562924516895; Fri, 12 Jul 2019 02:41:56 -0700 (PDT) Received: from [10.61.2.175] ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id f64sm8556676pfa.115.2019.07.12.02.41.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2019 02:41:56 -0700 (PDT) Subject: Re: [PATCH kernel v4 0/4] powerpc/ioda2: Yet another attempt to allow DMA masks between 32 and 59 To: linux-kernel@vger.kernel.org Cc: Oliver O'Halloran , David Gibson , Sam Bobroff , Alistair Popple References: <20190712092955.56218-1-aik@ozlabs.ru> From: Alexey Kardashevskiy Message-ID: <5c860fe3-ba6c-8915-a7dc-d03f3397f1b1@ozlabs.ru> Date: Fri, 12 Jul 2019 19:41:52 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190712092955.56218-1-aik@ozlabs.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Argh. This was meant for the linuxppc list, will repost, please ignore this. On 12/07/2019 19:29, Alexey Kardashevskiy wrote: > This is an attempt to allow DMA masks between 32..59 which are not large > enough to use either a PHB3 bypass mode or a sketchy bypass. Depending > on the max order, up to 40 is usually available. > > > This is based on sha1 > a2b6f26c264e Christophe Leroy "powerpc/module64: Use symbolic instructions names.". > > Please comment. Thanks. > > > > Alexey Kardashevskiy (4): > powerpc/powernv/ioda: Fix race in TCE level allocation > powerpc/iommu: Allow bypass-only for DMA > powerpc/powernv/ioda2: Allocate TCE table levels on demand for default > DMA window > powerpc/powernv/ioda2: Create bigger default window with 64k IOMMU > pages > > arch/powerpc/include/asm/iommu.h | 8 +- > arch/powerpc/platforms/powernv/pci.h | 2 +- > arch/powerpc/kernel/dma-iommu.c | 11 ++- > arch/powerpc/kernel/iommu.c | 74 +++++++++++++------ > arch/powerpc/platforms/powernv/pci-ioda-tce.c | 38 ++++++---- > arch/powerpc/platforms/powernv/pci-ioda.c | 40 ++++++++-- > 6 files changed, 121 insertions(+), 52 deletions(-) > -- Alexey