Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1279535ybi; Sun, 16 Jun 2019 01:21:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcmRJPleCwTMF0TWpAxV94LfBRPMPvAbyyjhg3W/Q88cqj25nJHXLtCtzmIS1JdaKoETBu X-Received: by 2002:a17:902:aa83:: with SMTP id d3mr78332820plr.74.1560673294260; Sun, 16 Jun 2019 01:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560673294; cv=none; d=google.com; s=arc-20160816; b=zzr0JsPemcWsAwVx2dW/TfS4bax2a6a10MOp41hdf7VRHXzVkqzpN+RMGSWfubxKMW 5DX7kduVth25m7G94OlBd6wOG3kNDpABZqUJMd5aqyE5jmSoQavCk59Yqiidp2lBCgww /pGg87Z3s9MrtEWRm8Jk5TB8ycWm9eAfUyU4/yL7SommZ3358BJTAtYp4yixXJeUxsjY m71FECSTBpgRwDrQ9NBqentORahtqt41yuJhwiR9c2oHLLxu/PsWCikqQXcdE2XuNPgE n6fr2Ku4pXFKT28SN6aW1wLtDuYYQq7F00/ce7dSFo/qfrcr0aydlR9dIA1Pq+Q4Ga6K la7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nDddjU62SJMnatBSBKFnzXb/nxJGkqucoMGf//3m8xY=; b=FRDKZis66RTrA+otiEcMdywnxU03OjNZ6Whc6pWz0OpHBb1wosiayP9FO74qUgfbpR OBuRquy7jJGvEUy4k1wF2QzbPRF4aFMOWitvpuiiDj6KRiAN9wMZ5L9v600uQm207Oja OgaAipGyhgUGfyRvHYpOFxnvsN1IY9DBicYNrMF2vx3jz8aUPrQozk/gm4C6oyRg2143 3J98XOibHnRCZcxqq1lNdVr2DeGDag47TmKcJnf6AKutvFY7foArG6dW6Kpzw3zG8hl7 XVSrif6itAp9gPBfunlWwMaeseGuNJl/fxSZDDNRfj4Zpb7RtSpYFDHxsbpZe5rtrjI0 iYZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="I/eon35b"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a94si7240211pje.19.2019.06.16.01.21.19; Sun, 16 Jun 2019 01:21:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="I/eon35b"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726453AbfFPIVN (ORCPT + 99 others); Sun, 16 Jun 2019 04:21:13 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:1478 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbfFPIVK (ORCPT ); Sun, 16 Jun 2019 04:21:10 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45RS3Q4XrGz9v19r; Sun, 16 Jun 2019 10:21:06 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=I/eon35b; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id IVYRmuuTueHB; Sun, 16 Jun 2019 10:21:06 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45RS3Q3VBdz9v19n; Sun, 16 Jun 2019 10:21:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560673266; bh=nDddjU62SJMnatBSBKFnzXb/nxJGkqucoMGf//3m8xY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=I/eon35beLILDeNdqn5+T0Mrn9iajXcmzRWKFgcL1xtoTPsLiJsM9Zt+pv/RHb8/2 pPBbZNB2LIMIo40jsiyfjTtYbOoYFFAnptyjTWGI9tYdUG0D5NAPnEDLa+TOIoueM3 gXYPJ6VA1t384O8OCP7MeYf9egBEM3qNkEKrGJCg= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 551628B7D1; Sun, 16 Jun 2019 10:21:09 +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 j5p44WTEn-_X; Sun, 16 Jun 2019 10:21:09 +0200 (CEST) Received: from [192.168.232.53] (unknown [192.168.232.53]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BCED38B7CD; Sun, 16 Jun 2019 10:21:08 +0200 (CEST) Subject: Re: [PATCH v5 13/16] powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX To: Andreas Schwab Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , j.neuschaefer@gmx.net, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <1e412310cc18ea654fb2ce4c935654d8d1069f27.1550775950.git.christophe.leroy@c-s.fr> <87blyz9jor.fsf@igel.home> From: christophe leroy Message-ID: Date: Sun, 16 Jun 2019 10:20:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <87blyz9jor.fsf@igel.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-Antivirus: Avast (VPS 190616-0, 16/06/2019), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 15/06/2019 à 13:23, Andreas Schwab a écrit : > This breaks suspend (or resume) on the iBook G4. no_console_suspend > doesn't give any clues, the display just stays dark. > After a quick look at the suspend functions, I have the feeling that those functions only store and restore BATs 0 to 3. Could you build your kernel with CONFIG_PPC_PTDUMP and see in file /sys/kernel/debug/powerpc/segment_registers how many IBATs registers are used. If any of registers IBATs 4 to 7 are used, could you adjust CONFIG_ETEXT_SHIFT so that only IBATs 0 to 3 be used, and check if suspend/resume works when IBATs 4 to 7 are not used ? Thanks Christophe --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus