Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08499C433FE for ; Sat, 13 Nov 2021 07:02:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E08D360F44 for ; Sat, 13 Nov 2021 07:02:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233750AbhKMHFY (ORCPT ); Sat, 13 Nov 2021 02:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbhKMHFW (ORCPT ); Sat, 13 Nov 2021 02:05:22 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEFF6C061767; Fri, 12 Nov 2021 23:02:30 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id y7so10313803plp.0; Fri, 12 Nov 2021 23:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=t3HtgqZ9lXJnfnTm5YvKEnib5/55ENu4R0VlpnRrsMM=; b=Obd06hzN7HFneA6LaM1rUUZzt0pi1uExyqnis6phkevDFBO4/NAE3CjBMa3BKDZht0 vrQcpfa0YMtn9JRVqnjHGrqznCpiYwvUsxCssrHqiMQ5dnKrlPue0uBmr+VBPCKjPGKG /h4tmGMCgY5jh6xmjN4Z5RKON8WaW8HWge0tVegOAtCsfZxmmvjtpxwPRhvnzobq5jDU DjWtqFq7NRLzSrxhBiFsvAUrgMO04gAkSFY1wfSRxbPRtIrqsMUw9id0nKPsuYiDe/hv AsVLWfjyIl+4AeBvhy0381wvxQW3GCVjpyPPKLi1DvKKRS/+sRJODW78cda9AJyPKLh4 T+dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=t3HtgqZ9lXJnfnTm5YvKEnib5/55ENu4R0VlpnRrsMM=; b=ormQpcSaa5tlwbQGDxqIhIC/Pg29a/gpTaTERnYu0UBZqzjFPT05pGKk34mJI79sEG bYGuRh8MlNZcL6M06gbipxftVrH9Q19QNcmLe+C/o+63oco3L9x14LfgtyDc+ANYUZZg b8sl1qeDlU6A4FD21GdeLJimdiw4pYvKx7X/4F2xAIOx+bzEBap57zCkNIZOEEUqrb56 Jwx3BFoFs+o7hlz28/WUp/7H4S4Ho0USY0a6wcHv+GNYUW6xIU3hPxfjtOLu6plGIqH5 1s+LfeheMfb8YTViml18BL96gWumJaU79PkBSpgW+mGWsEBHbHXQrDpMbO3GUm1YjL7N OwDQ== X-Gm-Message-State: AOAM532YFSOGADOJkOEn3ksRyN/Lmf5eTSgMgy6sRo8MdmqA2iqH958r TCLxZJPgQdwzhLwm4y7bJlq4CWstVK0= X-Google-Smtp-Source: ABdhPJye84ThKKbLEGGiWrYe4aUuE6mNmwxdCDrWN/w7SrtioObGfdbVTse5Cwu3zJJtNH4WqJa98Q== X-Received: by 2002:a17:90a:6b44:: with SMTP id x4mr25303556pjl.27.1636786949862; Fri, 12 Nov 2021 23:02:29 -0800 (PST) Received: from [10.1.1.26] (222-155-101-117-fibre.sparkbb.co.nz. [222.155.101.117]) by smtp.gmail.com with ESMTPSA id n13sm8360612pfj.188.2021.11.12.23.02.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Nov 2021 23:02:29 -0800 (PST) Subject: Re: [PATCH 4/5] block: move queue enter logic into blk_mq_submit_bio() To: Geert Uytterhoeven References: <20211104182201.83906-1-axboe@kernel.dk> <20211104182201.83906-5-axboe@kernel.dk> <2865c289-7014-2250-0f5b-a9ed8770d0ec@kernel.dk> <8c6163f4-0c0f-5254-5f79-9074f5a73cfe@kernel.dk> <461c4758-2675-1d11-ac8a-6f25ef01d781@kernel.dk> <3d29a5ce-aace-6198-3ea9-e6f603e74aa1@kernel.dk> <87ee0091-9c2f-50e8-c8f2-dcebebb9de48@kernel.dk> <39bfc824-61d8-02a8-30fe-e9ea0efae100@gmail.com> Cc: "Martin K. Petersen" , Jens Axboe , Christoph Hellwig , linux-block@vger.kernel.org, linux-m68k , Linux Kernel Mailing List From: Michael Schmitz Message-ID: <4586fc98-1350-c0f0-594d-888514cba277@gmail.com> Date: Sat, 13 Nov 2021 20:02:23 +1300 User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <39bfc824-61d8-02a8-30fe-e9ea0efae100@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, Jens, On 13/11/21 11:34, Michael Schmitz wrote: > Hi Geert, > > On 12/11/21 20:37, Geert Uytterhoeven wrote: >> Hi Michael, >> >> On Thu, Nov 11, 2021 at 10:35 PM Michael Schmitz >> wrote: >>> how easy is that to reproduce? >> >> Fairly easy: it happens either on mounting, or after a few seconds >> booting >> into my old Debian userspace. > > I must be too thick for this: > > EXT4-fs (sda1): Cannot load crc32c driver. > VFS: Cannot open root device "sda1" or unknown-block(8,1): error -80 > > (linux-block 5833291ab6de, from kernel.org) > > Same config on m68k 5.15 works just fine. FWIW - I had to revert cad439fc040efe5f4381e3a7d583c5c200dbc186 to overcome this, and reproduce Geert's finding. Cheers, Michael > > But this looks resolved now, so I'll punt for now ... > > Cheers, > > Michael > >> >>> sd_setup_read_write_cmnd() does not validate the request's FUA flag >>> against sdkp->DPOFUA (not suggesting that it should ...). I'd like to >>> try and trace when such a mismatch happens. >> >> Thanks! >> >>> On 12/11/21 03:48, Geert Uytterhoeven wrote: >>>> On Thu, Nov 11, 2021 at 2:19 PM Martin K. Petersen >>>> wrote: >>>>>> sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK >>>>>> driverbyte=DRIVER_OK cmd_age=0s >>>>>> sd 0:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] >>>>>> sd 0:0:0:0: [sda] tag#0 Add. Sense: Invalid field in cdb >>>>>> sd 0:0:0:0: [sda] tag#0 CDB: Write(10) 2a 08 00 00 00 01 00 00 08 00 >>>>>> critical target error, dev sda, sector 1 op 0x1:(WRITE) flags >>>>>> 0x20800 phys_seg 1 prio class 0 >>>>>> Buffer I/O error on dev sda1, logical block 0, lost sync page write >>>>> >>>>> Peculiar. That write command looks OK to me. I wonder if it's the FUA >>>>> bit that trips it? >>>>> >>>>> What does: >>>>> >>>>> # dmesg | grep FUA >>>>> >>>>> say? >>>> >>>> sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't >>>> support DPO or FUA >> >> 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 >>