Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp359954rdb; Tue, 31 Oct 2023 09:23:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqMln/hQpWFmoHYqZi00i3ozLXsbFNkaap4AlhNr9phZD5YY/o0mw9mmFgcos//TIu3uLy X-Received: by 2002:a05:6a21:998a:b0:15e:ab6:6e24 with SMTP id ve10-20020a056a21998a00b0015e0ab66e24mr17708762pzb.27.1698769399428; Tue, 31 Oct 2023 09:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698769399; cv=none; d=google.com; s=arc-20160816; b=cnGQL8gRVCWVNi1u6MRKIrT8phuaW2DZCVzId6mHoUdlEDWbR68mUSle7Rz/Hn/2jJ GCzx0afBKS2ymNU7a+iYq8/vQWs2uEel4CqyJV9Oyrd4HKyrZsuVt0FsAgsUh+PGILaG VZJn9e0XX9zspRdCRXGTzc70zTJ7xhnwDD6CKhSBC3bZDCCto/x0DQNSF27O3NJld1jD seZNTnkymCzQoxQH8y6nsszTzJ9uS8tikh+lbwBI1+3p3pFNJGI6b58NJ2fG4546THha e29WNrzkvpPUqBfT962PzICbspmoXoEjCf/ctxky4Q3BsegaUKvtPj5dk8W9L4ckzqWO QTAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bz4kI+ESJBO5eR+aDkWw6Ikrj019ZO6q73+yWVY0QWs=; fh=YadWBi3fqS5zmBELkyHPFWwGFyOd1IgN1sfJ4loF+4Q=; b=rD09y4ATNHWkw/6S5oK5JEt+0SRK4B2yxMLWqbgPHh+kj+lwGTZKVkfw/WzbsZZZEv BBNxSlihzl3MhoMcbboajYUBWrs5vRluhd47All/KTsm+4uKPVASeF2OdGWElkiXi0iy zsZbQNmDlz2bcMTx0uCtEKaN8FyTUnmXYg0mEkVDs2vUlOnMFlsJ+myCphGdLQ/bEhfm hrS/uzud8ZLaAZuh2xNvGO9lLXIBv8Qp/EMiQx024COpq6bzmf9+zSykotMEqxB05lMF 1WZAzuzqXnq93rQb94/QR7wMH5K87noypCn1QA44YeB/ScN4WI188Qs5oYQk2B/yVuXc 1Zow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kAZIC+QK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ck26-20020a056a02091a00b0057760853706si1302474pgb.578.2023.10.31.09.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kAZIC+QK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A8C968054BEF; Tue, 31 Oct 2023 09:23:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344986AbjJaQXH (ORCPT + 99 others); Tue, 31 Oct 2023 12:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344836AbjJaQXG (ORCPT ); Tue, 31 Oct 2023 12:23:06 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6744DF for ; Tue, 31 Oct 2023 09:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698769384; x=1730305384; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RwuuNJAK+7sQSJQmSTHK9qohrsSPiOemxUURP/vRQkk=; b=kAZIC+QKU2o6UiPPgdM5WsVYf+yy29LqQtAQ1/OgYow/DfjloCM+DKjJ ivfpG+oLNiVMQ2c/+AQMXXkSk9+I/XUtyfmneV67e0Gw86IrY6LD7St8H cK57KcqXArLgsH9+bdOMDSgajg2zWLNiedXAPP0YCKnIilsraOsb+KKK+ IGmxIf5+PbzsV9S7WD1rp/YTv8sHY7N7OC1/rpRAkIjMjjLrldNGxDS5j YJtE97GRfnCJrDPpsVxf95JeMOaEWC+JCtxjkhK7gj0h5ZoaMHRvGtXpD jDDom3X+UtQSn8WpdN/ko/i3VaE9CodGDHDo1WR5X/s+QJYSSUyMS4+kH g==; X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="385509627" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="385509627" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 09:21:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="904391019" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="904391019" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 09:21:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qxrUu-0000000ACaZ-1HwF; Tue, 31 Oct 2023 18:21:44 +0200 Date: Tue, 31 Oct 2023 18:21:43 +0200 From: Andy Shevchenko To: Hans de Goede Cc: Jani Nikula , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Subject: Re: [PATCH v2 6/7] drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back Message-ID: References: <20231024155739.3861342-1-andriy.shevchenko@linux.intel.com> <20231024155739.3861342-7-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 31 Oct 2023 09:23:16 -0700 (PDT) On Tue, Oct 31, 2023 at 05:07:39PM +0100, Hans de Goede wrote: > On 10/24/23 18:11, Andy Shevchenko wrote: > > On Tue, Oct 24, 2023 at 06:57:38PM +0300, Andy Shevchenko wrote: > >> It's a dirty hack in the driver that pokes GPIO registers behind > >> the driver's back. Moreoever it might be problematic as simultaneous > >> I/O may hang the system, see the commit 0bd50d719b00 ("pinctrl: > >> cherryview: prevent concurrent access to GPIO controllers") for > >> the details. Taking all this into consideration replace the hack > >> with proper GPIO APIs being used. > > > > Ah, just realised that this won't work if it happens to request to GPIOs with > > the same index but different communities. I will fix that in v3, but will wait > > for Hans to test VLV and it might even work in most of the cases on CHV as it > > seems quite unlikely that the above mentioned assertion is going to happen in > > real life. > > I have added patches 1-5 to my personal tree + a small debug patch on top > which logs when soc_exec_opaque_gpio() actually gets called. > > So these patches will now get run every time I run some tests on > one my tablets. > > I'll get back to you with testing results when I've found a device where > the new soc_exec_opaque_gpio() actually gets called. Thank you! > As for the CHT support, I have not added that to my tree yet, I would > prefer to directly test the correct/fixed patch. Noted, I'll prepare a new version then. -- With Best Regards, Andy Shevchenko