Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1003618ybv; Thu, 20 Feb 2020 11:14:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxUap5oF/u0O2B6prhKLKNCW2+6eCYi7hQx0xvuIJA1bIU9OhuBeh0EI8419ojf3TWjsMlM X-Received: by 2002:a05:6830:1185:: with SMTP id u5mr23019549otq.147.1582226060625; Thu, 20 Feb 2020 11:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582226060; cv=none; d=google.com; s=arc-20160816; b=NzsT5bA4HI80pUlPfAnvmyl1iOQuLWe1cZHkLg6jtD7TfAzoSyogWc5dvLvyGpIZy+ ZKX+tg50nmEGFhIQ5umJA8DgWJEfrr2KSnLyrHW4AUmqdJO88oyAPp4oPrNAGl4Khq4l M7tdgMLZj8WjONlJUp2nyodWsnXi+U3gD5b63qTk+m5ztuyIowuwqOnP1e1+9SwjuU5f ywMnBs/1T/buLjAOXuuqY8EQ9WUpHG/DG/qgs4OhXv8BJq/pDGq4nn5zHk8HZcO2gu4L OWMRH6tXAksocaESVJT/ArRcKM4e8pZ9tENkBLxrT6zsggtOrc+DfYjQEz9Joi0eAyhA /G/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jtGfCZ6Tt9nUtJs/4fCZbyPWZOZzIWbBkr2JPN+tTJ8=; b=jWQS3M05S4PfL9sS6dgsgxPxCN6PTRolauc+VABNGe4uXHXAiyTzCiZp8RnyH0J3Zr Itz1um7okLQ9wdn2V0CCmHCLK+i88I2g7pMj9lU7vN8cf6T2d6Vq5b/bdb5c6M9emSAj kFrgKL94NBe2I482KVkzEA4/TIcIFdOcyCQaYqbYWtfnTVAO35Jz/VB04XGZtw1Fhxvi Lbfswf3X7YDYck6q626K0XNGOhohWwEBWv08bBJoMw6tyQ+GnqhODJvTbiWXadWZZDN3 C+XTWgZTLudUMYjkTsNNoB3PuzPCCecz75NejQxm9S2Br48Gy74M2J/1e8GKWZIqkrMW Lnbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YGBQF1Dw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si163212otd.245.2020.02.20.11.13.59; Thu, 20 Feb 2020 11:14:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YGBQF1Dw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728618AbgBTTNw (ORCPT + 99 others); Thu, 20 Feb 2020 14:13:52 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44337 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbgBTTNv (ORCPT ); Thu, 20 Feb 2020 14:13:51 -0500 Received: by mail-lf1-f66.google.com with SMTP id 7so2508102lfz.11 for ; Thu, 20 Feb 2020 11:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jtGfCZ6Tt9nUtJs/4fCZbyPWZOZzIWbBkr2JPN+tTJ8=; b=YGBQF1DwPBtMmghk2sblaYVP5/14qwbXmY/QJcnKFI9whyFZjAeC8/6poFolPl9sHk 15xN02AviSmyITu7QB9VdCGClnENhzaUzT0+Padx+4z5I0Ml73Z6jKoH4cUIPWi6XRov daM0gPriqHZy87AFnXdWz4XDbM3cmh8uagZJoDG5Dohn4QSU6WsDmsp865rsBbyIZB4o feMlIJRP/8hJ3IaIIOijFujFaxe9jV5AUZqWb17+Ww08CNgkSteV4cQsRCT1V/LFJOYi N/noj6dQi7+yD1icEzllmTVLaR2q20B96dB+5RPMC9I6Jh4uLdPqnIFOxC3MBhxxMMSJ uh2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jtGfCZ6Tt9nUtJs/4fCZbyPWZOZzIWbBkr2JPN+tTJ8=; b=fDOy76r3/KBD0x70A98wx9kX6fvVAr9A76xrc1xVN4guX7oJypymYx9SN192Il0pAn zCg+9McyyvcH5Z8lCNpZcqxbyBW0GX+SaDY2m3m9dh/NovKBJyevyIj6aWwa8SYtazM5 Hg7ClCaqrKoubTy0tGHyIcWFhbzVeO1636NVctuInzEdfXjti+h4lHhX+D3Myf7mnBNI DmwaDOnDt5nZ5nYHOQ8NXPIgsdoAp8HO9PsspWRGUWwxjDnqRjc6L6PCm9RzazkkZ0ie CpW9mG++BXD3Yx4nDcoej8PIi/uFaDnXrwVUHgkiZBkMwLGlk4mtUw9paJtUF53YSHOn tgtQ== X-Gm-Message-State: APjAAAUedI0MGIe8eujIfZ0xkMR3MFIjIr/4YKYLVK6Wf0A4DsLOZuhj QBwU9g2/mRhJzqSnykECobU22bxHnBxK6pHkkxN2hw== X-Received: by 2002:a19:5e1d:: with SMTP id s29mr17601785lfb.21.1582226028830; Thu, 20 Feb 2020 11:13:48 -0800 (PST) MIME-Version: 1.0 References: <20200220074637.7578-1-njoshi1@lenovo.com> In-Reply-To: From: Rajat Jain Date: Thu, 20 Feb 2020 11:13:12 -0800 Message-ID: Subject: Re: [External] Re: [PATCH] thinkpad_acpi: Add sysfs entry for lcdshadow feature To: Mark Pearson Cc: Andy Shevchenko , Nitin Joshi , Mat King , Jani Nikula , Daniel Thompson , Jingoo Han , Henrique de Moraes Holschuh , Darren Hart , Andy Shevchenko , Thinkpad-acpi devel ML , Platform Driver , Nitin Joshi1 , Benjamin Berg , Linux Kernel Mailing List , dri-devel , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Thu, Feb 20, 2020 at 11:03 AM Mark Pearson wrote: > > Hi Rajat, > > > -----Original Message----- > > From: Rajat Jain > > Sent: Thursday, February 20, 2020 1:39 PM > > > > > > For this particular issue what is the best way to contribute and get > > > involved? We'd like to make it so ePrivacy can be used more easily fr= om > > > Linux. I agree a more generic way of controlling it would be good. > > > I looked at the proposed patch from Rajat > > > (https://lkml.org/lkml/2019/10/22/967) - it seems like a good solutio= n to me. > > > We can help with testing that on our platforms if that would be usefu= l. > > > > Thanks you, just so that you know, the latest patchset is at: > > https://lkml.org/lkml/2019/12/20/794 > > > > It would be great to get some additional testing if possible. I can > > send a sample ACPI (for our platform) in case it helps. > > > Sounds good - we'll definitely try this out and see how it goes. I suspec= t we'll have some questions once we try it out and get more familiar. > > > > > > > I need to understand how we connect that implementation with the ACPI > > > controls we have (as I believe what we have are thinkpad specific and= not to > > > a drm spec; we need to confirm that). We also have the ACPI events th= at > > > notify if ePrivacy was changed by the hotkeys and that seems like som= ething > > > that should be done in thinkpad_acpi.c and not the drm code. > > > > > > Not sure if the two need to be connected somehow (or if handling the > > > event is actually not important and polling is acceptable)? > > > > So there was some brief discussion about this on my patches - but > > atleast on the platforms I have seen, there was no way to change the > > privacy screen out of software / kernel control. Essentially, if there > > are hotkeys, they would send an input event to the kernel, who'd send > > them to userspace, who'd use the DRM method to toggle the privacy > > screen. Thus the current version of the patch only supports > > controlling the privacy screen via set() method. The get() method just > > returns the cached value.I hope that works for you. > > > OK - on the thinkpads we have function+D as a 'hotkey' to control the fea= ture...and my understanding is that bypasses everything and goes straight t= o the firmware. > > The changes Nitin had been working on in thinkpad_acpi.c was to make this= more Linux and friendly - provide a sysfs hook for user space to connect t= o with the aim of allowing it to be configured from user space and have on = screen display when it was triggered etc. > > I'm personally not sure yet how this ties up with the DRM method - more d= igging required. I'm intrigued to see if it works on our systems (sadly I d= on't have anything with that feature available on my desk right now...I nee= d to get my hands on one) Just FYI, Here is the brief discussion we had about an interrupt mechanism to support a (hardware based) "kill switch" for the privacy screen. https://lkml.org/lkml/2019/10/25/992 Thanks, Rajat > > Thanks > Mark