Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1495722rwb; Thu, 8 Dec 2022 11:21:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ULsZbjQBnG4lqzUsCjuV8HL7i5j5Knq/FGhpBQIN8rtCivF/kQ+VPEdf0pkpIzsE0zx1U X-Received: by 2002:a17:90a:f986:b0:219:4bc1:219b with SMTP id cq6-20020a17090af98600b002194bc1219bmr47313680pjb.105.1670527295676; Thu, 08 Dec 2022 11:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670527295; cv=none; d=google.com; s=arc-20160816; b=JvQjdpQJg9K9yuR143ur6dAqNKPEI8jEvlTDOLDwrqRFFMo0voNOWbIhl1Pt68KLEg umI7OXeAlxwqeDfwW6FDifCaaLlcxNUNclji0a1tB4XaRVVDeBaC13nDZrvYqOcIiBMS L9JAsQktiJkpFBd26KfgEaXVCyXVmV2+7yLySoNSZ6LYk8QnDw6SRIJCVinKH1IoKLeZ kwhh6uSt21cPgQJsACkQ+dfmvbx+Bl0rXcZqfFgP0iTdcd0iPGk19LQ7hlyJiq/SHcHk YjuxMe0tZx0oglMswVliigKmOZiOEi2P70PPKamvWBDTV1OXyyA7O87aIAbOjB8tEDxj +1Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+1VVUcW2d/r4TNKwvpnKWV11TO1c/pvTjCV/IvxcjRo=; b=hv2js4BLo9t1aplqKLNzbZ/ZbQ1WQL2Pr4GhN2b7oi+Sy6KrBtxL++1DPa0Bwx5KWC FxdZ24cVUpH1B0c9lKSZMtLOdgNgmZoBvPAggdD+1qVQORNnrma8dCifLnF0dTq+uWl0 xzD2pIESuhz7Thu58cUji571PmhPKQ6jo4wJk4p/4o/d+KDnlHJ4g+oDAChkr/7pZZtf +vQPov0s/uyt+Z6Nb/p788ge7g7eVylcmSDIWr9RkmcwaqBjUKxF3/wKkqh+MzkjrvS5 7i7LK53tHcHJCsjPRI20VwBO9Qb+4qwZ+rAcgHSflUlc4GIu/H/kHoo1g3BzGJb/uKeC Mvow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WJb7TRXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a170903230800b00188e9ec511dsi12681417plh.397.2022.12.08.11.21.27; Thu, 08 Dec 2022 11:21:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WJb7TRXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbiLHS1D (ORCPT + 72 others); Thu, 8 Dec 2022 13:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbiLHS0w (ORCPT ); Thu, 8 Dec 2022 13:26:52 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D37F88B1A3 for ; Thu, 8 Dec 2022 10:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670523950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+1VVUcW2d/r4TNKwvpnKWV11TO1c/pvTjCV/IvxcjRo=; b=WJb7TRXwnCFuj+7XPr7gVVGIYQk9GBARIM1HWWhmjDSzT7J4/qELYi4WzPvNuVQFDTggds aQY+SSiaGEAVh7y2242SoPZROZp5EjQhkXogimzlVjonKesPYTPtjxvziI7v8vJCiwKCXz lr6bdzW3c+CKN4djW2hXeQXDbfHMtnc= Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-634-DIPx9ssCOYixmMrCBp4cFA-1; Thu, 08 Dec 2022 13:25:48 -0500 X-MC-Unique: DIPx9ssCOYixmMrCBp4cFA-1 Received: by mail-il1-f197.google.com with SMTP id 7-20020a056e0220c700b0030386f0d0e6so2067117ilq.3 for ; Thu, 08 Dec 2022 10:25:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+1VVUcW2d/r4TNKwvpnKWV11TO1c/pvTjCV/IvxcjRo=; b=AtHJgpKZgdFIxKj7sdNDFB9W/aQHYaMbBD8cAlSlRb+bUxIpwKa8nfDsIkrxr/EHaj yrQsYXlWePqZa4lF9vKh3hXftSGPYmrOBMQyHEvFmjdd58QXoWXYGKJEeVj04PzOXMNW 3oHF39M1XaZFe01rNEZkRjDtSZzDOe5p+SzYgtgAUcIAZ9nqoMjjE6Z/7exx5OdWhUmK J8U8ZR8UCAMiwUAmuSFcbHHTJq/ly/zLZAaIYpmYp1nxW/7dpDAka7xkAFsUwtx1Zlc9 rmay8IrgxpagGaVLfPMSd5+UdDWul4ct3qKzf0cuogKZ2FhNIQHYRiCQ0mxGepEWom5K HY2A== X-Gm-Message-State: ANoB5pkVlZp/33hN0AU4wU6y8OiJV39sf8ZJLfSjj5QoIhABe3iFy3+M F5WX1cIPWBL8D3vyCOgoMpcSy7zDxGgZnpolYNLfBP10QU9VyGP1UpWrUXEL12vue5CriXJ9wzd Hsns+vsLCY79kQ4Ra6rjEuDWalNt7qvy+rsUcwLSy X-Received: by 2002:a02:c737:0:b0:375:1c5f:3127 with SMTP id h23-20020a02c737000000b003751c5f3127mr35668694jao.251.1670523948074; Thu, 08 Dec 2022 10:25:48 -0800 (PST) X-Received: by 2002:a02:c737:0:b0:375:1c5f:3127 with SMTP id h23-20020a02c737000000b003751c5f3127mr35668682jao.251.1670523947849; Thu, 08 Dec 2022 10:25:47 -0800 (PST) MIME-Version: 1.0 References: <20221202223327.690880-1-luzmaximilian@gmail.com> <304bce39-2ece-863c-33b3-b432685faa2d@gmail.com> In-Reply-To: <304bce39-2ece-863c-33b3-b432685faa2d@gmail.com> From: Benjamin Tissoires Date: Thu, 8 Dec 2022 19:25:36 +0100 Message-ID: Subject: Re: [PATCH 0/9] platform/surface: aggregator: Improve target/source handling in SSH messages To: Maximilian Luz Cc: Hans de Goede , Jiri Kosina , Sebastian Reichel , Mark Gross , Jonathan Corbet , platform-driver-x86@vger.kernel.org, linux-doc@vger.kernel.org, linux-input@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 8, 2022 at 5:49 PM Maximilian Luz wrote: > > On 12/8/22 17:24, Benjamin Tissoires wrote: > > On Thu, Dec 8, 2022 at 5:03 PM Hans de Goede wrote: > >> > >> Hi Maximilian, > >> > >> On 12/2/22 23:33, Maximilian Luz wrote: > >>> We have some new insights into the Serial Hub protocol, obtained through > >>> reverse engineering. In particular, regarding the command structure. The > >>> input/output target IDs actually represent source and target IDs of > >>> (what looks like) physical entities (specifically: host, SAM EC, KIP EC, > >>> debug connector, and SurfLink connector). > >>> > >>> This series aims to improve handling of messages with regards to those > >>> new findings and, mainly, improve clarity of the documentation and usage > >>> around those fields. > >>> > >>> See the discussion in > >>> > >>> https://github.com/linux-surface/surface-aggregator-module/issues/64 > >>> > >>> for more details. > >>> > >>> There are a couple of standouts: > >>> > >>> - Patch 1 ensures that we only handle commands actually intended for us. > >>> It's possible that we receive messages not intended for us when we > >>> enable debugging. I've kept it intentionally minimal to simplify > >>> backporting. The rest of the series patch 9 focuses more on clarity > >>> and documentation, which is probably too much to backport. > >>> > >>> - Patch 8 touches on multiple subsystems. The intention is to enforce > >>> proper usage and documentation of target IDs in the SSAM_SDEV() / > >>> SSAM_VDEV() macros. As it directly touches those macros I > >>> unfortunately can't split it up by subsystem. > >>> > >>> - Patch 9 is a loosely connected cleanup for consistency. > >> > >> Thank you for the patches. Unfortunately I don't have time atm to > >> review this. > >> > >> And the next 2 weeks are the merge window, followed by 2 weeks > >> of christmas vacation. > >> > >> So I'm afraid that I likely won't get around to reviewing > >> this until the week of January 9th. > >> > >>> Hans, Jiri, Benjamin, Sebastian: While patch 8 ("platform/surface: > >>> aggregator: Enforce use of target-ID enum in device ID macros") touches > >>> multiple subsystems, it should be possible to take the whole series > >>> through the pdx86 tree. The changes in other subsystems are fairly > >>> limited. > >> > >> I agree that it will be best to take all of this upstream through the > >> pdx86 tree. Sebastian thank you for the ack for patch 8/9. > >> > >> Jiri or Benjamin may we have your ack for merging patch 7/9 + 8/9 > >> through the pdx86 tree ? > > > > I can give you an ack for taking those through your tree, but I can > > not review the patches themselves because I was only CC-ed to those 2, > > and so was linux-input. Given that SSAM_SSH_TID_KIP is not in my > > current tree I assume it comes from this series. > > > > Anyway, enough ranting :) > > Apologies for that. I should have included you in the CC on at least > patch 2 as well, which introduces this symbol. No need to apologize. There is a tight balance between not annoying people with too many emails and then having those people wanting to have all of the series :) I have enough trust in Hans to know that when he reviewed the series, he did it correctly. > > FWIW, here's the patchwork link to this series: > > https://patchwork.kernel.org/project/platform-driver-x86/list/?series=701392 thanks! Cheers, Benjamin