From patchwork Tue Jun 25 10:23:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Xu X-Patchwork-Id: 11015211 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B51D014BB for ; Tue, 25 Jun 2019 10:23:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A58DA28BCF for ; Tue, 25 Jun 2019 10:23:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 995EA28BDC; Tue, 25 Jun 2019 10:23:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BA0728BCF for ; Tue, 25 Jun 2019 10:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Cjg3HuQ1JpgdAXFQfHuLB20yJP47zHIx8z5xap9sbWg=; b=ixz0Z6E7bdCkpN e3GXbRw4j6Hv5pbzhHOsT97T5Wn5o9QqxZZfwDpctLPXtNY9isfP4GwRBem8Pokm3l73l4H6JSqyz StvMMff9YULfYCVLF7TVZqKqBwofJ6hbdFvBSxqsn6kgrtqDMGS6ZfvNg5NzDFB/F+LvkoC70CC/v 1G/m2GYKoLzfCPl5gh88ZtZ2VJKfnXiIGYqd6n8/o+Ewrzf6wCFG8PDyKLxfj0W2je4kI9ztAulw5 y7yPxA62H6e7p1eUqQ6SLhy5+/obDfGVNPcT55CEHDUuVCWDUVl3qrDyQDO2eQistSxnpuEvSas6K NLY8DmT6iVmmqVgt0+qQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfic1-0002Ix-3c; Tue, 25 Jun 2019 10:23:41 +0000 Received: from lhrrgout.huawei.com ([185.176.76.210] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfibx-0002Hq-0V for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2019 10:23:38 +0000 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 8453260D02D8B346C6FA; Tue, 25 Jun 2019 11:23:29 +0100 (IST) Received: from [127.0.0.1] (10.202.227.157) by LHREML712-CAH.china.huawei.com (10.201.108.35) with Microsoft SMTP Server id 14.3.408.0; Tue, 25 Jun 2019 11:23:22 +0100 From: Wei Xu Subject: [GIT PULL] Hisilicon fixes for v5.2 To: , linux-arm-kernel , Olof Johansson , Message-ID: Date: Tue, 25 Jun 2019 11:23:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [10.202.227.157] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190625_032337_202429_E18163BD X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Salil Mehta , jinying@hisilicon.com, Tangkunshan , linux-pci@vger.kernel.org, John Garry , rjw@rjwysocki.net, linuxarm@huawei.com, Shameerali Kolothum Thodi , Linux Kernel Mailing List , huangdaode , "xuwei \(O\)" , Jonathan Cameron , bhelgaas@google.com, "Liguozhu \(Kenneth\)" , Zhangyi ac , Shiju Jose Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi ARM-SoC team, Please consider to pull the following changes. Thanks! Best Regards, Wei --- The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: git://github.com/hisilicon/linux-hisi.git tags/hisi-fixes-for-5.2 for you to fetch changes up to 07c811af1c00d7b4212eac86900b023b6405a954: lib: logic_pio: Enforce LOGIC_PIO_INDIRECT region ops are set at registration (2019-06-25 09:40:42 +0100) ---------------------------------------------------------------- Hisilicon fixes for v5.2-rc - fixed RCU usage in logical PIO - Added a function to unregister a logical PIO range in logical PIO to support the fixes in the hisi-lpc driver - fixed and optimized hisi-lpc driver to avoid potential use-after-free and driver unbind crash ---------------------------------------------------------------- John Garry (6): lib: logic_pio: Fix RCU usage lib: logic_pio: Avoid possible overlap for unregistering regions lib: logic_pio: Add logic_pio_unregister_range() bus: hisi_lpc: Unregister logical PIO range to avoid potential use-after-free bus: hisi_lpc: Add .remove method to avoid driver unbind crash lib: logic_pio: Enforce LOGIC_PIO_INDIRECT region ops are set at registration drivers/bus/hisi_lpc.c | 43 ++++++++++++++++++++---- include/linux/logic_pio.h | 1 + lib/logic_pio.c | 86 +++++++++++++++++++++++++++++++++-------------- 3 files changed, 99 insertions(+), 31 deletions(-)