Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2253465pxb; Mon, 19 Apr 2021 00:47:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTGnBtrLieN6+3B6hz7ES5GPywD8JPpA8S9bbhv225RFihKwm1J+vcHXXvD/VdR4zfZQoN X-Received: by 2002:a17:906:a44b:: with SMTP id cb11mr21401344ejb.518.1618818443186; Mon, 19 Apr 2021 00:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618818443; cv=none; d=google.com; s=arc-20160816; b=OvCeZxapUJjJOoX2lvVStCta8RL/wejNsWQe8GHIeBhkjvsZCemjtmRqU3e80NFBvs wdSssZVpXan5ynKyCrlW4MGTE5a9q42eIPpF2PnAnJnUITrWMMay4LvlJm01FmKZfWIZ V1gNi/OEtfeeknLBQn3e7ZUZpSEYhTg941THS+n38IpTTm083sFWVuOTg3wbSgsYnQqv FsyYOw3NSLLLJqVjtNQdhyV/Cg2u02z8aNa0b6WmfqHx6K20rtQuso0+CTGa3IwyA1mt ssgIKvw244qsdmGzN75e1+vPFpNE9Yyal4PjX1FauTXJX9XsMUn9RGll5ZLkqXV/mJTA ys9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NsE5l7uKoP9LJcXeetBCx8Qr0TbzT5ZnbTo1mIkm78I=; b=dWASusH2DNtDaeC/jK92aAZz4RDWUwzJb9PfW/uwAsHu4gyWyUFuq5TjpyRqqye3L+ YeWkAM7SAsrhKg3FCgPaf9okiElDXQP6oCWJ/bo/q8VgbzEI/kj8GJilQw9aUmksykSx 78Z0YYheqzBAppyr3QArMc3pAYYXtTS84zEnBf1OtFK+zGTA7vAraoaFRinUnmgj2YAh nU9AiH9/ITDOvgU49SyCFhq7SgUjog52ljCikVncwOKu9JzhWuJ+zx1vIj1AP1ek2L+a zLQteNy54HV7sOsh1j9RP1tF6JA2wkHVSv/sHMgv8hWSnBv2iy0n5durhaGiKRSLmRep sS+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=RgrZozy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k15si5171017edx.412.2021.04.19.00.46.59; Mon, 19 Apr 2021 00:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=RgrZozy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237757AbhDSHqh (ORCPT + 99 others); Mon, 19 Apr 2021 03:46:37 -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.