From patchwork Thu Mar 10 00:06:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12775704 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EF93C433FE for ; Thu, 10 Mar 2022 00:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xtGDFrjhzUif41JGd5g14LIJ9VxPoTSZmK+KNCQbHEA=; b=IfHjSkDYs2m+oz Q2aegKYNAkYBHV7/kKx75HwbHjTQITiP32LQrYHy6xcwK0f32iL1hC12N2Cy6Kq2gEjrOkNhYbmKJ IXUeJus4aKcvieRgVm0ruyZbL+MjQ4p3U3Zh1UGIGYmXJgHDzuWNlllxqBiS0ipusnPj5zIXS0GXy i/Lseo2kUr4/Ibj+CMLER+q/UJEfeJ3O0CyTVd5ZWmXQ3Ulm9nioW7M2PRrLLXqfyzufgQ1D6IyN0 XASyz7FjQ8fDuu1IqAwwvGtJVXnycggg9FNOupZnUI4zKEbSOGFhn4KlYs19+X6rGMBTXxMA8GR8A T6qYRnYw+yCYA3NeJixw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS6KM-00AqM8-Al; Thu, 10 Mar 2022 00:06:46 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS6KH-00AqLK-Kv for linux-arm-kernel@lists.infradead.org; Thu, 10 Mar 2022 00:06:43 +0000 Received: by mail-pj1-x1029.google.com with SMTP id cx5so3764513pjb.1 for ; Wed, 09 Mar 2022 16:06:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T1ujvJm98v5RbioCiICvb25psuyRN7J+JVkZDUAT5p0=; b=cL90pwuAfqCntZ+tmsVjpHb4a1W664t6RP6KJtC7EDpUdiTX6qFpPd7mkMPYC5kVoG ALwV1W3WO8/41PdeHpz5Bd2Z6qfaOu16w2vsIL7mdeLhyju8Hdo0oTTukYXhtl0qshug w0Ieesi8qtkiJVnboGkogOyWrtzvw4RdWT2wBsvwgfxXUVh8F7ARwbfnB3L9ISCJ0q0q YnVnY1C/sZqhidSef3KYDnNklq2lhr5Xi/pCiKqfpPNEU0CeVb/8Pr0a9O//lEq3vtB9 H2eQ5JozQU3IEwVwpbSIMOagJLTnGrZHeyo8trOW6hWz9aVYy0siSNDcWZ+g61itLTJ6 qWJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=T1ujvJm98v5RbioCiICvb25psuyRN7J+JVkZDUAT5p0=; b=q7bBotudE7zc3pQOtDT6aB6d7HwIO5gN6Kc9ix4p1sSK6U3dqAmtTGsbGMVOBNe2He Yh5jet9pmfwsKr7ccx7optuT7Qjr4n91Dk8TV7SjFgYsB9bmJ5YSwbrcxLJjZel7LRG2 1xsJxZRKKPFVDEku4KCPr3A5CZZQOtOjLpvuc0k+dhaZvtHugPzCEb2L09UhF8C4HSph hyjLdTKBI6nXQePO79RmQgB618BJoVUGSpSB2rSHEBDe1CIfKVeIol3jdQZDwIIHvrE7 PTIIWQlctlbS9lNX+vcQ2TMREUPcT8aSUq7amYchqeFHHbTSMp2yMNa4srDMfHSVLVQv J2BQ== X-Gm-Message-State: AOAM531pbPNXnu4dSRj5Ag1Sncyz3xJ61qKJhR/gFTWMy4+tyUGsaomB IIpl7cX7j4XUt8SuhxN8P3k= X-Google-Smtp-Source: ABdhPJwK4cj/Kgz6lTz3eWxP1ZbwjcJ3ptml7HQ3rSKf362dWjLO6dSAVXvwVz9nLxTufi4vuI68Xg== X-Received: by 2002:a17:902:7105:b0:152:fdad:fc86 with SMTP id a5-20020a170902710500b00152fdadfc86mr2147491pll.152.1646870800994; Wed, 09 Mar 2022 16:06:40 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id g6-20020a056a001a0600b004f2a4316a0asm4213405pfv.60.2022.03.09.16.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 16:06:39 -0800 (PST) From: Joel Stanley To: Andrew Jeffery , Arnd Bergmann , =?utf-8?q?C=C3=A9dric_Le_Goater?= Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/2] ARM: aspeed: Add secure boot controller debugfs Date: Thu, 10 Mar 2022 10:36:27 +1030 Message-Id: <20220310000629.119699-1-joel@jms.id.au> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_160641_714660_64130E36 X-CRM114-Status: GOOD ( 12.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We're creating a common API for a subset of this information in sysfs: https://lore.kernel.org/all/20220204072234.304543-1-joel@jms.id.au/ However, machines with an ASPEED soc need the detailed information from the SBE that is not relevant for other systems, so expose it all in debugfs. v2 Moves the files to aspeed/sbc, and uses arch_debugfs_dir instead of a driver specific directory. v1: https://lore.kernel.org/linux-arm-kernel/20220304030336.1017197-1-joel@jms.id.au/ Joel Stanley (2): ARM: aspeed: Add debugfs directory ARM: soc: aspeed: Add secure boot controller support arch/arm/mach-aspeed/debugfs.c | 16 ++++++++ drivers/soc/aspeed/aspeed-sbc.c | 73 +++++++++++++++++++++++++++++++++ arch/arm/mach-aspeed/Makefile | 1 + drivers/soc/aspeed/Kconfig | 7 ++++ drivers/soc/aspeed/Makefile | 1 + 5 files changed, 98 insertions(+) create mode 100644 arch/arm/mach-aspeed/debugfs.c create mode 100644 drivers/soc/aspeed/aspeed-sbc.c