Message ID | 1516115906-26095-2-git-send-email-andrey.grodzovsky@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A675D60325 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 15:19:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97FE8285E3 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 15:19:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C5B1285EF; Tue, 16 Jan 2018 15:19:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 26D53285E3 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 15:19:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E67846E26E; Tue, 16 Jan 2018 15:19:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0075.outbound.protection.outlook.com [104.47.33.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1EC436E269; Tue, 16 Jan 2018 15:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wdHpG18q/VXY2LiGUEZ7o+heF8NVokgGgKGZJxFnywE=; b=uxQ0Ka+dnxrSJxQadpTRXowOFBb3kAbTu1gDTHWyNdCdGHp9/01yWkhiWCS6AT32rbDiDIoMV5zunIuhRlmchD2pARaHplSE8RsFC/fsREdB9OVSgFvbNEEHN59wYQRFBJXHbOe00G4mp+qfeTnjzUxKFCQo+nVMyWpY5rdZUTA= Received: from MWHPR12CA0063.namprd12.prod.outlook.com (10.175.47.153) by CY4PR12MB1448.namprd12.prod.outlook.com (10.172.71.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 15:19:08 +0000 Received: from DM3NAM03FT058.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::201) by MWHPR12CA0063.outlook.office365.com (2603:10b6:300:103::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Tue, 16 Jan 2018 15:19:08 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT058.mail.protection.outlook.com (10.152.82.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.19 via Frontend Transport; Tue, 16 Jan 2018 15:19:07 +0000 Received: from agrodzovsky-All-Series.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.361.1; Tue, 16 Jan 2018 09:19:04 -0600 From: Andrey Grodzovsky <andrey.grodzovsky@amd.com> To: <dri-devel@lists.freedesktop.org>, <amd-gfx@lists.freedesktop.org>, <Christian.Koenig@amd.com> Subject: [PATCH v2 2/2] drm/amdgpu: Use new TTM flag to avoid OOM triggering. Date: Tue, 16 Jan 2018 10:18:26 -0500 Message-ID: <1516115906-26095-2-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516115906-26095-1-git-send-email-andrey.grodzovsky@amd.com> References: <1e5d9bed-fe91-360f-e798-772d669f6377@gmail.com> <1516115906-26095-1-git-send-email-andrey.grodzovsky@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(396003)(376002)(39380400002)(2980300002)(428003)(199004)(189003)(8936002)(104016004)(2950100002)(36756003)(77096006)(68736007)(105586002)(81156014)(305945005)(4326008)(50226002)(106466001)(81166006)(2906002)(8676002)(450100002)(356003)(5660300001)(97736004)(48376002)(6666003)(76176011)(478600001)(53416004)(6636002)(54906003)(7696005)(50466002)(16586007)(316002)(86362001)(2201001)(51416003)(47776003)(72206003)(110136005)(53936002)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1448; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT058; 1:cVUtkCxNTgKjTjheRKbg+8wF9Q4MCQBY1gHwZ4Yl/+0fwQogMdnuOTwU7+al8GGqo1m8qM+ThMmvgiC5HxFlXt1oMchWJ/EPmFWMVWq2vfL/sD922Fc3nozLlcGdZbdR X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f1a6425-3d2a-4f3f-2643-08d55cf47ce3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060); SRVR:CY4PR12MB1448; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1448; 3:th+2pCv1fXmU8mo7lx18dCy1mSO+2h+kktnGN1UEtknPVNnYEuLt7IntdJAGSS2zYBYXZBIIWXSzYJzYpXwXHlxR7YxOVPo2/WXpkKX4ZWovaokZKU5S+KdepeQyAeXOBOkFi3woc17Ft5tDhP3Pg7wUd1PweAsCl85mBSFlKJ0U8ytY1b445a0aFR2HvHmdmifHCygGNAqzAqv0CXzBK7HUZ02c2aVWmhBXStkBxL0etmZ6kV1APqBqcSGGJJPeJlo15+pioY1n7zCDPwYml/KUIZKGzvf0o44aqUS2wDu2lKyDzHHFFVSrq1euSDV/GMMb29i4dGB01U9qib/YxRDU1/komKONEtQOo+2NC5U=; 25:6tjU4rMtL9IAk0xrgpwk+t2p+WHDQAKplt7RE15bU8n6BFdKZTGFkPn5pxdOe121woX+AHngmDD8r4t44oDQfqeMpuoW7jHmGY7v16JLdCXjdCRoigR5RwPQlqVRwmdDdscR8u8k5CmVfiEEjSj3+gfFbm+BeNYZ+W+eHDVZiZEnqo2SEzHiBUz7GZgdOeFX6wlzDuBXdOZkWyroqTHFjC7TINuyId3cZDqSXmRBQT49Z4y+G/q7pGKtSlEAE9R5Q1w6VXg+kywuzxAsxP3mCl90KzBga9okYK60oHMCylhU+/fQ8sYZ66dlnmlgfc7QbHzKkBjlEc0LuWJzOXsjoQ== X-MS-TrafficTypeDiagnostic: CY4PR12MB1448: X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1448; 31:4+IYHeCWxuQlt5t4opI6JVepO6r0Syp+LTPo4b/bBwilqUIJHf+FxtJGIJTItiIJ8QLM8S8RcK3qtn75qfXtCEykv4KoWn4jrT5EfZOg4RyS1kQnImOImNI1Nmio6iCIwWUdBdYqN9lT5ORjf49/eoMr3HnWRo01gDD1fOSkofe8OLVbqPn7Q2PFEnFnscB8NYknrzIGRg2kCE0cEl3A+ycY23Abc0/Rnz698h65vzc=; 20:puYiaTefexGZ8GBlGR33gJx1w02CYzVHu0vkvqkIpTVLB6ibm48LGT2MQKLHlZvdJvjUWBwCk2+9OJGqrn//gjTjQiXx9qauABe4WcdnSdbdyOPIlnd159cobgo46NzY++/XnHk3r4FllbSn2AQ+xsHIabMTCM3TBNY65QkAwI2akzkxQqeTQ7MvJqcYflPa7rFHfpbhtRadrj7ZQoROPebMTjZN2k4G505H0RYvb7qgCevLG7ITTWI1RRS5/m8/G0aqG+5UBGkj3gjhENeLV4Oan8e3EyCpsNGBXRslPeInG+tLXNymvv34Y3Dfg/XBtKynbsrjb7TtN2wfi0zzOvtKGCjQoRqqLgMrdE5Doa2ySzTiWTkQFB76IhIlV+LxLkO/sFGr+CUy4MgNPparfPdUVb/VMFzgu+yb27lcX5jJKq0OBxjme8EqUpSOjArWDcvDDZ2f0Fr+mllUWNK63Mrda9FWnmXqqdhWHoGPrYtb/K0+1FY+y8c0y/9e6qEV X-Microsoft-Antispam-PRVS: <CY4PR12MB1448D4AF6FA85F7FDE9D54CEEAEA0@CY4PR12MB1448.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93003095)(10201501046)(3231023)(944501161)(3002001)(6055026)(6041268)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY4PR12MB1448; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR12MB1448; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1448; 4:7Ybcg1CMhVxAhX9loRi6/8qcozK3Ct4N+kLhuvRClBMWjr3saLjE+7dQNO5vinLuAyDI5F8wWCfYkSC0epxczf8TZSkcBHQ/0llKG8XSokjQ8bNvjcr5fiSmk1RyVF2nvSX2hQV5NP8l2S3Vwkic8f6Dmdw9l49zYUWnJYMO0FI1UcERS/evlwR/YPlUqkARxnkPpjjqNl7vEYSd/rRPScONW2qvWmy4F6ohVrviwNjq5BfxWO9SaRmhXFRvPgr/3Aau/9CG/VAnyM03em4rsm8oSETDFelT/j5edtjEI7KawyhvpzigjGaYv5zc9p5x X-Forefront-PRVS: 0554B1F54F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1448; 23:757orJTGVi8WZhRlW8HZQRKgdrAjEbaSRjs4wmV9R?= =?us-ascii?Q?cCaStuZZ7ktH1YVZsJxf0IKbZY5Vg4PYvuaadTBo36PKMiGUSIMUMkXLjq5s?= =?us-ascii?Q?xxNvpYYPV1rWFeOBx6yKXePbMukDnIz8zDq0w8v3ImYujqYc216Ml9E8ac56?= =?us-ascii?Q?fAvWxwwRDWuEHt+YBXDAkb5bMvQw74KTUU/RLhykCiNhv9l4IfgrEldL3US3?= =?us-ascii?Q?kEijTKUi5AyRi1et7QQl89EJvyQm00oVwN+YG2mg/BrOXjeo0huN4nbfADr9?= =?us-ascii?Q?m9sp54UGAhgIHu4RR9w9PC3zhnDfwNGCysiMD2bb4eqSUSnYT+MXIHnGioiT?= =?us-ascii?Q?a8ucGIB0w0rqhildVi7pseSItFPXQrD1aYB8wJrL7IdeztsMHkebjzXUrtNL?= =?us-ascii?Q?XNc74GEOHEKOIF1RpgkCqdhP92Xh1MRFfkjsVh3B9sx+1rRE7mdMWsWTMAse?= =?us-ascii?Q?hwroYivYwPCRkS9Yc9Xgo7h0VB/Tlp5KuO2KApdNX2MFw2dE5c/GfIj3X+xA?= =?us-ascii?Q?8Wfon9rknkZHIMP6u+b63A5JcbSQx7w+zKfaAncHMAohw4w99YRWkXAIMiOi?= =?us-ascii?Q?CnAtXbUuhbuOW8SRuvuMZX/K2T7Zr50UG8TeLg5KOLIhtafS7WbMN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LAQglDatoBaMu99WLgZ5u927pc7rJ88J56WGWVIyMOWK/at4YVrMDhDtkoXgZgYG9uVImwsKVP8mFMC5nVC3EWr5lW/Mvj0/rkE=; 24:cGAJXH5criZT7WcQd9k4Rcm7zCuhQJQSITFBJhciN4ToUh8o40JNBEqKXbhodjkvj1Bmuh8jNGKfu8wUXmJQm69zEHlzsJ0e6h8m6ez8O80=; 7:XDCBsp0EqhruhIcD/w5qfBm0scRAevvJO50wCq8nkmqWG1OQd+U31kpZjrU5rl0BoVvQ97K1E9KEdbx2lAtMzbOQehkzzfxddVq5xmdKaQwkg9+8vorBm8q70+fPiYJ1axmzcNWcK7tZH5t/SNE4r7RxwiuVTV+kQhaFXD0rVtI7632Pekr4o3aI6d8MjKR9IDEHTDwqh6H5t0SXUr6gGyCGxa11PYYPPin0NWqIoVWXV9AZqN30FX5Sm93WEBnE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1448; 20:lx+cvQtJJ22LEV5gS88gz0YjD6ZIvBZTLA2brU0ih+5NsL3KCL4yYsilIo9P6nfFk5BdlPI+BXf0zvXzNNikQC4eVAGicxDWChTlDpIoBhWVViYlbxR7S8svzOTEgXWl7zqek2AcXdiHz2UTBaU1YkQoI84CJkSlj4oTqzkCJnL6KJkRt55pF+ZaGjpDux1bXUMaONLVDAGiiWinfs0KKpvcGGhOBQrZ116h6pJpI+ZU4My5ZGNusIMdlI7lWwv6 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 15:19:07.8267 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f1a6425-3d2a-4f3f-2643-08d55cf47ce3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1448 Cc: Hongbo.He@amd.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 5c4c3e0..b4dc3bd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -420,6 +420,10 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev, #endif bo->tbo.bdev = &adev->mman.bdev; + + /* We opt to avoid OOM on system pages allocations */ + bo->tbo.bdev->no_retry = true; + amdgpu_ttm_placement_from_domain(bo, domain); r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type,
Avoid OOM on syatem pages allocations. v2: Remove modeprobe parameter, making this behaviour the only option. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 ++++ 1 file changed, 4 insertions(+)