Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1006793rdb; Fri, 16 Feb 2024 02:20:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX86khJkNnfwTT0A2JEFhGk2/9sg0dPiEa8SqzDwU0r4gxqxp0CAoN9HhrLIcJMJuFkGMIFFSRend3mwCAyBA/wqcwZt1/G4KszVk/cOA== X-Google-Smtp-Source: AGHT+IGURDWCRM6WPnVzYGFy45l9t+BkMg/xK2yorvNQmFIUpxnYQ9FKL0UamRuubA76Co/HvvqP X-Received: by 2002:a05:6a20:6f02:b0:19e:840f:34d9 with SMTP id gt2-20020a056a206f0200b0019e840f34d9mr9736305pzb.29.1708078857096; Fri, 16 Feb 2024 02:20:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708078857; cv=pass; d=google.com; s=arc-20160816; b=mdiGw0s4d9Gp95t4mW72eETgONiUcNG0/KAEcChs8Qwf5mXIudtz2Onp+9c9Cw8NzA POFfWxLgodu43cn+fY0uPkVOca+wkBBIYTc4571vbLYrQEdyKiGNDiK6ogY5LCTzWPfY /neh03w9YJsNeQS0RpKzRJz56+jjVyJYDoN+OP8bWs4bF3r0EPchohGbHrMl08cYYYfr NK1nDWef3yZrOZBgnFOEBo2hmWhVNIUG2Ma85nEBhY6nfx+ZyKFr0XRokudM53joA0GO ZyYtKC2RCRWR9hKx21epFwCCvJelZf3vTr/q541hL2pgkiXAC9k/1qLl5HjLWzWt5UJn Osrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0elf/8DBFF9nD7HnEVv8mQ6pIMWx7HsQOmIWp2FVY/8=; fh=PkxoX1QikBmnuHbv9FDvtMc1IIYqRwbATLPVPDECci4=; b=vy+5ctE+a25srD1qsGPbl4iT9/JSbfhxjfv1DkjNBVsQwvPnFkXvuZuZf0CP657fFk PdXeBDMJxZ1OUwFxpbC2xv//NIXa3Q11q9O8yvi8thMF/JUwcLUBHtEZrKEWzyj80PME rVN+aRYDYOEfbbMeWeAhne2fu0rlSlqv6wjH6EgjJ7caq0VvUGec/y/LHeEvvLpZ6EC9 zG+ChPR/vdQSPaM0JIp5pw9qdXPwhW/Id11wdAYXcPmyPOukJgYcW7UPPiWFMX49UC3I C9yGiShIVe3JzvF+xHtJcJ11SB7v9lhoGYvS+FpL81ec1MKO/VPFNInyoZgQkXfuMxXP ulrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=AX393ypt; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-68437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c7-20020a633507000000b005d5d74411fasi2695599pga.207.2024.02.16.02.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=AX393ypt; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-68437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C2CB428158A for ; Fri, 16 Feb 2024 10:20:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89CEC24203; Fri, 16 Feb 2024 10:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b="AX393ypt" Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2E8C1F5F0; Fri, 16 Feb 2024 10:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=71.19.156.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708078847; cv=none; b=Hrd/C11iHvHpd8tg4iz2NttkOAByrr0P4uHSUskR8nvfTtvVtjeFeMAW7uvOejs8s9zirsZiPbTbUND0nDLcwVWw2FvI890z7W9QBHwMFQOI2h/zDIfSz0sVfN+htr9aCHep7TaUD7fUDrGlxTx/IddF9JXacGIMf83A73SRgjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708078847; c=relaxed/simple; bh=BPY8Q0Fuy+ZVui7wIHHsxpFY4u2pgVOODurhQIxaRYs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QS8igAjZQyYN0TEmo8WQ7ZKSQ2oSwatgLyElVxmaq8VBkHKNZQ6Y4XDeHi3EGrVVNCYKsB8Hoc4LlOYmI1Y7Dyb509mpddzJgyg5IT+2KIXNVFl5X3Ls1ExF10PzZGSjg+q84xbODUHg8s/Ef3UWov1GFqrRsNxdrXmRzYAHpVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net; spf=pass smtp.mailfrom=bewilderbeest.net; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b=AX393ypt; arc=none smtp.client-ip=71.19.156.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bewilderbeest.net Received: from hatter.bewilderbeest.net (unknown [IPv6:2602:61:712b:6300::2]) (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) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 6F548E24; Fri, 16 Feb 2024 02:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1708078838; bh=0elf/8DBFF9nD7HnEVv8mQ6pIMWx7HsQOmIWp2FVY/8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AX393yptT4D1gnQTL0SLZpDFwTppZK18wmPWMfWUEguKzpArW7XJbW9RmHc7uDS3v lSn7hSHxdHJVDHwQ2GW752BbF48UPsRnW215LappvaIN+6EqLREBTK2sY8cpdpfGk8 NTZIiTekG3ROb8sdELVBPNOYpons8lbxnHLAKzm8= Date: Fri, 16 Feb 2024 02:20:37 -0800 From: Zev Weiss To: Manojkiran Eda Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , jk@codeconstruct.com.au, Patrick Rudolph , Chia-Wei Wang , Ryan Chen , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH] Add eSPI device driver (flash channel) Message-ID: References: <20240213-espi_driver-v1-1-92741c812843@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20240213-espi_driver-v1-1-92741c812843@gmail.com> On Tue, Feb 13, 2024 at 06:36:08AM PST, Manojkiran Eda wrote: >This patch adds the driver support for the eSPI controller of >Aspeed 5/6th generation SoCs. This controller is a slave device >communicating with a master over Enhanced Serial Peripheral >Interface (eSPI). > >eSPI supports 4 channels, namely peripheral, virtual wire, >out-of-band, and flash, and operates at max frequency of 66MHz. > >But at the moment, this patch set only supports the flash channel. > >Signed-off-by: Manojkiran Eda Hi Manojkiran, Glad to see this progressing again! It sounds like there may still be some open questions regarding the approach, and as others have noted there are things included here that should be split out into separate patches. I did try it out in its current form though, and encountered a few problems... Firstly, the calls to dev_notice() all appear to be missing the struct device * as their first argument and hence don't compile (I hacked around this to get it to build). Second, the device-tree updates only include aspeed-g6.dtsi, so I manually imported the corresponding aspeed-g5.dtsi change from the last version Chia-Wei posted [1] and used that for the AST2500 system I need eSPI support on. [1] https://lore.kernel.org/linux-arm-kernel/20220516005412.4844-1-chiawei_wang@aspeedtech.com/ And finally, after making the above changes and running it I got the following during boot: [ 0.288079] aspeed-espi-ctrl 1e6ee000.espi-ctrl: something went wrong [ 0.288120] aspeed-espi-ctrl 1e6ee000.espi-ctrl: failed to allocate flash channel I'm not sure if there's some change in this new version such that the dtsi patch I imported from the old one no longer works, but if nothing else it might at least suggest that the error messages could be made a bit more informative. Thanks, Zev