Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp575534pxf; Wed, 17 Mar 2021 10:48:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydZ3aYGUosFS8ZTVNlsR4dz61iCZ8dY7v6nQU6pMDSUsNeXjnLfvWJykFvk5B9mCRPcx1r X-Received: by 2002:a05:6402:646:: with SMTP id u6mr44537598edx.250.1616003326046; Wed, 17 Mar 2021 10:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616003326; cv=none; d=google.com; s=arc-20160816; b=l5o3ES0kjO+BUuGO8sklq7GfZTJ1tuFbp86uo+R/yi6sF/4tOsXb4pcF+iCj2/Iwmp 1gMQecRKJhzsxZlFtRRJS4ODQbFqw4dMfnZfU/COdbh5vrAaZebXp7mQcsDH9eBV/3mE f5HcuyB+BclR1qpA3OTAFCjl/eZDUlDafgSnREriRZAYf36dJndHMhjJa2if/o2UB5Gz u8fkunf49PAKXR2Pl5XuoBhQkL6CzO31qiD8yno54X+EWJ1KTzY41JRhXMO+1oL2kJRp UZhqtBZzGSNpSPetRzlBimnQt9a37uESbWat2SHGvdx596S2tx5lnks8Zp46SwZ/CEKY S5fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CCabCEQRGnAeS704us1uXD1jP2HpK0cYd8RXwLYid7A=; b=G3Jx2MSS9pxg244OTm74czymEceBs0ArC3td0tJoyl9J9Zrg6rFUWcKXKtpxDWS6X7 DOkW0E/iSMLt8aqfhaxst5TfhTMxOPxnEsuAwd/YWfMBdkIvpk8KYI/kO+fFIXf3PXbq ECKBbpW7EMbvd0StL3dkHwx+NctLvvNW+iaqC4DqTsywH0d4gqdhYCQ8n1ldvVJruIn7 4lUJg1lC6CVcIe7or2oqlya9KIfMqgaHQosO609J1gcfWiygq9fFBYcktZUN++6a37Gw QXM57pJyTVJLBIASrHly4Qq2fpE0sIpuZKHQDQheDldRYC0oyWwTy81k+5b1rGr7UXrc WNjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YlXhZYu9; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si2317036ejt.184.2021.03.17.10.48.22; Wed, 17 Mar 2021 10:48:46 -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=@redhat.com header.s=mimecast20190719 header.b=YlXhZYu9; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbhCQRrJ (ORCPT + 99 others); Wed, 17 Mar 2021 13:47:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29756 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232691AbhCQRqh (ORCPT ); Wed, 17 Mar 2021 13:46:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616003196; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CCabCEQRGnAeS704us1uXD1jP2HpK0cYd8RXwLYid7A=; b=YlXhZYu9+IHxs2ZjB4UdWamAlh5cLm5YF1QVO0//txRj7ANDdBqi/L1wKiVifkgiHf2aVp UFK8Omtb5foZlEVrMZIBvE4uLAchY8WUiEmV1ZUx805waNJxl1Om3aXu9C96LSbGVr7SPm KD0oS7WMfHuG8D2ZBcxhWjDFzkBgMjQ= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-YOS1gCY9OTqk__fpz5oB7g-1; Wed, 17 Mar 2021 13:46:34 -0400 X-MC-Unique: YOS1gCY9OTqk__fpz5oB7g-1 Received: by mail-ed1-f69.google.com with SMTP id o15so19835651edv.7 for ; Wed, 17 Mar 2021 10:46:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CCabCEQRGnAeS704us1uXD1jP2HpK0cYd8RXwLYid7A=; b=MKwLfk5bXJV+/fhG9gx761FniicSEMTtBi6YhEEfsO+KQ5oCT3dfPmvd+UBZ4/R9wH /BlkWjjd+CIURWp2x2JXNVDEkqYY/QRzdFwUAtHWDDwu2WlzCPDeRr3LjaQtsDp/tSHR Qp8FHpf1Vt8JqaGzWYlbIY72VvzYjA6purS81Wkxp8LB7pLJVvVyPciKflEh+U4Hn4zv kJ04xnfllWgbMbYH44MngrlSnOIIksfYK/a37aerLfLhDidiAwtSs/Ru8ocnUuDAXpF4 KI0VCN9lwWFuXL1CblniSEOBQAa1zmPtMEMP47isgsiRp8/oceSoSm38f2/BLWiX+/wX 8RWQ== X-Gm-Message-State: AOAM530Ilk/WNy3c2HZs5/KJJUwh7ZgjTbCTRXmy4XjIJ2YIe5h80Yn9 EgSdvHsEIu61SuLCTPvR17CRSKQtCzh1DvT27Z7MlGhDxqCd+NPlJC1wA1LC9s+AIZIce5SpPPA DofNNQLlb1w9SesnVVHi2SI+r7HdJAIa/smUvLZMmHcGRIFeGb2l0DQ+IrwMcikcp8s+mJuX/Rv nW X-Received: by 2002:aa7:d74d:: with SMTP id a13mr45305583eds.199.1616003193641; Wed, 17 Mar 2021 10:46:33 -0700 (PDT) X-Received: by 2002:aa7:d74d:: with SMTP id a13mr45305562eds.199.1616003193469; Wed, 17 Mar 2021 10:46:33 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id f9sm13450007eds.41.2021.03.17.10.46.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Mar 2021 10:46:33 -0700 (PDT) Subject: Re: [PATCH 0/3] platform/surface: Add DTX detachment system driver To: Maximilian Luz Cc: Mark Gross , Jonathan Corbet , platform-driver-x86@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210308184819.437438-1-luzmaximilian@gmail.com> From: Hans de Goede Message-ID: <600b5161-e754-f363-b774-0cb020b7e439@redhat.com> Date: Wed, 17 Mar 2021 18:46:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210308184819.437438-1-luzmaximilian@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 3/8/21 7:48 PM, Maximilian Luz wrote: > The Microsoft Surface Book series devices consist of a so-called > clipboard part (containing the CPU, touchscreen, and primary battery) > and a base part (containing keyboard, secondary battery, and optional > discrete GPU). These parts can be separated, i.e. the clipboard can be > detached and used as tablet. > > This detachment process is managed by a subsystem of the Surface System > Aggregator Module (SSAM). As that process is a bit more complex, i.e. > can involve user interaction, it seems the best way to implement this is > to provide a somewhat cleaned-up version of this interface to userspace. > > This series adds a driver (and documentation) for the detachment system > which provides such an interface. See the commit message of the first > patch for more details and a link to a user-space daemon using this > interface. Support for the Surface Book 3 is added in patch 2, > user-space API documentation in patch 3. Thank you for your patch-series, I've applied the series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > > Regards, > Max > > Maximilian Luz (3): > platform/surface: Add DTX driver > platform/surface: dtx: Add support for native SSAM devices > docs: driver-api: Add Surface DTX driver documentation > > .../surface_aggregator/clients/dtx.rst | 718 +++++++++ > .../surface_aggregator/clients/index.rst | 1 + > .../userspace-api/ioctl/ioctl-number.rst | 2 + > MAINTAINERS | 8 + > drivers/platform/surface/Kconfig | 20 + > drivers/platform/surface/Makefile | 1 + > drivers/platform/surface/surface_dtx.c | 1289 +++++++++++++++++ > include/uapi/linux/surface_aggregator/dtx.h | 146 ++ > 8 files changed, 2185 insertions(+) > create mode 100644 Documentation/driver-api/surface_aggregator/clients/dtx.rst > create mode 100644 drivers/platform/surface/surface_dtx.c > create mode 100644 include/uapi/linux/surface_aggregator/dtx.h >