Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp878786pxf; Wed, 7 Apr 2021 13:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4W7UslPi95RdZT9aOj5ADN1wg6q7v7reDwL2Aqx/AECSkK4+qmBE82e7/Ejje0kBDCV1s X-Received: by 2002:a05:6638:3884:: with SMTP id b4mr5463538jav.18.1617829182014; Wed, 07 Apr 2021 13:59:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617829182; cv=pass; d=google.com; s=arc-20160816; b=N8qO479mbwxFNsR+IKVHxPw/cvq3XSqEtLysi2HVb1qjI2f2AYxmNKB120S0B+4yjD Ad45omBHu55eB2+vsENt7glxpHrzS9QAMtFLSdicE+iMq7c3ZhgfHCRG45NTI1cibODy DkVZB3R2FaEg1Mm0ZVunNkrOM4qei/iB966K2dTQaQMqhMwx7hlJ1xqcurt8xjSSpHCl vNwgSnAyZHje9wCdOEXqxF5xak5OJmLs179UuL6FSqbRhrbdgcUilh25lyUcHtVozhVH +VqN2eZf5hmxn0kyws4CV/4+tHEnbVz4rYKg5toBgXecU7yjVdsw+nQ6VyDbj3EBMV4X YKZQ== 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=3a29ZpwxhPwXlxpNgVldcV+Rpnd8BsEHALPFTBp58Bw=; b=G+Kg81+gAkSmUdVQ22PFbiKIo8nyWjPqQ2ZGFN6qTY6TjAgPEer10FXXNb+yNj6SdK WtY3tPsI8P7pYbniXCeBFjqqcQ8vnwBEeBDDNZdviWZ0uP8SGT1sT5msfIpFZJ3gighx vNddX04UBXllVqHHgoA6hzFHq9pT42Ybnpcb8f/1O8TO/LapG6iV6iKlZrzzExdSMF4H yhqcu3AtasD+iz2lEO3tr9fQSUEqWrA/esSz2oXwJySz0U1JMrHij1qX4rcQA2ulA3uj VztNjAb9gHTjZ9PLCgamALAvEhES0fHV+GIRbiXikk/NSRoAvdoaNpB0Um9mNe7EjjuU OJ6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=WUJuUm6t; 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 g2si544393ile.30.2021.04.07.13.59.30; Wed, 07 Apr 2021 13:59:41 -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=WUJuUm6t; 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 S235556AbhDGNKQ (ORCPT + 99 others); Wed, 7 Apr 2021 09:10:16 -0400 Received: from mail-co1nam11on2117.outbound.protection.outlook.com ([40.107.220.117]:35681 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235385AbhDGNKP (ORCPT ); Wed, 7 Apr 2021 09:10:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sk3oi2qzDX8EhIq9+X9ys8xATAD98o/1a2J8xS104OOaztdy9fqF7byxtwC3VLzYA2gi0ka2goSJ7ZZon8dHW74ZhcaAAk0QLsO8zRkn0vUnEnmBv+7kZJl50nKXM0204+0R92CHq1tDmP3UIdZ2axAAHoMw2miDOMyMEtjI482L0nwCXCNw/tJu9JAd3ITBqUuB4ufuUfJPU0vgS9AcfF471NRXh5N8JMaRIiMHfbc8hO88wAbdAK0pDO2etsq7UWuO5L1GZudNB4LGS692EgJdfIXaZq43cFfWm8VGCqWpn1iS5fUiIe3HItPvfybb0JSDt0/BFdVHXqEQYLK3uQ== 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=3a29ZpwxhPwXlxpNgVldcV+Rpnd8BsEHALPFTBp58Bw=; b=SL2ZGeqr7dXlJijfrf0cUiOMXYGawpAbYfQt7XwxHJHSoS/obHFCLwt1T8qmy/Fc1ACklBtr+YXz8tElBmHwFbMVzeNna3ByFO2AC2uMP4Ai/NNanDJtmja7GmoDT1Q5g93c++/dGsRZNA4wP7vUxaz0l+zstkVztNt71uNQPZ6pYbz5OwLhSx04zO08ohFkrDh4w/vZOS3NjvZuPOhJpobiUld42ObMwWHHeWv/N1uHwLRD0eDLqARi67qjW6aN58vl6JZKYcAOUYfTHTmbloRJzwj1ii7i5dbYC4hteuSdkNI6c2vTQEbzxi8Y13BIzNyze0l35/App5EAFECfKA== 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=3a29ZpwxhPwXlxpNgVldcV+Rpnd8BsEHALPFTBp58Bw=; b=WUJuUm6tuAu4+VisFIptbnZMfjWAu/htZ3+zntik/U2uhwT18NXYfMcSILwdMhymT2y7X/WG8OVIL8K8XcUlZaDdPx+DCsMs9Da5FRuNd+GL+ZPOWIuhfHVdKfCOmMIwf3t5eq1og6a/FBC4Gc/ggy9dJjpeT7IEsvA417bF0NI= Authentication-Results: os.amperecomputing.com; dkim=none (message not signed) header.d=none;os.amperecomputing.com; dmarc=none action=none header.from=os.amperecomputing.com; Received: from MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) by MWHPR01MB2734.prod.exchangelabs.com (2603:10b6:300:f6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Wed, 7 Apr 2021 13:10:02 +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.4020.016; Wed, 7 Apr 2021 13:10:01 +0000 Subject: Re: [PATCH v2 0/3] Add Aspeed SSIF BMC driver To: minyard@acm.org Cc: Rob Herring , Joel Stanley , Andrew Jeffery , 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, openbmc@lists.ozlabs.org, Open Source Submission , Phong Vo , "Thang Q . Nguyen" References: <20210330141029.20412-1-quan@os.amperecomputing.com> <20210402142124.GV507977@minyard.net> From: Quan Nguyen Message-ID: <0e7fceff-4a01-5cb0-72eb-8b47d598f1c3@os.amperecomputing.com> Date: Wed, 7 Apr 2021 20:09:50 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 In-Reply-To: <20210402142124.GV507977@minyard.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [118.69.219.201] X-ClientProxiedBy: HK2P15301CA0008.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::18) To MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.38.33.17] (118.69.219.201) by HK2P15301CA0008.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.3 via Frontend Transport; Wed, 7 Apr 2021 13:09:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28630cce-ceb8-4ac2-f653-08d8f9c67380 X-MS-TrafficTypeDiagnostic: MWHPR01MB2734: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ETv8uoc6Dkbc7a2RBZXF5b4N2k+daHxi7QQaIIPTS9Avr+JkxHInO9D3RLbKi35tDMaEqZn6IeHxLDx8Qa0L7eFq7vxEGK+GiNTAtcHakXiO2ssMmZ+heEmICwGJjfSjrq6luuRc1EddOusCeIQAEpUEhLQoqmjFbeeRlhfgNEJJe8MiyulZPaEyD23ObhnWolXJ7ckVCYIP75e3E0gWzBBofjkcDtpATyn4LdeDCFANt4Ax2zcQBcmX/Vo6EkcFdrOEEBm1G1J2WaTc+rt0/J2ZFR5GARe3oJT1XaFHI5YzdR/JcGZdfRkFflMcf8aUK7qbyERwPo0P2dj+x47mUzz22Re5pl8YeiIwFBODIvLs1xwVMtn+hXKYOYBV0ORSMlZfKlCxVCno6/GsE3GtNt+mTjdiw2JZGx65O/Yt3yMDu04jUt7QBzjzedBBM+qVEPQV4zn+3MRd0kY6UxVXU1xw14gOz9/tYxxERB5jB8TuLMBMKNgyJQpUdlAUQN1iyX2tmoGyk3gul+u1exy73fHc0156p2ekbZQdoH66e0BHzDF1OnmOgFy2mOSdBdcMY+G9blJGzNK70VDAqvHw3iRsVDeP7Sh80EkO70eMfonIQSpabl8eN85qd+0O/IBRW6i2S4ctqdRV9E3c1hIi6FdQRWIkZrVgovKfiPHTVRUbqnC2pwRoBxrjN+XYXq3QmYKwbXwUdKUYsFBjABfKYyJDtqFuF5F4vqJWR8PPOP0/oiV6vj8ua13NuQ12giKEzEErMLU8a0u+Sh7VJbC71nBpQCFEgjhHmX0Mhq4mDO8YG1cUQju1rgidLhMTBriK1sjCpiUC8Otu9oGaNsQ3ew== 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)(136003)(396003)(376002)(366004)(53546011)(31696002)(5660300002)(83380400001)(16526019)(186003)(6916009)(2906002)(16576012)(66556008)(8676002)(54906003)(66476007)(66946007)(38350700001)(6486002)(38100700001)(8936002)(7416002)(26005)(6666004)(966005)(4326008)(107886003)(52116002)(2616005)(956004)(316002)(86362001)(31686004)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?L21jd052WDV4NTE1Zm04a1FsOTIxTkVnTDVqY0xhQUpEYjhlU0NoOFVCZEJw?= =?utf-8?B?US9Qa0NnS0t4a20wM25iRGdyVHk4RjZ0bW45bW1CK3IxUUtnMWlDMmZpRzQy?= =?utf-8?B?dlp5ZXdXcFRDMEhsOGgrbU5HNEE2QzByY0l2QUE3Rll0TnhtTTdqcEYreHNq?= =?utf-8?B?Z2ZHYnFYNWp4K0pacDN2K2poMFc2SWFGdEVlNUJKcjdOQXhQeW9Oak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VDT2x6QkxXeHp3a3JyWmtPZ29iYzBVRXRM?= =?utf-8?B?SDRMN3VSYS9KWXFxcmFKMXBIRDZ4QlZ2VVRXS0xlNlRxUTQ2RFBQeFlLSGxo?= =?utf-8?B?UUwzWDF2ZFdWWm9PUURIUXB0dmkwU0FOaXA5V2VEZG9NYTZLeGZxdEhpRWJq?= =?utf-8?B?QjE2WTF4L0NYclVUSXdMb3hUNnVOWWIwT00vbGN2cittMkFmbndENldHN1RE?= =?utf-8?B?QmdUNjJzak15Qmhmenl6NEJBc2xXS3V5NFJuZUV4aWloazVyRlFvTzAyUFFZ?= =?utf-8?B?WDM0Q2hxeVZSL1JTcXZTaXhrVE5qbDhhNmJYczV1Vm1LYWhMelBIamF5SnAz?= =?utf-8?B?eXFwZ3lyOFJRZ0o5ZUp3UExkSEZkbnlUYm1SNHdlYUxYT0VYdjUzWEpDZnVU?= =?utf-8?B?bU13cSszSlA4dWpqV04vbTVaS2ppRm1xZFhkcEJYY0lxTU42TmNiUmltQjRp?= =?utf-8?B?bGhUSjdqSjNrYlVQREFlNXdWSUJQSXV3VlRMeUZnRFd2Z1k3VHpEeCtXWTRx?= =?utf-8?B?OXVlSFNpVGljUUhlR3VZZ2ZpT3I3WGJoa3NZRmVGQ1VDYWhXbnoydDJXM2o4?= =?utf-8?B?aUxzYWRoSzlOU2x1Q21XYTFRWTJXTkE0aWFZZWNKOStkNm1udkNTQzhHNVhU?= =?utf-8?Q?GP12p8n/zESfaNVRUqk4twG91IxytSGRqsiKmyG?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28630cce-ceb8-4ac2-f653-08d8f9c67380 X-MS-Exchange-CrossTenant-AuthSource: MW2PR0102MB3482.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2021 13:10:01.3735 (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: Smz3mGe5/PgE/Tbhmfp7KovILLQx3GiGymFDRx4aGKKh0NnPuVGrtK+Ik7/UXfYYyWYpw9Zsxm2NK03auY8+XWhiHfo7SzajzQd872qGXO8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR01MB2734 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Corey, Thank you for reviewing I'll put my respond inline below. -Quan On 02/04/2021 21:21, Corey Minyard wrote: > On Tue, Mar 30, 2021 at 09:10:26PM +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. > > I don't have any specific feedback for this, but I'm wondering if it's > really necessary. > > Why can't the BMC just open the I2C device and use it? Is there any > functionality that this provides that cannot be accomplished from > userland access to the I2C device? I don't see any. > > If it tied into some existing framework to give abstract access to a BMC > slave side interface, I'd be ok with this. But I don't see that. > The SSIF at the BMC side acts as an I2C slave and we think that the kernel driver is unavoidable to handle the I2c slave events (https://www.kernel.org/doc/html/latest/i2c/slave-interface.html) And to make it works with existing OpenBMC IPMI stack, a userspace part, ssifbridge, is needed (https://github.com/openbmc/ssifbridge). This ssifbridge is to connect this driver with the OpenBMC IPMI stack so the IPMI stack can communicate via SSIF channel in similar way that was implemented with BT and KCS (ie: btbridge/kcsbridge and its corespondent kernel drivers (https://github.com/openbmc/btbridge and https://github.com/openbmc/kcsbridge)) > Unless there is a big need to have this in the kernel, I'm against > including this and would suggest you do all this work in userland. > Perhaps write a library. Sorry, but I'm trying to do my part to reduce > unnecessary things in the kernel. > > Thanks, > > -corey >