Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp195076pxj; Thu, 20 May 2021 07:25:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2IlLbgeOOd/y0PP/0qMN+vnygF4Hhzg8VrmMsaU6MAKcmJUBE4a8eLMy810zo4hKFL9Cj X-Received: by 2002:a92:d6c2:: with SMTP id z2mr6240375ilp.246.1621520739270; Thu, 20 May 2021 07:25:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621520739; cv=pass; d=google.com; s=arc-20160816; b=JtpeQVDzER7mGYC92iokyizN/8G2H30/bAg6yGFJ8eKIqBnTG+fFTWkgd/Yw41twz/ LzidXU/SFMpGLPYI2dtu2nrZN1DulEb9+ELA1MHlFt9ziUXiCKzY/O1bczLlzlcWtI7F pqKnSgKoxSOZNXrNLAJAjYDCFuGm8al5KOonKIpzVOPZQLYpYhQ6HobRuezlA+IwsZoS ZSE2ylqPxWnS+RgUk4wXDjrYF7hvGROCve4CfY42DTzzZEDoqipiClN4olAEl364UXm/ P1AHR8JUWmGg8cIfnvWeCKY/F6a946qYCZ6xsiD0PmhQlW36TahEtV9mpU7ZhGx9ZYuR vXnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=41ejgpNrRI8WUxXaYkEt/CMEql9ZR8SxHXd4tmYYbSw=; b=nR/4kBZcx+nckM24RnTsTCcobCHsCH0N4e7q8dVB4bCMfXMamPfOruGtq9etknlPNW AOJ3rdzTrYmbPhQU9G77OaWYBA5mGOxhu3ewR8/n4/vs2NvtclyDHCoVr6GJhOG08aZc T/2A40sJ7qwdg6UjfAUaW4KbYiryEkEPT+wnI+71V6/rInmUDxtN3uJN9n8CEitZvm45 i+0/9STKmjOblWq9FkgOmeIV6PtwWL3h3J3+i+nJHKrmlnsMlbhO92y5pDExeIwjDiqR +WbFuXkVsPNRPaHa4NtKbuiAdZG/nLtGH1gJ2LPmAmTZKxS/SdqJskyWVG/3LroDL3Ey GlTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=dAso35XC; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2561642ilm.86.2021.05.20.07.25.25; Thu, 20 May 2021 07:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=dAso35XC; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235004AbhETOYt (ORCPT + 99 others); Thu, 20 May 2021 10:24:49 -0400 Received: from mail-bn8nam11on2091.outbound.protection.outlook.com ([40.107.236.91]:38593 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234419AbhETOYm (ORCPT ); Thu, 20 May 2021 10:24:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KSczIRa/9CweTDv+QiurnaEqEcbjDwIKBjxPSGYfw2F96JEa0dDy1JS7K5q3fPZ0AA036d9VD2zYKsUtZm/ch2acdp/viE8D2TAg46q8n5psp5CZ2a2zK4f3OSEZnx/e7hpJgvOR68yQ+O2L/nXMEM3C0L7kA3bvPtqVZwPOKRkKdfNepULgCtQ/upBzqDnsJgmBujKy53A/h95+X9xaq5NqNuNNnl1royFiJCA68uI+ohn5znXgWoDKHBYp5/d1Pjc1gaKtV9919dHqZ2o3zDAe2xXAKiJAeqlWoOARywzFBkooOsUCnAwVM0CHiLqrL3ql+3TJJp8w9nFV/NKSLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=41ejgpNrRI8WUxXaYkEt/CMEql9ZR8SxHXd4tmYYbSw=; b=fA+eAYiqGEhpCy1NuO6L//N6ekRgMQHiSbyJraotJlPZONVZw6aKb+AAjYhhYw9P/ejnuEKO2pR4g4S6J90nGjMSI7afiaYSRz/qduuDH/wSxBI2flpIc87WBir3XP3bBb/skbuE46MVDf0seiVVRU1FvG6iM5kqa2guX8o1cvuI2X9m2lI9mzi4RRU5SMIdZzNX55TjZKH8kjx3B6gtLKAK3k+Zs3DGxX8b5Jn3cXTc4cvGfWKQAwVtEzculGJ8jiVUzHrbp27+LcwC8ELcUZFTtjW06eHOtyOp0urULhg6Yg60XKEdYUDweRutSwSJ/B1zJTUa/VVTH939We+DUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=41ejgpNrRI8WUxXaYkEt/CMEql9ZR8SxHXd4tmYYbSw=; b=dAso35XCgcf+zY/t7A9NClsQ9vaerQ24MRGZ3ECwPdWPpaYs4Hk6R4O0Ey8hH++vw/MVXBfEDrD9bVO8xctDA9F8KSGQAqpwRR/7ZUJtEZP8PvRkSGBsOlw/Cp2X9a+Z6moPNeMldkwofq4DecVVTu8SxUbwrf3oJ8AVEetPdmY= Authentication-Results: lists.ozlabs.org; dkim=none (message not signed) header.d=none;lists.ozlabs.org; dmarc=none action=none header.from=os.amperecomputing.com; Received: from MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) by MW4PR01MB6146.prod.exchangelabs.com (2603:10b6:303:7c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Thu, 20 May 2021 14:23:18 +0000 Received: from MW2PR0102MB3482.prod.exchangelabs.com ([fe80::d840:7aa7:58d4:b503]) by MW2PR0102MB3482.prod.exchangelabs.com ([fe80::d840:7aa7:58d4:b503%5]) with mapi id 15.20.4129.034; Thu, 20 May 2021 14:23:18 +0000 Subject: Re: [PATCH v3 0/7] Add Aspeed SSIF BMC driver To: minyard@acm.org Cc: Rob Herring , Joel Stanley , Andrew Jeffery , Brendan Higgins , Benjamin Herrenschmidt , Wolfram Sang , Philipp Zabel , openipmi-developer@lists.sourceforge.net, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Open Source Submission , Phong Vo , "Thang Q . Nguyen" , openbmc@lists.ozlabs.org References: <20210519074934.20712-1-quan@os.amperecomputing.com> <20210519123401.GG2921206@minyard.net> From: Quan Nguyen Message-ID: <58adf982-bf9c-f706-68ed-c25be43a22fb@os.amperecomputing.com> Date: Thu, 20 May 2021 21:23:04 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 In-Reply-To: <20210519123401.GG2921206@minyard.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2402:800:623c:5f9b:6031:ff4f:8fc2:44d0] X-ClientProxiedBy: HK2PR02CA0201.apcprd02.prod.outlook.com (2603:1096:201:20::13) To MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2402:800:623c:5f9b:6031:ff4f:8fc2:44d0] (2402:800:623c:5f9b:6031:ff4f:8fc2:44d0) by HK2PR02CA0201.apcprd02.prod.outlook.com (2603:1096:201:20::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Thu, 20 May 2021 14:23:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c4d19aae-c578-46a3-00fb-08d91b9acffe X-MS-TrafficTypeDiagnostic: MW4PR01MB6146: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o7XJcXzu0tBS/1tUQO3bEwWHdW8wOh0gcdS9RGmudeULRkxPZn0F2JwdNaSZdEPugI++FcnCFIoOv6OpSuKOUlc+0w31exKiKIeH7DdqpWT/YMQ3sSPdSe8AMYCTBwS8L/DSNlSAe9BMOSgHI/LRl6WYxJb2ShMP2JUO9cDAse8XIebjFaIAilfjwJ7h2A6B+0zfa4Ayx7V6gyUTwzX/wrC43XqmHx4DBPff1t3egmjM3zScxoslPs0S1/dGa/hiC45+KTxUt8SO/RPb4y/3UdXT7LrxhZrMu/970d4QwSrXbN4l26MKewGDRDhOParRIn3WPTbIb/NLFsukosP7Wn8xihE0m016P4ZY2L2mdImbDrfglU2Z1YBw8Cih+cBJaZpL6KRdSY4ILfwaUPYteX7o8fS/l7zSJudvRP/zSc+hLUunSioe5rH9elJDyjZ1oRa/mX8gEImTboQVqcBpuiGZP/xOkzc/DKNp4zGBwNdLJcLyLUeCb5KJ6SZqRjWtYLn20ANmVGpvk0nmEoFqQ/tPDDhHpgJCgGW5IU9ZsfqJKiLzL8AxtnUH2A5DAbbEDPLGdPVzL8Ln0ldEI8xuZjiVwTZz9iHsqQTcEQ2urAKOLC5y2JFxJif0LSWyCpgsUtyVUnMzbRYjp2lQpwHtsAUTtDsPJ3FF6FmwezF4wulfZS6M04jI/QBCA46bsb+t X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW2PR0102MB3482.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(39840400004)(376002)(136003)(396003)(366004)(16526019)(316002)(8936002)(86362001)(186003)(53546011)(7416002)(52116002)(66476007)(6666004)(38100700002)(83380400001)(4326008)(2616005)(6916009)(5660300002)(6486002)(66556008)(478600001)(8676002)(54906003)(31696002)(66946007)(2906002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?cXVQSnFORUJ2RTdYZENWaWh1WkVvaVhNcDE4TWw3QXgxNzFQWVFjQlh4Rndh?= =?utf-8?B?QThCR0NacHgvcWRpZzFQclhScVQ0bnI1S1pjWGFFNWVINW92YXVMU2JPQVBU?= =?utf-8?B?clF5bUplR2xxQTFPck9QQmFlV1l3dGlSQWEyRTBIVnlBWllQWXhMUnNMdmJM?= =?utf-8?B?VEZLU1djWGVscDZMYmZDcVJmWTU3Y1ppeDF1NW1NbnNaMG9pUVJiZ2F3alpX?= =?utf-8?B?bTltd25KUUljUWZFZ0ZZb2p2Zk1OcEc3M2x3T2ovN2V4MTg0dXhhcGx4alhY?= =?utf-8?B?SkszekZnc2o0VjhTVTErN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utf-8?B?c04xbDlTalRDUDJGa1ZDdUw2U2lwV3I1UFBIOGVhVlUyZlJOT0ZtU0piek9U?= =?utf-8?B?SzdrOTQwOUZmREkyWW45SzM5SEVvNEdLamZwbWFSWW4zeFQvS09zcGZyVGh4?= =?utf-8?B?YnN1QmZmTGsyU0JRZUpkSjBlUjh4L1lZNnJMaXZSOG12N3JFRlV3cnFoM1ZL?= =?utf-8?B?L2FYeHNNS2trOUhTeFF4RStsQ1p1VkFabTFySGRUYittSEI3MTB1czJnVmlK?= =?utf-8?B?ZXNwUlI4N1hjZWlZY2x2L21GSDJiQTdnMW45cGVuNFg1Mm02MjBzN1kzYW8z?= =?utf-8?B?RlczUVQwQnRDeXdqQ2UyZjhzUFBrb0xra2ovd2Zna1lncGRmRzN4eFMxVzJY?= =?utf-8?B?MkxFa25tcmh0TXljK1lVbW40RG1mT2VSMEtCQXlNQldidjZMOGEvSER6SldJ?= =?utf-8?B?Y3EwZjN0REt4bENldlRBS1d3TVAyc1IrdVNIY1lHUDA5RGRwVWU0UTc0UHhN?= =?utf-8?B?aWVtMTVtQTRWYzc3SEFUWXFnalJjMVprekljK2Mrams0UkRpVFdFS1pvNFJy?= =?utf-8?B?bHY4WTYwRml4R3pYdGMxa2h3WnovajE2bnBEcmQwVVZmc1p6NU5HZDRMSjJP?= =?utf-8?B?N0hTMi82YnVNSVV3bHo4bWdIK05PVU8yZjZGNVFHbHNET1BSNjhyVEFIWllW?= =?utf-8?Q?UPwBkDuMxpQPU?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4d19aae-c578-46a3-00fb-08d91b9acffe X-MS-Exchange-CrossTenant-AuthSource: MW2PR0102MB3482.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2021 14:23:18.1417 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6CrKnUqmKF3oAfw/ZWj+yS0idUniqika+2A/OwY0slpAsSVeoPuMvsNQXqlIjTiK8rRKc9/fe3kG5YNiU7TFo2VKikax2aimwmwUIch1eSU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR01MB6146 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/05/2021 19:34, Corey Minyard wrote: > On Wed, May 19, 2021 at 02:49:27PM +0700, Quan Nguyen wrote: >> This series add support for the Aspeed specific SSIF BMC driver which >> is to perform in-band IPMI communication with the host in management >> (BMC) side. >> >> v3: >> + Switched binding doc to use DT schema format [Rob] >> + Splited into generic ssif_bmc and aspeed-specific [Corey, Joel] >> + Removed redundant license info [Joel] >> + Switched to use traditional if-else [Joel] >> + Removed unused ssif_bmc_ioctl() [Joel] >> + Made handle_request()/complete_response() to return void [Joel] >> + Refactored send_ssif_bmc_response()/receive_ssif_bmc_request() [Corey] >> + Remove mutex [Corey] >> + Use spin_lock/unlock_irqsave/restore in callback [Corey] >> + Removed the unnecessary memset [Corey] >> + Switch to use dev_err() [Corey] >> + Combine mask/unmask two interrupts together [Corey] >> + Fixed unhandled Tx done with NAK [Quan] >> + Late ack'ed Tx done w/wo Ack irq [Quan] >> + Use aspeed-specific exported aspeed_set_slave_busy() when slave busy >> to fix the deadlock [Graeme, Philipp, Quan] >> + Clean buffer for last multipart read [Quan] >> + Handle unknown incoming command [Quan] >> >> v2: >> + Fixed compiling error with COMPILE_TEST for arc >> >> Quan Nguyen (7): >> i2c: i2c-core-smbus: Expose PEC calculate function for generic use > > Note that for this I2C-specific change, I will need acks from the I2C > maintainers to be able to include this in my tree. > >> ipmi: ssif_bmc: Add SSIF BMC driver >> i2c: aspeed: Fix unhandled Tx done with NAK > > For the aspeed changes, they don't really belong here, they belong in > the aspeed tree. I see that you need them for the device to work > correctly, though. I'll need acks from maintainers to include them. > Thanks for you information. Will separate these i2c-aspeed's patches into other independent series in next version. >> i2c: aspeed: Acknowledge Tx done w/wo ACK irq late >> i2c: aspeed: Add aspeed_set_slave_busy() >> ipmi: ssif_bmc: Add Aspeed SSIF BMC driver >> bindings: ipmi: Add binding for Aspeed SSIF BMC driver >> >> .../bindings/ipmi/aspeed-ssif-bmc.yaml | 33 + >> drivers/char/ipmi/Kconfig | 22 + >> drivers/char/ipmi/Makefile | 2 + >> drivers/char/ipmi/ssif_bmc.c | 605 ++++++++++++++++++ >> drivers/char/ipmi/ssif_bmc.h | 93 +++ >> drivers/char/ipmi/ssif_bmc_aspeed.c | 75 +++ >> drivers/i2c/busses/i2c-aspeed.c | 51 +- >> drivers/i2c/i2c-core-smbus.c | 12 +- >> include/linux/i2c.h | 1 + >> 9 files changed, 884 insertions(+), 10 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/ipmi/aspeed-ssif-bmc.yaml >> create mode 100644 drivers/char/ipmi/ssif_bmc.c >> create mode 100644 drivers/char/ipmi/ssif_bmc.h >> create mode 100644 drivers/char/ipmi/ssif_bmc_aspeed.c >> >> -- >> 2.28.0 >>