Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2746145lqo; Mon, 20 May 2024 15:47:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXb+kSMEde0IYVcy3DXStbZjvJOeRdkxrp8k47cgD3IKnO4ZWTLqPj49SqhmVXWJSZONXCa2+Cqq/MyxfjXj0fPz0pAmD8RBvcRIqEIFA== X-Google-Smtp-Source: AGHT+IF1WxizUOssDfxdTl1/o9+O9RQ25Nja1m+EcwlV3xrQSFVOssIuZItC2ytrWbO9bo+YFihb X-Received: by 2002:a05:622a:1111:b0:43d:fa8f:53c1 with SMTP id d75a77b69052e-43dfdbbb18amr340959121cf.64.1716245234264; Mon, 20 May 2024 15:47:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245234; cv=pass; d=google.com; s=arc-20160816; b=qZ/LVjuIWm+UuFvtCeOYgu4kqfeoDbqIJaKkbuq4j4wIE1Idl21/LYKOtVKzyAHdpV CJPE3dL2Dx74i0kbNXj+jMvRcmaIrkNhGb18ovwYEeEDW5z8OiHuYtDePGbKjU9Jws48 3PmqhPAbbI9Fk8O/luF+b/3Mw8rUvNmhBAZyYMJPE8R90fb/yjLq9vmEL++a+COYEuwD S28es7jA9inMUWOHPekT1Xq6fOAGSDv+u2sIx4j6pFS4L1hQ/RlObAVhmey3289rI1ts F1JxdyNpYzabfMT5rYgCJH10y89S+4oFBN+KK0OlMxRWDlsk0K6FIYgL+Kr+h7AbMrqp ZzHw== 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=qa3N1OOuGcMHiQslODAFHOx/z1XrDm2PV9LqAgVdD5M=; fh=AagizDlX/kuYJiemrNtKK3Agdu43IrSe2H9KZheBxPE=; b=rOojS18R+xCWPYNXgeQk8c7ZuM4h3CjCEdPkV7kPfhqb0Q2ksx5toTffjRbn8Ogojy T1Fm6dX582Qp90VBXrKxiZzGD79mMhnTnlksCIqcsbbKAMGY9oK8JN+wP93eMy9rcFRP CxXMRDVlFxNFlwkf9KNrKkmxtEis839LjxusbePLZU1RyMU3uQPhq3mfFzILL++K1dkP MkTvJ0cXilncvcWkEpQhxkkhTWxXlyrh+lTXrGuyXw68NEZEgnfEwPtXFvFbv+TO8HX0 LvTooUkRF80Oq+W27zOGxLbSS3y0fLQ9Oio2nsDPAXwC6W6OtFwRYsuhW96Zwc7+e8NV 4rOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=esvVkENu; 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-184232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184232-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56b9cddsi5043081cf.599.2024.05.20.15.47.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:47:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=esvVkENu; 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-184232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184232-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 A70971C210BC for ; Mon, 20 May 2024 22:47:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE6F0139D1C; Mon, 20 May 2024 22:46:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="esvVkENu" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 548405026E for ; Mon, 20 May 2024 22:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245200; cv=none; b=iEJcU4HvoH/I/+j0k4FothThbZVCWgJpcX0DKBvi92LVAbHT/4eDNbnaV1qplguv6AbMJGTUGUddHGhDjPA0lpcNFCgwuKtrAA3VNtEQEgzWJY4trr1SMlLQNKsJ5wGc4QGUIxo/tPC3gvmlTRue7Tdtfg75vFMnBaLuzRXMnG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245200; c=relaxed/simple; bh=R7lJm8y1wTPr9sOO4og3VXb29EESiuJx3kDAU5wPuLo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Yv6zr5klD8s9w5aUhPtPiAZRNzBGwm/3FNzdMu95Zg2M7rNEnZlBv+PYodKnRHyMtya8221rj8QvVOjNKgxv75Ag5iz7zgRRcCYKuLIEuqqA0bQjm2tk03VRSAAdUWgpmJfp0pggLKNwu06jM3CGGfZl/C/AKvbFXNyLoUlunfE= 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=esvVkENu; arc=none smtp.client-ip=192.198.163.18 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=1716245198; x=1747781198; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R7lJm8y1wTPr9sOO4og3VXb29EESiuJx3kDAU5wPuLo=; b=esvVkENuTE25h1bd6mfotyTf34BPPsdEryy214C3S58V+n8SH3qdnq7U kXgtG64jUvg3cAtLwxVY+auw3NyqC93FqSMsdlkxLwfp7iH0b2hv1oVaY 4xmVBGl+ELXgyXvNgX/ikJZI4Ij7EGWObGCJxpRQLDGdc0vUTm33Pg14O GmQTxQiNBFfFBBwXMmCPHu0XUkdlTyqywPvQBBPgLY1wvHJC5yoAFgGBb Ck0+XyQfQHhkt4pJGVPM1hGAIhXcH2NMfGoKu6A92UvGyZP3SoFj7miBE lxaG3QL8m+L6c+HgsYV98UbIzajo2eEFGisSFXo4T23BbRAiWhalVxjxG w==; X-CSE-ConnectionGUID: w3IDjXf+QQmeHTogPp8/6Q== X-CSE-MsgGUID: PBNf28dIRDKP3Yb30IWBTA== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199551" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199551" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 X-CSE-ConnectionGUID: m5auZqylSLesyZVyyHIuXg== X-CSE-MsgGUID: Q5vCGZJGRheBZu3aCQ6ysQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593396" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Andy Shevchenko , Hans de Goede Subject: [PATCH v6 05/49] media: atomisp: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:36 -0700 Message-ID: <20240520224620.9480-6-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-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 Reviewed-by: Andy Shevchenko Acked-by: Hans de Goede --- .../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 0e3f6fb78483..fdeb247036b0 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 @@ -178,22 +178,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.45.0