From patchwork Thu Feb 17 20:26:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Cheng X-Patchwork-Id: 12750623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1EDBAC433EF for ; Thu, 17 Feb 2022 20:27:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A05510E7AF; Thu, 17 Feb 2022 20:26:57 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 994E510E790; Thu, 17 Feb 2022 20:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645129615; x=1676665615; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cF0j/5lXhE9vXYAFhoP9dnmKk1A0LC4iuoAkt+5jVCg=; b=WEqivElAR0hZvT1Wf82/Yq/X8c081LI9wI8QZ1jAQFEQ8yxsCm2pScy0 d5/AWmYt9RNWAQ3HkCjiUZwGAveqV0UbtTR5uV+x4zJ5sP7QaSwVbzO1W xLrlRde/U3R6HaxWqvMYl9OWZ46tdKsCaee6Zh5pdzsoyvaNRx9ocCchY 2a3UgpOUd9ON8+9ZwZI67gyV9e2bqY5FL4viocXYNbSjxVqzV2KD1M37z k2zsQIy6xITKGWPo+wsC6PTeNwfNbsmZ+M4zo4cnLAqPdsylQUU4vQ566 eQIhCP9Xu3BwOa/X+aYY1wH86rwOYHBtcBwbPLFkmiMyBZUev7rtJZhR0 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="238370943" X-IronPort-AV: E=Sophos;i="5.88,376,1635231600"; d="scan'208";a="238370943" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 12:26:55 -0800 X-IronPort-AV: E=Sophos;i="5.88,376,1635231600"; d="scan'208";a="545842090" Received: from zlwang-mobl2.amr.corp.intel.com (HELO mvcheng-desk2.intel.com) ([10.212.198.213]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 12:26:54 -0800 From: Michael Cheng To: intel-gfx@lists.freedesktop.org Date: Thu, 17 Feb 2022 12:26:41 -0800 Message-Id: <20220217202644.122937-1-michael.cheng@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 0/3] Move #define wbvind_on_all_cpus X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: michael.cheng@intel.com, lucas.demarchi@intel.com, dri-devel@lists.freedesktop.org, siva.mullati@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" This series moves the logic for wbvind_on_all_cpus to drm_cache. The logic changes a little here, if platform is not x86 then we throw out a warning for when wbvind_on_all_cpus is being called. v2(Michael Cheng): Move and redo logic for wbvind_on_all_cpus. Also add drm_cache.h where the function is being called and remove uneeded header files. Michael Cheng (3): drm_cache: Add logic for wbvind_on_all_cpus drm/i915/gem: Remove logic for wbinvd_on_all_cpus drm/i915/: Add drm_cache.h drivers/gpu/drm/drm_cache.c | 2 -- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_pm.c | 7 +------ drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- include/drm/drm_cache.h | 6 ++++++ 5 files changed, 9 insertions(+), 10 deletions(-)