Received: by 10.192.165.148 with SMTP id m20csp4818581imm; Tue, 24 Apr 2018 08:53:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/VIt7jUwFUn9nuy6yFtirrK1N5Quf0xFuo8y0nM0b1henBUXBsMzzBs1NBefBpYhe9FNac X-Received: by 2002:a17:902:96a:: with SMTP id 97-v6mr25985275plm.266.1524585211404; Tue, 24 Apr 2018 08:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524585211; cv=none; d=google.com; s=arc-20160816; b=HaE75W+3Aeivj8pdmQ/s6U1yZIil+DPoR8LKfFPaFn6CHTr4aKzZfqhieGg+4AkKos uir5eaDwNyJ+Pd89Vo1VDeZj2byLnSEtm1v04jN9zcmFI/GmSteIasuLFN8Cn8B7IQpR fNlfOoFYfRNf48zF8zo7YY/NJbjbkA0/1C+kOQuM32ySe3X1StcFmWibwj6wjgfpTbhs 0BgzBl9ViUUKypEjmAdXaZZ7soQGyvGJ3HStoIGgIagNkjwJptIQLuy+l6f8s02zKYKI 8LmyyJcnUOUf3wUgr/Xz00ECrBeMelS6M5mlOGuadA4LaFHVqWKXekEkrJ/eZSei1YKa 9/kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=R4OmREexMCkmtCpOKTl3B/zSY6z1xWHBT8Xr2KqlGr8=; b=ialx9x1NEQ9SX9kYCpbIrOatfTS1s39tssxMTB6irWhKZKr1q/NEHCsdE+N0TnjZuX 6WqpaB2fDQe3esW6PSdxZM9/cvvbtQsuy0ucod1MF/dvAfYH4/fXiVB9rT72ewZaNqDX JKNlZM2moNVR4oSHmUGGZl15Y8qu5qPrgZL9tjfUX8bzciodY0ulf6pvFTK9P7NQIzPh 0cLFfQmKeBXaBLRQakMf9V2sZEewOBbdE2o+VmBWjfnYvQKLLuniRMBNb9tqY26VMaHm V/rW9ydNuoHQinAIUD2zG6goZmbjeRTtotzsMTDfjXF5FRHATRZ8yL9Mn4Hu8FgcIHou 9azg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FCl1IiKp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u198si7213700pgc.203.2018.04.24.08.53.16; Tue, 24 Apr 2018 08:53:31 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FCl1IiKp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbeDXPvp (ORCPT + 99 others); Tue, 24 Apr 2018 11:51:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47867 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbeDXPvl (ORCPT ); Tue, 24 Apr 2018 11:51:41 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180424155139euoutp01a9234bb35c26e7879294f0eeeadc3ac1~oahIYBDvj1921819218euoutp01v for ; Tue, 24 Apr 2018 15:51:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180424155139euoutp01a9234bb35c26e7879294f0eeeadc3ac1~oahIYBDvj1921819218euoutp01v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524585099; bh=R4OmREexMCkmtCpOKTl3B/zSY6z1xWHBT8Xr2KqlGr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FCl1IiKpU3IPgZM3tCXHrab+Mb2l9wZyYUIoyitquxChniwCn0crUFyNOVQ4vH1Q0 BGeZtqMAXssMsFydttr36BxUzMfciaXbH7yKANdIscm6FPFUg8cC78CtmMZTN18Yv+ g0FDxMz0/f3rZtuKIVesz4jlmoata453iGhn86rI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180424155137eucas1p188d2bcc40bac5607654ce12609ecf3e9~oahGZJmDI0853308533eucas1p17; Tue, 24 Apr 2018 15:51:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 41.7E.10409.5825FDA5; Tue, 24 Apr 2018 16:51:33 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180424155131eucas1p14e13f5793d807ff47366308d250b9513~oahAdPbdv0857608576eucas1p1W; Tue, 24 Apr 2018 15:51:31 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180424155129eusmtrp2bb62cc397e3604abd4ed1dddebb62ada~oag_oml5g1212012120eusmtrp2C; Tue, 24 Apr 2018 15:51:29 +0000 (GMT) X-AuditID: cbfec7f5-f95739c0000028a9-c1-5adf52853c5b Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id AA.E1.04178.1825FDA5; Tue, 24 Apr 2018 16:51:29 +0100 (BST) Received: from amdc3058.localnet (unknown [106.120.53.102]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180424155129eusmtip1025be4ca409f9da5c10bd06ad8bf007a~oag_f1AxE2597325973eusmtip1c; Tue, 24 Apr 2018 15:51:29 +0000 (GMT) From: Bartlomiej Zolnierkiewicz To: Jia-Ju Bai Cc: benh@kernel.crashing.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] video: fbdev: aty: radeon_pm: Replace mdelay with msleep in radeonfb_pci_suspend Date: Tue, 24 Apr 2018 17:51:23 +0200 Message-ID: <7290517.RXRYeCv1u3@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <1523324840-28830-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42LZduznOd3WoPtRBr1bjCzWTVzIZPGhqZXZ 4kTfB1aLy7vmsDmweOycdZfdo+dNC6vH501yAcxRXDYpqTmZZalF+nYJXBm7pn1kLGhkqzi+ bR5zA+Nbli5GTg4JAROJmzceMHUxcnEICaxglNjX+Y4RwvnCKLFy5yxWCOczo8SKjweYYFqm HutigUgsZ5S40vuQDcL5wCixZ/lnNpAqNgEriYntqxhBbBEBdYnTy3axgtjMApES0+++BIsL C6RLNB/6DRZnEVCVeHRgG5jNK6Ap0ba0C8wWFfCS2LKvHWwzp4C7xJ3n11kgagQlTs58wgIx U16i43Ij2KkSAr/ZJFY3fWWDONVFYuXNFVC2sMSr41vYIWwZif875zNBNDQzSnzbsYcZIjEB 6IX1QhC2tcTh4xeBpnIAbdCUWL9LH8SUELCV2LmSH8Lkk7jxVhDiBD6JSdumM0OEeSU62qBm qElsWLaBDWZp186VUHs8JFrPbGWcwKg0C8kzs5A8Mwth7QJG5lWM4qmlxbnpqcXGeanlesWJ ucWleel6yfm5mxiBieP0v+NfdzDu+5N0iFGAg1GJh/fH77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1z4xHL3yWMlR9zPqZsK/7/8 ffGXefIMPw496bdUYinOSDTUYi4qTgQA9fPw958CAAA= X-CMS-MailID: 20180424155131eucas1p14e13f5793d807ff47366308d250b9513 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180424155131eucas1p14e13f5793d807ff47366308d250b9513 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180410014725epcas1p2f9db790e2df6754f108048b00f399130 X-RootMTR: 20180410014725epcas1p2f9db790e2df6754f108048b00f399130 References: <1523324840-28830-1-git-send-email-baijiaju1990@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, April 10, 2018 09:47:20 AM Jia-Ju Bai wrote: > radeonfb_pci_suspend() is never called in atomic context. > > radeonfb_pci_suspend() is only set as ".suspend" in struct pci_driver. > This function is not called in atomic context. > > Despite never getting called from atomic context, radeonfb_pci_suspend() > calls mdelay() to busily wait. > This is not necessary and can be replaced with msleep() > and usleep_range() to avoid busy waiting. > > This is found by a static analysis tool named DCNS written by myself. > And I also manually check it. > > Signed-off-by: Jia-Ju Bai Patch queued for 4.18, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics