Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1173821pxb; Fri, 20 Nov 2020 03:08:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9jGQj54b43ekdfWFNP7f1JEWf7buEiDM2PZ9hLpcU4d7r2iMuhVw6/bQ9JKiYgoYHcX1M X-Received: by 2002:a17:906:86cf:: with SMTP id j15mr32778863ejy.260.1605870507221; Fri, 20 Nov 2020 03:08:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870507; cv=none; d=google.com; s=arc-20160816; b=MJD4qK7zr8bjjrY3q7wzBOSAYAmQRVI4/GTAitGdyNxxzoHYIcrnKaOGcuQLEssU/Y FMi7t7UWj5tZYH0anfg6QW+DTw1EpgmMtXuuAvAusxgu9jWp8utRB96zRjBeDxJ37Bn6 R1ttFZeyOAabrV9DEbzbOSv8ZBa78+mpdv+faqdGK+sTxbOrB48NF89ZqdAYd0H9/U2Q FBPpp7FlVRQT3bFNUHAL/TtEDQjDdoxV1XWwNX6L0mzXNpvUbIBh1w1O5nvdDANcRYiP 33awE4TRNKCrUHQs9ncdOQ5MbYxB+FsEUZmrm3Yjy6RX+e+A/lzPnpPK2bXcS0b17MUv SFPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M8pkiXQ3D0d2ypiFsF9+rxVplBYau1IjUW0yQHSAfv4=; b=udxCjKfh/lxLezE643JT/+aezQy+PR7iGw0A46ZBlgRSggQHNCX+t+Tg965FId0Kyn lW8bGJJOFHFGKJb5IFXvAxYC2g9HWCJDup72MvzNDAM0QcoCZRdB2Xaj8sJEVuo1be9F Tv4KscfHEsGPaap1+7TZ0D9+WZ5me1bXI5j/SNy61SHxTW+TcKpL95wpZdbm+pMk19jb FYL80MI0VKgJ24vCGnMwu68SSAABInp1hKpW+8q1RbmKyqu+Hj7tWPG4ue1BPyQAx2V4 /J491JZsvIxU6PPawhTX2c6XMuCFxmtifZOKxN4TkI3059983BizUV665i1RR/qijvqt KWoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mOz6rIiu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oa19si1484365ejb.280.2020.11.20.03.08.02; Fri, 20 Nov 2020 03:08:27 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mOz6rIiu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727962AbgKTLE1 (ORCPT + 99 others); Fri, 20 Nov 2020 06:04:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:51950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727940AbgKTLE0 (ORCPT ); Fri, 20 Nov 2020 06:04:26 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98DC92236F; Fri, 20 Nov 2020 11:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870265; bh=yVP9HCp5Xi6g7SjY83SY5YsHLJNL3JHWYJ+JMcjpzw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mOz6rIiu6spW2LbfFdpFyDbysb1Qz2n0Plg0IE56UlxpezUbdlFXNu7OX1kd25HcJ cgL8rx8ine2QE0QhtVJd+ppzrDDe686Uzl9Soml3rCeolDb9DhpZEx72Ii3txff63S QLu7KeVGKIUdMTDGpVJEUwnuSCx5J4plFgc2LzZ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , dja@axtens.net Subject: [PATCH 4.9 02/16] powerpc/64s: move some exception handlers out of line Date: Fri, 20 Nov 2020 12:03:07 +0100 Message-Id: <20201120104539.835892188@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104539.706905067@linuxfoundation.org> References: <20201120104539.706905067@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Axtens (backport only) We're about to grow the exception handlers, which will make a bunch of them no longer fit within the space available. We move them out of line. This is a fiddly and error-prone business, so in the interests of reviewability I haven't merged this in with the addition of the entry flush. Signed-off-by: Daniel Axtens Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kernel/exceptions-64s.S | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/arch/powerpc/kernel/exceptions-64s.S +++ b/arch/powerpc/kernel/exceptions-64s.S @@ -519,6 +519,10 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_TY EXC_REAL_BEGIN(data_access_slb, 0x380, 0x400) SET_SCRATCH0(r13) EXCEPTION_PROLOG_0(PACA_EXSLB) + b tramp_data_access_slb +EXC_REAL_END(data_access_slb, 0x380, 0x400) + +TRAMP_REAL_BEGIN(tramp_data_access_slb) EXCEPTION_PROLOG_1(PACA_EXSLB, KVMTEST_PR, 0x380) std r3,PACA_EXSLB+EX_R3(r13) mfspr r3,SPRN_DAR @@ -537,7 +541,6 @@ EXC_REAL_BEGIN(data_access_slb, 0x380, 0 mtctr r10 bctr #endif -EXC_REAL_END(data_access_slb, 0x380, 0x400) EXC_VIRT_BEGIN(data_access_slb, 0x4380, 0x4400) SET_SCRATCH0(r13) @@ -587,6 +590,10 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_TY EXC_REAL_BEGIN(instruction_access_slb, 0x480, 0x500) SET_SCRATCH0(r13) EXCEPTION_PROLOG_0(PACA_EXSLB) + b tramp_instruction_access_slb +EXC_REAL_END(instruction_access_slb, 0x480, 0x500) + +TRAMP_REAL_BEGIN(tramp_instruction_access_slb) EXCEPTION_PROLOG_1(PACA_EXSLB, KVMTEST_PR, 0x480) std r3,PACA_EXSLB+EX_R3(r13) mfspr r3,SPRN_SRR0 /* SRR0 is faulting address */ @@ -600,7 +607,6 @@ EXC_REAL_BEGIN(instruction_access_slb, 0 mtctr r10 bctr #endif -EXC_REAL_END(instruction_access_slb, 0x480, 0x500) EXC_VIRT_BEGIN(instruction_access_slb, 0x4480, 0x4500) SET_SCRATCH0(r13)