Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp153996ybl; Tue, 28 Jan 2020 00:22:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwsYTZRrpfuuHis+Ec6k2r1e9v7IoQCvK3Kx/neUrfVbb3Ln1kBd0x9y8eJd6TxZf0T3aW2 X-Received: by 2002:aca:1e11:: with SMTP id m17mr2097965oic.5.1580199740988; Tue, 28 Jan 2020 00:22:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580199740; cv=none; d=google.com; s=arc-20160816; b=nUOBNtyMkjNdPRJVtU4+A4T96lu5//yHwTso77jZDq4SnCa4yJew7lLTWqUELuLTG8 J98/+jvqNyggrroyZZVvvrpJxrzmVQkT0x4ggQg/OBjHaSVTzPiJiECoFrpkYnNVNeYn 1Y8ktiOcNA/mmNW/Cbxko8GkLHkT+YdJ4X0lZRQkrcT9TlapHfU8wKEh8lJLGk9Qy2Y1 GiVL9X2XW9hSu/aG0iF+ewN0+xxuVkB3XKNZ5Gna5dsllAGX7GhOoWiECoJ0uZEwpgAb 2E6/5CXDvkWPtLpCa4JMjnIOwcBPAL4HCipZKYoBK9E1TG68A9Zyj9aTBmpEWDIYNchC WtUg== 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=8puorSS2DhVQd8TswvusYCRWiQHEdCmIblxq5NzEfKY=; b=SOjb4EOKcKljNczk5C6jX7XWwwqSJ7foC65v1VQ7tBmb5vLLp6tdfNfUL3nDzDQJdV iFjIrynVaaHVPFKcJW05nXjwpAMgplK/an99TirMv+qT8tNubncKd9o3vXHoB9Vk7E1C 7NTwzIjp9/Qd8/Barm2d+ZkJoVaf5cZPC5agEByg/rFyWVHf9zQy84b0AhY6Yifn+a3f KR66Qp30xCoZY1crdy/+S14m3qmcfPxSAwhbldWxOKKxmqp2XF59TbhhZtofz2yGg3c7 KFx8zpkzfn+dKWQlXMDwt5YT8WtcA1fDh+Dvw2wlR/MOWRfrayR+Mz/NzJQ19KOZGcVo KG7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="xBh/qDSh"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x137si4703776oif.42.2020.01.28.00.22.06; Tue, 28 Jan 2020 00:22:20 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="xBh/qDSh"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725997AbgA1IUl (ORCPT + 99 others); Tue, 28 Jan 2020 03:20:41 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:40426 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgA1IUl (ORCPT ); Tue, 28 Jan 2020 03:20:41 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00S8KNjt028638; Tue, 28 Jan 2020 02:20:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1580199623; bh=8puorSS2DhVQd8TswvusYCRWiQHEdCmIblxq5NzEfKY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=xBh/qDShAxxjP942ORw04g8URKhIt3mOedUwGR10rZangDQIWSIxfKgKHsUeiTtNL s2wC1w79g1NmvLGND9S0f+qydHhXamX6gRMx+E88rXwn1BdWZ9eMKk55ft7xNuPUi2 xJJe6jsgZHPAxy3Ag3cxjrVWW9w+e4D4bz8Mbo0A= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 00S8KN84033053 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Jan 2020 02:20:23 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 28 Jan 2020 02:20:23 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 28 Jan 2020 02:20:23 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00S8KKnV104334; Tue, 28 Jan 2020 02:20:21 -0600 Subject: Re: [PATCH] arm64: defconfig: Enable Texas Instruments UDMA driver To: Olof Johansson CC: Catalin Marinas , Will Deacon , Linux ARM Mailing List , Linux Kernel Mailing List , Tero Kristo , Vinod Koul , Alexandre Belloni , Arnd Bergmann , SoC Team References: <20200124092359.12429-1-peter.ujfalusi@ti.com> <20200124200811.ytgs66cg5qpugi5c@localhost> <12f40648-fec6-9179-1f62-0a648996ed20@ti.com> From: Peter Ujfalusi Message-ID: Date: Tue, 28 Jan 2020 10:21:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Olof, On 27/01/2020 17.30, Olof Johansson wrote: >>> I also see that this is statically enabling this driver -- we try to keep as >>> many drivers as possible as modules to avoid the static kernel from growing too >>> large. Would that be a suitable approach here, or is the driver needed to reach >>> rootfs for further module loading? >> >> We would need built in DMA for nfs rootfs, SD/MMC has it's own buit-in >> ADMA. We do not have network drivers upstream as they depend on the DMA. > > Ok, so that can either be turned into a ramdisk argument, or into a > "we really want to enable non-ramdisk rootfs boots on this hardware > because it's a common use case". SD/MMC does not need slave DMA, it is self containing with it's own built-in DMA. I'm not sure if it is enabled in defconfig. It is not enabled at all in defconfig atm. Normally I would use nfs rootfs, but we don't have network drivers upstream for K3 platform. I think having the UDMA stack as module should be fine when I have the dependencies in to be able to build them as modules. > I find it useful to challenge most of the =y drivers to make people > think about it, and at some point we'll enough overhead of cruft in > the static superset kernel that defconfig today is used for such that > we need to prune more =y -> =m, Sure, I fully agree on this, we should have non boot needed drivers as modules. > but this particular driver is probably > OK (it's also not large). Well, it depends how you look at it ;) UDMA stack is not enabled in defconfig (w/o this patch): $ size vmlinux text data bss dec hex filename 17853717 9221872 469288 27544877 1a44d2d vmlinux UDMA stack is enabled in defconfig (w this patch): $ size vmlinux text data bss dec hex filename 17890970 9237544 469288 27597802 1a51bea vmlinux It would be nice for other driver to enable the DMA if it is acceptable to have it built in for start and when I can build it as module we can switch it to module? >> Imho module would be fine for the DMA stack, but neither ringacc or the >> UDMA driver can be built as module atm until the following patches got >> merged: >> https://lore.kernel.org/lkml/20200122104723.16955-1-peter.ujfalusi@ti.com/ >> https://lore.kernel.org/lkml/20200122104031.15733-1-peter.ujfalusi@ti.com/ >> >> I have the patches to add back module support, but waiting on these >> currently. > > -Olof > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki