Message ID | 20240806094842.248775-1-jkeeping@inmusicbrands.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Hans Verkuil |
Headers |
Received: from sv.mirrors.kernel.org ([139.178.88.99]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux-media+bounces-15835-patchwork=linuxtv.org@vger.kernel.org>) id 1sbhAN-00014s-27 for patchwork@linuxtv.org; Wed, 07 Aug 2024 13:57:28 +0000 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7371B281D1A for <patchwork@linuxtv.org>; Tue, 6 Aug 2024 09:49:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 655441BE23E; Tue, 6 Aug 2024 09:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inmusicbrands.com header.i=@inmusicbrands.com header.b="IjIQNtyY" X-Original-To: linux-media@vger.kernel.org Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2098.outbound.protection.outlook.com [40.107.236.98]) (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 5F32415B153; Tue, 6 Aug 2024 09:48:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.98 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722937741; cv=fail; b=ZQm/RzZGXTBJ+8/cU1Kthk+18fya1Mmfhr+mPLHSlDPqhkCsLIcSesewfsBebxZtVaMj0YXJ3FEiO5P9YHwdSszuzW9bNIayJqHYbB8HAegU2JW0S8m18Ro8JF94lRbqRG+s9kPG2PsIM2FuvtbSRXAsYbc6iNP241fVWIdPsRc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722937741; c=relaxed/simple; bh=kOXgOSR3RO+adKK9/CnCNo5ui3L2UmlsuurmWxCljxw=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=IFOBaSvlotM6hGTq3J99zidYNj/pNtyMO8tHVXvJ+hwFItv/LVWN7ICFoKjtK8Ph1z4G8//nStzeF7xTtcGwrBj9PQml5OqHX62XBuPC/PLRczIUNXWmlFoausiWrqzQEuClPxmxGSn17OR3SYdjxx8azv2M80q1DgCf2WlCh1o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inmusicbrands.com; spf=pass smtp.mailfrom=inmusicbrands.com; dkim=pass (1024-bit key) header.d=inmusicbrands.com header.i=@inmusicbrands.com header.b=IjIQNtyY; arc=fail smtp.client-ip=40.107.236.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inmusicbrands.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inmusicbrands.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Rdgw4xZuJvzHmi6U/Afhckkq5Jyrlj+geD+tu5902DrUYKpaB3ywQcKOGleR4CsbctDxF0W0GQSTGwb2rWZ8P9hIQi5dEvhetbPmwfkDttkrrsj3KWhWHbc133u3AMjppcmaVrIACFlEfz/yOzkUzI0785kItJyXnNgzEnXmdNMkxqptHkyfGitVWjbZxeITVlgUiE3YiB+ZDtaMhZSCRkTrNJsT/2vQjSIdv+IkeXADxThIta8elH3lyv5dFpUTlVmcxsYPgNvV+GwmMHqxo4veBQoy4y9wXMtUFv89sEO9Y/y+Bec0LAmR85bn8FNUxhzCknqZuDWiKtK4EgCISA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G2DNrsT7boz+6SG4Q2aI2WTjTtQgsqASHAfi/s5KNDg=; b=hVnWugriEqlDTw/bKrb0h6YCbglifHR/VvHEavPPjUpoSjB0pj7z7Uu/72xhC2CZ5FwpZC9ie3HFKwtOavWk2NLf7V69vJSi1z/bn57HlJDDo8LJKJXeRILD0/osjQjg3X0wTuP1L+FYhFYDavWsUTR2oykqab6cMiRHhvoSmHFq4rN6HMZhnNsIYIFzpFsiA9crS9LkiXX8/kiYMUuPMiTSHjh3Rvvf/4DSjIt6LdokWZGH6+uJKCnPv4FFtGWrXKfEDE+0US9vbnkf8t4aweMz08IBF1sPO+DyaChMaFtClgduJwi386Y6ihJ6QRhWg+UBYtkKopDCvTI5tTKvLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=inmusicbrands.com; dmarc=pass action=none header.from=inmusicbrands.com; dkim=pass header.d=inmusicbrands.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inmusicbrands.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G2DNrsT7boz+6SG4Q2aI2WTjTtQgsqASHAfi/s5KNDg=; b=IjIQNtyYwgd5XcYso+stu8zs01458FAiv8nXvG3QiESevEEsCsauyE+h+hO74E9ndge4tJNKxkdPxXLzqKDO3OZ7ApAJ7vpVKdtOwPh39yoKrKwxbKN3o/RJC1GC3bSB26iPuDo3XDz4h0GxErvSKBw6+VnUNCJF+Y4swOnLbCY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=inmusicbrands.com; Received: from MW4PR08MB8282.namprd08.prod.outlook.com (2603:10b6:303:1bd::18) by LV8PR08MB9392.namprd08.prod.outlook.com (2603:10b6:408:1fb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 09:48:56 +0000 Received: from MW4PR08MB8282.namprd08.prod.outlook.com ([fe80::55b3:31f1:11c0:4401]) by MW4PR08MB8282.namprd08.prod.outlook.com ([fe80::55b3:31f1:11c0:4401%4]) with mapi id 15.20.7849.008; Tue, 6 Aug 2024 09:48:55 +0000 From: John Keeping <jkeeping@inmusicbrands.com> To: linux-media@vger.kernel.org Cc: John Keeping <jkeeping@inmusicbrands.com>, Jacob Chen <jacob-chen@iotwrt.com>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>, Mauro Carvalho Chehab <mchehab@kernel.org>, Heiko Stuebner <heiko@sntech.de>, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: rockchip: rga: fix offset lookup Date: Tue, 6 Aug 2024 10:48:41 +0100 Message-ID: <20240806094842.248775-1-jkeeping@inmusicbrands.com> X-Mailer: git-send-email 2.45.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0648.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:296::19) To MW4PR08MB8282.namprd08.prod.outlook.com (2603:10b6:303:1bd::18) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR08MB8282:EE_|LV8PR08MB9392:EE_ X-MS-Office365-Filtering-Correlation-Id: 8809edd6-89dc-44eb-d7dc-08dcb5fcfc78 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366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98UOzdbr++0iRE95U2D2T8JU4S1gegZaVZJeqMYxqIz9rv5wwF3Za/Xwu/7B89c0cGT0nriezGQ6bXsg4unfnIfrbskecBAGYWW9koqBnZfgjjU16EjHXbPXRmOTgXqOuCTsmOqjFNMn920JqcMscLnTGxBmzl6v49Av5lrIfDgKzXksV5AxIZzUhitktVv9N5q4EFlzMj5pDYGcJD2oWR7knXEbi75Tk0vsK9zgA28VJ7AXYf5pcJUc7IdYE/nDi0u9q4Rb3BcTNy2qlFSJWzFeH9Y+63LwpT/9Cg4x5YiOmWk4RrgTTWsVpjvSGmp/Lzm93cVK8uyyX2HZr/jVXeXKKycCUkSSIqlWT6ECtNVSHvIV9ORVlRIivd7d5sZFa6nhsbEK+kgSskiBSSS53KW5xog== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR08MB8282.namprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PLVqeM3PZ5d/PK93zCZktHXqDyfuI1qiLeSzCzCUp6gJf/h6v9deiNdYHFkbmQupMyRCGYy2UwusbOBLASlCk9oUccHxJpQJkoufZM3D1LpigXD96sW6nw4VLzQb72NhBL33qLDpZBRl5lhFjVkoaCe93eOr9deeEf/zEeFnsj8RfmHnNScwz7SUslKADtmMDx/YRzfaXXSP0MMvqOaUZrpJChHBDCaKE9eaxXN7nlul0LdY8z9e8LD3yTjHw4J7xO80AEDRVyBsTrEm8KLt+HGKCOzRZ8NeXnY7DQnR3cQD/xrGTOKxUBzlAYDvaj5niEvHPWddrnlTDmj4FJVWQqLN9JlG2UHLMpteEScOF76RaJZx6fVUgrSxHg9pXMv3UpM/HaPtkLSfjQsb2aT2ixwGFfLv+AP2DQeCEdzO6T+G5pza6OYiAG41WmcVjY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vEPANxceGIVDU4R2cAk22eKCpt9DYMrk2Pt7a9x2MqKJlVev5jYzE7zo3l/Bi38KlE6M5CBD0q+B3a/d3tVGc33CxFBvj216ZaKZPKA== X-OriginatorOrg: inmusicbrands.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8809edd6-89dc-44eb-d7dc-08dcb5fcfc78 X-MS-Exchange-CrossTenant-AuthSource: MW4PR08MB8282.namprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 09:48:55.4802 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 24507e43-fb7c-4b60-ab03-f78fafaf0a65 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0chzgFAp/un0hzlbAC1cj2fzGzCkJ4Z6IUMVquznixCb+hMw/knMgVRhmWNBYcQkCt6Yf4+ejHP7GPY9IIE6MeHDjjcX7ziILxRzR27A5fc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR08MB9392 X-LSpam-Score: -8.6 (--------) X-LSpam-Report: No, score=-8.6 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_PASS=-0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,RCVD_IN_VALIDITY_CERTIFIED=-3,RCVD_IN_VALIDITY_RPBL=1.31,RCVD_IN_VALIDITY_SAFE=-2,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no |
Series |
media: rockchip: rga: fix offset lookup
|
|
Commit Message
John Keeping
Aug. 6, 2024, 9:48 a.m. UTC
The rot_mir_point_matrix is arranged with the rotation values in rows
and mirror settings in the columns. Fix the order of indexing to match
this so that the correct values are used.
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
---
drivers/media/platform/rockchip/rga/rga-hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
+Michael Tretter Michael, can you confirm this? Regards, Hans On 06/08/2024 11:48, John Keeping wrote: > The rot_mir_point_matrix is arranged with the rotation values in rows > and mirror settings in the columns. Fix the order of indexing to match > this so that the correct values are used. > > Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> > --- > drivers/media/platform/rockchip/rga/rga-hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/rockchip/rga/rga-hw.c b/drivers/media/platform/rockchip/rga/rga-hw.c > index 11c3d72347572..b7d51ddb10fa4 100644 > --- a/drivers/media/platform/rockchip/rga/rga-hw.c > +++ b/drivers/media/platform/rockchip/rga/rga-hw.c > @@ -97,7 +97,7 @@ static struct rga_addr_offset *rga_lookup_draw_pos(struct > if (!offsets) > return NULL; > > - switch (rot_mir_point_matrix[rotate_mode][mirr_mode]) { > + switch (rot_mir_point_matrix[mirr_mode][rotate_mode]) { > case LT: > return &offsets->left_top; > case LB:
Hi John, On Tue, 06 Aug 2024 10:48:41 +0100, John Keeping wrote: > The rot_mir_point_matrix is arranged with the rotation values in rows > and mirror settings in the columns. Fix the order of indexing to match > this so that the correct values are used. The table and indexing is correct. The rows (second index) contain the mirror modes and the columns (first index) contain the rotation modes, and the table and the indexing are correct. If you read the columns, the corner moves clockwise, but if you read the rows, the corner moves in a z or s form, indicating that these are the mirror modes. It's probably worth documenting, how the table works. However, there is a mixup of the arguments between the call to rga_lookup_draw_pos() and the use in the function. The function definition is static struct rga_addr_offset * rga_lookup_draw_pos(struct rga_corners_addr_offset * offsets, u32 rotate_mode, u32 mirr_mode) but it is called as rga_lookup_draw_pos(&offsets, mir_mode, rot_mode); I think, fixing the order of the arguments in the function call is the correct fix to your observed bug. Michael > > Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> > --- > drivers/media/platform/rockchip/rga/rga-hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/rockchip/rga/rga-hw.c b/drivers/media/platform/rockchip/rga/rga-hw.c > index 11c3d72347572..b7d51ddb10fa4 100644 > --- a/drivers/media/platform/rockchip/rga/rga-hw.c > +++ b/drivers/media/platform/rockchip/rga/rga-hw.c > @@ -97,7 +97,7 @@ static struct rga_addr_offset *rga_lookup_draw_pos(struct > if (!offsets) > return NULL; > > - switch (rot_mir_point_matrix[rotate_mode][mirr_mode]) { > + switch (rot_mir_point_matrix[mirr_mode][rotate_mode]) { > case LT: > return &offsets->left_top; > case LB: > -- > 2.45.2 > > >
Hi Michael, On Fri, Aug 09, 2024 at 04:31:43PM +0200, Michael Tretter wrote: > On Tue, 06 Aug 2024 10:48:41 +0100, John Keeping wrote: > > The rot_mir_point_matrix is arranged with the rotation values in rows > > and mirror settings in the columns. Fix the order of indexing to match > > this so that the correct values are used. > > The table and indexing is correct. The rows (second index) contain the > mirror modes and the columns (first index) contain the rotation modes, > and the table and the indexing are correct. If you read the columns, the > corner moves clockwise, but if you read the rows, the corner moves in a > z or s form, indicating that these are the mirror modes. > > It's probably worth documenting, how the table works. > > However, there is a mixup of the arguments between the call to > rga_lookup_draw_pos() and the use in the function. > > The function definition is > > static struct rga_addr_offset * > rga_lookup_draw_pos(struct rga_corners_addr_offset * offsets, > u32 rotate_mode, u32 mirr_mode) > > but it is called as > > rga_lookup_draw_pos(&offsets, mir_mode, rot_mode); > > I think, fixing the order of the arguments in the function call is the > correct fix to your observed bug. Ah, yes. I'm not sure how I missed that. I have confirmed your suggested change works and will send an updated patch. Thanks, John > > > > Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> > > --- > > drivers/media/platform/rockchip/rga/rga-hw.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/media/platform/rockchip/rga/rga-hw.c b/drivers/media/platform/rockchip/rga/rga-hw.c > > index 11c3d72347572..b7d51ddb10fa4 100644 > > --- a/drivers/media/platform/rockchip/rga/rga-hw.c > > +++ b/drivers/media/platform/rockchip/rga/rga-hw.c > > @@ -97,7 +97,7 @@ static struct rga_addr_offset *rga_lookup_draw_pos(struct > > if (!offsets) > > return NULL; > > > > - switch (rot_mir_point_matrix[rotate_mode][mirr_mode]) { > > + switch (rot_mir_point_matrix[mirr_mode][rotate_mode]) { > > case LT: > > return &offsets->left_top; > > case LB: > > -- > > 2.45.2
diff --git a/drivers/media/platform/rockchip/rga/rga-hw.c b/drivers/media/platform/rockchip/rga/rga-hw.c index 11c3d72347572..b7d51ddb10fa4 100644 --- a/drivers/media/platform/rockchip/rga/rga-hw.c +++ b/drivers/media/platform/rockchip/rga/rga-hw.c @@ -97,7 +97,7 @@ static struct rga_addr_offset *rga_lookup_draw_pos(struct if (!offsets) return NULL; - switch (rot_mir_point_matrix[rotate_mode][mirr_mode]) { + switch (rot_mir_point_matrix[mirr_mode][rotate_mode]) { case LT: return &offsets->left_top; case LB: