From patchwork Thu Jul 16 12:50:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 11667389 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2A941392 for ; Thu, 16 Jul 2020 12:51:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC7B820739 for ; Thu, 16 Jul 2020 12:51:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YZHTAEMA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC7B820739 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5560C6EC53; Thu, 16 Jul 2020 12:50:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C1076E2EC for ; Thu, 16 Jul 2020 12:50:48 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id f18so6984443wrs.0 for ; Thu, 16 Jul 2020 05:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ucx8Cx6Aued2xkCHjZWrNVH6UHBd3IwmElLgIv7WetE=; b=YZHTAEMACMSpQf1f1UITaGNCfVwnSuAOtJO3O9JS7LBk3axjcAiMGJerSAqFK0aoh/ rvJPYYLtEdGZNGj2Xfc5bpIOWRHbmmMNuXbKd5uZ4hGYF9+vEwLtSoRt/q2KwLamKtMO 5PITbD6ftRIqGSuebeow42qeVmIpXOMyFiX5W+YVIdhMd+64U4HYuGYxaYJUl6K1hzFz 0Rc9ilyCGljkgrAWmlH0OdknjnA/Uob2VBompZzyYFpLtFLRiczQtxJmfEZARCgz24zP bJI22iLz1r9X/zPNHTLphE2f08/2zzkaTfKrnYB80TsXH9FgVOMio2Q9OVN3oZplgaMS Q4FA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ucx8Cx6Aued2xkCHjZWrNVH6UHBd3IwmElLgIv7WetE=; b=E8rSFT49l9L3XXYC/U2AGZMe5uMy8koQ1TlR4ehrBprJndb77pt3NaaDC63sdAiAlB ZByayghUaQV4kDMq5mB28XjZ9lWwvaTvxTfS0D+pY2Mtb8mB3PejJN+3hlePIe+JqKwe SB4VzSyT5q6Ul99N5zSTI3HZufrpxuldkkaBLipG8BK1jH5h9nWmqFiT7++uFwjFtt8d VyG9RNDJAXBvhoiM4ty/h7ZxIBAcbB6PyWWi7FqE0Xuw2XuKFDJtMHziu2xpxFW/dGyP XRO0iabngucvVUZqyXsff2s8kztKcn1ZX7E400b4Q2lx35QSe0A6CsPwVrrFn+EhQA1r pLVA== X-Gm-Message-State: AOAM532dIOF3lqaBJ56oFhnL8i21THUWh0YjRnTJV6Jov4OKUHx+RXb7 1QHyu6VzsKFhBZvDx/M0918GplSB X-Google-Smtp-Source: ABdhPJwdD5q5XAyPQAs6O8ADEqNb4AQgBesc1i8tfK0h2OIP6s7bs7AL0Mo3kI/t0DoedNvgVtha8w== X-Received: by 2002:adf:f60a:: with SMTP id t10mr5235106wrp.64.1594903845983; Thu, 16 Jul 2020 05:50:45 -0700 (PDT) Received: from abel.fritz.box ([2a02:908:1252:fb60:efc1:eb01:18eb:bff2]) by smtp.gmail.com with ESMTPSA id z25sm7669872wmk.28.2020.07.16.05.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 05:50:45 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 8/8] drm/ttm: remove TTM_MEMTYPE_FLAG_MAPPABLE Date: Thu, 16 Jul 2020 14:50:37 +0200 Message-Id: <20200716125037.67437-8-christian.koenig@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200716125037.67437-1-christian.koenig@amd.com> References: <20200716125037.67437-1-christian.koenig@amd.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Madhav.Chauhan@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Not used any more. And it is bad design to use a TTM flag to do a check inside a driver. Signed-off-by: Christian König --- include/drm/ttm/ttm_bo_driver.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 71b195e78c7c..9b251853afe2 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -46,7 +46,6 @@ #define TTM_MAX_BO_PRIORITY 4U #define TTM_MEMTYPE_FLAG_FIXED (1 << 0) /* Fixed (on-card) PCI memory */ -#define TTM_MEMTYPE_FLAG_MAPPABLE (1 << 1) /* Memory mappable */ struct ttm_mem_type_manager;