Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp285714lqp; Wed, 12 Jun 2024 01:10:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsbtzKuYGWffNMAxx+V6PHq0dAnacXSoH7iWckcAuQVcoMjjiy8wVR3ymkawuY5FswMN2rdLr+pndF267r7RGm/A3t9bzKFZPKxn9/zQ== X-Google-Smtp-Source: AGHT+IFsEN4656hCxBeNkKfWj6VvwusD3gWbdR3S6qMzlNAnRQbmqsPVeVlUvlIFQ5uJ9h+/aCrR X-Received: by 2002:a17:907:7248:b0:a6f:1f18:2b72 with SMTP id a640c23a62f3a-a6f47c20419mr65839066b.0.1718179856619; Wed, 12 Jun 2024 01:10:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718179856; cv=pass; d=google.com; s=arc-20160816; b=WM0kdQ7Dn5HRrodiEs8N/jumT7qJ6vYHeLZbTWVrbJ7XTxDwS3AKyzLyC8FQF00p/E WP2fHRYsQyGjK/z6dsaLxicTXchOPymYlkgBo54svMEdzwQOyABC48P9fs4M/UEXc1w+ o78PkN1WTXrwtL8KGC1SRdwNnetIlgevNy4K3rG11ZU0pUZiJS+nhC2LAEXqp8TWQAbK x/Jr4ftVDtaDVAbsK06VxRgL5ShtAbTis8YFPI3sR9QyCkzX6Bq6piy6MVPz6tgL/V82 zg8aRxCjKnOA3fKKvT+2N25KqQd/9ROc5TmiASAwrb/KZEt42Z7wr+AN1rJlksI+JPB7 N0hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=mZzSDXkByvhQTe8Q6mgT19yqvdN/uz/2Piu84KIHlJ0=; fh=tshh9IPjPFFclwQFSxfuwqbP2eekj4598U+MNJgwxcY=; b=crvN5NC2n6Uxx4QnPAMw9R9UhLk2DONNmy2gjoGBs22rTI2QyArx7bsxk2VJvB63SD ctf3MNOJDIfK+Y1N2hysjuegECShwjjw6pkIj1TtD4vwbRWLOciF4rUsPLmBi0kIpNzT wgiwe9PMjloGNrl/93xHO7etHUXiCvur0nOtjLV/5ptGvcGMEPts47qKjMEjWANtSUGw fvvqG/aeXXO9XVAvudwIW3D5odw2IhB39JBnrbp2KCLEV1pHMQxLr/Az90CO8c14KhXS 9dN5+N6XP7F6fJhtXLF08uCE+qN+JubuQjAuzPkq05LrhS+jVUw2PX8AU8vnWAcji5QA wzdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Thtc9So0; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f4acdeacdsi28604566b.677.2024.06.12.01.10.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 01:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Thtc9So0; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D2A61F220DF for ; Wed, 12 Jun 2024 08:10:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8CE816D324; Wed, 12 Jun 2024 08:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Thtc9So0" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 8AF8816C847 for ; Wed, 12 Jun 2024 08:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179823; cv=none; b=IecRR+Jqs8RE5MKHhd7HDVY7up7wCn0NHGwdLFF8hPVcGGJarRAiWrokJ4a7yKC9AL/3tT9w8b2tn3smKqbNw9AaQAEpV6CutASFXDqYggKEhS16qvWR11JrfciAAImQjJgS22WRgRp7TrTY3V6bHgJvZrcR3zyoCdkAJSXdsWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179823; c=relaxed/simple; bh=KD8XsOYWtuKQcjM/eNkuQb8vTo+mQEltuXJ5GVxlhnk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qxADpJsQltkWpLxwtx2gIu03Fqzl9Zy5obUO6Qaa6FT75/hhQ26rgJPxWiCvk4mlRk94BmTL0iZ1XbnF0zmraHjcWNai9qpjLti6AIDvP2s0/j5Qf/cIl9S373h0+H5ZSdWFt+8w3ku9C/HhqN7yVt3vZ1Rgd4fr0tHYoEEyna0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Thtc9So0; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718179819; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mZzSDXkByvhQTe8Q6mgT19yqvdN/uz/2Piu84KIHlJ0=; b=Thtc9So0HxBppRwvayd8INRPFc+/oOlIhhrPEXLYSV5uEkdpfLaB8puh84Wl+dusTKZKR3 zjC3ebDOqIoefS3Yi+irutcvF3Hrp7fWb7ikz1tMNvKBqCmNr0CW++BxbUIft7rU2FqFMU dQqyo2GBOtSRLOEUv+cXm41mSWJLeOA= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-434-_j5Sgk0kPW-2QzELSQS_RQ-1; Wed, 12 Jun 2024 04:10:17 -0400 X-MC-Unique: _j5Sgk0kPW-2QzELSQS_RQ-1 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-57c753a879dso1976489a12.3 for ; Wed, 12 Jun 2024 01:10:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718179816; x=1718784616; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mZzSDXkByvhQTe8Q6mgT19yqvdN/uz/2Piu84KIHlJ0=; b=YEgJEBvpN3XWQ5PW40sQx5pMchRU5iuEsJzQJ76eZr7MIyAgOKh0bRFgfn7TLy1TY6 3Xen1bGqUmQ2BSPGFt/bFk3KyPwpvYy1ZMPM4ocViXllapDgEsNtW81BG9KsPEzltRUq ympGotTENHqdTxiUb8aCJeos9ovs84bv0YVVMA3F83yaW1yqUzLlSUgdbkBoBsLevp1k Y02lmEnSbgUuugt80F24sfgiwlYOwXdWc/mnl2SUoCKQv12GUxSNTulJDanFfAkKX1+9 cXOi8PVKIWffwv6AoLz3fjL9fNpg4WHai+fLgOixaWemM61lg5O50no4jM8WYDw/KDgI 0a8w== X-Forwarded-Encrypted: i=1; AJvYcCWfPFC+A7xoWZImpHtn8fYd8L8Gb6sR5npE9kr9Mj31vbfAgvv0oD4rpGxjbTEOecsmPfe7KeT7yPrn9Z039OhokWFWIDA1W3lY4p9p X-Gm-Message-State: AOJu0Yz1C7oJy18e4vtPjxJDfqM24Qi4Dn9qcfzhukGX8xmdii2Gm7px 1trXKAHrOuLRm4w526lv49hfp6csVS0Zsicc7wyQQvngvq6QIpOmtUmksiDMfhfxub/LbtaQ7Db bAQIMAyuz6JShYlYbDHR/r0CZYb3BCXOzqlhQBIzxoq1SFq1PPF5/jOZVp7vgDg== X-Received: by 2002:a50:d583:0:b0:57c:4769:562a with SMTP id 4fb4d7f45d1cf-57ca8dfff3dmr677222a12.0.1718179816687; Wed, 12 Jun 2024 01:10:16 -0700 (PDT) X-Received: by 2002:a50:d583:0:b0:57c:4769:562a with SMTP id 4fb4d7f45d1cf-57ca8dfff3dmr677193a12.0.1718179816152; Wed, 12 Jun 2024 01:10:16 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cae50adc2sm38283a12.75.2024.06.12.01.10.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 01:10:15 -0700 (PDT) Message-ID: <38336785-cb59-464f-b2a7-49812f4c2ce0@redhat.com> Date: Wed, 12 Jun 2024 10:10:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines To: Tony Luck , Greg Kroah-Hartman , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, patches@lists.linux.dev Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, Andy Shevchenko References: <20240611173406.352874-1-tony.luck@intel.com> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <20240611173406.352874-1-tony.luck@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Tony, On 6/11/24 7:34 PM, Tony Luck wrote: > 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 > --- > > Mauro, Hans, Greg: Which one of you owns this one. Can you take > a look please. Let me know if changes are needed. I'll pick this one up. But atomisp support is a side project, so I only work on this every few weeks. My intent is to get this send to Mauro (media-next) in time for the 6.11 merge window. Regards, Hans > > .../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_ */