Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1679982pxb; Thu, 4 Mar 2021 18:33:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZEX1o9za2f6YBOmz6ZOBKeTS4lTIXbZ5MKjK6/loD+FiN29dwfqwPFg7o7mPEHUfI++7L X-Received: by 2002:a05:6638:102f:: with SMTP id n15mr7415610jan.28.1614911631856; Thu, 04 Mar 2021 18:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614911631; cv=none; d=google.com; s=arc-20160816; b=BHTRGfO3Yz+6d5V4RBc8l9p/PFVvzyjKePl/Eww+JhgD4YFbz0Ut7tbB5iTkOCA6n+ i5mP1zfeNjDCASZQVPl3VFtor2ZyEli3JiAPD6AC3VmBoSK51jUF8W+wKDu+YX7Vgidu FQ7Qfpr1iNsr4pKDqzs3Q1/GprDySNy6OCnO8IV2QUpKEQv3UXxeCNh09MV/nV3vEB0e 5tzyph6ebvzYyQY9zMo+o2HBejqJCEURiXqogSQjM1cldSjplyr7L9X5OW12NnWSgCl4 gwCS6L0DtkBd3Y5+KIJgJkrlrTebsQQfCGpXJ3UASnN0n4n5mYCJfCE6UjAY54ARsF59 2Dbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=uly4XdvButdgDELM29dyWpA9ZHuCLzxXZmjwGa94+e4=; b=QRAnel1YLyTlsjW/bE5BLWQvDLe1u4epXmkSe1Uke3v/7IxMj/JvE8R1tLWCZ3ZsP3 S/HckWQek5H/HaW4Bax7tUhWoVgG7cQIvGV+g/XySKnpVLCR+OYm/VUtbGZOT4uycIbw /LdOjdh4+iTzmra9dWEc3tzgfekDypoBNE2cEEBQw5t839HoxKW/rdDLrka8LXIkrRx9 HpIAUfCIWS2g2OfW31FAJZjYcu/n0Jg1q9AUa9v+cvw90nDXaLsWqsrLNj7NOdro/lUp Qv5JcBDkLjyVzzkXbeZjTIr2pNo6g/F6DNdZ5RTHXkM04ywAXq5KgxG55jICe6WNFtQk 8X4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=xP+D8hjP; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=uoCecw2l; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s25si977565iom.80.2021.03.04.18.33.38; Thu, 04 Mar 2021 18:33:51 -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=@flygoat.com header.s=fm1 header.b=xP+D8hjP; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=uoCecw2l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbhCECcr (ORCPT + 99 others); Thu, 4 Mar 2021 21:32:47 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32891 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhCECcq (ORCPT ); Thu, 4 Mar 2021 21:32:46 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 53AB85C0090; Thu, 4 Mar 2021 21:32:46 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 04 Mar 2021 21:32:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=u ly4XdvButdgDELM29dyWpA9ZHuCLzxXZmjwGa94+e4=; b=xP+D8hjP1JjVmXppB iAG99NbBD9kXFPW1SR50116sbV+eOG31ygSitmGuoROd1qqVRdMor7mUWEdJ9rMH 1FWDiOMsPM71uX1O+xWmXYjJ5uq2tFF5eraEDMyBhq1kOHSUCB647eVX/hByJc9o f6Kc+94Lvjhg8mDVvmRfyEHacJLuBmG47l+nTSJdnbUCq3OdYvRRSG/ee9orYDB0 sXDGtI3Aqms2hqnjuorTl7+Vl1Zha8uIUvAuiWUyV3mcEO/NCFHeGqsDxurv7+C4 67FhfaiXfT/NEIkF9uuQhs0H5c6LLvX6DYM85jWEONWNa90mArdudIBDf5TLIbsl Ow8Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=uly4XdvButdgDELM29dyWpA9ZHuCLzxXZmjwGa94+ e4=; b=uoCecw2lfp2ymWA3EzxfNSwlYDT8EsiOiu1jMOrRgHrZ2JGP+V3VSddT/ SEYtWLCRVMFE99wYJLMgPeGUwjpE9HUVwLHOu1ahwmHeKAaKPAZSoU9e+Fl3rI7F IHo8Rj++KLd9QajS3fB3Q9VS8EJOsokmhbqYNeVoYn+MYavgUCyrYesF0rYbEjz/ dkji+vCMQP5p8EBsJVrliTlLCREUY2h1lbhJOdZaPIQppLT88pW21jVey1n8MmYI bgQ04RAH5zXbkAWt5/TcYlc+uB4GlL9MDIfxYlWgzBxr541Nhmh83ZBtiThAP0/d N7ZDtdkM3z1ROxE4XCaH8ouvBMqyA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddthedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdeftfenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpeefleduiedtvdekffeggfeukeejgeeffeetlefghfekffeuteei jeeghefhueffvdenucfkphepgeehrdeffedrhedtrddvheegnecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhl hihgohgrthdrtghomh X-ME-Proxy: Received: from [127.0.0.1] (li1000-254.members.linode.com [45.33.50.254]) by mail.messagingengine.com (Postfix) with ESMTPA id E60FF1080054; Thu, 4 Mar 2021 21:32:43 -0500 (EST) Subject: Re: [PATCH 2/2] MIPS: Loongson64: Move loongson_system_configuration to loongson.h To: Qing Zhang , Huacai Chen , Thomas Bogendoerfer , Thomas Gleixner , Marc Zyngier Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210304110057.22144-1-zhangqing@loongson.cn> <20210304110057.22144-3-zhangqing@loongson.cn> From: Jiaxun Yang Message-ID: <606a54a3-bf1e-2e71-e2e2-ff5b2c07cbb2@flygoat.com> Date: Fri, 5 Mar 2021 10:32:41 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210304110057.22144-3-zhangqing@loongson.cn> Content-Type: text/plain; charset=gbk; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/3/4 ????7:00, Qing Zhang ะด??: > The purpose of separating loongson_system_configuration from boot_param.h > is to keep the other structure consistent with the firmware. > > Signed-off-by: Jiaxun Yang > Signed-off-by: Qing Zhang Acked-by: Jiaxun Yang - Jiaxun > --- > .../include/asm/mach-loongson64/boot_param.h | 18 ------------------ > .../include/asm/mach-loongson64/loongson.h | 18 ++++++++++++++++++ > drivers/irqchip/irq-loongson-liointc.c | 2 +- > 3 files changed, 19 insertions(+), 19 deletions(-) > > diff --git a/arch/mips/include/asm/mach-loongson64/boot_param.h b/arch/mips/include/asm/mach-loongson64/boot_param.h > index 1c1cdf57137e..035b1a69e2d0 100644 > --- a/arch/mips/include/asm/mach-loongson64/boot_param.h > +++ b/arch/mips/include/asm/mach-loongson64/boot_param.h > @@ -198,24 +198,6 @@ enum loongson_bridge_type { > VIRTUAL = 3 > }; > > -struct loongson_system_configuration { > - u32 nr_cpus; > - u32 nr_nodes; > - int cores_per_node; > - int cores_per_package; > - u16 boot_cpu_id; > - u16 reserved_cpus_mask; > - enum loongson_cpu_type cputype; > - enum loongson_bridge_type bridgetype; > - u64 restart_addr; > - u64 poweroff_addr; > - u64 suspend_addr; > - u64 vgabios_addr; > - u32 dma_mask_bits; > - u64 workarounds; > - void (*early_config)(void); > -}; > - > extern struct efi_memory_map_loongson *loongson_memmap; > extern struct loongson_system_configuration loongson_sysconf; > > diff --git a/arch/mips/include/asm/mach-loongson64/loongson.h b/arch/mips/include/asm/mach-loongson64/loongson.h > index ac1c20e172a2..6189deb188cf 100644 > --- a/arch/mips/include/asm/mach-loongson64/loongson.h > +++ b/arch/mips/include/asm/mach-loongson64/loongson.h > @@ -12,6 +12,24 @@ > #include > #include > > +/* machine-specific boot configuration */ > +struct loongson_system_configuration { > + u32 nr_cpus; > + u32 nr_nodes; > + int cores_per_node; > + int cores_per_package; > + u16 boot_cpu_id; > + u16 reserved_cpus_mask; > + enum loongson_cpu_type cputype; > + enum loongson_bridge_type bridgetype; > + u64 restart_addr; > + u64 poweroff_addr; > + u64 suspend_addr; > + u64 vgabios_addr; > + u32 dma_mask_bits; > + u64 workarounds; > + void (*early_config)(void); > +}; > > /* machine-specific reboot/halt operation */ > extern void mach_prepare_reboot(void); > diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c > index 09b91b81851c..249566a23cc4 100644 > --- a/drivers/irqchip/irq-loongson-liointc.c > +++ b/drivers/irqchip/irq-loongson-liointc.c > @@ -16,7 +16,7 @@ > #include > #include > > -#include > +#include > > #define LIOINTC_CHIP_IRQ 32 > #define LIOINTC_NUM_PARENT 4 >