Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp353970ybt; Wed, 8 Jul 2020 01:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxigBF0RDfKWD3wRCsSO5+QtMQtMhHBLqM8DHjNMpgB2J+jIhcyX3EoLGpCMTLGs4cEhRLZ X-Received: by 2002:a17:906:2b12:: with SMTP id a18mr49914336ejg.186.1594196659092; Wed, 08 Jul 2020 01:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594196659; cv=none; d=google.com; s=arc-20160816; b=oAlpAQhYaqjb71p7qvz9FFitkjMhKlKi+qN5kFUkoG2VdUc97dqF8zV3zIQvHBEusk MN3SEw3v2FvfFBiI78RsWi/ubmwXmju2MrStkOk3ZFyDp+oZqoKmzSxz/csCS5WiKYIG qfSplbJqocwR1yeYMEA/jzTxEXL0GyMaUkSntS/2mA86A/IIDBaOiOV0WK0RDu/GgPQZ +z8azo4Kr+ctO5SmZgPMILjIXsGDOS1/kL11DokUzmwtye61Lh0GCXW/M5Ns5WW9sKQW 5YNRdwn2tmKYzfY92DIg12SJaoWKrgYz473RkgqIL1x0iI4eJHr0BCKvBEyy99QP2yzl rOgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=zgzFBfd1L8gIswoLsa9e4bScB/4Us/z7PKgKE1kxKk0=; b=xhAD6c+Vvz6iFZkKY5cGSiYHsf4tGc8yRf7KxZPkPJco46FE7v6K9nI2HDdh6hADAm xTfhIi6F3MAyoaedw5TGo5iGKBMvEKq5gbK4504cmocnucLgCf8HBLTT/gPI6Nqjecii y3rOznfLaZUDNRYJUfiWyMNGZEuCFCHcs8jutBi2XceDinPnvgpnYEQQvjhQsSxrB5M3 sR2SrBk0QVHSeSF9DtqQbUEn6RWt7r26nmvxR3vdsbgA917rSeoqkHqphzJqO9wvONgl 3FJFbTedY8aPHgCdOMf+Zfv0bczQMVOEFwObSx8GfI1zaIXTT3otN9RXLWMTELdCcgPk itQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TRDJKmAp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si6341036edy.599.2020.07.08.01.23.56; Wed, 08 Jul 2020 01:24:19 -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=@gmail.com header.s=20161025 header.b=TRDJKmAp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726590AbgGHIHP (ORCPT + 99 others); Wed, 8 Jul 2020 04:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbgGHIHP (ORCPT ); Wed, 8 Jul 2020 04:07:15 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D51FBC08C5DC for ; Wed, 8 Jul 2020 01:07:14 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id gc15so1862886pjb.0 for ; Wed, 08 Jul 2020 01:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zgzFBfd1L8gIswoLsa9e4bScB/4Us/z7PKgKE1kxKk0=; b=TRDJKmApQQAgV1F8yAcsr7qqPMqF9bluQIsXh5qPLmghCHbJ8NP3OAnDdlEjEIdfrG PuchHLjwb6SA3djTfP0AbHhk8YSQvR/V8xt9XIDmVqnhChRLS6aFQChmOIxvLioQlZkU mQ6L0FHn9yT4CciTyXmcQ/VfHL+2dM7Ek0smfDoOlMc6mLQzum00ZRqPUrdtpeBPHB8H qDpIgtAbr/EDZV6f4fZlgJ+hCZlGud51Jc2M59ypZhlrMjFa66XYFHe73lOBHFFjSFrV VrDGE4rRbb9nvIQWEg5POM0dDCecD8sX7T9zKGQhZsnc5xfqiEZV4plcUnA8Zt4od6q6 1+aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zgzFBfd1L8gIswoLsa9e4bScB/4Us/z7PKgKE1kxKk0=; b=Szwukb/MNr1pDGwur+K22VqoS98Xkyd8IbBGQ2M3TXQkgtYWGtOgyEC/1Tqs0XvQoL GPLmd26hD2DHgBvMLnMpsl4vG0/YqiEuPa0gtzegsdUur0vJ049jCbATCu6fMXSX4W0G LAvdMEt7CU0no925+V1IfNI30iLqNpASxfIftws1enTt6KUr+EXZVd7z3hnYMiwD2wok tmVoSWxa1zxcKBi1arFhxqu0V10sOwu1ZC1Ahbc595URkg72HGJEAi3cQOvNeal9aOT6 YdYKLr0h8P4tJ9FiYCoDclsrpYbpwsKidgnPh4QIxzrnlkJZtlivI12iJgKOyUJPYfbT 5GhQ== X-Gm-Message-State: AOAM532vmM9aVUD6T96NvaaF9sNMY5d5mwGZAb/XpZd7K3voUrbGfCzK EuorbOQLtrbMrNjvGNdnTtRaZRF/ X-Received: by 2002:a17:90a:3525:: with SMTP id q34mr6911330pjb.192.1594195634298; Wed, 08 Jul 2020 01:07:14 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id c132sm23925453pfb.112.2020.07.08.01.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 01:07:13 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Wed, 8 Jul 2020 17:07:12 +0900 To: Kurt Kanzenbach Cc: Sergey Senozhatsky , Andy Shevchenko , Tony Lindgren , Petr Mladek , Raul Rangel , Sergey Senozhatsky , linux-kernel , Greg Kroah-Hartman , Andy Shevchenko , "S, Shirish" , Peter Zijlstra , John Ogness , Steven Rostedt Subject: Re: UART/TTY console deadlock Message-ID: <20200708080712.GC571@jagdpanzerIV.localdomain> References: <20200630122239.GD6173@alley> <20200630130534.GB145027@jagdpanzerIV.localdomain> <20200630180255.GD37466@atomide.com> <20200702051213.GB3450@jagdpanzerIV.localdomain> <20200702160514.GK37466@atomide.com> <20200703103241.GB182102@jagdpanzerIV.localdomain> <877dvg6ft6.fsf@kurt> <20200706144314.GB1485@jagdpanzerIV.localdomain> <87o8oqa1zy.fsf@kurt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o8oqa1zy.fsf@kurt> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/07/08 09:40), Kurt Kanzenbach wrote: > I'm not sure how this patch will help with the situation. Because at the > point of that THRE test the irq handler isn't registered. It's > registered a few lines below (up->ops->setup_irq()) meaning the irq line > has to be disabled if shared. Otherwise the kernel might detect a > spurious irq and disables it. That's at least my understanding of the > problem (see commit message from 54e53b2e8081 ("tty: serial: 8250: pass > IRQ shared flag to UART ports")). So the only remaining approach then is to move disable_irq_nosync()/enable_irq() out of port->lock scope. -ss