Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp604514ybg; Sat, 26 Oct 2019 04:10:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6kNzWzKzDsvLhoWpGoMt8m1uhEmpYIP18kkfKJqMk8MKvZde2QQvSkf0ass8yUDw8AcDf X-Received: by 2002:a05:6402:290:: with SMTP id l16mr8655493edv.190.1572088239782; Sat, 26 Oct 2019 04:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572088239; cv=none; d=google.com; s=arc-20160816; b=gn7P4qRAEimA7RMKWcQNWEVO3dj/9V0+9eHrk2nPy/nJ9ZrATcl1IUbLGmIpEf3+fM gSel6BQIoDWha0Ilu4q5UwI1K1jahuRkO6tyMyV1HYsG1IiomJIoVdtu2pz6riu674+a IVdaQIFf1CpAcq716DpsWO4S9q6d9RtPNkDLFwQe3kZLJIXF6574Mnaqahwkz1KVdjQE zOyu2/p5y/cpVZAiz2QezGppPRFjF5cFKovwxPjvkyzOg8ZVYIalhqIHHWhZGFPJkKC+ SHqy7VkQ7Yh/qhgZHE1UdkUjsTbhs+00tOedmF6gx6V/7ukr03g2po5WqJpMB7oB3l4J +X4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sbtSEwwWtUl8Tn9jW/5rYOk9dRDro0TFs9+gAIA3ZLY=; b=n/in/FieXtlUNS00tbygP7qeOYute35ipB/m72keyOQwboOFMtdSfSkIuI5NiqeC6+ jKTPlORs2+1SwJY1NE6sSodpBS09/iOy4ssdPbXbXRFyiZx2hi+s2IL08oJFDsTs7g32 mhxST4rsy5WQByBELHkVbj/5qyYuGoiKxvedEnhW9+bDFffx+VXpvRd4MF5kxqsm5Zoi sk6WiFxh4MaCexJWGiRV+s3JuLN9nvgPQJH6k7wu6IRXGJJmX6/LFlLdY+tJNgbYShuJ qpIhAgOe6p9ftqwa8td/nETlQr96Gf51ops+iN80raoANoCxkTsD/UG1GKgG4gyjvUvr hm4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fooishbar-org.20150623.gappssmtp.com header.s=20150623 header.b=Yc3V8xSK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si2628152ejs.154.2019.10.26.04.10.04; Sat, 26 Oct 2019 04:10:39 -0700 (PDT) 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=@fooishbar-org.20150623.gappssmtp.com header.s=20150623 header.b=Yc3V8xSK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726261AbfJZLHS (ORCPT + 99 others); Sat, 26 Oct 2019 07:07:18 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40784 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfJZLHS (ORCPT ); Sat, 26 Oct 2019 07:07:18 -0400 Received: by mail-lj1-f196.google.com with SMTP id u22so6038143lji.7 for ; Sat, 26 Oct 2019 04:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sbtSEwwWtUl8Tn9jW/5rYOk9dRDro0TFs9+gAIA3ZLY=; b=Yc3V8xSKcErzzkIufZvgIPdiVXiQAZg6sNPGdV25al2GzTWGRHqUnvyA4S7Ih5edyO yHxfaBIpIxrw9D815r6Jr1Bzx/+i/4rR27vBxJd8iBmgE0hOg3q/326eMB62jlWnaPCa Yfw7O3MR+77F1oM2DJA6ebAdq+4/0esKJnP4U0f9d5mnkKyCWC/WmkmOPoa52YXNbJKq 9iwDZyH0M13Cp5qie3yaDgMbd66uiEv835NGad8aBVbcpOyStYf6yYaUuSgWssFQHW35 rkJuaXJL2r5D0eGpRI7HG+5njgdQJ8tCTye+TfIdiM5yTY6T1DthrJ64fE4/jqnbd2TJ f4yQ== 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; bh=sbtSEwwWtUl8Tn9jW/5rYOk9dRDro0TFs9+gAIA3ZLY=; b=p6sgH5FHXFAXFjTXFEUM6nT4EppNJ4UtOHN88j5/vfkUnU48+kiKfrle/1yRUFkt4x H1e+uAZU4tBUqgOrOpOtGJi6JfXbiK4UcU31vyTDxRsr/8Sc0sl7lIbsc++3ol2IDety qHLcu14+6W2l0Kh1WG/+2qvUVj2mqvbrsSh7Py9lFCueNAB+nAt0KU6geLcFJahmt43k iG7dNdNnW9mPSrmQgdtNqpT8fPK4EVfCw5qFWyaKvd0eorbieLueSYu+vmHOLMN5vchx ACuR66Aehcnuw5fSmG0SzJgJ/VdkC4MFgUEHqSe0VkBOk8UUeBUIcBRS90pmZNjEayEJ b6dQ== X-Gm-Message-State: APjAAAUnyrE2os5hcoSY8fERiQnSO+DvGZh81veGM2x9x2EHVEUWEFFM gEbE65m3JYKW02hdCJqr4CFEoX4K2AlAQVZPFEcyCw== X-Received: by 2002:a2e:8856:: with SMTP id z22mr5727263ljj.78.1572088034673; Sat, 26 Oct 2019 04:07:14 -0700 (PDT) MIME-Version: 1.0 References: <20191023001206.15741-1-rajatja@google.com> <20191024112040.GE2825247@ulmo> <20191025113609.GB928835@ulmo> In-Reply-To: <20191025113609.GB928835@ulmo> From: Daniel Stone Date: Sat, 26 Oct 2019 12:07:00 +0100 Message-ID: Subject: Re: [Intel-gfx] [PATCH] drm: Add support for integrated privacy screens To: Thierry Reding Cc: Rajat Jain , Daniel Vetter , Sean Paul , David Airlie , dri-devel , Rajat Jain , Daniel Thompson , Jonathan Corbet , jsbarnes@google.com, intel-gfx , mathewk@google.com, Maxime Ripard , Duncan Laurie , Greg KH , Linux Kernel Mailing List , Pavel Machek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thierry, On Fri, 25 Oct 2019 at 12:36, Thierry Reding wrote: > On Thu, Oct 24, 2019 at 01:45:16PM -0700, Rajat Jain wrote: > > I did think about having a state variable in software to get and set > > this. However, I think it is not very far fetched that some platforms > > may have "hardware kill" switches that allow hardware to switch > > privacy-screen on and off directly, in addition to the software > > control that we are implementing. Privacy is a touchy subject in > > enterprise, and anything that reduces the possibility of having any > > inconsistency between software state and hardware state is desirable. > > So in this case, I chose to not have a state in software about this - > > we just report the hardware state everytime we are asked for it. > > So this doesn't really work with atomic KMS, then. The main idea behind > atomic KMS is that you apply a configuration either completely or not at > all. So at least for setting this property you'd have to go through the > state object. > > Now, for reading out the property you might be able to get away with the > above. I'm not sure if that's enough to keep the state up-to-date, > though. Is there some way for a kill switch to trigger an interrupt or > other event of some sort so that the state could be kept up-to-date? > > Daniel (or anyone else), do you know of any precedent for state that > might get modified behind the atomic helpers' back? Seems to me like we > need to find some point where we can actually read back the current > "hardware value" of this privacy screen property and store that back > into the state. Well, apart from connector state, though that isn't really a property as such, there's the link_state property, which is explicitly designed to do just that. That has been quite carefully designed for the back-and-forth though. Cheers, Daniel