From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Arunpravin Paneer Selvam <arunpravin.paneerselvam@amd.com>,
Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>,
dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org
Cc: alexander.deucher@amd.com, christian.koenig@amd.com,
shashank.sharma@amd.com
Subject: Re: [PATCH 2/2] drm/gem: Remove BUG_ON in drm_gem_private_object_init
Date: Wed, 16 Nov 2022 11:26:43 +0100 [thread overview]
Message-ID: <c58140a2-1cac-dfad-fb2e-4369bb384282@gmail.com> (raw)
In-Reply-To: <fa9ecb1f-17a9-c7ce-d25a-42c3860f1b8d@amd.com>
Am 16.11.22 um 10:20 schrieb Arunpravin Paneer Selvam:
> Hi Amar,
>
> On 11/16/2022 2:20 PM, Somalapuram Amaranath wrote:
>> ttm_resource allocate size in bytes i.e less than page size.
>>
>> Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
>> ---
>> drivers/gpu/drm/drm_gem.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
>> index b8db675e7fb5..a346e3b7f9a8 100644
>> --- a/drivers/gpu/drm/drm_gem.c
>> +++ b/drivers/gpu/drm/drm_gem.c
>> @@ -152,7 +152,7 @@ EXPORT_SYMBOL(drm_gem_object_init);
>> void drm_gem_private_object_init(struct drm_device *dev,
>> struct drm_gem_object *obj, size_t size)
>> {
>> - BUG_ON((size & (PAGE_SIZE - 1)) != 0);
>> + //BUG_ON((size & (PAGE_SIZE - 1)) != 0);
> This line is added by mistake?
Yeah, comment it out is not a good idea. Instead we should probably move
it somewhere else, e.g. the shmem object initializing code path still
needs this.
Additional to that please re-order the patches, this here is a
prerequisite and should come first.
Regards,
Christian.
>
> Regards,
> Arun
>> obj->dev = dev;
>> obj->filp = NULL;
>
WARNING: multiple messages have this Message-ID (diff)
From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Arunpravin Paneer Selvam <arunpravin.paneerselvam@amd.com>,
Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>,
dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org
Cc: alexander.deucher@amd.com, christian.koenig@amd.com
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/gem: Remove BUG_ON in drm_gem_private_object_init
Date: Wed, 16 Nov 2022 11:26:43 +0100 [thread overview]
Message-ID: <c58140a2-1cac-dfad-fb2e-4369bb384282@gmail.com> (raw)
In-Reply-To: <fa9ecb1f-17a9-c7ce-d25a-42c3860f1b8d@amd.com>
Am 16.11.22 um 10:20 schrieb Arunpravin Paneer Selvam:
> Hi Amar,
>
> On 11/16/2022 2:20 PM, Somalapuram Amaranath wrote:
>> ttm_resource allocate size in bytes i.e less than page size.
>>
>> Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
>> ---
>> drivers/gpu/drm/drm_gem.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
>> index b8db675e7fb5..a346e3b7f9a8 100644
>> --- a/drivers/gpu/drm/drm_gem.c
>> +++ b/drivers/gpu/drm/drm_gem.c
>> @@ -152,7 +152,7 @@ EXPORT_SYMBOL(drm_gem_object_init);
>> void drm_gem_private_object_init(struct drm_device *dev,
>> struct drm_gem_object *obj, size_t size)
>> {
>> - BUG_ON((size & (PAGE_SIZE - 1)) != 0);
>> + //BUG_ON((size & (PAGE_SIZE - 1)) != 0);
> This line is added by mistake?
Yeah, comment it out is not a good idea. Instead we should probably move
it somewhere else, e.g. the shmem object initializing code path still
needs this.
Additional to that please re-order the patches, this here is a
prerequisite and should come first.
Regards,
Christian.
>
> Regards,
> Arun
>> obj->dev = dev;
>> obj->filp = NULL;
>
next prev parent reply other threads:[~2022-11-16 10:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 8:50 [PATCH 1/2] drm/ttm: Clean up page shift operation Somalapuram Amaranath
2022-11-16 8:50 ` [Intel-gfx] " Somalapuram Amaranath
2022-11-16 8:50 ` [PATCH 2/2] drm/gem: Remove BUG_ON in drm_gem_private_object_init Somalapuram Amaranath
2022-11-16 8:50 ` [Intel-gfx] " Somalapuram Amaranath
2022-11-16 9:20 ` Arunpravin Paneer Selvam
2022-11-16 9:20 ` [Intel-gfx] " Arunpravin Paneer Selvam
2022-11-16 10:26 ` Christian König [this message]
2022-11-16 10:26 ` Christian König
2022-11-22 5:18 ` Somalapuram, Amaranath
2022-11-22 5:18 ` [Intel-gfx] " Somalapuram, Amaranath
2022-11-22 6:23 ` Arunpravin Paneer Selvam
2022-11-22 6:23 ` [Intel-gfx] " Arunpravin Paneer Selvam
2022-11-16 12:25 ` [PATCH 1/2] drm/ttm: Clean up page shift operation Christian König
2022-11-16 12:25 ` [Intel-gfx] " Christian König
2022-11-16 18:38 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] " Patchwork
2022-11-17 1:08 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-11-18 2:45 ` [PATCH 1/2] " kernel test robot
2022-11-18 2:45 ` kernel test robot
2022-11-18 2:45 ` [Intel-gfx] " kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c58140a2-1cac-dfad-fb2e-4369bb384282@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=Amaranath.Somalapuram@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=arunpravin.paneerselvam@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=shashank.sharma@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.