From patchwork Mon Aug 19 01:09:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1148965 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (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 46BbSG71Hwz9sN4 for ; Mon, 19 Aug 2019 11:09:50 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vWP8ZTlQ"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46BbSG3bDTzDr8t for ; Mon, 19 Aug 2019 11:09:50 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::643; helo=mail-pl1-x643.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vWP8ZTlQ"; dkim-atps=neutral Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (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 46BbS754x6zDr70 for ; Mon, 19 Aug 2019 11:09:43 +1000 (AEST) Received: by mail-pl1-x643.google.com with SMTP id d3so123657plr.1 for ; Sun, 18 Aug 2019 18:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=KGT+DPrHJzcJo1evVZQeHkuMgugd2V7RLsBMZylV4Hs=; b=vWP8ZTlQJTMQkr0R4ZIjJsiC2ok7nkxXDeASj+H+5BP+VxBRrvwIBE/JRczzY9/Z75 ED9yHGWECUOXUV+y6wo7fB1lSgEhcDMjZRSLr9fZB7Pjg4FxdVkG3e+bSWQLBmcvhawQ cJg1CcvitE7UrzGH08rn1Lnm82O4kQPW/7nchnz6MPxGuhSlXPcN5bAzGw0pes4bR+cj Rhg2UOZ1Zcy1WDF8rnyZkJ/GBKLBVfGHzwVIe1kCy5XLixXCq/Azmtbp8I0MygmS4vrW VBHU03zp0buqK+uK/icr9fGdKHvUQtrP25mlODKF3Cvx4xMwdzBthKB3C2eWc6krKoLi PP5A== 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:subject:date:message-id :mime-version:content-transfer-encoding; bh=KGT+DPrHJzcJo1evVZQeHkuMgugd2V7RLsBMZylV4Hs=; b=InzCGTlUelsp0QgvBphSQv+sz0b9ipe7JXQaQ+OGHaPcBW1tmb5Ds48K6Rs1GoOQXs WvcmEW4mKFT0GqnLdg5iLsltrEDUO7nXB6synOoVcD4Z+Z0RuOpfeuFV9cirsUQQ6pNf tp6tnwml7s8ihzKuPudZY2L6vCZByDR+XRTvTglymMp0pDMym6af5s7wbsXS4xQiFHdd p7ZKs8BPcQ7kyoUYjm4XdW+TsYUTgUxx4SY8Qpn7lEOX9tacFUJt4lFbztujmCRduhHQ ydF3cSh3qyWoOeENLIJxZMzroNL9ZoqMr2spAN9CSu9PrpFNCXD1udhu1RgMDkrM2IlK 3g6Q== X-Gm-Message-State: APjAAAXtQ0ygQ/+wzCGg7BpztM8wkq6g6G/P7xS4xN7RB8Or+vPRG5Tt /j/f+eRNEdpihY6LeHmPOmaZB//n X-Google-Smtp-Source: APXvYqwluCLnKppAtaHyDV4r+rwmUT19/Q9NfmHKr4EfKbcSFYy0U33OmVZhV5NQKjpcP72W8bW+1g== X-Received: by 2002:a17:902:145:: with SMTP id 63mr7976237plb.55.1566176980807; Sun, 18 Aug 2019 18:09:40 -0700 (PDT) Received: from voyager.ibm.com ([36.255.48.244]) by smtp.gmail.com with ESMTPSA id 203sm19185651pfz.107.2019.08.18.18.09.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 18:09:40 -0700 (PDT) From: Joel Stanley To: Jeremy Kerr , pdbg@lists.ozlabs.org Date: Mon, 19 Aug 2019 10:39:33 +0930 Message-Id: <20190819010933.20518-1-joel@jms.id.au> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 Subject: [Pdbg] [RFC pdbg PATCH] kernel: Support aspeed hardware FSI master X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" The paths to sysfs entries depend on the master driver used. This means pdbg needs to use a different path when running against the hardware FSI master present in the ast2600. I do not intend for this patch to be merged as-is. We do need to use this as a discussion point for a solution, probably in the kernel, that fixes this. Signed-off-by: Joel Stanley --- libpdbg/dtb.c | 4 ++-- libpdbg/kernel.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 6c4beeda4fe6..e2de337a7f92 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -43,8 +43,8 @@ #include "p9-cronus.dt.h" #define AMI_BMC "/proc/ractrends/Helper/FwInfo" -#define OPENFSI_BMC "/sys/bus/platform/devices/gpio-fsi/fsi0/" -#define FSI_CFAM_ID "/sys/devices/platform/gpio-fsi/fsi0/slave@00:00/cfam_id" +#define OPENFSI_BMC "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0" +#define FSI_CFAM_ID "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/slave@00:00/cfam_id" #define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom" #define CHIP_ID_P8 0xea diff --git a/libpdbg/kernel.c b/libpdbg/kernel.c index 4cc0334d7eb3..825608f13ddc 100644 --- a/libpdbg/kernel.c +++ b/libpdbg/kernel.c @@ -29,8 +29,8 @@ #include "operations.h" #include "hwunit.h" -#define FSI_SCAN_PATH "/sys/bus/platform/devices/gpio-fsi/fsi0/rescan" -#define FSI_CFAM_PATH "/sys/devices/platform/gpio-fsi/fsi0/slave@00:00/raw" +#define FSI_SCAN_PATH "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/rescan" +#define FSI_CFAM_PATH "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/slave@00:00/raw" int fsi_fd;