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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2E45C4332F for ; Fri, 25 Nov 2022 10:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbiKYKr2 (ORCPT ); Fri, 25 Nov 2022 05:47:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiKYKr2 (ORCPT ); Fri, 25 Nov 2022 05:47:28 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E183747335 for ; Fri, 25 Nov 2022 02:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669373190; 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=AhtxmsEdvR+vP3o5ErpJAl9TfXKJOalFPCGhKeyHyZg=; b=ikawExKZZ3pZfykQMlIe31+QzPpxxoTVe5oj9UWI2SPkbaK9+/PyPKn9TGn+te92OApmm2 y88IGtJJEZDO79fMlzPrpkTxfP5D9jm/nREvjFCL8SfLAzpe98JDAGjSmhCo7Cl/bVYw0W C17ytomflp4HD1BZK2epZzpgvkoS73Y= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-637-beu1f4CZMlOajSb_NvDjpA-1; Fri, 25 Nov 2022 05:46:28 -0500 X-MC-Unique: beu1f4CZMlOajSb_NvDjpA-1 Received: by mail-wm1-f72.google.com with SMTP id c187-20020a1c35c4000000b003cfee3c91cdso2252227wma.6 for ; Fri, 25 Nov 2022 02:46:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AhtxmsEdvR+vP3o5ErpJAl9TfXKJOalFPCGhKeyHyZg=; b=aA3O6DRAckAos5n06GJcJo4t+1GpYuCRcBzAttXc19s2kzUIHCkrx8kmYW19vDai9a w5RC10hzEH/nGGOCmcPrJqLW+FjSg1iSpCLACznqRntpJzL/JC+zKf5BNPrKmHz7mzAc 9XjKrkc9ojLEiC9L1jrH+lLYj6Q5sL8xzddGjB2+NBMGpzULHnvPDK3ORX0CBX1U7sk1 GDe6uFRsZUpIdOg5PI/PQFoaz/J0i7SYIP5xakIirkLtzm6b3AmytkkDpozBnn2qHQzP iOAph/kj4Fz4ICkVftlcmom2rpbFNjFMAojypwkUEhmWEjNZpcOwHpoqbe1hJfvg39oK qyFw== X-Gm-Message-State: ANoB5pkB6aPqvZQzR79qsCjKhk8vNd2IOhO1E18ciW8COJ4VICG//pSo OlQ2s+cbk7+4IKSOfKAZ/U9yUtHIsSJwLgMRTe71EgYCcRaEJb2ehOI+DkebUf/xtqAPH4et0+q 2ewY99Xt2XjbhwIrN8gwfg0Vy5Al3 X-Received: by 2002:adf:e305:0:b0:236:6089:cc5e with SMTP id b5-20020adfe305000000b002366089cc5emr13952905wrj.118.1669373187604; Fri, 25 Nov 2022 02:46:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KaINgjKp/2wkkwi92QDcPVCibVYhE6To5a67U+PrJPM+QNYF8tla3vcgJY0rGOjh5rJYqvg== X-Received: by 2002:adf:e305:0:b0:236:6089:cc5e with SMTP id b5-20020adfe305000000b002366089cc5emr13952885wrj.118.1669373187352; Fri, 25 Nov 2022 02:46:27 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cc18-20020a5d5c12000000b002238ea5750csm4218998wrb.72.2022.11.25.02.46.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 02:46:26 -0800 (PST) Message-ID: <4aad755a-a0b3-cdab-694f-750c8903e5df@redhat.com> Date: Fri, 25 Nov 2022 11:46:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 06/24] drm/tests: kunit: Allow for a custom device struct to be allocated Content-Language: en-US To: Maxime Ripard , Maxime Ripard , Maarten Lankhorst , Daniel Vetter , David Airlie , Thomas Zimmermann Cc: David Gow , linaro-mm-sig@lists.linaro.org, Greg Kroah-Hartman , linux-kselftest@vger.kernel.org, =?UTF-8?Q?Ma=c3=adra_Canal?= , linux-media@vger.kernel.org, kunit-dev@googlegroups.com, dri-devel@lists.freedesktop.org, Brendan Higgins , linux-kernel@vger.kernel.org, Dave Stevenson References: <20221123-rpi-kunit-tests-v1-0-051a0bb60a16@cerno.tech> <20221123-rpi-kunit-tests-v1-6-051a0bb60a16@cerno.tech> From: Javier Martinez Canillas In-Reply-To: <20221123-rpi-kunit-tests-v1-6-051a0bb60a16@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 11/23/22 16:25, Maxime Ripard wrote: > The current helper to allocate a DRM device doesn't allow for any > subclassing by drivers, which is going to be troublesome as we work on > getting some kunit testing on atomic modesetting code. > > Let's use a similar pattern to the other allocation helpers by providing > the structure size and offset as arguments. > > Signed-off-by: Maxime Ripard > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 45E9FC4332F for ; Fri, 25 Nov 2022 10:46:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 16BA310E002; Fri, 25 Nov 2022 10:46:36 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0327F10E002 for ; Fri, 25 Nov 2022 10:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669373192; 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=AhtxmsEdvR+vP3o5ErpJAl9TfXKJOalFPCGhKeyHyZg=; b=iWq6VWvVjCE2g3p4Gwn14T2OW0RbnrhuSB8UETuBGX/uigQus5OV7Hfmx+W9o3rJVRlkUQ lFSHTle3oHg+d4hqQwBLqi8fVrKru7XF1kRY46K2Drko5X67yvljNov03EwZTww1gKyz6h L2aCdzFpd4ZfDwPm/1U8x9i3Q//3AmY= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-149-pIPJ_ULWN_y3xvCuV_PSCQ-1; Fri, 25 Nov 2022 05:46:28 -0500 X-MC-Unique: pIPJ_ULWN_y3xvCuV_PSCQ-1 Received: by mail-wm1-f72.google.com with SMTP id 206-20020a1c02d7000000b003d02dc20735so2276893wmc.0 for ; Fri, 25 Nov 2022 02:46:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AhtxmsEdvR+vP3o5ErpJAl9TfXKJOalFPCGhKeyHyZg=; b=vXslGijciUffJql5NDE7a4sHiLJF1z6K4RHXSdEuTro1pl0PPMKyV/81LW/jF5cxGZ L1LiC0eKPhoGtEOStupQx5JjAiUTlMKOZTPqFZeip2nwqwZhAExrrO94ETKkiAiPSWWt HhZYN6OcQSZTCPYjQetJgQa72o1Yi2klvGf49vENjTWKKKtRLMKUqrpx+qto4GM01cz5 Y9WtYu8Urc1ucnzzvCjmP5VYFCHuO09lVEAuEru0vSb58LzYPacAK/E2xBXOJku3Dbjg Z6hZ57s/dILg5zXXQ8QEe+XSK/rUO0XFxIIkmQSLk8OGhCYK/49Zv+5Bgn+sUwjk7mYW 4DNg== X-Gm-Message-State: ANoB5pmUAANEwy44XmnjBCmgRhe7JANdFT6NpzGsEkECOsyncqMbl65D k9YSjM4tkW5amveIxDv+u8x47febuaPHZY5LKFbAgbandE+ixARK1fsfOzno2DfjmDmI4pABd3f wJtOdzUD85YdDTL1d+qwNdrqE8r0X X-Received: by 2002:adf:e305:0:b0:236:6089:cc5e with SMTP id b5-20020adfe305000000b002366089cc5emr13952909wrj.118.1669373187604; Fri, 25 Nov 2022 02:46:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KaINgjKp/2wkkwi92QDcPVCibVYhE6To5a67U+PrJPM+QNYF8tla3vcgJY0rGOjh5rJYqvg== X-Received: by 2002:adf:e305:0:b0:236:6089:cc5e with SMTP id b5-20020adfe305000000b002366089cc5emr13952885wrj.118.1669373187352; Fri, 25 Nov 2022 02:46:27 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cc18-20020a5d5c12000000b002238ea5750csm4218998wrb.72.2022.11.25.02.46.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 02:46:26 -0800 (PST) Message-ID: <4aad755a-a0b3-cdab-694f-750c8903e5df@redhat.com> Date: Fri, 25 Nov 2022 11:46:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 06/24] drm/tests: kunit: Allow for a custom device struct to be allocated To: Maxime Ripard , Maxime Ripard , Maarten Lankhorst , Daniel Vetter , David Airlie , Thomas Zimmermann References: <20221123-rpi-kunit-tests-v1-0-051a0bb60a16@cerno.tech> <20221123-rpi-kunit-tests-v1-6-051a0bb60a16@cerno.tech> From: Javier Martinez Canillas In-Reply-To: <20221123-rpi-kunit-tests-v1-6-051a0bb60a16@cerno.tech> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gow , Brendan Higgins , Greg Kroah-Hartman , Dave Stevenson , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, =?UTF-8?Q?Ma=c3=adra_Canal?= , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 11/23/22 16:25, Maxime Ripard wrote: > The current helper to allocate a DRM device doesn't allow for any > subclassing by drivers, which is going to be troublesome as we work on > getting some kunit testing on atomic modesetting code. > > Let's use a similar pattern to the other allocation helpers by providing > the structure size and offset as arguments. > > Signed-off-by: Maxime Ripard > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat