Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp614374lqd; Wed, 24 Apr 2024 11:28:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVmtntuwSo8w2aEE+NU/4RtEYfbaBgJsAScAqnAsrCo5f/qxAev5iaHIrt2hRMzwkQS8AZ+PyNwOYamETPr8mLFD4a4Yn0IHINxlBGHQ== X-Google-Smtp-Source: AGHT+IHRxXf2Rl6De0QJyJIVRkGKE/9Ljbvt5YAUw3iGw4Xry0WvgUsFb7tjevuIAMQtx2NFe5rB X-Received: by 2002:ac8:5f84:0:b0:43a:837:c93c with SMTP id j4-20020ac85f84000000b0043a0837c93cmr3832823qta.20.1713983330916; Wed, 24 Apr 2024 11:28:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983330; cv=pass; d=google.com; s=arc-20160816; b=OHCil016+wFGZ2SoeeBrs8AC6W4pNi0Fk3LFqOQEZmuIX148dZ9pyrqNa7H3I/B2EX Z+9ZrAy9+enJekzAnkT1Fr13Sq9KoJF51i5LjamL9UAyq695uL/JLAljdM7Oq/dPG90T 4cIFUsHWD+yckQecJkgHY3+f6o3uM5VOgKoNNXQIFpa4GkHIpogTFiml21wUvGP3IBZD W99YGXyRMSonaOwNZnNxUkNd3Cym62CG5X5t2KCB2hujUjlKbfrF66rKnwHZsZ+cysQc Y8RvlQebP0fL+NHHP4MGlyTELO0g+uLLQnE7cIheYTCIoau3wtdAOBayEPskTeXxfuJi jYvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qxQukiLOsvUjH92QlLUG2y2hszJD6B/3HpPklbkzFQ8=; fh=QLQS6izto1UZ5cS86SpH/VWrYQKzuXthlWSEJiAhwm8=; b=t9NUBSpZtjNUbboHHsaoXKUDUeVmIaGHrstCSwwnwtiZG6/AH9Ubwb8Q+9zaLCIo/W kpD153Mg6iJ7zr3rOEvZKP3wo4MNFo5Yv+yzJVAnSgC7u/v0Y1sWbT4bkkl9VbaeyIc2 sBt5gyQjty6GPjGTKNma8nlnQKeia+48+Nqvn5S0Zwo23SUfTRA+uGq43gz0bvExSW/U WCsxw6hL+3SWjurk+3/GpgC2ptEvsesrELgFruAqJZX4yOoLgZqiPOw0pANehPyOgSb3 xifpC+OwwNqUyVTJRATTJTsZQovhWf5t4wZ31zqSsvZDALXHrsukSEyh9el1+IcTEnDB DJqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mpghOwef; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x14-20020a05622a000e00b00439da2a2bebsi5918654qtw.319.2024.04.24.11.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mpghOwef; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 96AF61C2314A for ; Wed, 24 Apr 2024 18:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12DE9201269; Wed, 24 Apr 2024 18:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mpghOwef" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0171200136; Wed, 24 Apr 2024 18:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982549; cv=none; b=hrzXq7FrR1aEeWSB+kPJZ1/6Nv79YfzLXEDQefGL12Zo8vtYJv7HsYN1xa3GeFiTz4OfkF2rrXFkViG71v8owrY68CNq0J9lZmbwbxkwJniYvfY/Y2/skZhygpJAgxeIOm4k27OqxiMiC7dYMW339d0GDNPU5IyDHkTmXvdXlOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982549; c=relaxed/simple; bh=tuc2bJNVfoJEYlt7uobgAji+MBXQbVAFmZXBeLnr2IY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D6nSDAe/8m5A4+7td2sP9ZhNWE1h6eg7sFN5Jf5SBhMXxprmLLJ2w5gOD9Y6ClA0MRbBF49j/qQnm7ETQMdFJEgUcWeYbHem3VUkjfoKwfnovpig+wnho3DDCK0Q+4RmGxVsa8OavnScdi/evxFQgXgMI43I2afAJB2yi76uhEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mpghOwef; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713982548; x=1745518548; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tuc2bJNVfoJEYlt7uobgAji+MBXQbVAFmZXBeLnr2IY=; b=mpghOwefjT5XFTKhnFvUx4RLwNBaqsrYpd8LN+2tVAUaYLBng9L6hMeJ OJD7ujx5m8ZMffuN2QXyN0xE1XeBS8O4M0ZbyLH59cKv1417J6KuW8NHe Z7NJQu3xtQPKZF91fNa2SerzXwBQMVunkLu4oHk+YLBcyPmKG2uBPhbVb c+n0h6XXOj+73VRjr/tc5UF8bZObsV6XWd+7Ang8g9H5M3yklrwYz+k82 BPZFTPEn8z+HeBFKLWh09lVx90MacHkTn7uGTSe4dV66An7IxjVXezNiE RiD0JrqBUxV4wPiv6ulfgscRCiIYt4LquHzRShc/LIV72KehexwKiDQDW w==; X-CSE-ConnectionGUID: qPNv8KGXROW36tdjppPvOA== X-CSE-MsgGUID: qxbadtIiRZuSETUWEz/gag== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503732" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503732" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:47 -0700 X-CSE-ConnectionGUID: MiD0ufA1RiGCOfFZdskV4g== X-CSE-MsgGUID: wNR2dLrvSQeMTQmioWEzRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750381" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:47 -0700 From: Tony Luck To: Borislav Petkov , Hans de Goede , Mauro Carvalho Chehab Cc: Sakari Ailus , Greg Kroah-Hartman , Andy Shevchenko , Tony Luck , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 67/71] media: atomisp: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:46 -0700 Message-ID: <20240424181546.42446-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck --- .../atomisp/include/linux/atomisp_platform.h | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h index 487ef5846c24..70bab3d1bc2f 100644 --- a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h +++ b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h @@ -18,7 +18,7 @@ #ifndef ATOMISP_PLATFORM_H_ #define ATOMISP_PLATFORM_H_ -#include +#include #include #include @@ -217,22 +217,17 @@ void atomisp_unregister_subdev(struct v4l2_subdev *subdev); int v4l2_get_acpi_sensor_info(struct device *dev, char **module_id_str); /* API from old platform_camera.h, new CPUID implementation */ -#define __IS_SOC(x) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \ - boot_cpu_data.x86 == 6 && \ - boot_cpu_data.x86_model == (x)) -#define __IS_SOCS(x,y) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \ - boot_cpu_data.x86 == 6 && \ - (boot_cpu_data.x86_model == (x) || \ - boot_cpu_data.x86_model == (y))) - -#define IS_MFLD __IS_SOC(INTEL_FAM6_ATOM_SALTWELL_MID) -#define IS_BYT __IS_SOC(INTEL_FAM6_ATOM_SILVERMONT) -#define IS_CHT __IS_SOC(INTEL_FAM6_ATOM_AIRMONT) -#define IS_MRFD __IS_SOC(INTEL_FAM6_ATOM_SILVERMONT_MID) -#define IS_MOFD __IS_SOC(INTEL_FAM6_ATOM_AIRMONT_MID) +#define __IS_SOC(x) (boot_cpu_data.x86_vfm == x) +#define __IS_SOCS(x, y) (boot_cpu_data.x86_vfm == x || boot_cpu_data.x86_vfm == y) + +#define IS_MFLD __IS_SOC(INTEL_ATOM_SALTWELL_MID) +#define IS_BYT __IS_SOC(INTEL_ATOM_SILVERMONT) +#define IS_CHT __IS_SOC(INTEL_ATOM_AIRMONT) +#define IS_MRFD __IS_SOC(INTEL_ATOM_SILVERMONT_MID) +#define IS_MOFD __IS_SOC(INTEL_ATOM_AIRMONT_MID) /* Both CHT and MOFD come with ISP2401 */ -#define IS_ISP2401 __IS_SOCS(INTEL_FAM6_ATOM_AIRMONT, \ - INTEL_FAM6_ATOM_AIRMONT_MID) +#define IS_ISP2401 __IS_SOCS(INTEL_ATOM_AIRMONT, \ + INTEL_ATOM_AIRMONT_MID) #endif /* ATOMISP_PLATFORM_H_ */ -- 2.44.0