Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp3084415pxy; Wed, 4 Aug 2021 01:45:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwYFEFxxr1dgXXUHK1S3wKd1+i5/U9qy+KdDinh0VZzb4e5AJr2Tmk/l9MZhMLbAGeAbLX X-Received: by 2002:a05:6638:1251:: with SMTP id o17mr11608178jas.15.1628066701741; Wed, 04 Aug 2021 01:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628066701; cv=none; d=google.com; s=arc-20160816; b=zVgJBX/Dlsj/PCM9DH3GY2nz0BTZaNOjMAaMt22i4z6j/Ftx9dFVH+qsfVRHWu5sD+ HgSG27MTs0uCVYwo9i0q1PoQ/ySNBX51/pnamO1EStYR+dKOxOnoSm2fyr6o9RJChRzs L0+u4rxqJVawlIpYfR8GAGuBW/LeR5+hWQK8uu2IWLCF7ejKdpDWNKrKp2x4X2jTjwMz B0cuckZmTfYOa3fv5XgDB+F9mz5UI16zlVovdUxsLxoowsneFZ3Yo3LH01+SjCSchrJB DajGd6k8GmsD88apzL/aliW/9OwPo0qKrVFMGX4vg/YE/KzsC8z8TqNjve3vSm6k+fry /N8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=s3Hg1PqaTNTNz3rwP3cYuWAsZqAp7QBslbWGqjNQAmk=; b=rSdB4TEbLKarjxy+DIQYuvMNvwQDYRS69M7cCUh8+4muQ/PvTEz0dKkcThlDvHHpHu ABIp82GqbhWm9AvfJUZVFYZEurMz/HRfQf6RZtSaXIiErEuJBHz9GmZhtchYeNAyPCKV ZDEsqa5+xh5r8QHwc8cYePJSYaD37HQp2zeKVze4L9lFd+Eu2lsxBRLoBxocwdmNbbsz 5MtdwzJmalehfc17/2JBgRyHrObSwzy8S66yYBITdGO9SN4HM0n4fpOL9xan2xzhQ5YM KVc89RjUxZC3EIAeftOk8F2qXL9YufFjE3vfs610b+v9SvcwtxDJti6egp709QPBCwq4 ud1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si1482652ioj.7.2021.08.04.01.44.47; Wed, 04 Aug 2021 01:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235591AbhHDGVn (ORCPT + 99 others); Wed, 4 Aug 2021 02:21:43 -0400 Received: from pegase2.c-s.fr ([93.17.235.10]:45069 "EHLO pegase2.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235581AbhHDGVl (ORCPT ); Wed, 4 Aug 2021 02:21:41 -0400 Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4GfhTN2kJgz9sWH; Wed, 4 Aug 2021 08:21:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p4tzhmeMpm41; Wed, 4 Aug 2021 08:21:28 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4GfhTN1jp0z9sWG; Wed, 4 Aug 2021 08:21:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1C2408B79A; Wed, 4 Aug 2021 08:21:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 5WYofiaNHTmR; Wed, 4 Aug 2021 08:21:28 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 640D48B764; Wed, 4 Aug 2021 08:21:27 +0200 (CEST) Subject: Re: [PATCH] powerpc/32s: Fix napping restore in data storage interrupt (DSI) From: Christophe Leroy To: Nicholas Piggin Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , userm57@yahoo.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Finn Thain References: <731694e0885271f6ee9ffc179eb4bcee78313682.1628003562.git.christophe.leroy@csgroup.eu> Message-ID: <8fb08f68-ed01-65f9-fb9e-66abf2b18a00@csgroup.eu> Date: Wed, 4 Aug 2021 08:21:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nic, I think I'll need your help on that one. Le 04/08/2021 à 08:07, Christophe Leroy a écrit : > > > Le 04/08/2021 à 06:04, Finn Thain a écrit : >> On Tue, 3 Aug 2021, Christophe Leroy wrote: >> ... >> >> ------------[ cut here ]------------ >> kernel BUG at arch/powerpc/kernel/interrupt.c:49! >> Oops: Exception in kernel mode, sig: 5 [#1] >> BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac >> Modules linked in: >> CPU: 0 PID: 1859 Comm: xfce4-session Not tainted 5.13.0-pmac-VMAP #10 >> NIP:  c0011474 LR: c0011464 CTR: 00000000 >> REGS: e2f75e40 TRAP: 0700   Not tainted  (5.13.0-pmac-VMAP) >> MSR:  00021032   CR: 2400446c  XER: 20000000 >> >> GPR00: c001604c e2f75f00 ca284a60 00000000 00000000 a5205eb0 00000008 00000020 >> GPR08: ffffffc0 00000001 501200d9 ce030005 ca285010 00c1f778 00000000 00000000 >> GPR16: 00945b20 009402f8 00000001 a6b87550 a51fd000 afb73220 a6b22c78 a6a6aecc >> GPR24: 00000000 ffffffc0 00000020 00000008 a5205eb0 00000000 e2f75f40 000000ae >> NIP [c0011474] system_call_exception+0x60/0x164 >> LR [c0011464] system_call_exception+0x50/0x164 >> Call Trace: >> [e2f75f00] [00009000] 0x9000 (unreliable) >> [e2f75f30] [c001604c] ret_from_syscall+0x0/0x28 >> --- interrupt: c00 at 0xa69d6cb0 >> NIP:  a69d6cb0 LR: a69d6c3c CTR: 00000000 >> REGS: e2f75f40 TRAP: 0c00   Not tainted  (5.13.0-pmac-VMAP) >> MSR:  0000d032   CR: 2400446c  XER: 20000000 >> >> GPR00: 000000ae a5205de0 a5687ca0 00000000 00000000 a5205eb0 00000008 00000020 >> GPR08: ffffffc0 401201ea 401200d9 ffffffff c158f230 00c1f778 00000000 00000000 >> GPR16: 00945b20 009402f8 00000001 a6b87550 a51fd000 afb73220 a6b22c78 a6a6aecc >> GPR24: afb72fc8 00000000 00000001 a5205f30 afb733dc 00000000 a6b85ff4 a5205eb0 >> NIP [a69d6cb0] 0xa69d6cb0 >> LR [a69d6c3c] 0xa69d6c3c >> --- interrupt: c00 >> Instruction dump: >> 7cdb3378 93810020 7cbc2b78 93a10024 7c9d2378 93e1002c 7d3f4b78 4800d629 >> 817e0084 931e0088 69690002 5529fffe <0f090000> 69694000 552997fe 0f090000 >> ---[ end trace c66c6c3c44806276 ]--- >> Getting a BUG at arch/powerpc/kernel/interrupt.c:49 meaning MSR_RI is not set, but the c00 interrupt frame shows MSR_RI properly set, so what ? Thanks Christophe