From patchwork Thu May 25 22:03:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 99234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp87472vqr; Thu, 25 May 2023 15:37:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78Y95v/Idx+cxHU3SYCdMVkqfBrOQKTvbdxp4plDPzqjBPqst5Tw0V6fn4irMpVu7nE6OG X-Received: by 2002:a17:90a:bb95:b0:255:bd18:a93 with SMTP id v21-20020a17090abb9500b00255bd180a93mr174676pjr.39.1685054252059; Thu, 25 May 2023 15:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685054252; cv=none; d=google.com; s=arc-20160816; b=p4d8jMXBsucQLT7NzhfSRtsd65ms12Z6tA1uYSeqZr5VKfILVvbS4Nu3p8taxXcP3d IzOnZnkD40u51XxRKXCGWe+lWobtvY1+Y8imGh2FTtgodchA/ej1+6VF7bynTCgMfAwn fgPHu38mqdr4EU1Hqp4+0cYkNU7VJHnRAwGO+fLuTWwYmtCYZS4Pe1PRgi8cIbY9jAaH 4zqUgUlUllIsS5bG4LHk1GFIrOtX79qmamR1ccQlcNze1cgBydHqFM70yesISZnAvZLa STQnTefiOBxSzfMBLxGOwGSb1yFd8Zj0Wa4Lo4vjfFINVbqvY0ARXeB68LMf4Q0uPLge kgkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :content-disposition:mime-version:message-id:subject:to:from:date :dkim-signature; bh=yZWunYCaaplLuZJCznanqlE+duH4eGPg7qPKYJPgrsU=; b=ThuDXD1DV+JRp536sdBf1NLGvwwiEhwmmL1P+gd1akVca8W5TTE0nXVYuzuNUWx65r /iLYg+/S+lhl4t+OA13Y4p7yikvTMdXuj5NJw/mj+98vaBvBOYG/OFec+MHLZTQLhGV9 bw+MFUc3Eqq/rbuunrX2LHnyWs6umbFR2vgpnDYq8Fc/0WuFlxP5jYILeR5psGYe+o9G lDOFMf6WsnSklFQSEkxAOlXnT9FCEVeRZW+DakrLVd/6DrArbH/S4LwVkZcuEgnuGa7W VHbmpo0EaVE53S94Azh23Vs1+0Pbxe0xGEG6WydL6qLS9OixNogVthYBMdU0CMcZWSdp v8dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=Bdx9dcbC; 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=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc17-20020a17090b3b9100b00255d3de568asi2867566pjb.13.2023.05.25.15.37.17; Thu, 25 May 2023 15:37:32 -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=@gmx.de header.s=s31663417 header.b=Bdx9dcbC; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241022AbjEYWEC (ORCPT + 99 others); Thu, 25 May 2023 18:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjEYWEA (ORCPT ); Thu, 25 May 2023 18:04:00 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8FF12F; Thu, 25 May 2023 15:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1685052229; i=deller@gmx.de; bh=SsAf7b4y97Nz6toWCyih9XFzTB1HYHiHYEbgFoAyUPk=; h=X-UI-Sender-Class:Date:From:To:Subject; b=Bdx9dcbCONDzwGU4nOK+CaJil/UE3UaeONhSCU1g6l3u9fAjOyYzBU3TMgytD0n7J ijH6ghisvLmEglri4UIjU5Mh2D83MPt4AJlj6YXqQvUM7gCOrzRqYh8/KEunWWr169 5+WdqgSeJHzHZZpEF87TbOt+gfqWWWXzgjd5KmAICcF8nZNk+JWNduRJuCaPjBlitZ fKwrGfr07xsSot+kFWLhBcIphpGkfpnnGiDKEYiXg/vRhcAbGUA+EHg9CxabAgi33U LwxroKKKbH3WI77LuCqFiVmEF1pg9WY1rEDE2vMDk9vEEmBcaMGJ3cvfZDUvRv6NUU 4xcHeMrNnQlaA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from p100 ([94.134.157.173]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDhhX-1prcME1dyB-00Ajjz; Fri, 26 May 2023 00:03:49 +0200 Date: Fri, 26 May 2023 00:03:47 +0200 From: Helge Deller To: Linus Torvalds , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [GIT PULL] parisc architecture fixes for v6.4-rc4 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:u93dmrWybYRZofkjdl4pOv+k5JFuIVkbyH5ibcKnt57lxOcIlXJ HlFsMn0mtMrxbc+3Yx7QFFw7OzvullndTJRKaalydcJUI34uoikdvYV3SB6PVlJHmLnq6/Y fPq5hbD5xpA3MP5VZTXDIlUAKJxSLw4sfFwBjjPqyz4gtoieuYWDaHdEhbmnp+WCauNTRUN ytp3r9e0rS+9kZ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2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766907447795349336?= X-GMAIL-MSGID: =?utf-8?q?1766907447795349336?= Hi Linus, please pull the parisc architecture fixes and updates for 6.4-rc4: Quite a bunch of real bugfixes in here and most of them are tagged for backporting: A fix for cache flushing from irq context, a kprobes & kgdb breakpoint handling fix, and a fix in the alternative code patching function to take care of CPU hotplugging. parisc now provides LOCKDEP support and comes with a lightweight spinlock check. Both features helped me to find the cache flush bug. Additionally writing the AGP gatt has been fixed, the machine allows the user to reboot after a system halt and arch_sync_dma_for_cpu() has been optimized for PCXL PCUs. Thanks, Helge --- The following changes since commit 44c026a73be8038f03dbdeef028b642880cf1511: Linux 6.4-rc3 (2023-05-21 14:05:48 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git tags/parisc-for-6.4-3 for you to fetch changes up to 61e150fb310729c98227a5edf6e4a3619edc3702: parisc: Fix flush_dcache_page() for usage from irq context (2023-05-24 19:03:49 +0200) ---------------------------------------------------------------- parisc architecture fixes for kernel v6.4-rc4: - Fix flush_dcache_page() for usage from irq context - Handle kprobes breakpoints only in kernel context - Handle kgdb breakpoints only in kernel context - Use num_present_cpus() in alternative patching code - Enable LOCKDEP support - Add lightweight spinlock checks - Flush AGP gatt writes and adjust gatt mask in parisc_agp_mask_memory() - Allow to reboot machine after system halt - Improve cache flushing for PCXL in arch_sync_dma_for_cpu() ---------------------------------------------------------------- Helge Deller (9): parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu() parisc: Flush gatt writes and adjust gatt mask in parisc_agp_mask_memory() parisc: Use num_present_cpus() in alternative patching code parisc: Add lightweight spinlock checks parisc: Enable LOCKDEP support parisc: Allow to reboot machine after system halt parisc: Handle kprobes breakpoints only in kernel context parisc: Handle kgdb breakpoints only in kernel context parisc: Fix flush_dcache_page() for usage from irq context arch/parisc/Kconfig | 4 ++++ arch/parisc/Kconfig.debug | 11 +++++++++ arch/parisc/include/asm/cacheflush.h | 4 ++++ arch/parisc/include/asm/spinlock.h | 39 ++++++++++++++++++++++++++++---- arch/parisc/include/asm/spinlock_types.h | 8 +++++-- arch/parisc/kernel/alternative.c | 2 +- arch/parisc/kernel/cache.c | 5 ++-- arch/parisc/kernel/pci-dma.c | 18 ++++++++++++++- arch/parisc/kernel/process.c | 11 ++++++--- arch/parisc/kernel/traps.c | 18 +++++++++++---- drivers/char/agp/parisc-agp.c | 15 +++++++++++- 11 files changed, 116 insertions(+), 19 deletions(-)