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=-0.9 required=3.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable 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 6750AC282CB for ; Sat, 9 Feb 2019 11:59:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3FACF20818 for ; Sat, 9 Feb 2019 11:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbfBIL66 (ORCPT ); Sat, 9 Feb 2019 06:58:58 -0500 Received: from smtp4-g21.free.fr ([212.27.42.4]:5218 "EHLO smtp4-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726670AbfBIL66 (ORCPT ); Sat, 9 Feb 2019 06:58:58 -0500 Received: from [192.168.1.42] (unknown [77.207.133.132]) (Authenticated sender: marc.w.gonzalez) by smtp4-g21.free.fr (Postfix) with ESMTPSA id 3D6D619F59E; Sat, 9 Feb 2019 12:57:59 +0100 (CET) Subject: Re: dd hangs when reading large partitions To: Bart Van Assche , linux-mm , linux-block Cc: Jianchao Wang , Christoph Hellwig , Jens Axboe , fsdevel , SCSI , Joao Pinto , Jeffrey Hugo , Evan Green , Matthias Kaehlcke , Douglas Anderson , Stephen Boyd , Tomas Winkler , Adrian Hunter , Alim Akhtar , Avri Altman , Bart Van Assche , Martin Petersen , Bjorn Andersson , Ming Lei , Omar Sandoval , Roman Gushchin , Andrew Morton , Michal Hocko References: <398a6e83-d482-6e72-5806-6d5bbe8bfdd9@oracle.com> <20190119095601.GA7440@infradead.org> <07b2df5d-e1fe-9523-7c11-f3058a966f8a@free.fr> <985b340c-623f-6df2-66bd-d9f4003189ea@free.fr> <5132e41b-cb1a-5b81-4a72-37d0f9ea4bb9@oracle.com> <7bd8b010-bf0c-ad64-f927-2d2187a18d0b@free.fr> <0cfe1ed2-41e1-66a4-8d98-ebc0d9645d21@free.fr> <27165898-88c3-ab42-c6c9-dd52bf0a41c8@free.fr> <66419195-594c-aa83-c19d-f091ad3b296d@free.fr> <1549640986.34241.78.camel@acm.org> From: Marc Gonzalez Message-ID: <5aff492a-9aca-0517-264f-c0eb95f1a87f@free.fr> Date: Sat, 9 Feb 2019 12:57:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <1549640986.34241.78.camel@acm.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 08/02/2019 16:49, Bart Van Assche wrote: > On Fri, 2019-02-08 at 16:33 +0100, Marc Gonzalez wrote: > >> Does anyone see what's going sideways in the no-flag case? > > Does this problem only occur with block devices backed by the UFS driver > or does this problem also occur with other block drivers? So far, I've only been able to test with UFS storage. The board has no PATA/SATA. SDHC is not supported yet. With Jeffrey's help, I was able to get a semi-functional USB3 stack running. I'll test USB3 mass storage on Monday. FWIW, I removed most (all?) locks from the UFSHC driver, by dropping scaling and gating support. I could also drop runtime suspend, if someone thinks that could help, but I'm thinking the problem might be in the mm or block layers? (It doesn't look like a locking problem, but more a memory exhaustion problem.) Regards.