Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp79344rwb; Tue, 25 Jul 2023 12:13:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFza0wLdxPtfogyVjo3yovLS5qFGd13kwr41krZ4xgc7JAHVQzoQ2Nes4DWYd8ApbFgnrA5 X-Received: by 2002:a17:906:c1:b0:99b:50ea:2f96 with SMTP id 1-20020a17090600c100b0099b50ea2f96mr147092eji.12.1690312391370; Tue, 25 Jul 2023 12:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690312391; cv=none; d=google.com; s=arc-20160816; b=iz1BOMTG88oljCu0rQi5P/wITmr6PvcNb6UgqkFlbAmsS+bWIF8zff8sXGehwXZ2Ej NteM3Y45xdfqXlXaZlarenpElaNgUo3nYeTjujppb9gQCHlhpl9uxgeSYVNIfAADEYk+ gfokSuiQKHFtmg+dO5NHs127ur6ynAoDGOb4NbqBjrLUUCMlWBwivZvgl/+NnM0lh/WO UXfDBPYn1GnVd9fh567MUQNq0qtC1k5S7qTlJYPTMYwFCbESQnqiL2tfrBGDQRgAMqBh mY15IlnWylLWzuSNFE1nUytW3wJr5xHd89hdoWg3WMIVDCc1/5KbGyC7Zsh0Key6ChoY 6jDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=b46yA1Vvz5EBZCOyU8aDfGflg6YOPM/a7952vWZXQbs=; fh=WyCUxgse/V5lYVgNdLvfyXJi56TxuuZJ/Hl64KfyyEw=; b=iN3h8jW6jCtH2mEmNvQG/6XCaxzL4DBCw5bLK4sccNt5AsFt9fVKliZRF3vOLJduEt jygLvN1/AeB0ewe2g+qQP+ZP0SoQTXMgwandtYlW6qv0Tdp/lVGqcYF6ylJNBoRajd2S tEuXquyIZgTQNHavJmTABYVo7bUgpQRmunQUXTmIc+PIChb0kxmRoKlqI1S3EvIZV8BF yuCc1sXyaDMz6NiK/m2Upqwyj5XBX7Z/zF1DVUD/t7TrdA7LIbGFnRFJADv8eCrflsFe Oe4pP1Hli4DT2ggxnQ/Ub3VR8qyN6GSRhDxybUe1q7Twwap+DMbvLnlkkaX3PaRuZ0kj v95A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X81Eg+Ki; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mj7-20020a170906af8700b0099327746bd7si7678097ejb.520.2023.07.25.12.12.46; Tue, 25 Jul 2023 12:13:11 -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=@chromium.org header.s=google header.b=X81Eg+Ki; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbjGYR60 (ORCPT + 99 others); Tue, 25 Jul 2023 13:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbjGYR6Y (ORCPT ); Tue, 25 Jul 2023 13:58:24 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAC4ABB for ; Tue, 25 Jul 2023 10:58:21 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9891c73e0fbso23784566b.1 for ; Tue, 25 Jul 2023 10:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690307898; x=1690912698; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b46yA1Vvz5EBZCOyU8aDfGflg6YOPM/a7952vWZXQbs=; b=X81Eg+KiyJkaBmeVc7EzuZxmo2VAgibDS6w9rEvwlAfI6tGsS0j7KOFV9ugSL2rwNU Z88MZ/QzLnnbm0huHZtZLjh2zPf+1Gqt6pgk79KKrxL9k7PkcaPEr9hREGK3AzlTnfNM hu4xfVfmIw/WiTeUz/2DAZVTDsmJrhk4SlXZA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690307898; x=1690912698; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b46yA1Vvz5EBZCOyU8aDfGflg6YOPM/a7952vWZXQbs=; b=Hgc57uRBieV3sL/gI9/vEiWPqCQbu/18hgLTck62+lKmnRHlYuSsgZ0fD7DtZktwTj USDKs9fxYYfuSSEh6cvzUk3uLGydPDXcbW3I/agXUAcxJ/gYoW43BF47bQsXmpqwrjTR Vr/DYP6+wNyXiErb6QXKyWmopkqfulHtjyM16AZxKgENNI7Lntug7eLc6sSwHu6XLpAW 2D8AGwiWMtpaMGgYs9ss82XlTtX+/yR9Q6UGIL/GRbF3FazJ6pUZjik2o2vFfKL6iTjS q8mwCUMcyg6OXXuF69HZ3BlUhfcwzn7MJ151Rdg49qeslzUOXpo8McnQGzmTybHPHI4x HysA== X-Gm-Message-State: ABy/qLYv25W1q1zA3wWe1RQvdnCdXwfY/HaBFRlSJmnuFdmtNJvYY96f vZlb9aNIkblatB80zFczhrxsBhXN9c3j2lDxc7SG6hPY X-Received: by 2002:a17:906:3f1a:b0:998:de72:4c8c with SMTP id c26-20020a1709063f1a00b00998de724c8cmr3005627ejj.35.1690307898326; Tue, 25 Jul 2023 10:58:18 -0700 (PDT) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com. [209.85.208.51]) by smtp.gmail.com with ESMTPSA id b19-20020a170906039300b0099364d9f0e2sm8528976eja.98.2023.07.25.10.58.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jul 2023 10:58:17 -0700 (PDT) Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-51e24210395so1476a12.0 for ; Tue, 25 Jul 2023 10:58:17 -0700 (PDT) X-Received: by 2002:a50:d55c:0:b0:51e:16c5:2004 with SMTP id f28-20020a50d55c000000b0051e16c52004mr143860edj.6.1690307897245; Tue, 25 Jul 2023 10:58:17 -0700 (PDT) MIME-Version: 1.0 References: <1690285689-30233-1-git-send-email-quic_vnivarth@quicinc.com> <1690285689-30233-3-git-send-email-quic_vnivarth@quicinc.com> In-Reply-To: <1690285689-30233-3-git-send-email-quic_vnivarth@quicinc.com> From: Doug Anderson Date: Tue, 25 Jul 2023 10:58:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] spi: spi-qcom-qspi: Use GFP_ATOMIC flag while allocating for descriptor To: Vijaya Krishna Nivarthi Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_msavaliy@quicinc.com, mka@chromium.org, swboyd@chromium.org, quic_vtanuku@quicinc.com, dan.carpenter@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, On Tue, Jul 25, 2023 at 4:48=E2=80=AFAM Vijaya Krishna Nivarthi wrote: > > While allocating for DMA descriptor, GFP_KERNEL flag is being used and > this allocation happens within critical section with spinlock acquired. > This generates a static checker warning. > > Use GFP_ATOMIC to prevent sleeping; and since this increases chances of > allocation failure, add handling accordingly. > > Reported-by: Dan Carpenter > Closes: https://lore.kernel.org/all/abc223e8-44af-40bb-a0bd-9865b393f435@= moroto.mountain/ > Signed-off-by: Vijaya Krishna Nivarthi > --- > drivers/spi/spi-qcom-qspi.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Fixes: b5762d95607e ("spi: spi-qcom-qspi: Add DMA mode support") Reviewed-by: Douglas Anderson