From patchwork Fri Mar 24 16:52:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13186999 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 7FBEFC6FD20 for ; Fri, 24 Mar 2023 16:53:35 +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=RKKTShjBaWE91IQpS/Sm/G8EhYahEAEml9bMGgRT5P4=; b=Om3lC6D5nzwkuS IDbIKqh+JtyaumQb0xWwHkrpb1bPjWztdJxGjs9vQ5MtHg6yVLt8x0ZWIObJGMT8wIElKJ/AtWa/5 nlK31TED9bfNMEZ9rkr5M65XBaPlg/4h191ah2CgPu0n6yRaw1D6dobXh78mRQjCl4RnmTXw+S8Uo i8aLLq1qkLmLcjU48CY2qHZKHNpJeVPI1UgrWgA9Vrw46fduEbVzAh6ACKef4fzFvx2MMy1IAYHvH 8NqXTmASuAPm4DUg8clN4eqopQ2yNEaMGGJwdI/KsLjlS6TeB7CzmI7dpU1yFCD9491Sszdw2zo+R kRi+W4jIVF0NRiJWyU/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfkek-0051TT-1P; Fri, 24 Mar 2023 16:52:46 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfkeg-0051SD-2f for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2023 16:52:43 +0000 Received: by mail-pl1-x62f.google.com with SMTP id k2so2348427pll.8 for ; Fri, 24 Mar 2023 09:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679676760; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=edUBi+/JtE98vJJHN+QtdymSXrKLk8rsnuO8TT7A9Xo=; b=n/HedZIpgOGlYHaborhr0HDRe9i6moZN3AGrzUx9fh+SU0olus+VN2YFUOIP4P035U txGvFG/sxNSkymNdZkW9x6Jlmnvehpd8RZA9puuB833+6nI1D2+J7XHI/wQJBuwDoO+y laiqC+5tjC1ussIxuCX0uDqN8Jx1dcrG/HQRD8m0aFKe6y+ZTEO+gAtis8/gIfqcjoZ0 fN+dVkguTtZeqFHQEXsq9UxffNcGUpFmr66w+kwNHEbgC1cOWiGt8dLD829zZIF3ZJvS /qTUtXJ9jCYAOF4Wy7d4DuKfKVinHznVR86GQz4LmrQixmFmi1lt08v/Yc/8Y6Ywf1sn BLzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679676760; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=edUBi+/JtE98vJJHN+QtdymSXrKLk8rsnuO8TT7A9Xo=; b=2YNBvu0i6wrtwVuh2ovJor1sOKKV0yjqtz7UnvRo469ZyxjGKbqE7yDnYgw6XmB2Vd 0zSNCUmdxNKr/Yo3UCxA9QScoPjSJixPIEYFHqIrVBsyoxIxr2rNvMgElY8H/WjurIzN k0DO09Ibs28GkZ58nH+0HRCSY2phBdnapZpRzIMqjsKrY0+cBaDAdbUnleIRwTsdFBVb 8VOPYJksQZJWRazKrIWbRTH0WA8ww7QZ8uuEMxb2eukTjPPw1zUyDVR7NvigG+ttv9GX 2/SCYOnS0piKlt57ITxgXlIKB9EVs+2Wzon3vM5MdCkGA20Ekabd+I9Vt65PC5CVrzIb uZvA== X-Gm-Message-State: AO0yUKXt90yDBqKFBTEGJY4UhCjuOAq0mrt8Mc349NoZBeJFPzf7OoIN 72EEF3WBoFa7f4rMm2gwL64= X-Google-Smtp-Source: AK7set9lB40pXTIpZ6/Jvv0U77G3bOXc4jE6LS+FEKk4dc8LgJek0Th1YFTyrPm7/axnF1ywBFT1YA== X-Received: by 2002:a05:6a20:65b:b0:da:bb5f:41ed with SMTP id 27-20020a056a20065b00b000dabb5f41edmr3117806pzm.61.1679676760160; Fri, 24 Mar 2023 09:52:40 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id a5-20020aa780c5000000b0062b5a55835dsm1420289pfn.213.2023.03.24.09.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 09:52:39 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Broadcom internal kernel review list , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE) Subject: [PATCH 0/3] memory: brcmstb_memc: Report more DDR information Date: Fri, 24 Mar 2023 09:52:28 -0700 Message-Id: <20230324165231.3468069-1-f.fainelli@gmail.com> 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-20230324_095242_866679_A1A0B67A X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. 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 This patch series adds support for reporting the DDR size, type, width, total width and single/dual rank attributes. This is useful for system inventory and debugging. Florian Fainelli (3): memory: brcmstb_memc: Cache configuration register value Documentation: sysfs: brcmstb-memc: Document new attributes memory: brcmstb_memc: Add new DDR attributes .../ABI/testing/sysfs-platform-brcmstb-memc | 39 ++++++++ drivers/memory/brcmstb_memc.c | 92 +++++++++++++++++-- 2 files changed, 124 insertions(+), 7 deletions(-)