Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1164245rwl; Fri, 7 Apr 2023 10:54:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Z9Imet5rkrpqwfwpoZ92pfJclstUlML13k4Lnd8vSYzhSmwBFOkguwoChw8QujM0o/lTIT X-Received: by 2002:a05:6402:115a:b0:500:46f2:e7db with SMTP id g26-20020a056402115a00b0050046f2e7dbmr3441949edw.15.1680890069039; Fri, 07 Apr 2023 10:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680890069; cv=none; d=google.com; s=arc-20160816; b=KEG+iPU+M4Q9in6FZLq2HFwPB1uGLL2USh/XRbXchMntqsLu1jo7l573mLZfOWNlL8 RQvhOPhqT+4nyiK871plpaj4ohiJ1exbUQ+gxTf1xLDTueQ/YpRf+bziajUYc0KVvSLt kZHk3au4DKAhcq6XXJdT4UIatlkYG5h/x9Ato0o7KVPVxGW7XuShFiwfUBKHuWWXePAf qROzpqjHhIggiFNuZvDXwm5liny6WFyT2l8QRY/uEGFTM2vW5gVTdTpXMFhWSBVX4pnO WkKduUxC5PV86OficEOOF3fCHpHmxJaOF0UQ5P4MBhtVVEEgKzhYKrh2UvNIj6d559g3 QYoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=12IdueayUlyyMWhSMQ2MLtCvj1AvIvJsc59LB7XBtdM=; b=fuWZih9dtQjNFLaBQWKNpjngaD9bhzlrk6lHt163D4HO8St9t9AM/PJaHHIu4l0rPN JJ/zjIvGrkJ/yFyoi2BhIL+PeoJYxDmf3XmIrcRM/Bqr1lKETYbBEbS2RNgtezDKTL/Y TCc7Us5x3CBiIzdKAKb/oUj4eSHfxX0xYG6crruKy2/F+ELKt6QC6x8g0ku0FvzKdA+u gd0UVtLqDgJcBLufQbaLEhpB+9yFIQPedqAFJF9L9jQ1KCZnxORqkr5GxX+smE/5fYS+ sxNMLb4nTUwwPAkfCl9VU8D9Ua3NfrkB26t8X+3GE8+fdCSk6OJwq5DqNX6awBPvFvUe wyBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M0dcZC1P; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a50eb47000000b004c03a4171b1si2968562edp.56.2023.04.07.10.54.04; Fri, 07 Apr 2023 10:54:29 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=M0dcZC1P; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbjDGRj1 (ORCPT + 99 others); Fri, 7 Apr 2023 13:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbjDGRjH (ORCPT ); Fri, 7 Apr 2023 13:39:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90C3C155; Fri, 7 Apr 2023 10:38:44 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 1491E65329; Fri, 7 Apr 2023 17:38:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1B8EC4339E; Fri, 7 Apr 2023 17:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680889123; bh=ShYE/NmpoSW62Nvk+UDzbzXRAyY8hKK3U9ol2L/cDjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M0dcZC1PwRN2HkRpAf18Y8Sc3xtdV99EC+vxYRCkvNNAP+f919nIOyOf5C1k+lysA DsIPR1Qt8nC4oUYnjInR8TIxqXfTv7etNNAZFIr8N3Z4pgJcnzOnfgGSt+8WWdyUnl AtCK3R+vmetr+XaPeV8TeeBy7ElBS52aIWcd/f+6IC92wBZ6VtySpHzS+akBWGLAPm 9FGQ7rTD0MB43HTwT8UqysfMbMPTFlPqN0cgjcBIFUJ0L4OURVzzGJE92PFWqiUUkv QzbufEidnsWI3M3Syk9Vjk2T1AbA0NyhHej5ZBtJs+zEboLXJ09NMin4l6aPtNNsSc ndslYUpGWzB9w== From: Bjorn Andersson To: dri-devel@lists.freedesktop.org, Rob Clark Cc: Geert Uytterhoeven , Maximilian Luz , Dmitry Baryshkov , Akhil P Oommen , Konrad Dybcio , Douglas Anderson , Chia-I Wu , Luca Weiss , Sean Paul , Nathan Chancellor , "Rafael J. Wysocki" , "open list:DEVICE FREQUENCY DEVFREQ" , Rob Clark , Konrad Dybcio , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Daniel Vetter , freedreno@lists.freedesktop.org, "Joel Fernandes (Google)" , open list , "open list:DMA BUFFER SHARING FRAMEWORK" , linux-arm-msm@vger.kernel.org Subject: Re: (subset) [PATCH v2 00/23] drm/msm+PM+icc: Make job_run() reclaim-safe Date: Fri, 7 Apr 2023 10:41:19 -0700 Message-Id: <168088927578.2561591.14585371270684166515.b4-ty@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230320144356.803762-1-robdclark@gmail.com> References: <20230320144356.803762-1-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Mon, 20 Mar 2023 07:43:22 -0700, Rob Clark wrote: > From: Rob Clark > > Inspired by https://lore.kernel.org/dri-devel/20200604081224.863494-10-daniel.vetter@ffwll.ch/ > it seemed like a good idea to get rid of memory allocation in job_run() > fence signaling path, and use lockdep annotations to yell at us about > anything that could deadlock against shrinker/reclaim. Anything that > can trigger reclaim, or block on any other thread that has triggered > reclaim, can block the GPU shrinker from releasing memory if it is > waiting the job to complete, causing deadlock. > > [...] Applied, thanks! [20/23] soc: qcom: smd-rpm: Use GFP_ATOMIC in write path commit: 5808c532ca0a983d643319caca44f2bcb148298f Best regards, -- Bjorn Andersson