Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp648623ybg; Wed, 10 Jun 2020 09:59:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1xTeszMWPZ0NOXQKjwk7yeiLPgfoybzBtWkHgMtj5CyQifL5sKjxy5TKOh1A/0I05DHLQ X-Received: by 2002:aa7:c68b:: with SMTP id n11mr3342520edq.278.1591808383272; Wed, 10 Jun 2020 09:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591808383; cv=none; d=google.com; s=arc-20160816; b=dTAA4udK5TGrloXU2HDjMb/+SqRz1Y6kAhe2CdaPughEr7q58x18nfQ7/lObmB0MvQ Hsom+ROkkYlXPa1CZe3YxiVKUXxrjHTPVWrrYBOCVawUzYw54hFE3M8x97pd3+pMTlLh oKTmtxrQ9xGmZBTaw98z0MuRPkg+ysgZB0Ys1Al4m66OcBGyUJugbJ3v82bUUxLzX0qy GLYaRkiaYx9H2vfQUy28q1gTxdxSAuL0QjbNGTA7ccou+bJkR29MqNs+uJ4KkNCxN05E eHQ9uTvxwg8ZFoPQKlrbTleTEu7L6kn3Swb4GoMBistNPxTip7G81oT0yKmb8U81hQFP Z5Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=louuagbKSxfrb8/Dp/GTX3k2fqZ0Yz1fd990t85rr9w=; b=ShzKf2NNntvERBFcxH6PmIR/4XcgcKTLaW7zU+pEET8N1rm5vtkS7YORoyfPlNNJEI 4FPXsNXXv0b518XvdsWOhiPBqTdDpvCo/9k1WRyyqcze4d1+RNqVHvWJJ9FyVK5uRlpA WhGIZ2Fr6vtXDcj9ifJR2Qmjk2sAWYikbQhmAdB+SIGRj6rRWapR53yAshoH9VUw2jHS 8y78Fgd+rYU6t6sgRAR8zRFF0nH/VDaTEx+Fa3w6nmjBvti27HNfLoTT9+xEsMksVkr1 KpwPAI7LszLqDshQRx5hpX2FaoO3Y53642fzQS0xoZfsWgAvjN6IILp29oHfyuftsqwt MNtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=miZS9oRo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si103681eds.234.2020.06.10.09.59.19; Wed, 10 Jun 2020 09:59:43 -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=@kernel.org header.s=default header.b=miZS9oRo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729944AbgFJPC4 (ORCPT + 99 others); Wed, 10 Jun 2020 11:02:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:46882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbgFJPC4 (ORCPT ); Wed, 10 Jun 2020 11:02:56 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9EFAF2072F; Wed, 10 Jun 2020 15:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591801375; bh=PXOXPvrJV7xGGbzYC9/oZT86BtGS3IQuSBt+aeT7chk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=miZS9oRoEjrNMU1meThJvdtBXhi0h+mnI4aLe1ZvYLzne2pS5A2ymCsWzRULdvM9S 0ypO5Pvib76X09QkaaLDBbZ8rIOJhHK3/OMNBf2gitnzI5QSV7LbgGkbH0NuXtBbdN zyZai7/svsw881Su3czNZ57SY+WVUFfSJTBhNs0c= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jj2Fi-001ofe-4F; Wed, 10 Jun 2020 16:02:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Jun 2020 16:02:54 +0100 From: Marc Zyngier To: Zenghui Yu Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, tglx@linutronix.de, jason@lakedaemon.net, wanghaibin.wang@huawei.com, wangjingyi11@huawei.com Subject: Re: [PATCH] irqchip/gic-v4.1: Use readx_poll_timeout_atomic() to fix sleep in atomic In-Reply-To: <4a9822bd-0362-7ffe-6e56-3f05a7816d9e@huawei.com> References: <20200605052345.1494-1-yuzenghui@huawei.com> <4a9822bd-0362-7ffe-6e56-3f05a7816d9e@huawei.com> User-Agent: Roundcube Webmail/1.4.4 Message-ID: <2bff9c0af0aa5eeef44b381ee0f8a542@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, tglx@linutronix.de, jason@lakedaemon.net, wanghaibin.wang@huawei.com, wangjingyi11@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zenghui, On 2020-06-10 14:59, Zenghui Yu wrote: > Hi Marc, > > Sorry to ping you in the merge window, but ... > > On 2020/6/5 13:23, Zenghui Yu wrote: >> readx_poll_timeout() can sleep if @sleep_us is specified by the >> caller, >> and is therefore unsafe to be used inside the atomic context, which is >> this case when we use it to poll the GICR_VPENDBASER.Dirty bit in >> irq_set_vcpu_affinity() callback. > > this seems like an urgent thing to me. Without this patch, CPUs are > easily to get stuck on my board with GICv4.1 enabled. So it'd be good > if > you can have a look and take this as a fix (if it is correct). No worries. I've earmarked the patch for -rc1 already, just haven't got a chance to build the branch yet (a bit busy on the KVM side). I'll probably update the branch tonight or tomorrow. Thanks, M. -- Jazz is not dead. It just smells funny...