diff options
5 files changed, 259 insertions, 2 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/cme/cme_p9a10.mk b/import/chips/p9/procedures/ppe_closed/cme/cme_p9a10.mk new file mode 100644 index 00000000..021e9017 --- /dev/null +++ b/import/chips/p9/procedures/ppe_closed/cme/cme_p9a10.mk @@ -0,0 +1,85 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: import/chips/p9/procedures/ppe_closed/cme/cme_p9a10.mk $ +# +# OpenPOWER HCODE Project +# +# COPYRIGHT 2016,2019 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG + +CME_TARGET := cme_p9a10 +IMAGE := $(CME_TARGET) + +#Select KERNEL +$(IMAGE)_KERNEL:=__IOTA__ +#$(IMAGE)_KERNEL:=__PK__ + +# Options for Platforms specific +$(IMAGE)_COMMONFLAGS = -DNIMBUS_DD_LEVEL=0 +$(IMAGE)_COMMONFLAGS+= -DCUMULUS_DD_LEVEL=0 +$(IMAGE)_COMMONFLAGS+= -DAXONE_DD_LEVEL=10 + +$(IMAGE)_COMMONFLAGS+= -DPK_TRACE_LEVEL=1 + +$(IMAGE)_COMMONFLAGS+= -DLAB_P9_TUNING=0 +$(IMAGE)_COMMONFLAGS+= -DEPM_P9_TUNING=0 +$(IMAGE)_COMMONFLAGS+= -DEPM_BROADSIDE_SCAN0=0 + +$(IMAGE)_COMMONFLAGS+= -DSIMICS_TUNING=0 +$(IMAGE)_COMMONFLAGS+= -DUSE_SIMICS_IO=0 + +include $(CME_SRCDIR)/cme_common.mk +OBJS := $(CME_OBJS) + +$(call BUILD_PPEIMAGE) + + + +## ## Bin header + IMAGE=cpmr_header_p9a10 + IMAGE_EDITOR=cmeImgEdit.exe +## +## # Target tool chain + $(IMAGE)_TARGET=PPE +## +## #linkscript to use + $(IMAGE)_LINK_SCRIPT=linkcpmr.cmd +## + OBJS = stop_cme/p9_cme_cpmr.o + +$(call ADD_BINHEADER_INCDIR,$(IMAGE),\ + $(CME_SRCDIR)/stop_cme \ + $(CME_SRCDIR)/pstate_cme \ + $(PK_SRCDIR)/kernel \ + $(PK_SRCDIR)/ppe42 \ + $(PK_SRCDIR)/trace \ + $(PK_SRCDIR)/$(_PPE_TYPE) \ + $(PM_LIBDIR)/include \ + $(PM_LIBDIR)/include/registers \ + $(PM_LIBDIR)/common \ + $(HCODE_LIBDIR) \ + $(HCODE_COMMON_LIBDIR) \ + $(ROOTPATH)/chips/p9/procedures/hwp/lib/ \ + $(ROOTPATH)/chips/p9/utils/imageProcs/ \ + ) + +gitsha := $(shell git log -1 --pretty=format:"%h") + $(call BUILD_BINHEADER,$(IMAGEPATH)/$(CME_TARGET)/$(CME_TARGET).bin, \ + $(ROOTPATH)/chips/p9/procedures/utils/stopreg/selfRest.bin \ + $(gitsha)) diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe_p9a10.mk b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe_p9a10.mk new file mode 100644 index 00000000..f335989a --- /dev/null +++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe_p9a10.mk @@ -0,0 +1,70 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe_p9a10.mk $ +# +# OpenPOWER HCODE Project +# +# COPYRIGHT 2016,2019 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG +PSTATE_TARGET:=pstate_gpe_p9a10 +IMAGE:=$(PSTATE_TARGET) + +#Note: Flags are resolved later - so local variables can't be +# used to build them +$(IMAGE)_COMMONFLAGS+= -DNIMBUS_DD_LEVEL=0 +$(IMAGE)_COMMONFLAGS+= -DCUMULUS_DD_LEVEL=0 +$(IMAGE)_COMMONFLAGS+= -DAXONE_DD_LEVEL=10 +#$(IMAGE)_COMMONFLAGS+= -fstack-usage + +include $(PGPE_SRCDIR)/pstate_gpe/pstate_common.mk +$(IMAGE)_COMMONFLAGS += $(PSTATE_COMMONFLAGS) +OBJS := $(PSTATE_OBJS) + +$(call BUILD_PPEIMAGE) + +# PPMR header edit: +IMAGE=ppmr_header_p9a10 +IMAGE_EDITOR=pstate_gpeImgEdit.exe + +# Target tool chain +$(IMAGE)_TARGET=PPE + +#linkscript to use +$(IMAGE)_LINK_SCRIPT=linkppmr.cmd + +OBJS = p9_pgpe_ppmr.o + +$(call ADD_BINHEADER_INCDIR,$(IMAGE),\ + $(PK_SRCDIR)/kernel \ + $(PK_SRCDIR)/ppe42 \ + $(PK_SRCDIR)/trace \ + $(PK_SRCDIR)/$(_PPE_TYPE) \ + $(PM_LIBDIR)/include \ + $(PM_LIBDIR)/include/registers \ + $(PM_LIBDIR)/common \ + $(PM_LIBDIR)/occlib \ + $(HCODE_LIBDIR) \ + $(HCODE_COMMON_LIBDIR) \ + $(HCODE_UTILS_INCDIR) \ + $(ROOTPATH)/chips/p9/procedures/hwp/lib/ \ + ) + +gitsha := $(shell git log -1 --pretty=format:"%h") +$(call BUILD_BINHEADER,$(IMAGEPATH)/$(PSTATE_TARGET)/$(PSTATE_TARGET).bin, \ + $(gitsha)) diff --git a/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/stop_gpe_p9a10.mk b/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/stop_gpe_p9a10.mk new file mode 100644 index 00000000..d3a889bf --- /dev/null +++ b/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/stop_gpe_p9a10.mk @@ -0,0 +1,96 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/stop_gpe_p9a10.mk $ +# +# OpenPOWER HCODE Project +# +# COPYRIGHT 2016,2019 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG +# +## IMAGE=qpmr_header +## +## # Target tool chain +## $(IMAGE)_TARGET=PPE +## +## #linkscript to use +## $(IMAGE)_LINK_SCRIPT=linkqpmr.cmd +## +## OBJS = p9_sgpe_qpmr.o +## $(call BUILD_BINHEADER) + +STOP_TARGET := stop_gpe_p9a10 +IMAGE := $(STOP_TARGET) + + +# Note: Flags are resolved very late, +# so local variables can't be used to build them + +# Options for Platforms specific tuning + +$(IMAGE)_COMMONFLAGS+= -DNIMBUS_DD_LEVEL=0 +$(IMAGE)_COMMONFLAGS+= -DCUMULUS_DD_LEVEL=0 +$(IMAGE)_COMMONFLAGS+= -DAXONE_DD_LEVEL=10 + +$(IMAGE)_COMMONFLAGS+= -DLAB_P9_TUNING=0 + +$(IMAGE)_COMMONFLAGS+= -DEPM_P9_TUNING=0 +$(IMAGE)_COMMONFLAGS+= -DEPM_BROADSIDE_SCAN0=0 + +$(IMAGE)_COMMONFLAGS+= -DSIMICS_TUNING=0 +$(IMAGE)_COMMONFLAGS+= -DUSE_SIMICS_IO=0 + + +include $(SGPE_SRCDIR)/stop_gpe/stop_common.mk +$(IMAGE)_COMMONFLAGS += $(STOP_COMMONFLAGS) +OBJS := $(STOP_OBJS) + +$(call BUILD_PPEIMAGE) + +# QPMR header edit: +IMAGE=qpmr_header_p9a10 +IMAGE_EDITOR=stop_gpeImgEdit.exe + +# Target tool chain +$(IMAGE)_TARGET=PPE + +#linkscript to use +$(IMAGE)_LINK_SCRIPT=linkqpmr.cmd + +OBJS = p9_sgpe_qpmr.o + + +$(call ADD_BINHEADER_INCDIR,$(IMAGE),\ + $(PK_SRCDIR)/kernel \ + $(PK_SRCDIR)/ppe42 \ + $(PK_SRCDIR)/trace \ + $(PK_SRCDIR)/$(_PPE_TYPE) \ + $(PM_LIBDIR)/include \ + $(PM_LIBDIR)/include/registers \ + $(PM_LIBDIR)/common \ + $(PM_LIBDIR)/occlib \ + $(HCODE_LIBDIR) \ + $(HCODE_COMMON_LIBDIR) \ + $(HCODE_UTILS_INCDIR) \ + $(ROOTPATH)/chips/p9/procedures/hwp/lib/ \ + $(ROOTPATH)/chips/p9/utils/imageProcs/ \ + ) +gitsha := $(shell git log -1 --pretty=format:"%h") +$(call BUILD_BINHEADER,$(IMAGEPATH)/$(STOP_TARGET)/$(STOP_TARGET).bin, \ + $(gitsha)) + diff --git a/tools/build/rules.dir/chips.env.mk b/tools/build/rules.dir/chips.env.mk index ba1e6014..a959708f 100644 --- a/tools/build/rules.dir/chips.env.mk +++ b/tools/build/rules.dir/chips.env.mk @@ -25,9 +25,12 @@ # Lists of chip subdirectories. CHIPS += p9 +CHIPS += p9a p9_CHIPID += p9n +p9_CHIPID += p9a p9n_EC += 20 21 22 23 +p9a_EC += 10 HW_IMAGE_VARIATIONS = hw diff --git a/tools/imageProcs/hw_image.mk b/tools/imageProcs/hw_image.mk index 0281aecb..feb6ced6 100644 --- a/tools/imageProcs/hw_image.mk +++ b/tools/imageProcs/hw_image.mk @@ -5,7 +5,7 @@ # # OpenPOWER HCODE Project # -# COPYRIGHT 2016,2018 +# COPYRIGHT 2016,2019 # [+] International Business Machines Corp. # # @@ -97,6 +97,9 @@ define VERIFY_SBE_RING_SECTION $(eval $(call XIP_TOOL,check-sbe-ring-section,,$($(IMAGE)_PATH)/.$(IMAGE).report, $1 $2,$3)) endef -$(eval $(call BUILD_HW_IMAGE,hw,p9n)) +$(eval P9_CHIP=$(filter p9,$(CHIPS))) +$(foreach chip,$(P9_CHIP),\ + $(foreach chipId, $($(chip)_CHIPID),\ + $(eval $(call BUILD_HW_IMAGE,hw,$(chipId))))) |