Last active
May 31, 2024 14:29
-
-
Save devarsht/cd76372bff7c125f75d06ba009264b75 to your computer and use it in GitHub Desktop.
v11_range_diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: 4d7e0c418e13 ! 1: 63cf8110893d media: dt-bindings: Add Imagination E5010 JPEG Encoder | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
Reviewed-by: Rob Herring <robh@kernel.org> | |
--- | |
+ V11: | |
+ - No change | |
V10: | |
- No change | |
V9: | |
2: 1b44597c1dd5 ! 2: 6ee43ea57ef8 media: imagination: Add E5010 JPEG Encoder driver | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> | |
--- | |
+ V11: | |
+ - No change | |
+ | |
V10: | |
- No change | |
3: 4b85582c7fe2 ! 3: 54bf8c4913bb media: v4l2-jpeg: Export reference quantization and huffman tables | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
+ V11: No change | |
V10: Add description for new macros introduced in this patchset | |
V1->V9: No change (Patch introduced in V7) | |
4: 7d8f4a4f4789 ! 4: 1b448a7433b2 media: imagination: Use exported tables from v4l2-jpeg core | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
+ V11: No change | |
V10: No change | |
V1->V9 (No change, patch introduced in V7) | |
5: 60de6087b2d7 ! 5: 2d9e710eedc9 media: verisilicon : Use exported tables from v4l2-jpeg for hantro codec | |
@@ Commit message | |
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> | |
Acked-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> | |
--- | |
+ V11: No change | |
V10: Fix typo in commit message title | |
V9: No change | |
V8: Add Reviewed-by and Acked-by tags | |
6: e23872bb00d0 ! 6: 59cb1eb9e480 math.h: Add macros for rounding to closest value | |
@@ Commit message | |
[1]: | |
https://elixir.bootlin.com/linux/v6.8.9/source/drivers/gpu/ipu-v3/ipu-image-convert.c#L480 | |
+ V11: | |
+ - Fix commenting style per review comments and remove extra whitespace | |
+ | |
+ V10: | |
+ - Update example comment to fix formatting issues as observed with html docs | |
V9: | |
- No change | |
@@ include/linux/math.h | |
+ * To perform arbitrary rounding to closest value (not multiple of 2), use | |
+ * roundclosest(). | |
+ * | |
-+ * Examples : | |
-+ * | |
-+ * round_closest_up(17, 4) = 16 | |
-+ * | |
-+ * round_closest_up(15, 4) = 16 | |
-+ * | |
-+ * round_closest_up(14, 4) = 16 | |
++ * Examples: | |
++ * * round_closest_up(17, 4) = 16 | |
++ * * round_closest_up(15, 4) = 16 | |
++ * * round_closest_up(14, 4) = 16 | |
+ */ | |
+#define round_closest_up(x, y) round_down((x) + (y) / 2, (y)) | |
+ | |
@@ include/linux/math.h | |
+ * roundclosest(). | |
+ * | |
+ * Examples: | |
-+ * | |
-+ * round_closest_down(17, 4) = 16 | |
-+ * | |
-+ * round_closest_down(15, 4) = 16 | |
-+ * | |
-+ * round_closest_down(14, 4) = 12 | |
++ * * round_closest_down(17, 4) = 16 | |
++ * * round_closest_down(15, 4) = 16 | |
++ * * round_closest_down(14, 4) = 12 | |
+ */ | |
+#define round_closest_down(x, y) round_up((x) - (y) / 2, (y)) | |
+ | |
@@ include/linux/math.h | |
+ * upon it's nearness to @x. If @y will always be a power of 2, consider | |
+ * using the faster round_closest_up() or round_closest_down(). | |
+ * | |
-+ * Examples : | |
-+ * | |
-+ * roundclosest(21, 5) = 20 | |
-+ * | |
-+ * roundclosest(19, 5) = 20 | |
-+ * | |
-+ * roundclosest(17, 5) = 15 | |
++ * Examples: | |
++ * * roundclosest(21, 5) = 20 | |
++ * * roundclosest(19, 5) = 20 | |
++ * * roundclosest(17, 5) = 15 | |
+ */ | |
+#define roundclosest(x, y) rounddown((x) + (y) / 2, (y)) | |
+ | |
7: 1b870327b43c ! 7: 1d877e8f1549 Documentation: core-api: Add math.h macros and functions | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
- V1->V9 (No change) | |
+ V11: Fix title for math function header | |
V10: Patch introduced | |
+ V1->V9 (No change) | |
## Documentation/core-api/kernel-api.rst ## | |
@@ Documentation/core-api/kernel-api.rst: Division Functions | |
.. kernel-doc:: lib/math/gcd.c | |
:export: | |
-+Rounding, absolute value, scaling and 32bit division functions | |
-+-------------------------------------------------------------- | |
++Rounding, absolute value, division and 32-bit scaling functions | |
++--------------------------------------------------------------- | |
+ | |
+.. kernel-doc:: include/linux/math.h | |
+ :internal: | |
8: 47d0a1e45431 ! 8: 5db25a1b8b99 lib: add basic KUnit test for lib/math | |
@@ Commit message | |
[devarsht: Rebase to 6.9, remove kernel.h, update Kconfig and change license to GPL] | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
+ Changes since v10: | |
+ * Include headers per IWYU principle and add module description | |
+ | |
Changes since v9: | |
* Added Kconfig dependency for KUNIT | |
@@ lib/math/math_kunit.c (new) | |
+#include <kunit/test.h> | |
+#include <linux/gcd.h> | |
+#include <linux/lcm.h> | |
++#include <linux/math.h> | |
++#include <linux/module.h> | |
+#include <linux/reciprocal_div.h> | |
++#include <linux/types.h> | |
+ | |
+static void abs_test(struct kunit *test) | |
+{ | |
@@ lib/math/math_kunit.c (new) | |
+ | |
+kunit_test_suites(&math_test_suite); | |
+ | |
++MODULE_DESCRIPTION("Math helper functions kunit test"); | |
+MODULE_LICENSE("GPL"); | |
9: ac04a65f82d2 ! 9: 348609611395 lib: math_kunit: Add tests for new macros related to rounding to nearest value | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
- V1->V10 (No change, patch introduced in V8) | |
+ V1->V11 (No change, patch introduced in V8) | |
## lib/math/math_kunit.c ## | |
@@ lib/math/math_kunit.c: static void round_down_test(struct kunit *test) | |
10: 9d8879f7200f ! 10: 1ff191bb3cd7 media: imagination: Round to closest multiple for cropping region | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
+ V11: No change | |
V10: No change | |
V9: No change | |
V8: Update commit message with specification reference | |
11: 26d5a7597e0f ! 11: 8310345b3e51 gpu: ipu-v3: Use generic macro for rounding closest to specified value | |
@@ Commit message | |
Signed-off-by: Devarsh Thakkar <devarsht@ti.com> | |
--- | |
+ V11: No change | |
V10: No change | |
V9: No change | |
V8: Update commit message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment