Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp920673pxt; Fri, 6 Aug 2021 18:04:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDnZ0qR/JA24vXrwi1hUVR5tACbrZamDTVHvs5cLQ1QH2LQ5AMk4e0BAYf8c0KbfGq889r X-Received: by 2002:a05:6e02:104f:: with SMTP id p15mr1548072ilj.242.1628298261529; Fri, 06 Aug 2021 18:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628298261; cv=none; d=google.com; s=arc-20160816; b=JSEGMSLAm6zq0g61doDZpQs7EFOir5mzMe2Vl2TiysTf9I9Od57o00mFloKqd1k0oh dg5KABiGwNQlFWJ7FBIN7ms8/HUD3ecRq+t3WPXtzANStreHLYa1zbQ1m/fL7w9HVkPL QwydiKNZMs872L6JGt+VtZW7haOH2071H2xcssrG/TU51+H3hIpb0cY/vVTFaJzI9yDd 15VIcRUfoE6dTwjK49k4EXeophk9IUnEy6SGtLAGaeLt+sFwR1AJtyFXOWJqywucED7h pX7LCrwhB1Uumbu8pfcLTFnctehbizhiwslNu5b/3tVv/LgC0azXHJQ0YrrMdrlNDt5t y65w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=32oK1hrFCRUgWXFrkZdy+s7tZTvaBZCtulRTSPPphyo=; b=R0UBuBeZHQYa0dhPFNVnwlY7Y97QAUV08xIRsTPDRvIrO3QcK8LZgUvjw9Fl+zdKpV gWlXiLYJz1VO0Y97jSSir4g5yt0+eBsJTEC2IB0AJwudFICGo6nys5rHKWlahwxaQvEl WEq717am3jExbePJEK0Z+YhTvu0QEdFLdOrQmMLeOBbTH5kY5TS9/8BqUINI6ZDXDbcO W5T16K7q4dZi4ec/xEEUzBWz5+HCj9ZEEAm3yUvD4LZe3vWrp9zNF4PbDDzA/vG71OSe rIRAJLSLVjoCDxDdJNjIrf5kuAEFhhgt5/LviDhvhu1ixZJQJJlR/7RDiu72H7NcA4Is JaVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=twrXvJZS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si10406049jab.2.2021.08.06.18.04.10; Fri, 06 Aug 2021 18:04:21 -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; dkim=pass header.i=@me.com header.s=1a1hai header.b=twrXvJZS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbhHGBDj (ORCPT + 99 others); Fri, 6 Aug 2021 21:03:39 -0400 Received: from pv50p00im-zteg10011501.me.com ([17.58.6.42]:59288 "EHLO pv50p00im-zteg10011501.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhHGBDj (ORCPT ); Fri, 6 Aug 2021 21:03:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1628298202; bh=32oK1hrFCRUgWXFrkZdy+s7tZTvaBZCtulRTSPPphyo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=twrXvJZSQyvONOmxI623LS+G1LNIgReTAfIgwDBkiBAmGSiZjTDIT60vKs5BlPD/Z NLIGdr5iYaKSLI0f/ApTzomgP4ZwOn4Oz9DN7/dLYZM2dtuHnZod8FFPkYqdhmD0zU OaA8AVgZsY0ZwEpEdVSBR00H9ELrus9kkmpKjomqS30neefHytW8oan/CIT38PrBhg o0MCzsUTmcv5OONvD1k6XJou0Wd71DBlFhKEYfc9xJkr8UvEpqL8R9/1G4pNHPaGHE Em6HxqODAY+p2hcadK626+gQs+iX6dQWkmLEKvt/0u7MZ89EPitb7roaFuAMfdQMeF F/K666fueZk6w== Received: from xiongwei.. (unknown [120.245.2.134]) by pv50p00im-zteg10011501.me.com (Postfix) with ESMTPSA id 268B5B003BD; Sat, 7 Aug 2021 01:03:17 +0000 (UTC) From: sxwjean@me.com To: linuxppc-dev@lists.ozlabs.org Cc: oleg@redhat.com, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, christophe.leroy@csgroup.eu, npiggin@gmail.com, ravi.bangoria@linux.ibm.com, aneesh.kumar@linux.ibm.com, efremov@linux.com, linux-kernel@vger.kernel.org, Xiongwei Song Subject: [PATCH v2 0/4] Some improvements on regs usage Date: Sat, 7 Aug 2021 09:02:35 +0800 Message-Id: <20210807010239.416055-1-sxwjean@me.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-06_08:2021-08-06,2021-08-06 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=787 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2108070004 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiongwei Song When CONFIG_4xx=y or CONFIG_BOOKE=y, currently in code we reference dsisr to get interrupt reasons and reference dar to get excepiton address. However, in reference manuals, esr is used for interrupt reasons and dear is used for excepiton address, so the patchset changes dsisr -> esr, dar -> dear for CONFIG_4xx=y or CONFIG_BOOKE=y. Meanwhile, we use _ESR and _DEAR to get offsets of esr and dear on stack. v2: - Discard changes in arch/powerpc/mm/fault.c as Christophe and Michael suggested. - Discard changes in UAPI headers to avoid possible compile issue. v1: - https://lkml.org/lkml/2021/8/6/57 - https://lkml.org/lkml/2021/7/26/533 - https://lkml.org/lkml/2021/7/26/534 - https://lkml.org/lkml/2021/7/26/535 Xiongwei Song (4): powerpc: Optimize register usage for esr register powerpc/64e: Get esr offset with _ESR macro powerpc: Optimize register usage for dear register powerpc/64e: Get dear offset with _DEAR macro arch/powerpc/include/asm/ptrace.h | 10 ++++++++-- arch/powerpc/kernel/asm-offsets.c | 15 ++++----------- arch/powerpc/kernel/exceptions-64e.S | 18 +++++++++--------- arch/powerpc/kernel/process.c | 2 +- arch/powerpc/kernel/ptrace/ptrace.c | 4 ++++ arch/powerpc/kernel/traps.c | 2 +- arch/powerpc/platforms/44x/machine_check.c | 4 ++-- arch/powerpc/platforms/4xx/machine_check.c | 2 +- 8 files changed, 30 insertions(+), 27 deletions(-) -- 2.30.2