Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1090908iob; Thu, 12 May 2022 10:53:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7sWZ8lpnk58ViyYZpUJ/MoQ89PmBlNn19BKI5KhJzYtScVUYzByegCI5jgWwuRSnLAz5k X-Received: by 2002:a05:6402:1c93:b0:428:1818:4fe7 with SMTP id cy19-20020a0564021c9300b0042818184fe7mr35963428edb.129.1652378006296; Thu, 12 May 2022 10:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652378006; cv=none; d=google.com; s=arc-20160816; b=G21T8tb7o5NVjG/GxK8G1H3qLkipAgImyDciQGLKZdS/6qn7PKrAtruN9w9RG57KoK m4ToeB61wiGf/BETCVSBXKCKy/PFiwp2mg6xHY4a98KgVugxFvVZHNf/jFBc/Do+bArY M46WpGlBZ375zAUgox2abxxHb6dQahyKHLgS11NC3Asust0/f7jadTvU5QVnpkbrEdie DY56cN+HaOt3bmRhJMtQfndVI23z13/eXH8qm81TN6zqKgvDK59Xy4vrq9vEQpG1arwm ZkMBWldVGnmxPz31Gd0eOsG7tYjwug6rBueBytjQjeAHgwrStpVmoNJ5w3/rPzYNsZLc nm5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=kyPD5gBpbQcRKFK5dNrwV8JnmmOOsQqwdWIAGz3y2Xw=; b=AzhYxqLycxodYR/Nhf4nzVzylzm3BGt8ed9TYqnWqitP5hJ9LaGv/aFgFRPPCAo81Q JWC2A44HGaj89q5Ex/TY0Al4QGe3SQX5WiKu9O85g8wa4GY1F8zhFcAIGNF7wyqe42El EyqU2LEPtZm7aWWtDi7wscWO7woqlAin6rNTrI99cpAv3fjeoPD/o/hzMxZ1UHO7KXK2 Vmi0INPrCo8ZGxDnaRLrLhEAvjh31OheVcBGSXdAg2CzzzVDDKPwMIhY6fao5z5gn8ow 1Qb5a6xsKNShy8bklrX6zY+HdMQ0f7QuT970cuuBst/0lB8DlsWVzDFg7Gq+sbbn0XHY 1hcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm21-20020a170907949500b006f3a88ccf8dsi7069353ejc.333.2022.05.12.10.52.49; Thu, 12 May 2022 10:53:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240794AbiELLV1 (ORCPT + 99 others); Thu, 12 May 2022 07:21:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353397AbiELLVN (ORCPT ); Thu, 12 May 2022 07:21:13 -0400 Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3931C15FE0A for ; Thu, 12 May 2022 04:20:05 -0700 (PDT) Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.52 with ESMTP; 12 May 2022 20:20:03 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 12 May 2022 20:20:03 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: tj@kernel.org Cc: torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, chris@chris-wilson.co.uk, duyuyang@gmail.com, johannes.berg@intel.com, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, paolo.valente@linaro.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jack@suse.com, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, mcgrof@kernel.org, holt@sgi.com Subject: Re: [REPORT] syscall reboot + umh + firmware fallback Date: Thu, 12 May 2022 20:18:24 +0900 Message-Id: <1652354304-17492-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-ext4@vger.kernel.org Tejun wrote: > Hello, Hello, > I'm not sure I'm reading it correctly but it looks like "process B" column I think you're interpreting the report correctly. > is superflous given that it's waiting on the same lock to do the same thing > that A is already doing (besides, you can't really halt the machine twice). Indeed! I've been in a daze. I thought kernel_halt() can be called twice by two different purposes. Sorry for the noise. > What it's reporting seems to be ABBA deadlock between A waiting on > umhelper_sem and C waiting on fw_st->completion. The report seems spurious: > > 1. wait_for_completion_killable_timeout() doesn't need someone to wake it up > to make forward progress because it will unstick itself after timeout > expires. I have a question about this one. Yes, it would never been stuck thanks to timeout. However, IIUC, timeouts are not supposed to expire in normal cases. So I thought a timeout expiration means not a normal case so need to inform it in terms of dependency so as to prevent further expiraton. That's why I have been trying to track even timeout'ed APIs. Do you think DEPT shouldn't track timeout APIs? If I was wrong, I shouldn't track the timeout APIs any more. > 2. complete_all() from __fw_load_abort() isn't the only source of wakeup. > The fw loader can be, and mainly should be, woken up by firmware loading > actually completing instead of being aborted. This is the point I'd like to ask. In normal cases, fw_load_done() might happen, of course, if the loading gets completed. However, I was wondering if the kernel ensures either fw_load_done() or fw_load_abort() to be called by *another* context while kernel_halt(). > Thanks. Thank you very much! Byungchul > > -- > tejun >