From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E297C43603 for ; Wed, 18 Dec 2019 04:05:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F02B20715 for ; Wed, 18 Dec 2019 04:05:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726707AbfLREFX (ORCPT ); Tue, 17 Dec 2019 23:05:23 -0500 Received: from ozlabs.org ([203.11.71.1]:57527 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbfLREFM (ORCPT ); Tue, 17 Dec 2019 23:05:12 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 47d1cj4B0Fz9sRc; Wed, 18 Dec 2019 15:05:09 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 8fabc623238e68b3ac63c0dd1657bf86c1fa33af In-Reply-To: <20191204123524.22919-1-rppt@kernel.org> To: Mike Rapoport , linux-kernel@vger.kernel.org From: Michael Ellerman Cc: linux-arch@vger.kernel.org, Darren Stevens , Robin Murphy , Mike Rapoport , linux-mm@kvack.org, iommu@lists.linux-foundation.org, Rob Herring , Paul Mackerras , mad skateman , Christian Zigotzky , linuxppc-dev@lists.ozlabs.org, Christoph Hellwig , Nicolas Saenz Julienne Subject: Re: [PATCH] powerpc: ensure that swiotlb buffer is allocated from low memory Message-Id: <47d1cj4B0Fz9sRc@ozlabs.org> Date: Wed, 18 Dec 2019 15:05:09 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-12-04 at 12:35:24 UTC, Mike Rapoport wrote: > From: Mike Rapoport > > Some powerpc platforms (e.g. 85xx) limit DMA-able memory way below 4G. If a > system has more physical memory than this limit, the swiotlb buffer is not > addressable because it is allocated from memblock using top-down mode. > > Force memblock to bottom-up mode before calling swiotlb_init() to ensure > that the swiotlb buffer is DMA-able. > > Link: https://lkml.kernel.org/r/F1EBB706-73DF-430E-9020-C214EC8ED5DA@xenosoft.de > Reported-by: Christian Zigotzky > Signed-off-by: Mike Rapoport Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/8fabc623238e68b3ac63c0dd1657bf86c1fa33af cheers