Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31109
Change subject: mb/lenovo/thinkcentre_a58: Extend mb name
......................................................................
mb/lenovo/thinkcentre_a58: Extend mb name
While branded as thinkcentre a58 this board can also be found as
"L-IG41M".
Change-Id: I06ed424138c46c6b2f29f15c7ea5c3648b26a8d3
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/mainboard/lenovo/thinkcentre_a58/Kconfig.name
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/31109/1
diff --git a/src/mainboard/lenovo/thinkcentre_a58/Kconfig.name b/src/mainboard/lenovo/thinkcentre_a58/Kconfig.name
index edc44fa..97c07cb 100644
--- a/src/mainboard/lenovo/thinkcentre_a58/Kconfig.name
+++ b/src/mainboard/lenovo/thinkcentre_a58/Kconfig.name
@@ -1,2 +1,2 @@
config BOARD_LENOVO_THINKCENTRE_A58
- bool "ThinkCentre A58"
+ bool "ThinkCentre A58 (L-IG41M)"
--
To view, visit https://review.coreboot.org/c/coreboot/+/31109
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I06ed424138c46c6b2f29f15c7ea5c3648b26a8d3
Gerrit-Change-Number: 31109
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31082
Change subject: amd/stoneyridge: Disable GPIO MASK STATUS
......................................................................
amd/stoneyridge: Disable GPIO MASK STATUS
MASK_STATUS disables interrupt status generation for the entire GPIO
controller when any debounce register is configured. This causes
problems when the kernel is loading drivers because we could lose
interrupts for previously loaded devices.
sb_program_gpios is also not setup to wait when configuring
PAD_DEBOUNCE, so there is a potential that we could lose the interrupt
status enable bit for other registers. By disabling MASK_STATUS we avoid
that problem.
BUG=b:113880780
BRANCH=none
TEST=Ran a reboot stress test that concluded that we are no longer
losing TPM interrupts while booting.
Change-Id: Ife1db3b1449f205092509595cbc3eca511bff57a
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
---
M src/soc/amd/stoneyridge/gpio.c
M src/soc/amd/stoneyridge/include/soc/gpio.h
2 files changed, 33 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/82/31082/1
diff --git a/src/soc/amd/stoneyridge/gpio.c b/src/soc/amd/stoneyridge/gpio.c
index bca8f5d..9b0d2b1 100644
--- a/src/soc/amd/stoneyridge/gpio.c
+++ b/src/soc/amd/stoneyridge/gpio.c
@@ -251,15 +251,31 @@
void sb_program_gpios(const struct soc_amd_gpio *gpio_list_ptr, size_t size)
{
uint8_t *mux_ptr;
- uint32_t *gpio_ptr;
+ uint32_t *gpio_ptr, *inter_master;
uint32_t control, control_flags, edge_level, direction;
uint32_t mask, bit_edge, bit_level, debounce;
uint8_t mux, index, gpio;
int gevent_num;
+ inter_master = (uint32_t *)(uintptr_t)(GPIO_CONTROL_MMIO_BASE
+ + INTER_MASTER_SWITCH);
direction = 0;
edge_level = 0;
mask = 0;
+
+ /* Disable blocking wake/interrupt status generation while updating
+ debounce registers. Otherwise when a debounce register is updated
+ the whole GPIO controller will zero out all interrupt enable status
+ bits while the delay happens. This could cause us to drop the bits
+ due to the read-modify-write that happens on each register.
+
+ Additionally disable interrupt generation so we don't get any
+ spurious interrupts while updating the registers.
+ */
+ mem_read_write32(inter_master,
+ MASK_STATUS_DISABLE | GPIO_INTER_DISABLE,
+ MASK_STATUS_MASK | GPIO_INTER_MASK);
+
for (index = 0; index < size; index++) {
gpio = gpio_list_ptr[index].gpio;
mux = gpio_list_ptr[index].function;
@@ -323,6 +339,12 @@
AMD_GPIO_CONTROL_MASK);
}
}
+
+ /* Re-enable interrupt status generation. We leave MASK_STATUS disabled
+ because the kernel will reconfigure the debounce registers while the
+ drivers load. This will cause interrupts to be missed during boot. */
+ mem_read_write32(inter_master, GPIO_INTER_ENABLE, GPIO_INTER_MASK);
+
/* Set all SCI trigger direction (high/low) */
mem_read_write32((uint32_t *)(uintptr_t)(APU_SMI_BASE + SMI_SCI_TRIG),
direction, mask);
diff --git a/src/soc/amd/stoneyridge/include/soc/gpio.h b/src/soc/amd/stoneyridge/include/soc/gpio.h
index 422ee57..bf2b714 100644
--- a/src/soc/amd/stoneyridge/include/soc/gpio.h
+++ b/src/soc/amd/stoneyridge/include/soc/gpio.h
@@ -41,6 +41,16 @@
uint8_t mux_value;
};
+#define INTER_MASTER_SWITCH 0xFC
+#define MASK_STATUS_SHIFT 28
+#define MASK_STATUS_MASK (1 << MASK_STATUS_SHIFT)
+#define MASK_STATUS_ENABLE (1 << MASK_STATUS_SHIFT)
+#define MASK_STATUS_DISABLE 0
+#define GPIO_INTER_SHIFT 30
+#define GPIO_INTER_MASK (1 << GPIO_INTER_SHIFT)
+#define GPIO_INTER_ENABLE (1 << GPIO_INTER_SHIFT)
+#define GPIO_INTER_DISABLE 0
+
#define GPIO_I2C0_SCL BIT(0)
#define GPIO_I2C1_SCL BIT(1)
#define GPIO_I2C2_SCL BIT(2)
--
To view, visit https://review.coreboot.org/c/coreboot/+/31082
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ife1db3b1449f205092509595cbc3eca511bff57a
Gerrit-Change-Number: 31082
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-MessageType: newchange
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28648 )
Change subject: nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
......................................................................
Patch Set 9:
> Also, according to "Intel® 945G/945GZ/945GC/945P/945PL Express
> Chipset Family", this bit is reserved on desktop variants. I don't
> think it should be set.
regarding that document , Refresh Cycle Time (tRFC), Pre-All to Activate Delay (tRPALL), Activate to Precharge Delay (tRAS), Read to Precharge (tRTP) are also reserved ... ! :)
--
To view, visit https://review.coreboot.org/c/coreboot/+/28648
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Gerrit-Change-Number: 28648
Gerrit-PatchSet: 9
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 28 Jan 2019 13:27:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Hello Patrick Rudolph, Angel Pons, Arthur Heymans, Paul Menzel, build bot (Jenkins), Nico Huber, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/28648
to look at the new patch set (#9).
Change subject: nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
......................................................................
nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
Regarding "Mobile Intel® 945 Express Chipset Family - June 2008"
datasheet, page #129, CxDRT1 bit #16 "Pre-All to Activate Delay" must be
set if any rank is populated with 8-bank device technology.
Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M src/northbridge/intel/i945/raminit.c
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/48/28648/9
--
To view, visit https://review.coreboot.org/c/coreboot/+/28648
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Gerrit-Change-Number: 28648
Gerrit-PatchSet: 9
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello Patrick Rudolph, Angel Pons, Arthur Heymans, Paul Menzel, build bot (Jenkins), Nico Huber, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/28648
to look at the new patch set (#8).
Change subject: nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
......................................................................
nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
Regarding "Mobile Intel® 945 Express Chipset Family - June 2008"
datasheet, page #129, CxDRT1 bit #16 "Pre-All to Activate Delay" must be
set if any rank is populated with 8-bank device technology.
Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M src/northbridge/intel/i945/raminit.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/48/28648/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/28648
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Gerrit-Change-Number: 28648
Gerrit-PatchSet: 8
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28648 )
Change subject: nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
......................................................................
Patch Set 7:
(1 comment)
> Also, according to "Intel® 945G/945GZ/945GC/945P/945PL Express
> Chipset Family", this bit is reserved on desktop variants. I don't
> think it should be set.
"Intel® 945G/945GZ/945GC/945P/945PL Express Chipset Family" is shitty.. :)
https://review.coreboot.org/#/c/28648/7/src/northbridge/intel/i945/raminit.c
File src/northbridge/intel/i945/raminit.c:
https://review.coreboot.org/#/c/28648/7/src/northbridge/intel/i945/raminit.…
PS7, Line 1495: if (sysinfo->banks[i] != 8)
: continue;
: temp_drt |= (1 << 16);
> Since we only want to set this bit once, why don't we do the following: […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/28648
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Gerrit-Change-Number: 28648
Gerrit-PatchSet: 7
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 28 Jan 2019 13:01:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28648 )
Change subject: nb/intel/i945: Set CxDRT1 tRPALL bit if populated with 8-bank
......................................................................
Patch Set 7:
Also, according to "Intel® 945G/945GZ/945GC/945P/945PL Express Chipset Family", this bit is reserved on desktop variants. I don't think it should be set.
--
To view, visit https://review.coreboot.org/c/coreboot/+/28648
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6c7dccd295e187acfe00a08294010af53b4d0ee
Gerrit-Change-Number: 28648
Gerrit-PatchSet: 7
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 28 Jan 2019 12:46:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment