From patchwork Thu Dec 20 14:56:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 10739023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3EEED13AD for ; Thu, 20 Dec 2018 14:57:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FF2F2841C for ; Thu, 20 Dec 2018 14:57:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DCFA2848B; Thu, 20 Dec 2018 14:57:24 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 BF8752841C for ; Thu, 20 Dec 2018 14:57:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B68016F3EE; Thu, 20 Dec 2018 14:57:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) by gabe.freedesktop.org (Postfix) with ESMTPS id B6BF56F3EC; Thu, 20 Dec 2018 14:57:19 +0000 (UTC) Received: by mail-yb1-xb44.google.com with SMTP id c67so809222ybf.0; Thu, 20 Dec 2018 06:57:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=C9p9EAFVpR9Rp2xg2owR/x9KkTAOnS/TC327sqV+sng=; b=l0zXRQUjDL/HtAPrfvYm7+cq2SkLUW5wYLKGUxR7LKCJt8G/F9TE+PdFGPnorChR+A qmKkqbbeSt6HyKEL7Otj232Sa9L/eCU3WSsFZayxs9qQTH5mDjiNJbOYnUu53MSe3PRy ZyofxjQ6j6T5BTq0b7Zh5J/X4ED0wQDxncRIAlxkqe4/br/vBVNUymmiNBR3KYVKJ5Fs Z5vWGr6bfbR85/e2aOLGPiCabQ9BIxKBX9CiL4eL5BKPWzyhXFn+DYSITGE1QmKvqLRS piJM540ZKpLsVnXTQ8u4Y4WmZ7BGqUDE75xbFis6fUV7vPZJIbLj6IubSYXdYX5e8oKa Y/Zg== X-Gm-Message-State: AA+aEWZJKlI94F2Av0u4yOCjDoWJ01zcoJo9bdr/e5UBEdkvVMnFjQKY eZepmk2KZJt1+f0Vm2qA0Bxgfqmi X-Google-Smtp-Source: AFSGD/VN188KpWjLNxXx69vn3URfri2+fWhZZRfiTai9EIMydrzaJJ2KM2qNe0vcwx6HMUTEdB03bQ== X-Received: by 2002:a25:9c86:: with SMTP id y6mr25638990ybo.216.1545317838557; Thu, 20 Dec 2018 06:57:18 -0800 (PST) Received: from localhost.localdomain ([71.219.49.5]) by smtp.gmail.com with ESMTPSA id f67sm8034092ywa.93.2018.12.20.06.57.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 06:57:17 -0800 (PST) From: Alex Deucher X-Google-Original-From: Alex Deucher To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm: return false in drm_arch_can_wc_memory() for ARM Date: Thu, 20 Dec 2018 09:56:57 -0500 Message-Id: <20181220145657.304-1-alexander.deucher@amd.com> X-Mailer: git-send-email 2.13.6 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Deucher MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP I'm not familiar enough with ARM to know if write combining is actually an architectural limitation or if it's an issue with the PCIe IPs used on various platforms, but so far everyone that has tried to run radeon hardware on ARM has had to disable it. So let's just make it official. Signed-off-by: Alex Deucher Reviewed-by: Daniel Vetter --- include/drm/drm_cache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h index bfe1639df02d..691b4c4b0587 100644 --- a/include/drm/drm_cache.h +++ b/include/drm/drm_cache.h @@ -47,6 +47,8 @@ static inline bool drm_arch_can_wc_memory(void) return false; #elif defined(CONFIG_MIPS) && defined(CONFIG_CPU_LOONGSON3) return false; +#elif defined(CONFIG_ARM) || defined(CONFIG_ARM64) + return false; #else return true; #endif