Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp830614imi; Thu, 21 Jul 2022 11:49:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u7xnbq0BA1kxg8aGK8o1j0e4IfRefbEglZJ+T9MzEXQbwFNOeRtAHAPcWO4Cf0VBOQIiRc X-Received: by 2002:a17:906:216:b0:711:f623:8bb0 with SMTP id 22-20020a170906021600b00711f6238bb0mr42625138ejd.174.1658429381115; Thu, 21 Jul 2022 11:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658429381; cv=none; d=google.com; s=arc-20160816; b=U4NFzoI7vuQIrPWrT2Slm1f1ufT/7hGsxpyrj5Sp+70oTyvUBaOt4iNSfKj3x8Yf4L vYtBBzjiyyLEZQDNrBtlqb7jiHv9VljyWwaR6dUHU6RAJFugRdIor0qt8FZmM+Hzkg8F 57aGb3cxJw6/3rTb+jMBF6mvl0aK9AXDQ/9nbZn/Mn/5CqoJCVaQs1w0JI/6Cf9IWuJh DaQuoEN//0tfuw/f5OkYw4xOGZ5pKCSeqgc50T9Dgm9ZLs25qgIxbpWLBCRg53PaWzoo gpQW6L58iV+gv/WhDiUyc3orz0b5MOHHLsZGrMnPYAbmdIb3uAUerduP4gT8M2G7FPLW tRdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=t3a8s17J19DbJZAUwkumZS1vpnqeVghowkkPMiLPGl8=; b=Zz7M9tnqo5tmCcwo/Pxd4jdlvVlWDaL63WVxLSI1bhnt/arB+EZh7lKSdb0KWx/8yy g+48Lmjy1Sn2u99hQDP0vdCpEONbke08qMphA0zrWMbWnSnOYP92IDptSLmWMa1rzvuk +g3WJ0+HtEEecyZD5RCHOZS0E/MiPC5fakByUq8jC2gMMj5Ere17uRl6h/Vn0HzimPKI /V92tX8obe6g11fBvg+ElTHzeSVPvbLQ9/cZCkZNEZ2mxzlSnayzuv9Sy0/Kks4gtkDp 2o7z9n2VwJ5pwJSpSA+bvyu6bu2i1ERWgYkFsoSckYTE8AoJ7EoLchSegBpp/zquQWCR 8cIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a056402160c00b0043ab81e4240si2805697edv.501.2022.07.21.11.49.00; Thu, 21 Jul 2022 11:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbiGUSPC (ORCPT + 99 others); Thu, 21 Jul 2022 14:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiGUSPA (ORCPT ); Thu, 21 Jul 2022 14:15:00 -0400 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA5AC8C58E; Thu, 21 Jul 2022 11:14:59 -0700 (PDT) Received: by mail-pf1-f173.google.com with SMTP id d10so2456576pfd.9; Thu, 21 Jul 2022 11:14:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=t3a8s17J19DbJZAUwkumZS1vpnqeVghowkkPMiLPGl8=; b=n4Epe+ndhM9BD4W3YsfCiPgWAw1lS61FbcQ4eNegadtPtwKQuEwCtJBHJcP4NqLjrf 0NNl+7YDRmrUULlkelmZ2ecdaDMrxB47uiQ1yBfnqr4u0j7J/K5frStnTBx+kc6+QADq HFhKc8g9SU088WuulQ3ZIFXbDtXNmUEViYJW85/d1M4vrO2QXswRSI/4gagkDl40Sqv0 V3kpadn1zMzpDnCM02Cq0cscnkbxdbHCnTspuA/+CD6jPfXD8fKJPe7rmtFovqjDhq2u yw/1p38Mjkmh4Tgz+nhDHkxB1wUU1JYaXaSpyOjo7o4Ajhm51YFodz3j8y74BO4+uTq4 O2IQ== X-Gm-Message-State: AJIora/kZGNCjHe1BmLoa3+yS5ogrAMxbOF4uLIyMXItQTWXqnjusQXF gCaHXnBpG4hmsL+o9ipJg80= X-Received: by 2002:a05:6a00:cd5:b0:52b:1744:af86 with SMTP id b21-20020a056a000cd500b0052b1744af86mr41811651pfv.19.1658427298804; Thu, 21 Jul 2022 11:14:58 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:8bc4:1f9a:e474:497? ([2620:15c:211:201:8bc4:1f9a:e474:497]) by smtp.gmail.com with ESMTPSA id w2-20020a628202000000b0052b6ed5ca40sm2087258pfd.192.2022.07.21.11.14.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jul 2022 11:14:57 -0700 (PDT) Message-ID: <54e20a27-a10b-b77a-e950-1d3398e2e907@acm.org> Date: Thu, 21 Jul 2022 11:14:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/2] scsi: sd: Rework asynchronous resume support Content-Language: en-US To: Geert Uytterhoeven Cc: "Martin K . Petersen" , Jaegeuk Kim , scsi , Ming Lei , Hannes Reinecke , John Garry , ericspero@icloud.com, jason600.groome@gmail.com, Linux-Renesas , Linux Kernel Mailing List References: <20220630195703.10155-1-bvanassche@acm.org> <20220630195703.10155-3-bvanassche@acm.org> <506ca1a6-1122-5755-fc74-60f7c7bfbd0d@acm.org> <6f70e742-9d8a-f389-0482-0ba9696bf445@acm.org> From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/21/22 01:07, Geert Uytterhoeven wrote: > On Wed, Jul 20, 2022 at 8:04 PM Bart Van Assche wrote: >> That's surprising. Is there anything unusual about the test setup that I >> should know, e.g. very small number of CPU cores or a very small queue >> depth of the SATA device? How about adding pr_info() statements at the >> start and end of the following functions and also before the return >> statements in these functions to determine where execution of the START >> command hangs? >> * sd_start_done(). >> * sd_start_done_work(). > > None of these functions seem to be called at all? That's weird. This means that either sd_submit_start() hangs or that the execution of the START command never finishes. The latter is unlikely since the SCSI error handler is assumed to abort commands that hang. It would also be weird if sd_submit_start() would hang before the START command is submitted since the code flow for submitting the START command is very similar to the code flow for submitting the START command without patch "scsi: sd: Rework asynchronous resume support" (calling scsi_execute()). What is also weird is that there are at least two SATA setups on which this code works fine, including my Qemu setup. Although it is possible to enable tracing at boot time, adding the following parameters to the kernel command line would generate too much logging data: tp_printk trace_event=block_rq_complete,block_rq_error,block_rq_insert,block_rq_issue,block_rq_merge,block_rq_remap,block_rq_requeue,scsi_dispatch_cmd_done,scsi_dispatch_cmd_start,scsi_eh_wakeup,scsi_dispatch_cmd_error,scsi_dispatch_cmd_timeout scsi_mod.scsi_logging_level=32256 I'm not sure what the best way is to proceed since I cannot reproduce this issue. Bart.