From patchwork Thu Jul 18 01:15:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mary Strodl X-Patchwork-Id: 13735919 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 CE9E5C3DA5D for ; Thu, 18 Jul 2024 01:16:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2ED106B0082; Wed, 17 Jul 2024 21:16:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 29D4E6B0083; Wed, 17 Jul 2024 21:16:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1653A6B0085; Wed, 17 Jul 2024 21:16:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id ECC526B0082 for ; Wed, 17 Jul 2024 21:16:18 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 652C5A17BE for ; Thu, 18 Jul 2024 01:16:18 +0000 (UTC) X-FDA: 82351107636.16.A4D3FA8 Received: from greygoose-centos7.csh.rit.edu (greygoose-centos7.csh.rit.edu [129.21.49.170]) by imf15.hostedemail.com (Postfix) with ESMTP id B624CA0027 for ; Thu, 18 Jul 2024 01:16:16 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=csh.rit.edu header.s=mail header.b=GeRia4gf; spf=pass (imf15.hostedemail.com: domain of mstrodl@csh.rit.edu designates 129.21.49.170 as permitted sender) smtp.mailfrom=mstrodl@csh.rit.edu; dmarc=pass (policy=none) header.from=csh.rit.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721265356; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=IFJn1vlp4jsCyfVwbWhJRtp2WetmpzoxtezkXqXFzEo=; b=3sUicJL2wVhQfxx6/eWgIB2ZyG4UP4jj5iI0OtgmOzpaTO4q/KYFVbY7FdbGUgKirCZQw5 c3Y+wN/0iBYNWSrosw1CztNlFnhr6DpzMtF9vtxoaKb7fmKl8dUzCwO4Hs+gk6t9M9aLO4 gg0ykqXk05CmCdjdmHonmwICQYPNnaA= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=csh.rit.edu header.s=mail header.b=GeRia4gf; spf=pass (imf15.hostedemail.com: domain of mstrodl@csh.rit.edu designates 129.21.49.170 as permitted sender) smtp.mailfrom=mstrodl@csh.rit.edu; dmarc=pass (policy=none) header.from=csh.rit.edu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721265356; a=rsa-sha256; cv=none; b=uiszf7Ys5cQeVa5xtPJqXbd5Ubb+g6VhQpm558dxOCDgbP5FKZJ+GvRotqPd5Fi3wFe7lM /Gy5CrHPzS8VXosWiokqhF38qNGIVk7hz6BfQ9HNC7HYpE4YGU3kbr3inueDI1apB5gJWv Ny7FGc0EdALIsHsWhlrjJflWCBNTH/Q= Received: from localhost (localhost [127.0.0.1]) by greygoose-centos7.csh.rit.edu (Postfix) with ESMTP id 8766D40D7C73; Wed, 17 Jul 2024 21:16:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=csh.rit.edu; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received; s=mail; t= 1721265375; x=1723079776; bh=v8HKLxZhttVWIKwfX3YLMwdxEeFHIhN6tGV 6+ffqnkA=; b=GeRia4gf2FpaBGScjBzdklKWjeJ65+Rkp+8usRfxovneRdsy991 hKyTuXRYT8coMSEzWJQDdsSRw0lh81GfeCFY54GlzEWnN6NuXchrftWfQJpXKEkf GrfmgatIWCvPwkfFqg+BTXOOWvnIHLGKdCBPB4m/hKUmvjIKV7S4oYj0= X-Virus-Scanned: amavisd-new at csh.rit.edu Received: from greygoose-centos7.csh.rit.edu ([127.0.0.1]) by localhost (mail.csh.rit.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3CWXBX-cJRGP; Wed, 17 Jul 2024 21:16:15 -0400 (EDT) Received: from freedom.csh.rit.edu (freedom.csh.rit.edu [129.21.49.182]) by greygoose-centos7.csh.rit.edu (Postfix) with ESMTP id 0890145735E9; Wed, 17 Jul 2024 21:16:15 -0400 (EDT) From: Mary Strodl To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, urezki@gmail.com, hch@infradead.org, linux-mm@kvack.org, lee@kernel.org, andi.shyti@kernel.org, linux-i2c@vger.kernel.org, s.hauer@pengutronix.de, christian.gmeiner@gmail.com, Mary Strodl Subject: [PATCH 0/3] Add support for Congatec CGEB BIOS interface Date: Wed, 17 Jul 2024 21:15:01 -0400 Message-ID: <20240718011504.4106163-1-mstrodl@csh.rit.edu> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: B624CA0027 X-Stat-Signature: 8htayi8qi743818odto83fswz9wrui5u X-Rspam-User: X-HE-Tag: 1721265376-605118 X-HE-Meta: U2FsdGVkX1/25iGywC2vvHFbGKHD9AFJyNOuEkgS9ApvexPs1htjfMlaeEax2zrJhP3IOfdWNe947hH/4lsUzv6R7MIE52M2hMKy/25mpQkr3Ie7seQw00Qtq+yS1mqkGJMAp5xJEEjgElCIFLAbHzvyk0LpIhxBQGR7kV+9RBtWqXFKzk63/9O3f9ZSgLFt9NIhLgo0YoAvT/Q1O1+t4JXtZAtJlFaXSzE0cveQa62BpAMqfItW63K2NTJqowYrpRvq9ClUuYSJVxfVAHwX5qKs6lJvoFz/N6EDGLsMo5CqbO79AIEUAaNSHBNDvyS7iTEJFB0IWxw6QM9J9cMSeAstbqst0XX0/Eey7NOpMZf3rWhZSkJRGO2CccNay8IAgNPXIO+hQoKVM10iRe6jaulAv0lsZAmN3G0aqLqRQhmofK6a6cTaoj0SUZvOFjZJ5T/BGgJxrnE+sUgzxGbU8zgSsVUgmLnZDmyqGYL8LYRFqBrPEgBStQeEhiYXCF6fn/vDeRfXXxPA4njqwX6FR/tUdKkuFRkWPqDuEMR8ytGqp/uuXdyQbU4BKEpy3NKqNaTS8jdoiP2Xf4vsXapr6Nftyab8331bOWGDNvxK52Mr7lBhMg4v+j7UDltgH8ui9H00pn1lXNlgoE37Tu4ohexcAus8paWA5hnkCZJURH/tK814zXSLgyedBuO4cMuviw7ct1Td9rRuq1+75PtZCM9TPn7Hzd+2ys2Tzh+zxSVMbz2Z9s+fQ0ybI/K4tQYtX3xnoD6e60HG47XNOXglvI6r06R4L50YRPquY9ZrxJoshrUmD8gg22pS9aBkgz0Qf4A3YUY1HsbzHkg/QtI3fnouGnIs+LS5t1dNVIbGRGCeZ3StE/7Vssucfg1iOA4WIX1Pd1OE8SnsnTVkZAImdZTQ+e/PSfm+9jOCK6rg20jXSmF7utxwE1RvkfG+j81WCx7G5v84QlgNtTM+ts6 moDXHWL7 3LSsFp5RlFchb7jk1ZjjJD8tlLShsPKUPbk1PbpfRB4jpI6YvfKogp2CfJTdAsLi2mBElqryHRYEuxH3Zx5GQMb72hcE2OWD8iAA97c5SkJgkd6m2Lz7gSuY6j03UtO6CRaoF1KnGZ0X4lJszftGo0LsBkYs1oUkhqz00hXuxi/k1A/aGQktAHuJR5lRrHyABk1HUCWixXh9zEIutclfYIxtyKUQ1bwi/ke2luE4iVsDDa+j+qH9lUCtlAQ== 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: The following series adds support for the Congatec CGEB interface found on some Congatec x86 boards. The CGEB interface is a BIOS interface which provides access to onboard peripherals like I2C busses and watchdogs. It works by mapping BIOS code and searching for magic values which specify the entry points to the CGEB call. The CGEB call is an API provided by the BIOS which provides access to the functions in an ioctl like fashion. This series is based on the excellent work of Sascha Hauer and Christian Gmeiner. You can find their original work here: http://patchwork.ozlabs.org/patch/219756/ http://patchwork.ozlabs.org/patch/219755/ http://patchwork.ozlabs.org/patch/219757/ http://patchwork.ozlabs.org/patch/483262/ http://patchwork.ozlabs.org/patch/483264/ http://patchwork.ozlabs.org/patch/483261/ http://patchwork.ozlabs.org/patch/483263/ Mary Strodl (1): mm: vmalloc: export __vmalloc_node_range Sascha Hauer (2): x86: Add basic support for the Congatec CGEB BIOS interface i2c: Add Congatec CGEB I2C driver drivers/i2c/busses/Kconfig | 7 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-congatec-cgeb.c | 187 ++++++++ drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile | 1 + drivers/mfd/congatec-cgeb.c | 620 +++++++++++++++++++++++++ include/linux/mfd/congatec-cgeb.h | 105 +++++ mm/vmalloc.c | 1 + 8 files changed, 932 insertions(+) create mode 100644 drivers/i2c/busses/i2c-congatec-cgeb.c create mode 100644 drivers/mfd/congatec-cgeb.c create mode 100644 include/linux/mfd/congatec-cgeb.h