From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 4C8D0C2D0E5 for ; Wed, 25 Mar 2020 17:55:50 +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 19ED3206F6 for ; Wed, 25 Mar 2020 17:55:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19ED3206F6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com 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 A21836E1A5; Wed, 25 Mar 2020 17:55:49 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 428E66E1A5 for ; Wed, 25 Mar 2020 17:55:48 +0000 (UTC) IronPort-SDR: aoj1yEuAoHMd5mNIOqcJn0bhdZOwe/r8yJJHf4dsUGKZcaMu9MtjjO+jT2edrJ3/RI2K5OXXap jIQcDFxfLYYw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 10:55:47 -0700 IronPort-SDR: yxAkPpuEQFLC64ZKr0U+/nQFpZIKF3fLdBkjgY97opnwkVk/47C3gVPArbctw4ExKM5eg3P8kM yN05nFnKbQxQ== X-IronPort-AV: E=Sophos;i="5.72,305,1580803200"; d="scan'208";a="393703393" Received: from yrahamim-mobl.ger.corp.intel.com (HELO localhost) ([10.255.194.58]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 10:55:39 -0700 From: Jani Nikula To: Daniel Vetter In-Reply-To: <20200325084300.GQ2363188@phenom.ffwll.local> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200325084300.GQ2363188@phenom.ffwll.local> Date: Wed, 25 Mar 2020 19:55:34 +0200 Message-ID: <87tv2ciajt.fsf@intel.com> MIME-Version: 1.0 Subject: Re: [Intel-gfx] [PATCH 06/13] drm/i915/hdmi: use struct drm_device based logging 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, Wambui Karuga Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, 25 Mar 2020, Daniel Vetter wrote: > Hm I guess the foo_to_i915 idea doesn't scale, we'd need C++ and add > ->to_i915 to all of them somehow (but not even sure C++ is that powerful > with it's abstraction, definitely last time around I looked at it and that > was 20 years ago :-) This was pretty much my conclusion as well, and decided not to pursue it. I did consider documenting the easiest/recommended ways to get at i915 from various types. TODO... BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx