From patchwork Thu Aug 19 06:52:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12446429 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B025AC4338F for ; Thu, 19 Aug 2021 06:54:21 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 7476D610CF for ; Thu, 19 Aug 2021 06:54:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7476D610CF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=pUlh7rEXDArG1PWrPTi/7roek7L42NVRlxnR4SceGJk=; b=bwt6HK6D2X+VP6 8eT4zGXk1cpAaiBM84mgBYUUIo1XG28Nb/sTHY2b5DTql+h6sHJOfFiBI0XhPCRJXmde/Pe45hipK 73fhf6yDXM05nH9xbMwhyztcoWS9GxrTy2pX562TMmXtoOYc8wRX7L/BjPYuYjF+xfkjKpeGkaNTb 9i01YfewQExiq72SuNwe7QiUS3boMFvmmcLR9r82aqIll0BC3iUyqAInda2nOtreJ89QEEXdR5Od+ 42WJKMvZGMVTN12Sr4r3HzWO/rjINuqQIdLGlPBiZs2P8MJq5OZyrcb5I2AwagdgkNbznAKvr+WTK /FdiSHak7ziWL6axqlrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbuh-007NEe-Hk; Thu, 19 Aug 2021 06:52:31 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbuV-007NCl-Ft for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 06:52:20 +0000 Received: by mail-pf1-x429.google.com with SMTP id t13so4583268pfl.6 for ; Wed, 18 Aug 2021 23:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S1lq7dkwQtvGOASE5d3elXdTuJ61FzeoaQEdWqV8aoA=; b=H526agwfyZ/NtOClI+SMbMNWxYseIZPQJtMvkG/xDBwGwPVWrAl8B6DVSmhtJplbkL bxNE7cY/XetnsmJsRfpDqRwHKCzefVS+y2SA/C814WAbM0frz4aOVTADCbFeUOv6luK2 0lQjfitesHa+XS457Wvih/1hxD1RvxUH1xGSavbD3U5XZtVTQQQGZDlgSb6JlooiVwk0 dx1ckjrI3teEFK5RHSikmspHYSFJ+3CAWec4ryZW8fXOoWHBRwkXdrxP3tadd8cs9Ca3 uc+FnaOnFMnShgxTYMciK/yAzV93AdOdC/RCbtYunUY2/0ZNUE5FOwiETRrdz0gssU/K lUxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=S1lq7dkwQtvGOASE5d3elXdTuJ61FzeoaQEdWqV8aoA=; b=jw1kIlujMZrxUghq+zLuytRphj3eNW36Z+2/swzeTpESTirGqRO2cjHimSnxxyvux6 rE/OyyOLCT4HIWzd4x5bSTTPbh0U7Bq+JosXBGkxZgaLRGhrmrLcbcR4Bmeu/D4jpWuX NCuVLUIq6nihf1psCrulhVkfxz8PItvZ/QfYoh9X4txaBWgatq2FXDa0cb6sS16VanJ1 xwsjoX/qK/2SsyFwQ7a8YS10psfYe3iLTb0hBWI0er8mxNVczXsNB4AHZAi8qenHEk9O T1Fyavpgd+I0ZCDurRvrLZmM4oz4W4+eWeqn+/RW4SXtMlbl6/kurrXXCgZCBaG6pT0M OA/w== X-Gm-Message-State: AOAM5314a0hOh/6Dr9AsRuw1ch/Tpf7d2CYaoEEeJPISaAAWB38II2Lx 4gvWeAt5nL/3WhTZ9VawmoE= X-Google-Smtp-Source: ABdhPJwQjy4wi+KrWzyzSz9XdaX6KTga5WMJOMryZVdsibsp3KSv6XGkTb+vHinJZwlTtUaOMuCYoQ== X-Received: by 2002:a63:215c:: with SMTP id s28mr12531414pgm.99.1629355938746; Wed, 18 Aug 2021 23:52:18 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id 4sm1860035pjb.21.2021.08.18.23.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 23:52:17 -0700 (PDT) From: Joel Stanley To: Andrew Jeffery Cc: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: [PATCH 1/4] ARM: config: aspeed: Enable hardened allocator feature Date: Thu, 19 Aug 2021 16:22:00 +0930 Message-Id: <20210819065203.2620911-2-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819065203.2620911-1-joel@jms.id.au> References: <20210819065203.2620911-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210818_235219_570075_1879792E X-CRM114-Status: GOOD ( 14.43 ) 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 SLAB_FREELIST_HARDENED can protect from freelist overwrite attacks with really small overhead. It works best with the SLUB allocator, so make SLUB the default by removing SLAB=y. total used free shared buff/cache available SLAB 425596 44065.3+/-220 311099+/-3800 14864+/-3900 70432+/-3700 352767+/-3900 SLUB 425592 44225.3+/-280 313275+/-600 12132+/-3.3 68092+/-530 355295+/-280 These figures are the average memory usage from three boots of each option in qemu, running the Romulus userspace. The output is from free(1), reported in kilobytes. Signed-off-by: Joel Stanley --- arch/arm/configs/aspeed_g4_defconfig | 2 +- arch/arm/configs/aspeed_g5_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/aspeed_g4_defconfig b/arch/arm/configs/aspeed_g4_defconfig index a3ee647b1ebb..397c57e94743 100644 --- a/arch/arm/configs/aspeed_g4_defconfig +++ b/arch/arm/configs/aspeed_g4_defconfig @@ -18,8 +18,8 @@ CONFIG_BPF_SYSCALL=y CONFIG_EMBEDDED=y CONFIG_PERF_EVENTS=y # CONFIG_COMPAT_BRK is not set -CONFIG_SLAB=y CONFIG_SLAB_FREELIST_RANDOM=y +CONFIG_SLAB_FREELIST_HARDENED=y # CONFIG_ARCH_MULTI_V7 is not set CONFIG_ARCH_ASPEED=y CONFIG_MACH_ASPEED_G4=y diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig index 2db48438c5d2..3f81146a9c0e 100644 --- a/arch/arm/configs/aspeed_g5_defconfig +++ b/arch/arm/configs/aspeed_g5_defconfig @@ -18,8 +18,8 @@ CONFIG_BPF_SYSCALL=y CONFIG_EMBEDDED=y CONFIG_PERF_EVENTS=y # CONFIG_COMPAT_BRK is not set -CONFIG_SLAB=y CONFIG_SLAB_FREELIST_RANDOM=y +CONFIG_SLAB_FREELIST_HARDENED=y CONFIG_ARCH_MULTI_V6=y CONFIG_ARCH_ASPEED=y CONFIG_MACH_ASPEED_G5=y From patchwork Thu Aug 19 06:52:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12446431 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE320C4338F for ; Thu, 19 Aug 2021 06:54:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 835FA610CF for ; Thu, 19 Aug 2021 06:54:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 835FA610CF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=KOVfpMEMFHlHG8WcPJ/9zQUzNLg0Mfms+pfUTVUOOlI=; b=w/Hc3jdrB9KYQ9 K0vhi7Yxz5qhjHf2tBoze7AGpOE7Ls/QOG3yuL+pE2BOn6kgmZ8C/oveMnHnk8sLblgWHlbkp0NnI gtZDZVO4cf4UQle+7go7bLfSm7kHFbtem5l5jgOF5Qzj3tqhtw/VoF27fA0dltDUkLZ1STNZDnB4Z RrFtch0Io1OqkDr4MLhBm6fRV4Q7W5W87SHYG/esUaQMqqGUK0YgxtMx4cx544Yy7Trcw2235Y21/ XIl3E0VSs55VtRXBNZ7WNqS8qBgLZxBI+KE4R5u0FXiCJ4nLK7+0puLko/4C6xjsLXi11FVtDoXG1 xHNDm5gcmkvyQ5jR0ReQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbus-007NFC-3n; Thu, 19 Aug 2021 06:52:42 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbuY-007NDK-Jl for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 06:52:23 +0000 Received: by mail-pj1-x1031.google.com with SMTP id cp15-20020a17090afb8fb029017891959dcbso10665154pjb.2 for ; Wed, 18 Aug 2021 23:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aM9/lVcDyxcnxVnQ4ELwNbT7wLssN1gHH2orR8gRKDc=; b=NRo7JhDr2MFy6/1iP6yCK1tgMqpPqDH2AFC1vnu99I+RcF0h/EDeUuuHu6Z2xrAtoQ c3kjG5WlQHQlFyjK8zHMxdv6GVgOojNrFEMcP98wpmftcUtxSwAo78oTgUfy2jgNAb5A aMRDbKbw5Xd5gYlbnQ+bPZU9D80Ux7kbeywZoQYk0QnAzbZNKTMXd7BWbEU02+FcH2Fv zc4sET+Nl5ntTZaimvKPChZlmj1fW/Q+VTjp2jBzHOhf03rskUzoVTOxVEs/tMjeKsYb Vd5KHIXyj7fcn6yN1K3d1ltdy07HGP3ogWoTonp13b5AM9s0wo8QI7roK5nCBmPKOmmh GCfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=aM9/lVcDyxcnxVnQ4ELwNbT7wLssN1gHH2orR8gRKDc=; b=MjuLIgDUD8GMEi18dwPBIKo8l2gZDpj0hKZqWSmCaQVbE19mvkbWJ/SYhVSA4PRPRc csvEnwDVcFd6UD1NlfHu1KcC8QJtP9+MImDiT1DzxvZOZFehWvsW+PyTJk6NZT/njJ9T CTTcV7VDMuGPCnAA5fSUZvHFrM5wiIYYfn/fKJTR+wCqyqldnX6JD/p9+s6JnPrQuk3s CMteWEmddZFLKimQAqZdRwHIQtuJvt3GqI6lj8HSNPrqY7LXBciAzArinT9dWJYPHLqP ZK15Sn4FnGF9yB8y7VPKSPTXtswv/u2ycpz0WdwHuCnWqmV6EovHplw4s7SYvKtm4IZI J7vg== X-Gm-Message-State: AOAM531+Si1xLcdAx/LQ89SP5NKCCaWM3r+M/2s5iStFwCYh1mevZsC4 kvKnOVCsg9l7vWr5x6VGELH4DvMXtmw= X-Google-Smtp-Source: ABdhPJwU0QOyM7N5l/wMmI9M5V9ZKpaIMaNWj/cQ68UmJPeZxmr3RzW5Le4g7VYE2iE15h2NXDqXLQ== X-Received: by 2002:a17:90a:6502:: with SMTP id i2mr7621536pjj.129.1629355941816; Wed, 18 Aug 2021 23:52:21 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id 4sm1860035pjb.21.2021.08.18.23.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 23:52:20 -0700 (PDT) From: Joel Stanley To: Andrew Jeffery Cc: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: [PATCH 2/4] ARM: config: aspeed: Enable KCS adapter for raw SerIO Date: Thu, 19 Aug 2021 16:22:01 +0930 Message-Id: <20210819065203.2620911-3-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819065203.2620911-1-joel@jms.id.au> References: <20210819065203.2620911-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210818_235222_699548_9BBF3AC0 X-CRM114-Status: GOOD ( 13.02 ) 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 Raw SerIO is used by the OpenBMC debug-trigger application to take signals from the host that applications are unresponsive on the BMC. Signed-off-by: Joel Stanley --- arch/arm/configs/aspeed_g5_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig index 3f81146a9c0e..6ba30b212bda 100644 --- a/arch/arm/configs/aspeed_g5_defconfig +++ b/arch/arm/configs/aspeed_g5_defconfig @@ -130,7 +130,7 @@ CONFIG_KEYBOARD_GPIO_POLLED=y # CONFIG_INPUT_MOUSE is not set CONFIG_INPUT_MISC=y CONFIG_INPUT_IBM_PANEL=y -# CONFIG_SERIO is not set +CONFIG_SERIO_RAW=y # CONFIG_VT is not set # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=y @@ -144,6 +144,7 @@ CONFIG_SERIAL_8250_SHARE_IRQ=y CONFIG_SERIAL_8250_DW=y CONFIG_SERIAL_OF_PLATFORM=y CONFIG_ASPEED_KCS_IPMI_BMC=y +CONFIG_IPMI_KCS_BMC_SERIO=y CONFIG_ASPEED_BT_IPMI_BMC=y CONFIG_HW_RANDOM_TIMERIOMEM=y # CONFIG_I2C_COMPAT is not set From patchwork Thu Aug 19 06:52:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12446433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C067C4338F for ; Thu, 19 Aug 2021 06:54:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5523B61029 for ; Thu, 19 Aug 2021 06:54:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5523B61029 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=Cq/PydakbEjSAkWFWdvyS7kuxdAVchtrbnFVcGCN4j4=; b=iBM9peDkxv4s0N fU8M1hsAJpsveoMh/h7WlB5d875e+6/N5Am+FDhUMZHEqe1gEirj4jOc2TTPXwZXlftxCUBG7Twx0 waUdCPDXU14JxmZQUDFdYYhTutWfAf98/QvKezZpHJ74Gw5YbqixDrHjxSzNdrgVeCtaIbe7yndBI 1TQOMD1YqarolMa0PJWiS0YoImvHnYsI5wvoBWtmPrhvak6VOrkU3oROu8KSAMGlgE7NytPVlJxZ4 TgNVmhtE8Y8ZvGj4GacqEjCFW8rE85gXbFgADLmDYcKqa3c7Zzj3akWZ7vtGFlcBIoHp0C1XQDWXx eEpchgRubr2lEaeDb/sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbv4-007NGu-L9; Thu, 19 Aug 2021 06:52:54 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbub-007NDf-MQ for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 06:52:26 +0000 Received: by mail-pj1-x1036.google.com with SMTP id qe12-20020a17090b4f8c00b00179321cbae7so4099158pjb.2 for ; Wed, 18 Aug 2021 23:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NEQXEf4GVUYePwDQ1RZTjWtEa+UqsaqgBQduVP4iCuQ=; b=VYSb21XKtf84HdXO43QylWSyEvkVP/P1pXT6NpmDDwm3hJwtRw95yGT0NIXLyWeq6L 4SEkTGoVche1KCM6eE+BvL09FhcayRd7v1YLVXjbx6nHmCOG08TO5n12u7Bu0I0Hg/2q QzjhQ1iNZK7CZp3bFlNxf8cj6OR171jWqVWiFjbKG00fkt8LvFiC4jx+rC08ueWCLbhF /ds9TS4vId3r3V7ud5vNdwx09UrusCgrT0qbB0a2d7SWWAn4qUL1zhOsiXGC2mSe+TFr 09PJTZO6dlzk1rKsopUFbkrifR7kBOzE768/pS6CuioEFVOObj9uB3gpIWy+gLC59CaS o5IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=NEQXEf4GVUYePwDQ1RZTjWtEa+UqsaqgBQduVP4iCuQ=; b=LgDDykEbIboqlr7ASwD5mmQwt/ZHCJ0ePBKVsBmXzJuNQqtZ4BW2TnwyEnlm/xx+sJ z0ESX4P/8q0xV2ueMN2p+EGZ9oPpQ5oBHwB+h3bWZrtHJO9QE0QP8FTfn//8Iwir9PHg nNeaMWN3d6a9LzHFfn15ExpIfa09TZ4mP4rs5qQa/EwIvUKNeVRjJarh1ORyCwo6qaBc mbPxTpafkjuxo3FZ6eU0NOJxgG3EN6BVNk4GQivOsbwqr+wOW8Xu9lJxXiscIwDLQ3wT 3upVT6UfBVma5SEBPCnrgBb4DWIEKv0fb1FxHLvG9v0533e9fS3j5/Mm51cFTxUWAIDF PqUg== X-Gm-Message-State: AOAM5319fPcVyxjWBfiERQarvXQ/lsjgwHjUGjz+r3FTjl4zAKbZRo/p VFkHMUh/DUMbsiIFiL08joy4UlNZdlQ= X-Google-Smtp-Source: ABdhPJz+oT30MtNeAd5eezZzDHw9JUpSFRFit1ZaFwPhCvYz7HM3+s1Dk/q8JzlfPGNVdQfJUbPEPA== X-Received: by 2002:a17:90a:e60f:: with SMTP id j15mr13634143pjy.173.1629355944944; Wed, 18 Aug 2021 23:52:24 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id 4sm1860035pjb.21.2021.08.18.23.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 23:52:23 -0700 (PDT) From: Joel Stanley To: Andrew Jeffery Cc: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: [PATCH 3/4] ARM: config: aspeed_g4: Enable EDAC and SPGIO Date: Thu, 19 Aug 2021 16:22:02 +0930 Message-Id: <20210819065203.2620911-4-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819065203.2620911-1-joel@jms.id.au> References: <20210819065203.2620911-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210818_235225_773690_132FFBED X-CRM114-Status: GOOD ( 11.72 ) 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 These two devices are part of the AST2400 and the drivers have support for that version of the soc. Signed-off-by: Joel Stanley --- arch/arm/configs/aspeed_g4_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/aspeed_g4_defconfig b/arch/arm/configs/aspeed_g4_defconfig index 397c57e94743..a578865c2d96 100644 --- a/arch/arm/configs/aspeed_g4_defconfig +++ b/arch/arm/configs/aspeed_g4_defconfig @@ -141,6 +141,7 @@ CONFIG_SPI=y CONFIG_GPIOLIB=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_ASPEED=y +CONFIG_GPIO_ASPEED_SGPIO=y CONFIG_W1=y CONFIG_W1_MASTER_GPIO=y CONFIG_W1_SLAVE_THERM=y @@ -205,6 +206,7 @@ CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_LEDS_TRIGGER_DEFAULT_ON=y CONFIG_EDAC=y +CONFIG_EDAC_ASPEED=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_DRV_PCF8523=y From patchwork Thu Aug 19 06:52:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12446435 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62F88C4338F for ; Thu, 19 Aug 2021 06:55:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 23A10610CF for ; Thu, 19 Aug 2021 06:55:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 23A10610CF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=5mj1CASXMnq5iehKcrnIeoUXP5osVy4V5yGqzwxnLVQ=; b=WyWzee2mIdqpMH A/hTDo/MwrwMylf8Lg0PPFOD47wCIR6hxjm5Z35aNBWGpeYUH45+bdGNXBXMfVMPWQH8pAhr/SM2Z E4AB2ujMul5oQse0KEwO6tNhjex5Dogs0m614jIUPHMfXDFW2yl3XoLn8+ZA8cQrILr/jvdg/Gf1v OuA46O/RXkRTy2osEQuDcCJJkUGmTvDCY+a2nr7dilyHbk54bjD0J+x6JHdVDbJ0CPwODO7fkKVul ZWDvao4xVv47B+rLTnVuFWpRGl0CRnb9cri4Vo/3bSQtMLXZaaehLvxfbLRS36EAmr8h2uUMYhp8/ N6CQgsVlk7J0tc3JI6mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbvG-007NL0-BU; Thu, 19 Aug 2021 06:53:06 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGbue-007NE5-LR for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 06:52:30 +0000 Received: by mail-pj1-x1030.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so10674310pjr.1 for ; Wed, 18 Aug 2021 23:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=10mXIJmtbKRd+xhhD29gKQpI6TpHJzdExf1Tb9trL9o=; b=bSjEvlCDdMPnFS7zglwIdXuhMELDu8lVArt/KJ+oswv2WLKKXDvxw6Zm72CmGJSpO4 LGDjm0zu5jnH/1DyUg09sSzLvXD32SFV/0Gjyu57ualv+i+ed+btUzUj+OPXBC3ulC+N EJP6cc7l4MW3cfizgw1MCxmXVY3tBh1rG45ypdXNgR9kOe6vZuatAe7USKhWz0VY4QzF G0AkiAWPb+g40Qszeq+Xk8ruXv9MKhI29T3PxV/ydGQ8pJ/iN5CUIgzq/x7H8KgGruoV b23NYVuEAeT2g0LHQgrtStAi765UOI93gj0Mu43OgFcV5KE22RDELrhBqZfKeFVjZ3lD d52Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=10mXIJmtbKRd+xhhD29gKQpI6TpHJzdExf1Tb9trL9o=; b=toSQXMScAGfx6z2/g/xVfCJIVkXi6u89596Pba6MFARfrPKrRZIRapRMYOU3JVnvRn jv5YbIr7zs8Hmo3LUsWVh1F6mFfDt/xdCxz+ItRNU3jV7vbZys9yspo1hcVik2Ipm4EN aE89T26Y/uGx+XXPUIpVkrOJWcLugyMGuUoq+OytU8ZGa/gxC/Z5ddq8tv8X1ZCWCXn2 mZT5LSNenfSmjKaxduXDrQnwxh/XWWdPckuFNdiKTNn0ACOO+UrPmFh5AmuBdStwWshv a3r5jEZgLRtD3sseLpKM5RxhAsIq8sv7HrwWHHB0AKH+IgDlOc2Ssuy5xEalSXq4e2G6 UPLw== X-Gm-Message-State: AOAM5329jAseSRU2X1CNfkzpPLu3QKhR2efZ20tr4qsy5OPzI+nQ5Y8b aOBJLpVewGDhrmCkNK+HLS4= X-Google-Smtp-Source: ABdhPJwoBfJsOS+syJjb0EqCRoyVaKFHoC2Yz62lsj6/lQIQWRRYVJjADhkjgJFnqspGavImZJr2Xg== X-Received: by 2002:a17:90a:be09:: with SMTP id a9mr13378713pjs.85.1629355947931; Wed, 18 Aug 2021 23:52:27 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id 4sm1860035pjb.21.2021.08.18.23.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 23:52:26 -0700 (PDT) From: Joel Stanley To: Andrew Jeffery Cc: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: [PATCH 4/4] ARM: config: aspeed: Regenerate defconfigs Date: Thu, 19 Aug 2021 16:22:03 +0930 Message-Id: <20210819065203.2620911-5-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819065203.2620911-1-joel@jms.id.au> References: <20210819065203.2620911-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210818_235228_749409_60095218 X-CRM114-Status: GOOD ( 13.62 ) 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 A make defconfig && make savedefconfig was performed for each configuration. Most changes are due to options moving around, except for the following which are due to changing defaults: - SECCOMP is enabled by default as of commit 282a181b1a0d ("seccomp: Move config option SECCOMP to arch/Kconfig") in v5.9 - The soc drivers ASPEED_LPC_CTRL, ASPEED_LPC_SNOOP and ASPEED_P2A_CTRL are enabled by default when the aspeed platform is enabled, as of commit 592693a1f881 ("soc: aspeed: Improve kconfig") in v5.9 - The ZBOOT_ROM_TEXT/BSS values fall out of the defconfig as of commit 39c3e304567a ("ARM: 8984/1: Kconfig: set default ZBOOT_ROM_TEXT/BSS value to 0x0") in v5.8 - I2C_MUX is selected by MEDIA_SUBDRV_AUTOSELECT, probably as of about v5.8. It was in the config as it is required bt the PCA I2C muxes that enabled it Signed-off-by: Joel Stanley --- arch/arm/configs/aspeed_g4_defconfig | 12 ++---------- arch/arm/configs/aspeed_g5_defconfig | 20 ++++++-------------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/arch/arm/configs/aspeed_g4_defconfig b/arch/arm/configs/aspeed_g4_defconfig index a578865c2d96..acaafa351d08 100644 --- a/arch/arm/configs/aspeed_g4_defconfig +++ b/arch/arm/configs/aspeed_g4_defconfig @@ -3,6 +3,7 @@ CONFIG_KERNEL_XZ=y CONFIG_SYSVIPC=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=16 @@ -14,7 +15,6 @@ CONFIG_BLK_DEV_INITRD=y # CONFIG_UID16 is not set # CONFIG_SYSFS_SYSCALL is not set # CONFIG_AIO is not set -CONFIG_BPF_SYSCALL=y CONFIG_EMBEDDED=y CONFIG_PERF_EVENTS=y # CONFIG_COMPAT_BRK is not set @@ -26,10 +26,7 @@ CONFIG_MACH_ASPEED_G4=y CONFIG_VMSPLIT_2G=y CONFIG_AEABI=y CONFIG_UACCESS_WITH_MEMCPY=y -CONFIG_SECCOMP=y # CONFIG_ATAGS is not set -CONFIG_ZBOOT_ROM_TEXT=0x0 -CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y CONFIG_KEXEC=y @@ -76,7 +73,6 @@ CONFIG_NETCONSOLE=y # CONFIG_NET_VENDOR_AMAZON is not set # CONFIG_NET_VENDOR_AQUANTIA is not set # CONFIG_NET_VENDOR_ARC is not set -# CONFIG_NET_VENDOR_AURORA is not set # CONFIG_NET_VENDOR_BROADCOM is not set # CONFIG_NET_VENDOR_CADENCE is not set # CONFIG_NET_VENDOR_CAVIUM is not set @@ -132,7 +128,6 @@ CONFIG_ASPEED_BT_IPMI_BMC=y CONFIG_HW_RANDOM_TIMERIOMEM=y # CONFIG_I2C_COMPAT is not set CONFIG_I2C_CHARDEV=y -CONFIG_I2C_MUX=y CONFIG_I2C_MUX_PCA9541=y CONFIG_I2C_MUX_PCA954x=y CONFIG_I2C_ASPEED=y @@ -214,9 +209,6 @@ CONFIG_RTC_DRV_RV8803=y CONFIG_RTC_DRV_ASPEED=y # CONFIG_VIRTIO_MENU is not set # CONFIG_IOMMU_SUPPORT is not set -CONFIG_ASPEED_LPC_CTRL=y -CONFIG_ASPEED_LPC_SNOOP=y -CONFIG_ASPEED_P2A_CTRL=y CONFIG_IIO=y CONFIG_ASPEED_ADC=y CONFIG_MAX1363=y @@ -257,6 +249,7 @@ CONFIG_DEBUG_INFO_DWARF4=y CONFIG_GDB_SCRIPTS=y CONFIG_STRIP_ASM_SYMS=y CONFIG_DEBUG_FS=y +CONFIG_DEBUG_WX=y CONFIG_SCHED_STACK_END_CHECK=y CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_TIMEOUT=-1 @@ -265,6 +258,5 @@ CONFIG_SOFTLOCKUP_DETECTOR=y CONFIG_WQ_WATCHDOG=y # CONFIG_SCHED_DEBUG is not set CONFIG_FUNCTION_TRACER=y -CONFIG_DEBUG_WX=y CONFIG_DEBUG_USER=y # CONFIG_RUNTIME_TESTING_MENU is not set diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig index 6ba30b212bda..480dbbb4ff91 100644 --- a/arch/arm/configs/aspeed_g5_defconfig +++ b/arch/arm/configs/aspeed_g5_defconfig @@ -3,6 +3,7 @@ CONFIG_KERNEL_XZ=y CONFIG_SYSVIPC=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=16 @@ -14,7 +15,6 @@ CONFIG_BLK_DEV_INITRD=y # CONFIG_UID16 is not set # CONFIG_SYSFS_SYSCALL is not set # CONFIG_AIO is not set -CONFIG_BPF_SYSCALL=y CONFIG_EMBEDDED=y CONFIG_PERF_EVENTS=y # CONFIG_COMPAT_BRK is not set @@ -31,10 +31,7 @@ CONFIG_VMSPLIT_2G=y CONFIG_NR_CPUS=2 CONFIG_HIGHMEM=y CONFIG_UACCESS_WITH_MEMCPY=y -CONFIG_SECCOMP=y # CONFIG_ATAGS is not set -CONFIG_ZBOOT_ROM_TEXT=0x0 -CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_KEXEC=y CONFIG_VFP=y CONFIG_NEON=y @@ -89,7 +86,6 @@ CONFIG_NETCONSOLE=y # CONFIG_NET_VENDOR_AMAZON is not set # CONFIG_NET_VENDOR_AQUANTIA is not set # CONFIG_NET_VENDOR_ARC is not set -# CONFIG_NET_VENDOR_AURORA is not set # CONFIG_NET_VENDOR_BROADCOM is not set # CONFIG_NET_VENDOR_CADENCE is not set # CONFIG_NET_VENDOR_CAVIUM is not set @@ -149,7 +145,6 @@ CONFIG_ASPEED_BT_IPMI_BMC=y CONFIG_HW_RANDOM_TIMERIOMEM=y # CONFIG_I2C_COMPAT is not set CONFIG_I2C_CHARDEV=y -CONFIG_I2C_MUX=y CONFIG_I2C_MUX_GPIO=y CONFIG_I2C_MUX_PCA9541=y CONFIG_I2C_MUX_PCA954x=y @@ -232,9 +227,6 @@ CONFIG_RTC_DRV_RV8803=y CONFIG_RTC_DRV_ASPEED=y # CONFIG_VIRTIO_MENU is not set # CONFIG_IOMMU_SUPPORT is not set -CONFIG_ASPEED_LPC_CTRL=y -CONFIG_ASPEED_LPC_SNOOP=y -CONFIG_ASPEED_P2A_CTRL=y CONFIG_IIO=y CONFIG_ASPEED_ADC=y CONFIG_MAX1363=y @@ -279,14 +271,14 @@ CONFIG_DEBUG_INFO_DWARF4=y CONFIG_GDB_SCRIPTS=y CONFIG_STRIP_ASM_SYMS=y CONFIG_DEBUG_FS=y +CONFIG_DEBUG_WX=y +CONFIG_SCHED_STACK_END_CHECK=y +CONFIG_PANIC_ON_OOPS=y +CONFIG_PANIC_TIMEOUT=-1 CONFIG_SOFTLOCKUP_DETECTOR=y # CONFIG_DETECT_HUNG_TASK is not set CONFIG_WQ_WATCHDOG=y -CONFIG_PANIC_ON_OOPS=y -CONFIG_PANIC_TIMEOUT=-1 # CONFIG_SCHED_DEBUG is not set -CONFIG_SCHED_STACK_END_CHECK=y CONFIG_FUNCTION_TRACER=y -# CONFIG_RUNTIME_TESTING_MENU is not set -CONFIG_DEBUG_WX=y CONFIG_DEBUG_USER=y +# CONFIG_RUNTIME_TESTING_MENU is not set