Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp844650ybi; Sun, 30 Jun 2019 01:38:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGW0WS39LdOVx0AN+IvrvYTT5mGTVTkICR9TC277xCP8C2Gjy+JSRuB0xHPgJUZNQgW7yj X-Received: by 2002:a63:f857:: with SMTP id v23mr3969953pgj.228.1561883896418; Sun, 30 Jun 2019 01:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561883896; cv=none; d=google.com; s=arc-20160816; b=XTWtv4fswv9tp1iUUE+ujuzGOdXv1Vy8gDibySOnlIPQaFXPKBI0OQWKoi36qv8wIb h38l9QzIktROguzxGw4zsqqPO1DAnVk3L3czMsxLIqFw6nlHcHj3XhkrKb7WqS8tuP8u E9UQtVtcXivH6qXQd9nEBDcrxuZmILVDaQqB9iTndi8EYfJvV3ulAwQ6FflJXHcNCJRd OGPuG1+R7FdpwFstWEUI+e6LKz0lYDXMVm/sPH9Nf/J7BVWWFZXwNao5nrtgLI0tzNP8 WBCiqym1TqPA7M8LpJAdLNEqcQIhOfoEG7hg25iOk1pLSptJuXg/6v7RQOB41Fc2gKJ/ 5pAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=T5Yt8loM2rFlO5jjbfBgQ3kw55/QBSvs948roX3pJj4=; b=Jzh6cZfXN+s6DZL3o0WOU/iZwRvjdDX5gHTVfHJzvycnudVGUXQoCoZc2Y2HcJQvfB rJMMwJC6kZB8fQMjCT3XnHXzBGMjWVWJxfRcuDItI22kqXZMS1R0VU/R/s0IGdMOsZsh VmwyXX4y/LOTo1Q+ztgUOVO+k962iBgS0hBwmRDN3C3ZY1orzxAXF6Ag+IZVGKQWirdp QWOQ6jGZVpSEcMjsyFE2Sk2mOi8t/EgYtfCyeoT+tyiMMHlnMZfdJoGwDKS2QS3/Ocf6 hJ6exqSylP9aVg0CHp3VUuiRyR+2KNPV+hqGZiQNoGdvgsTnZyhpAXd5RvfZycGtydeH LOLQ== ARC-Authentication-Results: i=1; mx.google.com; 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 p2si7885137pff.164.2019.06.30.01.38.00; Sun, 30 Jun 2019 01:38:16 -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; 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 S1726757AbfF3Ihf (ORCPT + 99 others); Sun, 30 Jun 2019 04:37:35 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:38107 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfF3Ihe (ORCPT ); Sun, 30 Jun 2019 04:37:34 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 45c3lw0kZZz9sLt; Sun, 30 Jun 2019 18:37:31 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 6ecb78ef56e08d2119d337ae23cb951a640dc52d X-Patchwork-Hint: ignore In-Reply-To: <97f32bd4c45ce004550b3853474b3bc7e211ae0d.1560807643.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Andreas Schwab From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] powerpc/32s: fix suspend/resume when IBATs 4-7 are used Message-Id: <45c3lw0kZZz9sLt@ozlabs.org> Date: Sun, 30 Jun 2019 18:37:31 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-06-17 at 21:42:14 UTC, Christophe Leroy wrote: > Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. > Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for > STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping > kernel text. But the suspend/restore functions only save/restore > BATs 0 to 3, and clears BATs 4 to 7. > > Make suspend and restore functions respectively save and reload > the 8 BATs on CPUs having MMU_FTR_USE_HIGH_BATS feature. > > Reported-by: Andreas Schwab > Cc: stable@vger.kernel.org > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6ecb78ef56e08d2119d337ae23cb951a640dc52d cheers