From patchwork Tue Mar 7 16:44:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 6254 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2538027wrd; Tue, 7 Mar 2023 08:53:21 -0800 (PST) X-Google-Smtp-Source: AK7set9DuL4QpzJO6uQ2DElW2+kWs8czHYtZnkEy2+mKjMxH8+XieLdmkcQYJ5QpJ13PMoIxGE22 X-Received: by 2002:a17:906:110e:b0:88d:33fe:3306 with SMTP id h14-20020a170906110e00b0088d33fe3306mr13554842eja.31.1678208000869; Tue, 07 Mar 2023 08:53:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678208000; cv=none; d=google.com; s=arc-20160816; b=vaIXnU+KHwfX4ngmasglFhl+Dwpqq4nuFP3x9tbxiYy74hD+Ixxl921meTBoy1fzX1 3OjYgKVsB9dEzx0dgEmLHP2bAu0HZjT0jHkU38541PILuE3AH8DRWgySsJjWaW8sn4+3 ENt+iofccGjz+6DDCByVn0KwM3WJlGS7vEuzCWObkCBFO49gBFSOHF42Ks8iJRcpP2cz jaG3DxBRJSG1cN08TpQyIpO7iqQCGEn8+aKs8wxzd1Ri2XMBHJaVm+UnxRr/lkdbJZwp Rjd5Yo1T3H9QT+KIn/8+iTNxgzqqOwXd+hl4oJbN62GUuyl/I+3vM7xlZ2Aj+LlNabzl HYLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=F2h7IKC800YZrQDYPlSmBG9lLg8dh5sYMFPBYsidckg=; b=qMl5Geamssj3Wdh5zU0ORMmY/4317Kv2qk5BgQYu5TWMvDiLvo1m8UntF8bA3FwdSh 8kRuQeqpHiKrZi2dNd3ZFm6KUnv560EC3FO0XZKApGhVRBuWxo9BzZIl2ZO37/pSPKeh Uu43C41Vd14Ssn3z9YRFJ229TEOHynblbKzdm1xugyJKwdRvm/ZvLL/GwskIEU7tHQbA vLHYwDE7chLfF655rQ4prHXzTMQnN30UaInd5MGc5dwksxystdLGOXiV1XQGHzwybYJ4 /lLySI6eEuOFk2GITaOGzQ/bPi2r5QpbIOPIdUl0mQVwdMGW9JFD8VCU7e8yPED/0F4w ZIUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fZZKakMe; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jp2-20020a170906f74200b008ed6401c988si11627457ejb.821.2023.03.07.08.52.56; Tue, 07 Mar 2023 08:53:20 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=fZZKakMe; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbjCGQq5 (ORCPT + 99 others); Tue, 7 Mar 2023 11:46:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231187AbjCGQqe (ORCPT ); Tue, 7 Mar 2023 11:46:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2303F96C24; Tue, 7 Mar 2023 08:43:38 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AFCD6614D0; Tue, 7 Mar 2023 16:43:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18A03C433EF; Tue, 7 Mar 2023 16:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678207417; bh=/wCzZzW2/yX+S5Q2Jws0Te+1469cW0yfUpj6G9fEMgw=; h=From:To:Cc:Subject:Date:From; b=fZZKakMeNyA7vBG7KIRsV5Nxp99JFYUHhpbyKacVPLYuF2c8RIhgWxmhtnrnzWEBG BXFCdiut0UjjQK/jHCw+4mnkwTH8v+OEAOEInZu056nveKGBVahgd6xDO1sUSDCoLx YgqGpOGvWVRfOVmAXovlwPc2AOMRhpojhQpcxUcTvfHrr1fFX8FUjSzA+juVQnjtxR XxT2+Grq/f5B50uIzmB4q1BxaETSbi4+iBaV2W+rirvtpvrx8YgvNQc8VPmpgAd0wo OVV451ZZl2S9W9q0CkLA5j1GiqQarrpsdGojYcA4kJB8waen/LAO2Hsgs4YGgB8swX stG8zubplE3bA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pZaQG-0003ho-4E; Tue, 07 Mar 2023 17:44:20 +0100 From: Johan Hovold To: Greg Kroah-Hartman Cc: Bjorn Andersson , Andy Gross , Konrad Dybcio , Jiri Slaby , Bartosz Golaszewski , Douglas Anderson , Daniel Thompson , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/4] serial: qcom-geni: fix console shutdown hang Date: Tue, 7 Mar 2023 17:44:01 +0100 Message-Id: <20230307164405.14218-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759728588438708760?= X-GMAIL-MSGID: =?utf-8?q?1759728632874250474?= This series fixes some of the fallout after a recent series adding support for DMA transfers to the Qualcomm geni serial driver. Most importantly it fixes a hang during reboot when using a serial console and the getty is stopped during reboot. Doug just posted an equivalent fix here: https://lore.kernel.org/lkml/20230307073155.1.Iaab0159b8d268060a0e131ebb27125af4750ef99@changeid but the commit message only mentions the regression with respect to kgdb, which is not as widely used serial consoles generally, so I figured I'd post my version for completeness. Either version of that fix should address the immediate regression, but fixing the underlying problems which have been there since the driver was first merged is going to be a bit more involved. The rest of the series fixes a few bugs in the new DMA support that I found while investigating the console regression. Johan Johan Hovold (4): serial: qcom-geni: fix console shutdown hang serial: qcom-geni: fix DMA mapping leak on shutdown serial: qcom-geni: fix mapping of empty DMA buffer serial: qcom-geni: drop bogus uart_write_wakeup() drivers/tty/serial/qcom_geni_serial.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) Reviewed-by: Srinivas Kandagatla Tested-by: Srinivas Kandagatla Reviewed-by: Andrew Halaney Tested-by: Andrew Halaney # sa8540p-ride