Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCBC4C35242 for ; Wed, 12 Feb 2020 02:54:41 +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 44FAA206DB for ; Wed, 12 Feb 2020 02:54:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 44FAA206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=etezian.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF0386F478; Wed, 12 Feb 2020 02:54:40 +0000 (UTC) X-Greylist: delayed 4589 seconds by postgrey-1.36 at gabe; Wed, 12 Feb 2020 02:54:39 UTC Received: from 1.mo68.mail-out.ovh.net (1.mo68.mail-out.ovh.net [46.105.41.146]) by gabe.freedesktop.org (Postfix) with ESMTPS id 03E946F478 for ; Wed, 12 Feb 2020 02:54:39 +0000 (UTC) Received: from player718.ha.ovh.net (unknown [10.108.42.215]) by mo68.mail-out.ovh.net (Postfix) with ESMTP id D1812159C1C for ; Wed, 12 Feb 2020 02:38:06 +0100 (CET) Received: from etezian.org (81-175-223-118.bb.dnainternet.fi [81.175.223.118]) (Authenticated sender: andi@etezian.org) by player718.ha.ovh.net (Postfix) with ESMTPSA id 2E9A8F2C72DB; Wed, 12 Feb 2020 01:38:04 +0000 (UTC) Date: Wed, 12 Feb 2020 03:38:02 +0200 From: Andi Shyti To: Daniele Ceraolo Spurio Message-ID: <20200212013802.GD8175@jack.zhora.eu> References: <20200212003124.33844-1-daniele.ceraolospurio@intel.com> <20200212003124.33844-6-daniele.ceraolospurio@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200212003124.33844-6-daniele.ceraolospurio@intel.com> X-Ovh-Tracer-Id: 6268166259412157040 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrieeggdeftdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughiucfuhhihthhiuceorghnughisegvthgviihirghnrdhorhhgqeenucfkpheptddrtddrtddrtddpkedurddujeehrddvvdefrdduudeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjedukedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegrnhguihesvghtvgiiihgrnhdrohhrghdprhgtphhtthhopehinhhtvghlqdhgfhigsehlihhsthhsrdhfrhgvvgguvghskhhtohhprdhorhhg Subject: Re: [Intel-gfx] [PATCH v3 05/10] drm/i915/uc: autogenerate uC checker functions 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: intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi Daniele, On Tue, Feb 11, 2020 at 04:31:19PM -0800, Daniele Ceraolo Spurio wrote: > We want to map uC-level checks to GuC/HuC-level ones. The mapping from > the uC state to the GuC/HuC one follows the same pattern for all the > functions: > > uc_xxx_guc() -> guc_is_yyy() > > So we can easily use a macro to autogenerate the functions via macros by > passing in the 2 mapped states. > > v2: Split this change to its own patch (Michal) > > Signed-off-by: Daniele Ceraolo Spurio > Cc: Michal Wajdeczko interesting, however it can be hard to follow. I haven't spotted anything wrong (also in the patches that follow), and I hope you tested it properly :) Reviewed-by: Andi Shyti Andi _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx