Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2784913ybb; Mon, 30 Mar 2020 12:53:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vssryc37o74BLeK404aNekvmc5xSDR0CNW5WxzedcPP9mRDHEVXxSTWIUJ24i40jPOcmqvo X-Received: by 2002:a4a:db7b:: with SMTP id o27mr10862680ood.25.1585598012644; Mon, 30 Mar 2020 12:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585598012; cv=none; d=google.com; s=arc-20160816; b=PatUea5r9J2VXy2bNmPBEwBAAc8WM+MIbiFhitL0r+WorOx03v7yqwVNv05kZZ6V4J znJ9oOQNCtIjdq2H7+b8NdGeyXIz0oePcKZ8GpPZruywTfRCHn9W0EZMyx4x6qDgMafC jBZ9qTE/H6aJbdhO0ld/IoTA6rZM5Z819CJem0wsRQIY3ndFUyXfkWlaH63LV5J3IUZ1 l1sx5K3mwYRIJv8frfdViHqJtGNN+8fmBUh128uRDxrl2ulNfe78kWAV834Ya4cfN4XO Fk1rcJpN7dLdkUJcKF0C6Lchw+D1ACSsT0+PGh0NmAhPdYR6l6mpGi9bpJHisYqSAte3 TWWQ== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=RevBXR+sqFKlpui7BBWSoCZoTxpj4jKJS81bgHki9xM=; b=jG4rlCIJB1pygWvga77qEvLPZfmzbiQTPW/MBEG9XdafxWNIuP0IRDJjzevEYWVUy2 f3aFCsQG2la3i2Gfz0HZihF2nXuwWB/46PMk28nGtnhGgO2DBBwaRSALNP9KJmRV3f3p Ic4ELa7c18gFy40kYgMguybrdtITDh0uR4Oprs4INDi91rGhvRqY7JiOVWbOvva2RdQY 0issV+0jPb6IxpbGAR3Pd/GVrzZbYUrHzYMSlL4MhxQRoUHZaKEwCHOnM0tMcQcNc95E w6GyEAYPWKOE/kjWeBSdSDXKRd/T7WRvw9Pi75JPviPIz1v1YzSx6+v5LnxvYiy76pqX 6X7A== ARC-Authentication-Results: i=1; mx.google.com; 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 k92si6963792otk.261.2020.03.30.12.53.19; Mon, 30 Mar 2020 12:53:32 -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; 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 S1728823AbgC3TxB (ORCPT + 99 others); Mon, 30 Mar 2020 15:53:01 -0400 Received: from mail.computer-surgery.co.uk ([82.69.253.61]:44021 "EHLO nicole.computer-surgery.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728393AbgC3TxA (ORCPT ); Mon, 30 Mar 2020 15:53:00 -0400 X-Greylist: delayed 2686 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Mar 2020 15:53:00 EDT Received: from [10.94.89.11] (helo=kilburn) by nicole.computer-surgery.co.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1jIzlc-000433-3Z; Mon, 30 Mar 2020 20:08:12 +0100 Message-ID: Subject: Re: [PATCH v4 4/4] SFH: Create HID report to Enable support of AMD sensor fusion Hub (SFH) From: Roger Gammans To: "Singh, Sandeep" , Sandeep Singh Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Date: Mon, 30 Mar 2020 20:07:51 +0100 In-Reply-To: References: <20200329184006.GA8199@kilburn.gammascience.co.uk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-03-30 at 09:53 +0530, Singh, Sandeep wrote: > Hi Roger, > > On 3/30/2020 12:10 AM, Roger Gammans wrote: > > [CAUTION: External Email] > > > > Also I don't seem to be getting any data through > > to monitor-sensor in user space when I do install it, but I am > > gettting logs of log messages similar to this: > > > > pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT > > domain=0x000c address=0x5267f000 flags=0x0020] > > pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT > > domain=0x000c address=0x5267f000 flags=0x0020] > > > > This is compiled against the debian 5.4.0 kernel, on a > > HP ENVY x360 Convertible 15-ds0xxx, SKU 6TD07EA#ABU > > > > I can run other tests or try other kernels if you think it might > > help, > > let me know what you need. > Can you disable IOMMU from bios and give a try or if your laptop > does > not have iommu option you can pass boot parameter "iommu=soft" I couldn't find anything useful in the BIOS, so tried iommu=soft on the kernel command line. And that seems to have done the trick, we get rotation info all the way through to the userspace, and the desktop does it auto-rotate magic. Thanks for all your hard work. On module inserion I have these messages if it is of any concern:- pcie_mp2_amd 0000:04:00.7: MP2 device found [1022:15e4] (rev 0) hid-generic 0020:03FE:0001.0003: hidraw2: HID v0.01 Device [hid-amdtp 03FE:0001] on hid-generic 0020:03FE:0001.0004: hidraw3: HID v0.01 Device [hid-amdtp 03FE:0001] on hid-generic 0020:03FE:0001.0005: hidraw4: HID v0.01 Device [hid-amdtp 03FE:0001] on -- Roger Gammans