Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2735582rwb; Wed, 30 Nov 2022 10:08:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf49h0elG+VL5o+nT/tAiwgev3yAiNFcvsEm/bVP3/0gz00jaf7dOqZSrRo7FcBjI5Du9ECe X-Received: by 2002:a05:6402:538a:b0:458:fbd9:e3b1 with SMTP id ew10-20020a056402538a00b00458fbd9e3b1mr697156edb.6.1669831732733; Wed, 30 Nov 2022 10:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669831732; cv=none; d=google.com; s=arc-20160816; b=NEZBJ2T/5KOMr5QS4+OSEp92vw3X3md8F33omi7lEcQGxNpDj8/kRLljwEkmDcBmDa iUkUaaHDkt40+EVmQoHgnobRoLntXKPGhfdXYHpUKGec3qSIBTdl8aVd40JIzomkRDB1 VsnQeQoOZlUIhRdhHY9WokwWrXd4KVkCwNkMlMZpahmyYvcUonp8eH/PJnYgewhOPy7i +i8SaSgKX09zwdp+KUo88XRUuKi2A3GgXwj0DFKRzp8ReVrSpqKOuem2QXyqww4uIsGA o6WbpiGAgKw7NDNPag/qHjdfpQ4WeGIrwb+UoWa2aCqLqZFb4NOY87IUcyai3TOeeZBE nIJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xEgGQx2pmFVptW+RcEBEouIh75PVPo9fni49FHck9Vo=; b=VWPuQLXEscUD1hZOKOqNoVmyv0/BKaaGuMoBtZYz+I1SamrONW2F/Yd0rGUNL/7aDP jA1n/J2LISCUr/EgLWiafn9AcdIA4XO1two9sy4ow0TJwJSpc1PtleLgr1QfsQBOrS/1 GdsTGb9zIwF/UE6naBdOUihMZKOisupVS8IumO/fwmmuRy+D8aLJ9EBWEUMF6f6SghWu 61V+a0xd707+FMORHsaTHDbhVZsLk6Lbaxbe3ShXl793A4tcd5iNnxX3a2dx5bnPBcp4 2ne6Bgx66cOfkm+ak9Fxcq8f2XoHr3DBxVpmgwe3lpNXsE7Yl+XFGLqfqOMa/bcbC2aG yD9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iSKjjwns; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho8-20020a1709070e8800b007a8c58b51a1si1902917ejc.179.2022.11.30.10.08.32; Wed, 30 Nov 2022 10:08:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iSKjjwns; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiK3RnS (ORCPT + 83 others); Wed, 30 Nov 2022 12:43:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiK3RnP (ORCPT ); Wed, 30 Nov 2022 12:43:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E7E4E427 for ; Wed, 30 Nov 2022 09:43:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 34EB1B81C5A for ; Wed, 30 Nov 2022 17:43:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5249EC433C1; Wed, 30 Nov 2022 17:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1669830191; bh=h1BzRWi3z5+fEMDy7NI8l+Tfel2ZkrLHsxCE4NCtSuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iSKjjwnsMwZm5Qeny4IYIVYei6hX9O3ilAovTVoGFDfBS64HOugsUSjcRCQYwrk4N zN3Nww9Ww7oON7fMd11RTj/T2yPwRV1jQxRpYTDuz8/IRBC6XOV+zt6wx+Io7M5Zm6 RiyHTHb9cxgzT0XsBzb9m0HYvfmH/HzIYNsyhP+M= Date: Wed, 30 Nov 2022 18:43:09 +0100 From: Greg Kroah-Hartman To: Rodrigo Vivi Cc: Alexander Usyskin , Jani Nikula , Joonas Lahtinen , David Airlie , Daniel Vetter , Tvrtko Ursulin , linux-kernel@vger.kernel.org, Tomas Winkler , Vitaly Lubart , intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH v3 0/2] mei: add timeout to send Message-ID: References: <20221116124735.2493847-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 30, 2022 at 09:20:28AM -0500, Rodrigo Vivi wrote: > On Wed, Nov 16, 2022 at 02:47:33PM +0200, Alexander Usyskin wrote: > > When driver wakes up the firmware from the low power state, > > it is sending a memory ready message. > > The send is done via synchronous/blocking function to ensure > > that firmware is in ready state. However, in case of firmware > > undergoing reset send might be block forever. > > To address this issue a timeout is added to blocking > > write command on the internal bus. > > > > Introduce the __mei_cl_send_timeout function to use instead of > > __mei_cl_send in cases where timeout is required. > > The mei_cl_write has only two callers and there is no need to split > > it into two functions. > > > > V2: address review comments: > > - split __mei_cl_send and __mei_cl_send_timeout > > - add units to timeout KDoc > > - use MAX_SCHEDULE_TIMEOUT to squash wait to one macro > > > > V3: - split the state fix into separate patch > > - document define unit > > - expand timeout KDoc > > These 2 patches looks good to me now. > > Greg, whenever you review it, please let me know if it is > okay to me to push these through the drm-fixes, or if you > prefer these to the mei branches. These have been in my tree for over a week now, sorry. No one told me not to take them... {sigh} greg k-h