Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2633781rwb; Mon, 19 Sep 2022 07:50:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7hZ+D1Ru+w9ENocm1f/DqVMVXDR8yGRbYgTM40fYuGfTHHuMrbhPKAwEabY2ulJAtdZ8Zg X-Received: by 2002:a17:902:e805:b0:178:230b:57e3 with SMTP id u5-20020a170902e80500b00178230b57e3mr146490plg.102.1663599048704; Mon, 19 Sep 2022 07:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663599048; cv=none; d=google.com; s=arc-20160816; b=ectQp+gHmXPNdY9TDDPCqwIDKA1PCQvLTSWtTfGzrucYReW9Po/1xXnXu/jpsAAY1V RK86upK/qQZ2or8xWocXPPb4jcIuR6xPSWw7oiIGMN4EQZWDhuFRtlXiWLvWTXG1J0Xl YhHMkmYzj65LJsc/L7jg3lXflBCSnspFQnDfyR1sKIT+JGsqjEkwAz4DnZ4jSeQzgOTR NyUe4sFETRvxLCpg1g9njebCMwkW7M9Z1pTEamod1AHxkU0Xp0EcJtyuQFowCDQTR83z dEe4wKhsIKwNhr3ZXFLsqBp1zQovk4V435VeY8Xc4IIOYbcFnArk2IJshuyHP2g3rOLv 4PqQ== 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; bh=id2J5wNm57qBvD1w4EBHmFn8fNyS1grsbD/pDC3NTk8=; b=ARMXD5MDi+q2af2zJ3CqU45uTCymvlf+V8YidR04/QMsDXKO4RfKspjnAd2Lbg5EzW CXKGMflbmEv3biUVUI6YVISDB0TiV+dEsVLSzTndyFjz7OT64Pq1TbCtTBcy6ccEzadS Z+XYX2lX5Q9vjePl5NXCyt15I0s5lAKUnAjAAb+Oh+xXq8Tbsz3SsWgWRPgYG0a5p8tK EUlNXcA3TNnT2Vz0So2nAJ0P7fgIhhm6tJZuy4TODycj5AaOBXS81M2ijINVmL+gAV4/ rIyzMqLptOW9prALCzJL6UukK/sLdd7WlGrQinYEu0Jz1d+VyDWlQqJNiAeKi9sLZg53 M8Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 21-20020a170902c25500b001747ed48ee8si27821047plg.150.2022.09.19.07.50.37; Mon, 19 Sep 2022 07:50:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbiISOWh (ORCPT + 99 others); Mon, 19 Sep 2022 10:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiISOWf (ORCPT ); Mon, 19 Sep 2022 10:22:35 -0400 Received: from mail.wantstofly.org (hmm.wantstofly.org [213.239.204.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44CB91D316; Mon, 19 Sep 2022 07:22:34 -0700 (PDT) Received: by mail.wantstofly.org (Postfix, from userid 1000) id 518A07F011; Mon, 19 Sep 2022 17:22:32 +0300 (EEST) Date: Mon, 19 Sep 2022 17:22:32 +0300 From: Lennert Buytenhek To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , linux-serial , LKML Subject: Re: I/O page faults from 8250_mid PCIe UART after TIOCVHANGUP Message-ID: References: <7fd034a9-c1e1-2dca-693b-129c9d2649@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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-kernel@vger.kernel.org On Mon, Sep 19, 2022 at 05:19:35PM +0300, Ilpo J?rvinen wrote: > > > > [...] I'm far from sure if it's the > > > > best fix though as I don't fully understand what causes the faults during > > > > the THRE tests because the port->irq is disabled by the THRE test block. > > > > > > If the IRQ hasn't been set up yet, the UART will have zeroes in its MSI > > > address/data registers. Disabling the IRQ at the interrupt controller > > > won't stop the UART from performing a DMA write to the address programmed > > > in its MSI address register (zero) when it wants to signal an interrupt. > > > > > > (These UARTs (in Ice Lake-D) implement PCI 2.1 style MSI without masking > > > capability, so there is no way to mask the interrupt at the source PCI > > > function level, except disabling the MSI capability entirely, but that > > > would cause it to fall back to INTx# assertion, and the PCI specification > > > prohibits disabling the MSI capability as a way to mask a function's > > > interrupt service request.) > > > > This sounds to me like a good part to be injected into commit message of > > the proposed fix. > > I added my own wording already but I could adds of Lennert's far superior > descriptions verbatim if he is OK with that? No objections from me.