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: 1518468 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=H526agwf; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GqwSG5zcdz9sxS for ; Thu, 19 Aug 2021 16:52:30 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GqwSF5lM8z308Z for ; Thu, 19 Aug 2021 16:52:29 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=H526agwf; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::42d; helo=mail-pf1-x42d.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=H526agwf; dkim-atps=neutral Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GqwS54GsDz302G for ; Thu, 19 Aug 2021 16:52:21 +1000 (AEST) Received: by mail-pf1-x42d.google.com with SMTP id x16so4594513pfh.2 for ; Wed, 18 Aug 2021 23:52:21 -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=sRoRWjc+Dy4fEWDzz9AcGpCEKDW/Xn1n7zLVAj4f+6qFaspacBehkd44JEwawh/siW sIayOJlj8XOvXKEj9nJyI+f+leyU58BUY/s1sWgKg72vPlOSrJ+duCNH4ZthBYbJ/vAg GyewQYcqDyuVHpO/yQu8Z2llRdSB87Es094XQiNvVaHCqJMJmafp9+54wP+Mi9Vp/12p MGhvzMypTWHdkg0Tm51m68BDXVGtgQ+CO2ElWtuRN4mbrmYj3nHr37yV4o77X7ldPREC Nxjqx0NbAHSXCF3VmhEBppCs3G8x9yOMJrTWe0//yz6EvK+BJ34wvW9Cz2yXSfAPTX2/ qEOg== X-Gm-Message-State: AOAM532DerHFirTlqAbIT2qU/h4eMfdNt9eyLy1zT8rBUzHtSAt8+wX/ iMnKsGuQS444jua2nXhsSEw= 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 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-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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: 1518469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=NRo7JhDr; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GqwSK40S6z9sRf for ; Thu, 19 Aug 2021 16:52:33 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GqwSK2qsWz30JG for ; Thu, 19 Aug 2021 16:52:33 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=NRo7JhDr; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1035; helo=mail-pj1-x1035.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=NRo7JhDr; dkim-atps=neutral Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GqwS80Lgtz2yYd for ; Thu, 19 Aug 2021 16:52:23 +1000 (AEST) Received: by mail-pj1-x1035.google.com with SMTP id mq2-20020a17090b3802b0290178911d298bso4105660pjb.1 for ; Wed, 18 Aug 2021 23:52:23 -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=G3jBafRCJxY3QO2pBlsKTK4kZnTflKiEYw5SaZTUAgcIsSNFnHUy3M8CUJrpgpBxHt yS/CU9V1XIloj8YRaf0OVshMKm4C76JrA40d5dkxMWp+Ee0uG0a7pYVZ1jyGpdhg51zN hEw0YY90AR0I6dER+j+jI6grPTz+rALAncACvC1UCOR7/YaLw+xH6WTBKE9rkXWqFoLZ /34l3Y1QbFz4Zg/kKnGOGQiFREEmg/p+j2fMMv1TU5FyIZjzxmML0HxWAEQQ/KorjALC HG5M8+Ef76BURSsi1WyRdQ25VIx/AbyRERgTxC73cTGgVZbgJQYrHwh7NgUK6GYQRDHl Dvog== X-Gm-Message-State: AOAM532EDER1sUuxLOHW6vyadoZh+iyyASOsfOg0QyTTBBkirj85Af+W iJnwqQiZYYdgYSxYwmVxdsI= 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 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-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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: 1518470 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VYSb21XK; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GqwSM692fz9sRf for ; Thu, 19 Aug 2021 16:52:35 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GqwSM4clQz3cHb for ; Thu, 19 Aug 2021 16:52:35 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VYSb21XK; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::102b; helo=mail-pj1-x102b.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VYSb21XK; dkim-atps=neutral Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GqwSC0zD4z3bZ6 for ; Thu, 19 Aug 2021 16:52:26 +1000 (AEST) Received: by mail-pj1-x102b.google.com with SMTP id oa17so4316250pjb.1 for ; Wed, 18 Aug 2021 23:52:26 -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=jC0ymu6vpbluSY1GVtucWsXrmohXt7rzzrQzTx8a5VlH69aXE0v296cTii2YHq59wU /mMrKDHbZ4ZBFzfPg1+K97UK4mPSl63lXJ1jqqAvjPJOmidj6eQ3mMIc6YFxVavDEjpH wmQ65fqPvvnjg0+MzTQOWvcvT8laXawtbUspi/AXi6Pqq1VnBP4cdM/1MpyFfVS1Oa1g jsy4+N0imhp5DeMh+wOwFDGq5StAyNyp27X2iLCZQlMlSu+7fIRER+x3sUWQMNOYr2Vp NVhlBMp4o7dVrzDiczvYMxJJdBJytcLF9VhB+Z7WHh3qJriUdk6EWGexvKFsDjtiV0nc 75pA== X-Gm-Message-State: AOAM5335rjDqKVylY4gmXu0e0FBz32qpUhpX2wm0mktn9o+T5Ya85tzM yyc2qRtXxcam7oHwFBtvx0A= 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 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-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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: 1518471 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bSjEvlCD; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GqwSR43b6z9sRf for ; Thu, 19 Aug 2021 16:52:39 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GqwSR2zLMz2yxF for ; Thu, 19 Aug 2021 16:52:39 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bSjEvlCD; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1030; helo=mail-pj1-x1030.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bSjEvlCD; dkim-atps=neutral Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GqwSG360kz3bZr for ; Thu, 19 Aug 2021 16:52:30 +1000 (AEST) Received: by mail-pj1-x1030.google.com with SMTP id bo18so4373834pjb.0 for ; Wed, 18 Aug 2021 23:52:30 -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=mpGmJGLBatMIj9WCLJ30T7kc3FdthDxgApHMJ1u9kI98qu6LSlTmpZ1LTYiy4vhyu1 gjMIfagYKBJQS1YLl1h+0J7ol+D5Is/1kYbNEHK+8BGGNvi1XmA7mtCa7rb/BqpiClPp JWFKvI3mcGXHExJ1pEXP5xSQWH/cacHmL4kvaP/+aaAnbLAhsC8BbxFF4XHozJeNX9G0 OJa+ouQaEQIlBrrSzbxMOCljU249QWC34aboAtt9nqRGK7sD54cWtceBqfwKbEaS/cSt 7WpJul5M1b0PRYq073hHKyUXVyQWjmUjI1qINOiPB1+3y7tQgCOke2X+ZLntbxgrmP4G Tr3A== X-Gm-Message-State: AOAM531MpA0nydAPQGUIjP6IdyGoZX8IfWuURRiteZD+GZsORm5kS120 AZtTfWLYLmDxh80f7zX/b6XvFqRFICs= 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 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-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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