From patchwork Wed Apr 2 12:02:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 14035855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71CEBC28B20 for ; Wed, 2 Apr 2025 12:03:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA74F280004; Wed, 2 Apr 2025 08:02:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E347B280001; Wed, 2 Apr 2025 08:02:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B7205280004; Wed, 2 Apr 2025 08:02:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 81586280004 for ; Wed, 2 Apr 2025 08:02:59 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 33AEEBB3A9 for ; Wed, 2 Apr 2025 12:03:01 +0000 (UTC) X-FDA: 83288967762.17.2B1AC96 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by imf03.hostedemail.com (Postfix) with ESMTP id F23E620021 for ; Wed, 2 Apr 2025 12:02:58 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1743595379; a=rsa-sha256; cv=none; b=ASKs8ksxuuegczceL68ciKC8965mllGyAYWFjePnqxpLbCTCZ+rcVacajf6wfmMsiA/RxB dCnbkALRz6rJNM44JxetMngfk5JD57J8+UNEUDcLCtadYWoF/IzjvE7o0XXlx1/i/f+TVQ M3XS8RbKXMAT7Qk2uN5yAVSGBiRNtuo= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1743595379; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D/PMQaVC/1aXnj+XoAqZqi7Lm30Yp1bdXpF9qbP2Frc=; b=h90x6nwp4fohtEOxCEoTFy7yGjDQaop4CLWJTixVIdYNLpu7iZeWAaGF5i1fLTh6J9b97v gW4MlsJ2Kb9NBxTuWybCpDw9dNbKfHqyTxHkZFV4q9YjYtKuUTScs22kS3OiRV4BUNleND YIXfCuzgz8uUA4iUX+6gnK7gcDIn05g= Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4ZSNh46pmNz6M4fR; Wed, 2 Apr 2025 19:59:16 +0800 (CST) Received: from frapeml500007.china.huawei.com (unknown [7.182.85.172]) by mail.maildlp.com (Postfix) with ESMTPS id B55B314067A; Wed, 2 Apr 2025 20:02:55 +0800 (CST) Received: from P_UKIT01-A7bmah.china.huawei.com (10.126.171.80) by frapeml500007.china.huawei.com (7.182.85.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 2 Apr 2025 14:02:54 +0200 From: To: , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [NOT FOR MERGING PATCH v3 1/3] ACPI: ACPI 6.5: RAS2: Rename RAS2 table structure and field names Date: Wed, 2 Apr 2025 13:02:27 +0100 Message-ID: <20250402120230.596-2-shiju.jose@huawei.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20250402120230.596-1-shiju.jose@huawei.com> References: <20250402120230.596-1-shiju.jose@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.126.171.80] X-ClientProxiedBy: lhrpeml100009.china.huawei.com (7.191.174.83) To frapeml500007.china.huawei.com (7.182.85.172) X-Rspamd-Queue-Id: F23E620021 X-Stat-Signature: oxub6ggct5m51sgbojtttkhy4zxxebpd X-Rspam-User: X-Rspamd-Server: rspam06 X-HE-Tag: 1743595378-505232 X-HE-Meta: U2FsdGVkX1+10SskKB4Nv1za4bnkSpRIQy3cMwfhqfOSnyJGHRDT0+0GCYVpuk9lDbSrhjxXiYR3RtGHsKpgCkJa9GWYBh7lKMDf1IVf/C66yeUfO9pv3Hz02kLBXbVD6xGiiA9eG5AlMs5ggaVMKB0Si8+i8fm+tmmoNb+n4UFBqB8t3F2GluH9MoYdo8EzQtQnjvLttqaxxrkhKwM5F8yQ/MiuzpONJaMEcgllK76RKMdrUvDxZn/PuU6v/S1MCJX0Z+ztKYA1bG2L+iYkvtQF7td9Drcf2/XK59ZwcDJ3gM3xqKn1u+hAqYkPzt+5JOrs41ohotuqe0ADUGZqMkHxJdW0W+UfGRicakBkmX+vOpkaexnfFh5caysOtpHHwZRP66UiadjvNRRejeAT/FeQ2SOl5omj1t+lBfkD7yHo96e3oN/o6/x9Do2Lifk0A8y96Dd4sU+PuZqthaBNr8cTUs2LJhYGaxo3sb/9xiW++8ZrtVoRfLzO2nKgRqrFno299oGK6lOAivwlVGjoHe8mLoGlMHz6sl1mIt5muqCRrRq8w8/iMmEBnvWMFDAmQ9te7pCTmxT3aSB/DhRtvLaVz5YqUGvNdfnffsQG8pGm/21inCB4HorVpfrd8faqYOsremLrvzydjG0zR1M7WQl6Kz30bPO98ULCyahbC4G67LdeR1UbllhDCY0s6euTWHac4/0ztvBxcgoneH1RbrGlz5Pok1XI0ywLEYTVZ+CEb/+sU3pECzmVZkx05ROMu1ToOopKkh71B/V5VyRGkqqjrtNGad6aeJGuXGAzpirSoYfmhGeJcEOYxFLUVL0JRdlfX4XvSlIveCfZWnb0PBwvyLtxy/eGtGjZ0AICYJOXZqZTBdAkVqmNXbg2mPD6mZfdjHBR7EqzOSZUkPTHstoXZiVDdg89oObCgsu591sF0iSG8jGgwg0+2w+T6xdkIsApIIcqqb4R+TxMwbR G+mg1BUM k1wyF6R0M+onXAxqLF62w02Sarxy4fW9piFCjyrpbMFJqA/FG89b43fyGGScsbaXR2Ue8Y4ZzN9Fd8q+g3Hi226oSz3o/HbFVq3xogthjaQhNc2SMwWjKfuFYBEr5LvDfVddOKSxl5eoX3VSotzmH6MIP8tDdv5BQGWuNtqBdBeZJSjSjcArMbM5bTlu3F69zbO/T6dJXp8TLltyEeXyHNYLBj36eLCZ7wzoHI78sRt/r6HA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Shiju Jose Rename the RAS2 table structure and field names to shorten them and avoid long lines in the ACPI RAS2 drivers. 1. struct acpi_ras2_shared_memory to struct acpi_ras2_shmem 2. In struct acpi_ras2_shared_memory: fields, - set_capabilities[16] to set_caps[16] - num_parameter_blocks to num_param_blks - set_capabilities_status to set_caps_status 3. struct acpi_ras2_patrol_scrub_parameter to struct acpi_ras2_patrol_scrub_param 4. In struct acpi_ras2_patrol_scrub_parameter: fields, - patrol_scrub_command to command - requested_address_range to req_addr_range - actual_address_range to actl_addr_range Signed-off-by: Shiju Jose --- Corresponding changes are merged in the acpica: https://github.com/acpica/acpica/commit/2c8a38f747de9d977491a494faf0dfaf799b777b --- include/acpi/actbl2.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index 2e917a8f8bca..493174ca87f6 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -2802,15 +2802,15 @@ struct acpi_ras2_pcc_desc { /* RAS2 Platform Communication Channel Shared Memory Region */ -struct acpi_ras2_shared_memory { +struct acpi_ras2_shmem { u32 signature; u16 command; u16 status; u16 version; u8 features[16]; - u8 set_capabilities[16]; - u16 num_parameter_blocks; - u32 set_capabilities_status; + u8 set_caps[16]; + u16 num_param_blks; + u32 set_caps_status; }; /* RAS2 Parameter Block Structure for PATROL_SCRUB */ @@ -2823,11 +2823,11 @@ struct acpi_ras2_parameter_block { /* RAS2 Parameter Block Structure for PATROL_SCRUB */ -struct acpi_ras2_patrol_scrub_parameter { +struct acpi_ras2_patrol_scrub_param { struct acpi_ras2_parameter_block header; - u16 patrol_scrub_command; - u64 requested_address_range[2]; - u64 actual_address_range[2]; + u16 command; + u64 req_addr_range[2]; + u64 actl_addr_range[2]; u32 flags; u32 scrub_params_out; u32 scrub_params_in;