Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3791682ybl; Mon, 26 Aug 2019 00:09:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtJTs2NFV5pShi16eSk3TWqguIPCRnni6aFu61aEeFpzhwpmIAJ/yIwZZTRm7IIGhLn49R X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr17206948plb.93.1566803356276; Mon, 26 Aug 2019 00:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566803356; cv=none; d=google.com; s=arc-20160816; b=GY0U9EUCr9hsg1xn/2fqN7Hvo58DgiUEhTYJruGYHrNbEiORs4KPIA8K6d7Y2+w+GY 96adDuZgCHMkgU3QUJYs5EauhbkFAPSf4N2lW5v2nR5kB4bujcKrQPdXh4Lt+S1hq6T9 6idVENahdYzVkHHQ8DpawdIUTJsMcp+vh4T5sI/17tl3RvWWudm/ouT41dvaFx9uPLN7 3MKv+XsrZ35yc1ThphirWk2xW/rmmNRyizuZ+yKMvN0akfCjUiFip+H7qRZpq2PmreMI 48PaLfqw9gnw2cHdOB9rIzUFAJPtjwGITU6R4ax5iAk7WN1mgivb+HOlypfpIKjPyNnM VYbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5/KAhh4z3w+auk+DA91DVQLA7X0ZCFv3ZHsY3TmJPtQ=; b=02mfRaH4WWcvINmaUiUcIDyGFuX71cK3+xrCfygGYxH9mC3kS2YYUpH6qE//XbJ7Iv n4Fd7rTMbLht2Ywcz9OMc0qQu8OUHHXKifjVAHMKgsi+jr/yh7fOir8UqgGd0J46An8m M53jf21DV7SXHbHfbb7xPSBHegQOnMNX7PDITzX0mrZ/5jHlJfvx1wUfQBEWc2ODlzdT ZniasPIbO7mjRGF1oPq/QDE5v/8Ng7JQRh1O2JLNAiWiRFJIeTdV2SFVtKsL5VtrlZCs ShyK+HHZoleSC0YW/Sg04Gr4prM3TvPBtLDmqzDzpM2r818QLXndG8K0RNx81wHaAs+T VsQA== ARC-Authentication-Results: i=1; mx.google.com; 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 a65si9684197pfb.153.2019.08.26.00.09.01; Mon, 26 Aug 2019 00:09:16 -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; 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 S1729867AbfHZHGh (ORCPT + 99 others); Mon, 26 Aug 2019 03:06:37 -0400 Received: from verein.lst.de ([213.95.11.211]:46343 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729769AbfHZHGh (ORCPT ); Mon, 26 Aug 2019 03:06:37 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id CF05868B02; Mon, 26 Aug 2019 09:06:33 +0200 (CEST) Date: Mon, 26 Aug 2019 09:06:33 +0200 From: Christoph Hellwig To: Nicolas Saenz Julienne Cc: catalin.marinas@arm.com, hch@lst.de, wahrenst@gmx.net, marc.zyngier@arm.com, robh+dt@kernel.org, Robin Murphy , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, iommu@lists.linux-foundation.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, phill@raspberryi.org, f.fainelli@gmail.com, will@kernel.org, eric@anholt.net, mbrugger@suse.com, linux-rpi-kernel@lists.infradead.org, akpm@linux-foundation.org, frowand.list@gmail.com, m.szyprowski@samsung.com Subject: Re: [PATCH v2 10/11] arm64: edit zone_dma_bits to fine tune dma-direct min mask Message-ID: <20190826070633.GB11331@lst.de> References: <20190820145821.27214-1-nsaenzjulienne@suse.de> <20190820145821.27214-11-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820145821.27214-11-nsaenzjulienne@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 04:58:18PM +0200, Nicolas Saenz Julienne wrote: > - if (IS_ENABLED(CONFIG_ZONE_DMA)) > + if (IS_ENABLED(CONFIG_ZONE_DMA)) { > arm64_dma_phys_limit = max_zone_dma_phys(); > + zone_dma_bits = ilog2((arm64_dma_phys_limit - 1) & GENMASK_ULL(31, 0)) + 1; This adds a way too long line. I also find the use of GENMASK_ULL horribly obsfucating, but I know that opinion is't shared by everyone.