Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp386838rwb; Fri, 4 Aug 2023 14:35:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFboRPsTRirFxkCcheG/vMsz6Ey2XoobQId5re1kAXDTAOQMPUCsw/AKZRasTVbknz/g3j5 X-Received: by 2002:a05:6a20:ce95:b0:135:1af6:9a01 with SMTP id if21-20020a056a20ce9500b001351af69a01mr2681812pzb.8.1691184915417; Fri, 04 Aug 2023 14:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691184915; cv=none; d=google.com; s=arc-20160816; b=bYEgJrx/a7iN9ZtIquASuzXjFJsr6UkgDUtdFSMSN3G0Rt16vykHKCp44S7EgsttEK yx5+q/VWDG9W39zDtZX64Tv5AWoyc+0yMy8FQC9X6NkkIcSQx7EbHUddefeYQSED3mrC TPQvLklrBcb/Ky8CKvnGGWVD/2YpdojqUQlTD3sW7dfd+uchVFKL7BB68zDSpDUh1RV/ bFUbQRbkeO/DydYZ969WhmYKPJg2Q0UJARIlSticPra12sRvMoZ7LiJ4x51A4xVIzMqF dWxJLQW8vwv64FOeBBIt5MeQDhgsR5wv4YdNNwx/RyUq4yHcmG5E0OC6qiYmJATDRHEA GAfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ad9yZGfihzaiLD4JeWDSuy5r6FQFmKXXsxP9HH4DAA8=; fh=erilfXx17gdFSJ4xrpEE2y6K75obtAdHy0nw91yRj6s=; b=rQ5ZGtuhjamLvgvZSGkyxSIyRrCIs/g24eS0MBtvv8HRKlSTXejsgz0bn+YjLii60l VyHfWje5LCP6enhTrLR4Qf/fJ2JJdvVW1BGoU1T+M6rUIhm05sZvYshLcVOKO7BpJdAA Xy0g7diiRNegVJrh9LUgS8I8LOQ6y323D1m8ri5zjLpjbencUmuhHtGeXcFtKQHcCNEk u2XSX2iJSmujF8hpQAWYPrLuYAXcTXXkJ8kDXvbztC/LfHD9R/5gb3Rjjaz5VkDe8Z+u 5m8bhrxWTzVpAwt+Rhc7ORsrU6yxt6XIM386q3OCnwbhXfuKncJZgo7KnnlCu2xo59Tb vjEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nAteuVbY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r38-20020a632066000000b0055ff89f224bsi2267313pgm.689.2023.08.04.14.35.03; Fri, 04 Aug 2023 14:35:15 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=nAteuVbY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbjHDTpN (ORCPT + 99 others); Fri, 4 Aug 2023 15:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjHDTov (ORCPT ); Fri, 4 Aug 2023 15:44:51 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A3EA10EA; Fri, 4 Aug 2023 12:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691178289; x=1722714289; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hiLa5bnO/3w0AksEbI4uz4TnVZWx9uhje/BssYC/EA0=; b=nAteuVbYX9Bz600+0vNHjYyEDEte/VHkfYFp6EHkkKzjS4KwSJ6nayVD B7kEwfJpHBQlxbx0UMBMisxjUDx1l5ZWFhiOTcZI6J4bmUeLrwfnos2fT 4US0gSV/nc9pF0Dviipni/JRMTn9V/CVV0gvXkiFboFSMl4ldRlvfm9oP eNDhAagZTp6D6uM14puiwcRv+7g02vbJ8QZVaYXsh09KiECtudFCisJyC FkvIZNhsfzFJhQc/NpbmQkOwxmqRYM/ugQQTP8oL7uyyHGjuDugZifFlS wg5Lkuqqs49J9GXFLoxDWcma5X+rRpWXPV1V/sIgFZYga16Bigug6Ap9Z Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="350544378" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="350544378" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 12:44:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="853883691" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="853883691" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP; 04 Aug 2023 12:44:46 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qS0j6-005Kg8-0V; Fri, 04 Aug 2023 22:44:44 +0300 Date: Fri, 4 Aug 2023 22:44:43 +0300 From: Andy Shevchenko To: Tony Lindgren Cc: Greg Kroah-Hartman , Jiri Slaby , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH] serial: 8250: Fix oops for port->pm on uart_change_pm() Message-ID: References: <20230804131553.52927-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230804131553.52927-1-tony@atomide.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 Fri, Aug 04, 2023 at 04:15:51PM +0300, Tony Lindgren wrote: > Unloading a hardware specific 8250 driver can produce error "Unable to > handle kernel paging request at virtual address" about ten seconds after > unloading the driver. This happens on uart_hangup() calling > uart_change_pm(). > > Turns out commit 04e82793f068 ("serial: 8250: Reinit port->pm on port > specific driver unbind") was only a partial fix. If the hardware specific > driver has initialized port->pm function, we need to clear port->pm too. > Just reinitializing port->ops does not do this. Otherwise serial8250_pm() > will call port->pm() instead of serial8250_do_pm(). Oh, good catch! Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko