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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 34680C433ED for ; Mon, 19 Apr 2021 07:46:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD1546102A for ; Mon, 19 Apr 2021 07:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237837AbhDSHqi (ORCPT ); Mon, 19 Apr 2021 03:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231637AbhDSHqh (ORCPT ); Mon, 19 Apr 2021 03:46:37 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFF89C06174A for ; Mon, 19 Apr 2021 00:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=NsE5l7uKoP9LJcXeetBCx8Qr0TbzT5ZnbTo1mIkm78I=; b=RgrZozy4e/GPhLoaWqwzat/ZhW VOfrHKXbdIHCFRiltxPu261yr6YVMLwc+3xtnvAtuWW9fNTg4Cl0rpxpmcs7mBenzAGf4pitixTGi Ud0HVgDIMPCxUIDNcp9FIzAXI2zeA9Kd7KcvQAvqDIiLRz/MW84xzBcTPnXTwD6QReB8CShccj8WR j4va0PFto54i61KdGngasQtyhmdKY3vgRxa9u1GRryNi7xCEOXIZqdVvLHM6n6tmJEoBR4KduSgMq UwmN9gxXUmw8CLjWSr1NmYN3Kz1vOnz3xbx2lStICiu9gKEf/K/B2hUaAf4/z3HtV9D/qzmdpPY79 sb2QIGqg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lYObI-009Nxr-Tb; Mon, 19 Apr 2021 07:45:45 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 0411C300212; Mon, 19 Apr 2021 09:45:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CBEF1200D4310; Mon, 19 Apr 2021 09:45:42 +0200 (CEST) Date: Mon, 19 Apr 2021 09:45:42 +0200 From: Peter Zijlstra To: =?utf-8?B?5ZGo5Lyg6auY?= Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Andrew Morton , Kees Cook , Tetsuo Handa , Michal Hocko , "Guilherme G. Piccoli" , Vlastimil Babka , Lukas Bulwahn , linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 19, 2021 at 09:46:26AM +0800, 周传高 wrote: > > >On Sat, Apr 17, 2021 at 07:13:01AM -0700, zhouchuangao wrote: > >> eg: > >> In Android system, we usually and some processes to the whitelist. > >> static task_t task_whitelist[] = { > >> {"mdrt_thread", HUNG_TASK_WHITELIST}, > >> {"chre_kthread", HUNG_TASK_WHITELIST}, > >> {"scp_power_reset", HUNG_TASK_WHITELIST}, > >> {"ccci_fsm1", HUNG_TASK_WHITELIST}, > >> {"qos_ipi_recv", HUNG_TASK_WHITELIST}, > >> {NULL, 0}, > >> }; > > > >What are these tasks doing that the hung-task detector fires on them? > >Should you fix that instead? > > These tasks are implemented by the SoC vendor, and normally they do > not configure HUNG TASK, so we need to ignore these tasks if we use > HUNG TASK. Then raise a bug against their crap software, don't try and work around it in the kernel. We're not going to upstream workarounds for crap vendor software.