Hello Patrick Georgi, Rizwan Qureshi, Jett Rink, Chiasheng Lee, Balaji Manigandan, Andy Yeh, Paul Fagerburg, Patrick Rudolph, Tomasz Figa, ShawnX Tu, Varshit B Pandya, Martin Roth, Chen Wisley, Justin TerAvest, Marco Chen,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45172
to look at the new patch set (#9).
Change subject: drivers/intel/mipi_camera: Add support for dynamic SSDT generation
......................................................................
drivers/intel/mipi_camera: Add support for dynamic SSDT generation
This change updates mipi_camera driver to handle SSDT dynamically based
on the camera configuration returned by the mainboard. It implements a
weak function get_camera_config, which is expected to be overridden by
mainboard and returns a camera configuration that includes the IPU and
sensors details. A board which can support multiple camera
configurations can implement get_camera_config to return a camera
configuration based on the value set in the SSFC of CBI EEPROM memory.
Using this change multiple i2c camera combinations with different I2C
address can be tested with a single image.
BUG=b:167938257
Change-Id: I6a5aa6c313c026871e55bc6d067b44de4c1f1afe
Signed-off-by: Shawn Tu <shawnx.tu(a)intel.com>
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
---
M src/drivers/intel/mipi_camera/Kconfig
M src/drivers/intel/mipi_camera/Makefile.inc
M src/drivers/intel/mipi_camera/camera.c
A src/drivers/intel/mipi_camera/camera_sku.c
A src/drivers/intel/mipi_camera/camera_sku.h
5 files changed, 146 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/45172/9
--
To view, visit https://review.coreboot.org/c/coreboot/+/45172
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6a5aa6c313c026871e55bc6d067b44de4c1f1afe
Gerrit-Change-Number: 45172
Gerrit-PatchSet: 9
Gerrit-Owner: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
Gerrit-Reviewer: Andy Yeh <andy.yeh(a)intel.com>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Chen Wisley <wisley.chen(a)quantatw.com>
Gerrit-Reviewer: Chiasheng Lee <chiasheng.lee(a)intel.com>
Gerrit-Reviewer: Jett Rink <jettrink(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)google.com>
Gerrit-Reviewer: Marco Chen <marcochen(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: ShawnX Tu <shawnx.tu(a)intel.com>
Gerrit-Reviewer: Tomasz Figa <tfiga(a)google.com>
Gerrit-Reviewer: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-CC: Henry Sun <henrysun(a)google.com>
Gerrit-CC: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45172 )
Change subject: drivers/intel/mipi_camera: Add support for dynamic SSDT generation
......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45172/8/src/drivers/intel/mipi_cam…
File src/drivers/intel/mipi_camera/camera_sku.c:
https://review.coreboot.org/c/coreboot/+/45172/8/src/drivers/intel/mipi_cam…
PS8, Line 36: /* By default device will be set to enabled in alloc_dev. So calling dev_set_enabled
: is not making call to chip_ops->enable_dev as device is already enabled */
: dev_set_enabled(sensor, 0);
: dev_set_enabled(sensor, 1);
: }
> On calling alloc_dev, it sets the enabled flag in device to 1. […]
Great, thanks!
--
To view, visit https://review.coreboot.org/c/coreboot/+/45172
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6a5aa6c313c026871e55bc6d067b44de4c1f1afe
Gerrit-Change-Number: 45172
Gerrit-PatchSet: 8
Gerrit-Owner: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
Gerrit-Reviewer: Andy Yeh <andy.yeh(a)intel.com>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Chen Wisley <wisley.chen(a)quantatw.com>
Gerrit-Reviewer: Chiasheng Lee <chiasheng.lee(a)intel.com>
Gerrit-Reviewer: Jett Rink <jettrink(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)google.com>
Gerrit-Reviewer: Marco Chen <marcochen(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: ShawnX Tu <shawnx.tu(a)intel.com>
Gerrit-Reviewer: Tomasz Figa <tfiga(a)google.com>
Gerrit-Reviewer: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-CC: Henry Sun <henrysun(a)google.com>
Gerrit-CC: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Fri, 18 Sep 2020 03:46:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
Comment-In-Reply-To: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-MessageType: comment
Sugnan Prabhu S has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45172 )
Change subject: drivers/intel/mipi_camera: Add support for dynamic SSDT generation
......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45172/8/src/drivers/intel/mipi_cam…
File src/drivers/intel/mipi_camera/camera_sku.c:
https://review.coreboot.org/c/coreboot/+/45172/8/src/drivers/intel/mipi_cam…
PS8, Line 36: /* By default device will be set to enabled in alloc_dev. So calling dev_set_enabled
: is not making call to chip_ops->enable_dev as device is already enabled */
: dev_set_enabled(sensor, 0);
: dev_set_enabled(sensor, 1);
: }
> This is a little confusing. […]
On calling alloc_dev, it sets the enabled flag in device to 1.
https://github.com/coreboot/coreboot/blob/b8b117c7e72ceb641c14db499a2c004fd…
Due to this, on calling dev_set_enabled once, it returns without doing anything, as the device is already set to enabled.
https://github.com/coreboot/coreboot/blob/b8b117c7e72ceb641c14db499a2c004fd…
As following functions in dev_set_enabled are not called, camera_enable in camera.c is never called.
dev->ops->enable(dev)
dev->chip_ops && dev->chip_ops->enable_dev(dev)
https://github.com/coreboot/coreboot/blob/b8b117c7e72ceb641c14db499a2c004fd…
So camera_ssdt_fill(which is responsible for the SSDT generation for the device) will not be called from acpi.c as dev->ops is not initialized.
https://github.com/coreboot/coreboot/blob/b8b117c7e72ceb641c14db499a2c004fd…
So it is required to disable once and then enable. I will update the comment.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45172
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6a5aa6c313c026871e55bc6d067b44de4c1f1afe
Gerrit-Change-Number: 45172
Gerrit-PatchSet: 8
Gerrit-Owner: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
Gerrit-Reviewer: Andy Yeh <andy.yeh(a)intel.com>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Chen Wisley <wisley.chen(a)quantatw.com>
Gerrit-Reviewer: Chiasheng Lee <chiasheng.lee(a)intel.com>
Gerrit-Reviewer: Jett Rink <jettrink(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)google.com>
Gerrit-Reviewer: Marco Chen <marcochen(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: ShawnX Tu <shawnx.tu(a)intel.com>
Gerrit-Reviewer: Tomasz Figa <tfiga(a)google.com>
Gerrit-Reviewer: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-CC: Henry Sun <henrysun(a)google.com>
Gerrit-CC: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Fri, 18 Sep 2020 03:43:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-MessageType: comment
Yu-Ping Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45235 )
Change subject: libpayload: cbgfx: Fix 'equals' counter for Lanczos resampling
......................................................................
libpayload: cbgfx: Fix 'equals' counter for Lanczos resampling
The 'equals' counter stores the number of latest pixels that were
exactly equal. Since the sample array is updated in a column-based
manner, we should also initialize the 'equals' counter in the same
order.
BUG=b:167739127
TEST=emerge-puff libpayload
TEST=Character 'k' is rendered correctly on puff
BRANCH=zork
Change-Id: Ibc91ad1af85adcf093eff40797cd54f32f57111d
Signed-off-by: Yu-Ping Wu <yupingso(a)chromium.org>
---
M payloads/libpayload/drivers/video/graphics.c
1 file changed, 22 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/45235/1
diff --git a/payloads/libpayload/drivers/video/graphics.c b/payloads/libpayload/drivers/video/graphics.c
index 2bf5e19..a8c9612 100644
--- a/payloads/libpayload/drivers/video/graphics.c
+++ b/payloads/libpayload/drivers/video/graphics.c
@@ -858,36 +858,38 @@
}
/*
- * Initialize the sample array for this line. For pixels to the
- * left of S0 there are no corresponding input pixels so just
- * copy the S0 values over.
- *
- * Also initialize the equals counter, which counts how many of
- * the latest pixels were exactly equal. We know the columns
- * left of S0 must be equal to S0, so start with that number.
+ * Initialize the sample array for this line, and also
+ * the equals counter, which counts how many of the latest
+ * pixels were exactly equal.
*/
- int equals = S0 * SSZ;
- uint8_t last_equal = ypix[0][0];
- for (sy = 0; sy < SSZ; sy++) {
- for (sx = S0; sx < SSZ; sx++) {
+ int equals = 0;
+ uint8_t last_equal = -1;
+ struct rgb_color *last_sample = NULL;
+ for (sx = 0; sx < SSZ; sx++) {
+ for (sy = 0; sy < SSZ; sy++) {
if (sx >= dim_org->width) {
sample[sx][sy] = sample[sx - 1][sy];
equals++;
continue;
}
- uint8_t i = ypix[sy][sx - S0];
+ /*
+ * For pixels to the left of S0 there are no
+ * corresponding input pixels so just use
+ * ypix[sy][0].
+ */
+ uint8_t i = ypix[sy][MAX(0, sx - S0)];
+ if (last_sample && i == last_equal) {
+ sample[sx][sy] = *last_sample;
+ equals++;
+ continue;
+ }
if (pal_to_rgb(i, pal, header->colors_used,
&sample[sx][sy]))
goto bitmap_error;
- if (i == last_equal) {
- equals++;
- } else {
- last_equal = i;
- equals = 1;
- }
+ last_equal = i;
+ last_sample = &sample[sx][sy];
+ equals = 1;
}
- for (sx = S0 - 1; sx >= 0; sx--)
- sample[sx][sy] = sample[S0][sy];
}
ix = 0;
--
To view, visit https://review.coreboot.org/c/coreboot/+/45235
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibc91ad1af85adcf093eff40797cd54f32f57111d
Gerrit-Change-Number: 45235
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-MessageType: newchange
Jingle Hsu has removed Johnny Lin from this change. ( https://review.coreboot.org/c/coreboot/+/45426 )
Change subject: soc/intel/xeon_sp/cpx: Enable ACPI Continuous Performance Control
......................................................................
Removed reviewer Johnny Lin.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45426
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I612598a5189375f335315933b590e1f7d24b2944
Gerrit-Change-Number: 45426
Gerrit-PatchSet: 3
Gerrit-Owner: Jingle Hsu <jingle_hsu(a)wiwynn.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: deleteReviewer
Jingle Hsu has removed Patrick Rudolph from this change. ( https://review.coreboot.org/c/coreboot/+/45426 )
Change subject: soc/intel/xeon_sp/cpx: Enable ACPI Continuous Performance Control
......................................................................
Removed reviewer Patrick Rudolph.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45426
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I612598a5189375f335315933b590e1f7d24b2944
Gerrit-Change-Number: 45426
Gerrit-PatchSet: 3
Gerrit-Owner: Jingle Hsu <jingle_hsu(a)wiwynn.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: deleteReviewer
Jingle Hsu has removed Morgan Jang from this change. ( https://review.coreboot.org/c/coreboot/+/45426 )
Change subject: soc/intel/xeon_sp/cpx: Enable ACPI Continuous Performance Control
......................................................................
Removed reviewer Morgan Jang.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45426
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I612598a5189375f335315933b590e1f7d24b2944
Gerrit-Change-Number: 45426
Gerrit-PatchSet: 3
Gerrit-Owner: Jingle Hsu <jingle_hsu(a)wiwynn.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: deleteReviewer
Jingle Hsu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45426 )
Change subject: soc/intel/xeon_sp/cpx: Enable ACPI Continuous Performance Control
......................................................................
Patch Set 3:
This change is ready for review.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45426
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I612598a5189375f335315933b590e1f7d24b2944
Gerrit-Change-Number: 45426
Gerrit-PatchSet: 3
Gerrit-Owner: Jingle Hsu <jingle_hsu(a)wiwynn.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Morgan Jang <Morgan_Jang(a)wiwynn.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Fri, 18 Sep 2020 02:16:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment