Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp416071ybl; Fri, 31 Jan 2020 01:08:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwWpfIYHHx9/itrd0zB18d0BHFUQtDB4YdZMSBMTtlMojlMEQBmdz6nBgvFkfw4ZLyislMF X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr6993183otr.83.1580461708338; Fri, 31 Jan 2020 01:08:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580461708; cv=none; d=google.com; s=arc-20160816; b=Huq31Y1HVCb3pcgVslaY06Sz+0K4aXsokVAc6zCLhb996FHCiIMGImeucqRQFPYTxf AP3YgRIEzUAqM4UQ/bk0XYI+/ghUaIzQB1ZPMIOtn0GwhytLbZ51Z/X/1j8u1sVcjULx 2/jg8/GmAljvOeKkUA7c7wUqwrB3vU357ZnDHBDPqRp5uapmin3oUFltaHYhsfNDkgu+ RuNJRrDGKP9C/2IGW340U2VDCwrsa1jPU7798BgH5m1CWWOG42TJ5n6b3IIjZMIU6SxI EFoaQnMHY4+pNRVU0lDxGlblEz6PRxqCIyI+CyYdm1u/ASJEcXVYJD9FZc73lELJlDc7 2fMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=FD1m1C7Z6owu7pJKCcZNi0kfjnO20uBFbl49wSgK5Lg=; b=WKOp0R9770pUyRSEMd6vSYBFSo9kWl4gzjRWo8leQJMxhj44v+4gjLF7igK9SSubXI WRU6skRpHPK1Gu6IVE+zh+hZ/C46vaulV7dPAnXvwZryuHu7zQszGJHvMKrxWHkvG9Xz fRhlk+5xQ3g4+53d0B2SruDIbnhDE+aN9GDEqoWTF2J9T/CxpwxogHzQXdIEiBV1cK0P 5cQiU0cNtNDD/aZzdNBVLMg6S5qafyyNlaEf7PLCF+4scLYFYQcjwZvo6U1BGVaYtsB7 2hOmFgbOM9gOtGxp5LtH3h+UsDftEsva2mMIDKyEKX1dVmNNU0lDAC1SM5S9yQ+5TRhU B9wQ== 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 l21si4414284otk.142.2020.01.31.01.08.16; Fri, 31 Jan 2020 01:08:28 -0800 (PST) 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 S1728247AbgAaJHA (ORCPT + 99 others); Fri, 31 Jan 2020 04:07:00 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40908 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728181AbgAaJG7 (ORCPT ); Fri, 31 Jan 2020 04:06:59 -0500 Received: by mail-ot1-f66.google.com with SMTP id i6so5906075otr.7 for ; Fri, 31 Jan 2020 01:06:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FD1m1C7Z6owu7pJKCcZNi0kfjnO20uBFbl49wSgK5Lg=; b=hle8MrtlObbp8du0+KnsTcFFRKRJGmAa/SeuW6xqbXWTh6BX+cc9XkiWMy6K0324Oh Y4j15FnY57MLGdpt93p3OheNy7jmhyzS9XEC04vFiyE9hIYV3oJkxOBdwwJ+w59erd+I M/PFHx5c4tA1KJlBG7jro/bnZQKPa/YbpjftnLWcQD0xwTEpZ19RtvAAxkZCpduRLAmZ bhz07Xa6a/bPDBp0Fp2/Mhq13Lcpaql9dLmgGJkz39Bp5qIDISCbTuCUKuXBszzwUKP7 o5gqqB63cCWsq7PEuc5/BNREGie/NZvxRj7QTemHY4lRi7QPnCwXtXKvz5aQgHK26IsL p+jQ== X-Gm-Message-State: APjAAAUAidzduP409qFszsqJ3XQ7yJAlvvkXS0deKpkT8F6/pkB4yvCp ZxcuU3uQT7d/mJVAqWVopzB1m0Fa0zlj+abFxAuUtA== X-Received: by 2002:a05:6830:1d55:: with SMTP id p21mr6833651oth.145.1580461618754; Fri, 31 Jan 2020 01:06:58 -0800 (PST) MIME-Version: 1.0 References: <20200130191049.190569-1-edumazet@google.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 31 Jan 2020 10:06:47 +0100 Message-ID: Subject: Re: [PATCH] dma-debug: dynamic allocation of hash table To: Robin Murphy Cc: Eric Dumazet , Christoph Hellwig , Joerg Roedel , Linux IOMMU , Eric Dumazet , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robin, On Fri, Jan 31, 2020 at 12:46 AM Robin Murphy wrote: > On 2020-01-30 7:10 pm, Eric Dumazet via iommu wrote: > > Increasing the size of dma_entry_hash size by 327680 bytes > > has reached some bootloaders limitations. > > [ That might warrant some further explanation - I don't quite follow how > this would relate to a bootloader specifically :/ ] Increasing the size of a static array increases kernel size. Some (all? ;-) bootloaders have limitations on the maximum size of a kernel image they can boot (usually something critical gets overwritten when handling a too large image). While boot loaders can be fixed and upgraded, this is usually much more cumbersome than updating the kernel. Besides, a static array always consumes valuable unswapable memory, even when the feature would not be used (e.g. disabled by a command line option). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds