Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp624218ybl; Fri, 24 Jan 2020 06:38:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxFGa3GXDgypaaluF9XAqDF8CKKAmD4jOuQn8yKo1FSvDFcSHTohaU6BELy3kgEKr0zVm0G X-Received: by 2002:aca:534f:: with SMTP id h76mr2216062oib.23.1579876689105; Fri, 24 Jan 2020 06:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579876689; cv=none; d=google.com; s=arc-20160816; b=HlmfETb1XZxAcDjwcOhcJOq+fqeWfLo8J5xTY7u+e0KnQUENWR8AVQfhw6JOnC5232 hx9nkgtB5jd2v0FY218TlUiIji+pJPhngbEXQwzwrMzIrNjYc1KMm21dHKeNSO036CMe AGi8KcrmPC583qJXTlp+X/3FypXxezwzcW/3Bzy9jPqvyOmxu4DSPhGfgdW78wVtORjB 2Q14L0m3gqru/AL2AE5yzvNXnv17u5J0fmv43q3Krqk3sa37QPFRjGKTrlumQFjOhC8i /QYeEVME6dNa3VlcA2kyeGnRNxR4t1RBi4+qO6CY3nAfYTXbwTGwPEXJN/SOGC+mr+Ts a8Yg== 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=ZiaD4SnCdosS8nQj0oAGF73NcGkqbYROWitRkBVgCU4=; b=hnvSWkRjSWZpOoMAiR1v7jpnNYTlLDCo8tNq7PmHB0phuWHOTCjj7RTRHAoMe6bnH7 bnXBakjsyBzMc+SwnUzzm42lQRnj2rQ65rPB5NCcpDpNW0ELr0Y3Hh+L7pt/TQQRAL0f 3r2VsoWn85kUMs/DHjxTybbz4AQGYeUcNoypBWLCd/Zvh4QE5dj+kwDyW8uWOegStMG5 cwx9vbIw2+0VbJePhrkCtnJnkkXotAxErw6q0SJsqJaibLLt/DO/figzisF85XEDtPco jGCfru+UjjyBicmLpbRCys1so3KlHZyek7I+qfnc+bdYF+WFjSIlzASl/OyJKDZi4yAX DwOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=b2NNtPZd; 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 i12si3100222otk.215.2020.01.24.06.37.57; Fri, 24 Jan 2020 06:38:09 -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=b2NNtPZd; 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 S2389338AbgAXNON (ORCPT + 99 others); Fri, 24 Jan 2020 08:14:13 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39950 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387445AbgAXNON (ORCPT ); Fri, 24 Jan 2020 08:14:13 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00OC4hFK113955; Fri, 24 Jan 2020 06:04:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579867484; bh=ZiaD4SnCdosS8nQj0oAGF73NcGkqbYROWitRkBVgCU4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=b2NNtPZdhbz/8dI8KJE8mwbYPflq+53YLKNqNwKLejvpXl5CuIO9xUin33ng/zQIU IOiNYbLMKRbk8RAJhx2jG+cB7ypZFiT5tyBZCj0gga5D4GcJMP0m3OWUVde3dbk3YC 14sCzXFRdKiE44Lzr+EaVBexwcMsuhI9JBngGOWo= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 00OC4hd2012138 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Jan 2020 06:04:43 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Fri, 24 Jan 2020 06:04:43 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE114.ent.ti.com (10.64.6.35) 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; Fri, 24 Jan 2020 06:04:43 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00OC4fPg018694; Fri, 24 Jan 2020 06:04:41 -0600 Subject: Re: [PATCH for-next] arm64: defconfig: Set bcm2835-dma as built-in To: Nicolas Saenz Julienne , Ulf Hansson CC: , Catalin Marinas , , , Will Deacon , References: From: Peter Ujfalusi Message-ID: <86672a12-6b88-dba8-0945-b6321ccf28c3@ti.com> Date: Fri, 24 Jan 2020 14:05:25 +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 On 24/01/2020 13.51, Nicolas Saenz Julienne wrote: > Hi Peter, > > On Fri Jan 24, 2020 at 1:31 PM, Peter Ujfalusi wrote: >> Hi Nicolas, >> >> On 24/01/2020 13.17, Nicolas Saenz Julienne wrote: >>> With the introduction of 738987a1d6f1 ("mmc: bcm2835: Use >>> dma_request_chan() instead dma_request_slave_channel()") sdhost-bcm2835 >>> now waits for its DMA channel to be available when defined in the >>> device-tree (it would previously default to PIO). Albeit the right >>> behaviour, the MMC host is needed for booting. So this makes sure the >>> DMA channel shows up in time. >>> >>> Fixes: 738987a1d6f1 ("mmc: bcm2835: Use dma_request_chan() instead dma_request_slave_channel()") >> >> it is not a bug, it is a feature ;) > > Agree, I'm just afraid of your series being picked up by a stable > release without this patch. But maybe it's not necessary? If you need MMC rootfs then the DMA needs to be built in or have initrd with the modules. The driver expects to have DMA channel and it is going to wait for it to appear unless the request fails. Without moving the DMA as built in and removing the deferred probe handling form the MMC driver, one can just remove the DMA support from the mmc-bcm2835 as it is not used at all. I wonder why this is not signaled by automated boot testing, if any exists for bcm2835. >> Yes, if a driver have DMA binding and it is needed during boot then the >> DMA driver also needs to be built in. >> I believe it is desired to use DMA instead of PIO in any case for MMC >> and in the past bcm2835 did not used DMA if DMA was module and the MMC >> was built in. >> >> Sorry for the inconvenience this change has caused to bcm2835! > > Not at all :) > >> Reviewed-by: Peter Ujfalusi > > Thanks, > Nicolas > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki